* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

a {
  color: inherit;
  text-decoration: none;
}

.brand {
  color: var(--lime-dark);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
}

.small {
  min-height: 38px;
  padding: 0 18px;
  font-size: 13px;
}

.snap-section {
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  padding: clamp(28px, 5vh, 54px) clamp(20px, 5vw, 76px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #49633a;
  font-size: 13px;
  font-weight: 900;
}

.hero h1 {
  display: grid;
  gap: clamp(6px, 1vh, 10px);
  margin: 0;
  font-weight: 950;
  letter-spacing: 0;
  word-break: keep-all;
}

.hero h1 span {
  display: block;
  font-size: clamp(42px, 5.8vw, 84px);
  line-height: 1.02;
}

.hero h1 strong {
  display: block;
  color: #00f06a;
  font-size: clamp(56px, 8vw, 118px);
  line-height: 0.94;
}

.hero-copy {
  max-width: 620px;
  margin: clamp(18px, 3vh, 26px) auto clamp(16px, 2.6vh, 24px);
  color: #4e5649;
  font-size: 17px;
  font-weight: 750;
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions .primary-button {
  border: 2px solid #ffffff !important;
  background: #ffffff !important;
  color: var(--hm-green) !important;
}

.feature-section {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(42px, 7vw, 120px);
  padding: clamp(42px, 7vh, 82px) clamp(28px, 8vw, 140px);
}

.feature-section:nth-of-type(odd) {
  background: #fff;
}

.feature-section:nth-of-type(even) {
  background: #f8fbf5;
}

.feature-copy {
  max-width: 560px;
}

.feature-number {
  display: block;
  margin-bottom: 10px;
  color: #0877ff;
  font-size: 16px;
  line-height: 1;
  font-weight: 950;
}

.feature-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(46px, 5vw, 74px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
  word-break: keep-all;
}

.feature-copy p {
  max-width: 520px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 750;
  word-break: keep-all;
}

.feature-visual {
  width: 100%;
  min-height: clamp(320px, 46vh, 440px);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.diagnosis-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.score-card,
.grade-card,
.mini-list,
.metric-grid article {
  border-radius: 8px;
  background: var(--soft);
}

.score-card,
.grade-card {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 22px;
}

.score-card span,
.grade-card span,
.metric-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.score-card strong,
.grade-card strong,
.metric-grid strong {
  color: var(--ink);
  font-size: 44px;
  line-height: 1;
  font-weight: 950;
}

.score-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.mini-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 22px;
  color: var(--lime-dark);
  font-weight: 900;
  list-style: none;
}

.plan-visual,
.question-visual,
.chat-visual,
.growth-visual {
  display: grid;
  align-content: center;
  gap: 14px;
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.calendar-strip span {
  min-height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 950;
}

.calendar-strip .active {
  background: var(--lime);
  color: var(--lime-dark);
}

.plan-item {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--soft);
}

.plan-item i {
  width: 16px;
  height: 16px;
  border: 2px solid #cfd8c7;
  border-radius: 50%;
}

.plan-item.done i {
  border-color: var(--lime);
  background: var(--lime);
}

.plan-item strong {
  color: var(--ink);
  font-weight: 950;
}

.plan-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--accent-soft, #eef5e8);
  color: var(--lime-dark);
  font-size: 13px;
  font-weight: 900;
}

.question-visual h3 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 950;
  word-break: keep-all;
}

.question-visual ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.question-visual li,
.hint-line {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 850;
}

.hint-line {
  color: var(--lime-dark);
}

.chat-bubble {
  max-width: 78%;
  padding: 16px 18px;
  border-radius: 8px;
  font-weight: 850;
  word-break: keep-all;
}

.chat-bubble.user {
  justify-self: end;
  background: var(--lime);
  color: var(--lime-dark);
}

.chat-bubble.bot {
  justify-self: start;
  background: var(--soft);
  color: var(--ink);
}

.chat-input {
  min-height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.metric-grid article {
  min-height: 110px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px;
}

.metric-grid strong {
  font-size: 26px;
}

.line-chart {
  position: relative;
  height: 170px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(22, 51, 0, 0.08) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(22, 51, 0, 0.08) 0 1px, transparent 1px 42px),
    var(--soft);
}

.line-chart::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 58%;
  height: 4px;
  border-radius: 999px;
  background: #0877ff;
  transform: rotate(-7deg);
  transform-origin: left center;
}

.line-chart i {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #0877ff;
}

.line-chart i:nth-child(1) { left: 8%; top: 66%; }
.line-chart i:nth-child(2) { left: 24%; top: 54%; }
.line-chart i:nth-child(3) { left: 40%; top: 60%; }
.line-chart i:nth-child(4) { left: 56%; top: 48%; }
.line-chart i:nth-child(5) { left: 72%; top: 51%; }
.line-chart i:nth-child(6) { left: 88%; top: 39%; }

.cta-section {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(42px, 7vh, 82px) clamp(28px, 8vw, 140px);
  background: var(--lime-dark);
  color: var(--lime);
  text-align: center;
}

.cta-panel span {
  display: block;
  margin-bottom: 10px;
  color: #d9ffc9;
  font-weight: 900;
}

.cta-panel h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(54px, 7vw, 108px);
  line-height: 0.98;
  font-weight: 950;
}

.cta-panel p {
  margin: 20px auto 28px;
  max-width: 560px;
  color: #d9ffc9;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 240ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 240ms cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 60ms;
}

@media (hover: hover) and (pointer: fine) {
  .feature-visual {
    transition: translate 200ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 200ms ease;
  }

  .feature-visual:hover {
    translate: 0 -4px;
    box-shadow: 0 18px 34px rgba(64, 43, 20, .14);
  }
}

@media (max-width: 980px) {html {
    scroll-snap-type: none;
  }

  .feature-section {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 70px 24px;
  }

  .feature-02 .feature-visual,
  .feature-04 .feature-visual {
    order: 2;
  }

  .feature-02 .feature-copy,
  .feature-04 .feature-copy {
    order: 1;
  }

  .feature-copy h2 {
    font-size: clamp(40px, 9vw, 60px);
  }

  .feature-visual {
    min-height: auto;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {.hero {
    min-height: auto;
    padding: 58px 18px 72px;
  }

  .hero h1 span {
    font-size: clamp(38px, 11vw, 54px);
  }

  .hero h1 strong {
    font-size: clamp(48px, 14vw, 72px);
  }

  .feature-section,
  .cta-section {
    padding: 58px 18px;
  }

  .feature-copy h2,
  .cta-panel h2 {
    font-size: 42px;
  }

  .diagnosis-visual,
  .metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
