:root {
  --paper: #fbf7ed;
  --paper-2: #fffdf8;
  --line: #e7d9c4;
  --ink: #30291f;
  --muted: #6d6254;
  --sage: #5f8b71;
  --sage-dark: #2e725c;
  --blue: #4f82bd;
  --clay: #db8841;
  --rose: #c95865;
  --gold: #dfa743;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(95, 139, 113, 0.08), transparent 32%),
    radial-gradient(circle at 84% 30%, rgba(79, 130, 189, 0.07), transparent 30%),
    var(--paper);
  color: var(--ink);
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(231, 217, 196, 0.82);
  background: rgba(251, 247, 237, 0.92);
  backdrop-filter: blur(18px);
}

.site-nav nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.site-brand span {
  color: var(--sage-dark);
  font-size: 24px;
}

.nav-cta,
.primary-cta,
.secondary-cta,
.button-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

.nav-cta,
.primary-cta,
.button-cta {
  border: 1px solid var(--sage-dark);
  background: var(--sage-dark);
  color: white;
  box-shadow: 0 10px 22px rgba(46, 114, 92, 0.18);
}

.secondary-cta {
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--sage-dark);
}

.nav-cta:hover,
.primary-cta:hover,
.secondary-cta:hover,
.button-cta:hover {
  transform: translateY(-1px);
}

.compact {
  min-height: 38px;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.hero h1,
.signup-copy h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-lede,
.signup-copy p,
.final-cta p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin-top: 28px;
}

.hero-proof div,
.signup-promise,
.operator-flow a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 14px 34px rgba(48, 41, 31, 0.06);
}

.hero-proof div {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.hero-proof strong {
  color: var(--sage-dark);
  font-size: 22px;
}

.hero-proof span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.hero-visual {
  min-height: 520px;
  display: grid;
  place-items: center;
}

.browser-frame,
.atlas-card,
.signup-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 0 24px 70px rgba(48, 41, 31, 0.12);
}

.browser-frame,
.testimonial-stage,
.signup-card {
  position: relative;
}

.browser-frame::before,
.testimonial-stage::before,
.signup-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.browser-frame {
  width: min(100%, 720px);
  overflow: hidden;
}

.browser-top {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.browser-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d7c6ad;
}

.dashboard-preview {
  padding: 24px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.preview-lines {
  display: grid;
  gap: 18px;
  margin: 30px 0;
}

.preview-lines i {
  height: 54px;
  display: block;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 6%, rgba(46, 114, 92, 0.08) 6% 100%),
    repeating-linear-gradient(90deg, rgba(95, 139, 113, 0.75) 0 5px, transparent 5px 28px);
}

.preview-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff9ef;
}

.preview-card p {
  color: var(--muted);
}

.transform-section {
  min-height: 240vh;
  padding: 0 clamp(18px, 5vw, 72px);
}

.sticky-story {
  position: sticky;
  top: 88px;
  min-height: calc(100vh - 100px);
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.story-copy h2,
.feature-band h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.story-copy p:last-child {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.testimonial-stage {
  --progress: 0;
  position: relative;
  min-height: min(72vh, 680px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffbf3;
  box-shadow: 0 24px 70px rgba(48, 41, 31, 0.13);
}

.stage-label {
  position: absolute;
  top: 70px;
  z-index: 4;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.story-controls {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 7;
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.9);
}

.story-control {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.story-control.active {
  background: var(--sage-dark);
  color: white;
}

.before-label {
  left: 18px;
  opacity: calc(1 - var(--progress));
}

.after-label {
  right: 18px;
  opacity: var(--progress);
}

.before-scene,
.after-scene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 22px;
  padding: clamp(22px, 4vw, 44px);
  transition: none;
}

.before-scene {
  opacity: calc(1 - var(--progress));
  transform: translateX(calc(var(--progress) * -44px)) rotate(calc(var(--progress) * -2deg));
}

.after-scene {
  opacity: var(--progress);
  transform: translateY(calc((1 - var(--progress)) * 38px)) scale(calc(0.94 + var(--progress) * 0.06));
}

.paper-stack {
  position: relative;
  min-height: 330px;
}

.paper-stack article {
  position: absolute;
  width: min(330px, 68%);
  min-height: 140px;
  display: grid;
  align-content: start;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper-2);
  box-shadow: 0 14px 36px rgba(48, 41, 31, 0.08);
  color: var(--muted);
}

.paper-stack article:nth-child(1) { left: 5%; top: 8%; transform: rotate(-4deg); }
.paper-stack article:nth-child(2) { left: 28%; top: 22%; transform: rotate(3deg); }
.paper-stack article:nth-child(3) { left: 14%; top: 47%; transform: rotate(-2deg); }
.paper-stack article:nth-child(4) { left: 46%; top: 52%; transform: rotate(5deg); }

blockquote {
  margin: 0;
  max-width: 660px;
  border-left: 4px solid var(--sage);
  padding-left: 18px;
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.35;
}

cite {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.atlas-card {
  overflow: hidden;
}

.atlas-title,
.after-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.atlas-title span,
.after-note span {
  color: var(--muted);
}

.atlas-chart {
  padding: 16px;
}

.svg-label {
  fill: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.mood-line,
.anxiety-line,
.sleep-line {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}

.mood-line { stroke: var(--sage-dark); }
.anxiety-line { stroke: var(--clay); }
.sleep-line { stroke: var(--blue); }
.practice-bars rect { fill: rgba(95, 139, 113, 0.66); }
.focus-band { fill: rgba(223, 167, 67, 0.16); stroke: rgba(219, 136, 65, 0.5); }
.focus-dot { fill: var(--paper-2); stroke: var(--sage-dark); stroke-width: 5; }
.focus-dot.amber { stroke: var(--clay); }

.floating-cta {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 6;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--sage-dark);
  color: white;
  font-weight: 850;
  opacity: clamp(0, calc((var(--progress) - 0.58) * 3), 1);
  transform: translateY(calc((1 - var(--progress)) * 12px));
}

.feature-band,
.operator-band,
.final-cta {
  padding: clamp(70px, 10vw, 120px) clamp(18px, 5vw, 72px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.feature-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--paper-2);
}

.feature-grid p {
  color: var(--muted);
  line-height: 1.5;
}

.operator-band {
  background: rgba(255, 253, 248, 0.62);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.operator-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.operator-flow a {
  display: grid;
  gap: 7px;
  min-height: 130px;
  align-content: center;
  padding: 18px;
}

.operator-flow strong {
  color: var(--sage-dark);
  font-size: 22px;
}

.operator-flow span,
.signup-promise span {
  color: var(--muted);
  line-height: 1.4;
}

.final-cta {
  text-align: center;
  background: #fff9ef;
}

.final-cta p,
.final-cta .primary-cta {
  margin-left: auto;
  margin-right: auto;
}

.signup-body {
  min-height: 100vh;
}

.site-nav.simple {
  justify-content: space-between;
}

.signup-shell {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 520px);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  padding: clamp(44px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.signup-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.signup-promise {
  display: grid;
  gap: 9px;
  max-width: 520px;
  margin-top: 28px;
  padding: 18px;
}

.signup-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.signup-card input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
}

.text-link {
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signup-check {
  display: flex !important;
  align-items: center;
  grid-template-columns: none;
  line-height: 1.35;
}

.signup-check input {
  width: 18px;
  min-height: 18px;
}

.signup-note {
  min-height: 20px;
  margin: 0;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 800;
}

.signup-note.error {
  color: var(--rose);
}

.page-shell {
  padding: clamp(48px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.page-hero {
  max-width: 940px;
  margin-bottom: 34px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-hero p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.pricing-grid,
.trust-grid,
.specialty-grid,
.portal-export-band {
  display: grid;
  gap: 14px;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid article,
.trust-grid article,
.specialty-grid article,
.portal-export-band article,
.trust-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: 0 16px 38px rgba(48, 41, 31, 0.07);
}

.pricing-grid article {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.pricing-grid strong {
  color: var(--sage-dark);
  font-size: 38px;
}

.pricing-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.featured-plan {
  outline: 2px solid rgba(46, 114, 92, 0.26);
}

.trust-note {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 16px 18px;
}

.trust-note span {
  color: var(--muted);
  line-height: 1.45;
}

.trust-grid,
.specialty-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-grid article,
.specialty-grid article {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.trust-grid p,
.specialty-grid span,
.portal-export-band p {
  color: var(--muted);
  line-height: 1.5;
}

.launch-roadmap {
  display: grid;
  gap: 34px;
}

.launch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.launch-grid article,
.launch-checklist {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  padding: 22px;
}

.launch-grid span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(95, 139, 113, 0.16);
  color: var(--sage-dark);
  font-weight: 900;
}

.launch-grid h2,
.launch-checklist h2 {
  margin: 16px 0 10px;
}

.launch-grid p,
.launch-checklist span {
  color: var(--muted);
  line-height: 1.65;
}

.launch-grid strong {
  display: block;
  margin-top: 18px;
  color: var(--sage-dark);
}

.launch-checklist {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 28px;
}

.launch-checklist ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 20px;
}

.launch-checklist li strong,
.launch-checklist li span {
  display: block;
}

.specialty-band,
.portal-export-band {
  padding: clamp(70px, 10vw, 120px) clamp(18px, 5vw, 72px);
}

.specialty-band {
  border-top: 1px solid var(--line);
}

.portal-export-band {
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 253, 248, 0.62);
}

.portal-export-band article {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
}

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

  .before-scene,
  .after-scene,
  .floating-cta {
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-nav nav {
    display: none;
  }

  .hero,
  .sticky-story,
  .signup-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .transform-section {
    min-height: auto;
    padding-bottom: 70px;
  }

  .sticky-story {
    position: relative;
    top: auto;
  }

  .testimonial-stage {
    min-height: 720px;
    --progress: 1 !important;
  }

  .before-scene {
    display: none;
  }

  .after-scene {
    position: relative;
  }

  .floating-cta {
    opacity: 1;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .operator-flow {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-grid,
  .trust-grid,
  .launch-grid,
  .launch-checklist,
  .specialty-grid,
  .portal-export-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-nav {
    gap: 12px;
  }

  .nav-cta,
  .secondary-cta.compact {
    display: none;
  }

  .hero h1,
  .signup-copy h1 {
    font-size: 44px;
  }

  .hero-actions,
  .atlas-title,
  .after-note {
    align-items: stretch;
    flex-direction: column;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof,
  .operator-flow {
    grid-template-columns: 1fr;
  }

  .paper-stack article {
    width: 78%;
  }

  .floating-cta {
    left: 18px;
    right: 18px;
    justify-content: center;
  }
}
