/* MentalCure home page sections (loaded only on "/"; tokens and components live in app.css). */

/* ---------- hero ---------- */
.hero { padding-block: clamp(28px, 6vw, 72px) clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); } }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 1.35rem + 5.4vw, 5rem);
  line-height: 1.0;
  letter-spacing: -.03em;
  font-weight: 650;
  text-wrap: balance;
}
.hero h1 .how { color: var(--blue); }
.hero h1 .what { color: var(--ink-2); }
.hero .lead { margin-top: 24px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.micro { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: .9375rem; color: var(--ink-3); }
.micro svg { width: 18px; height: 18px; flex: none; }
.hero { overflow: hidden; }
/* The leaf: a voice message as the model receives it, set as typography on a paper card */
.leaf {
  position: relative; margin: 0;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  border-radius: 30px 30px 30px 8px;
  padding: clamp(20px, 3.4vw, 36px);
}
.leaf::before { /* a pressed corner of sage, like a page marker */
  content: ""; position: absolute; top: -1px; right: clamp(24px, 5vw, 44px); width: 14px; height: 30px;
  background: var(--sage-soft); border-radius: 0 0 3px 3px; opacity: .8;
}
.leaf__head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line);
}
.leaf .tag {
  font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px;
}
.leaf__meta { font-size: .9375rem; color: var(--ink-2); }

.tl2 { display: grid; gap: 6px; }
.tl__row { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: 12px; align-items: baseline; }
.tl__time { font-size: .8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl__nrg { color: var(--primary); text-decoration: none; font-size: .7rem; margin-left: 3px; cursor: help; }
.tl__note { display: block; font-family: var(--serif); font-style: italic; font-size: 1.0625rem; color: var(--sage); margin-bottom: 2px; }
.tl__words {
  display: block; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); line-height: 1.2; font-weight: 500;
  letter-spacing: -.012em; color: var(--ink);
}
.tl__row:first-child .tl__words { letter-spacing: .03em; } /* slow, unbroken: the words breathe */
.tl__mark { font-size: .55em; color: var(--primary); vertical-align: .55em; margin-left: .06em; font-weight: 600; }
.tl__beat { color: var(--primary); padding: 0 .08em; }
.tl__row--pause .tl__body { padding: 8px 0 6px; }
.tl__pause { display: flex; align-items: center; gap: 12px; }
.tl__rule { position: relative; display: block; height: 0; width: min(52%, 11rem); border-top: 1.5px dashed var(--ink-3); opacity: .7; }
.tl__secs { font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.leaf__reply { margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.leaf__reply p { padding-left: 16px; border-left: 2px solid var(--sage-soft); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); }
.leaf__cap {
  display: grid; gap: 10px; margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line-2);
  font-size: .875rem; line-height: 1.5; color: var(--ink-2);
}
.leaf .legend { margin: 0; padding: 0; border: 0; gap: 4px 16px; font-size: .8125rem; }
.leaf .legend b { color: var(--primary); font-weight: 600; margin-right: 3px; }

/* the timeline "speaks" once, at roughly the pace it was spoken: each word warms as it is said.
   Nothing starts hidden, so a still frame (or reduced motion) always shows the whole card. */
@keyframes said { 0%, 100% { color: var(--ink); } 25% { color: var(--primary); } }
@keyframes saidmark { 0%, 100% { opacity: 1; } 25% { opacity: .35; } }
@keyframes travel { from { left: 0; opacity: 1; } 92% { opacity: 1; } to { left: 100%; opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero .leaf { animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) .1s both; }
  .tl__words .p { animation: said 1.4s ease both; }
  .tl2 .p1 { animation: saidmark 2s ease 1.2s both; }
  .tl__words .tl__beat { animation-name: saidmark; }
  .tl2 .p2 { animation-delay: 1.3s; } .tl2 .p3 { animation-delay: 1.65s; } .tl2 .p4 { animation-delay: 2.05s; }
  .tl2 .p5 { animation-delay: 2.4s; animation-duration: 2s; } .tl2 .p6 { animation-delay: 2.95s; }
  .tl__rule::after {
    content: ""; position: absolute; top: -4px; left: 0; width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary); opacity: 0; animation: travel 2.1s linear 3.4s both;
  }
  .tl2 .p8 { animation-delay: 5.5s; } .tl2 .p9 { animation-delay: 5.8s; } .tl2 .p10 { animation-delay: 6.15s; }
  .tl2 .p11 { animation-delay: 6.45s; } .tl2 .p12 { animation-delay: 6.9s; } .tl2 .p13 { animation-delay: 7.2s; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 128px); }
.sheet {
  margin-inline: clamp(8px, 1.6vw, 24px);
  border-radius: var(--sheet-r);
  padding-block: clamp(56px, 8vw, 112px);
}
.sheet-moss { background: var(--paper-2); }
.sheet-light { background: var(--sheet-light); }
.sheet-deep { background: var(--deep); color: var(--on-deep); }
.sec-head { display: grid; gap: 20px; max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.center { text-align: center; margin-inline: auto; justify-items: center; }

/* contrast */
.compare { display: grid; gap: 16px; }
.compare-head { display: none; }
.cmp-row { display: grid; gap: 10px; }
.cmp-them {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 4px 6px; color: var(--ink-2);
}
.cmp-them p { font-size: 1.125rem; }
.cmp-them .tag, .cmp-us .tag {
  display: block; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px;
}
.cmp-us .tag { color: var(--primary); }
.cmp-them svg { width: 22px; height: 22px; flex: none; margin-top: 4px; }
.cmp-arrow { display: none; }
.cmp-us {
  background: var(--card); border-radius: 22px 22px 22px 6px; padding: 22px 24px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.cmp-us h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; }
.cmp-us p { margin-top: 6px; color: var(--ink-2); }
@media (min-width: 860px) {
  .compare { gap: 0; }
  .compare-head {
    display: grid; grid-template-columns: minmax(0, .8fr) 72px minmax(0, 1.3fr);
    font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    padding-bottom: 14px; border-bottom: 1px solid var(--line-2);
  }
  .compare-head span:first-child { color: var(--ink-3); }
  .compare-head span:last-child { grid-column: 3; color: var(--primary); padding-left: 24px; }
  .cmp-row {
    grid-template-columns: minmax(0, .8fr) 72px minmax(0, 1.3fr);
    align-items: center; gap: 0; padding-block: 22px; border-bottom: 1px solid var(--line);
  }
  .cmp-them { padding: 0 8px 0 0; }
  .cmp-them p { font-size: 1.25rem; }
  .cmp-them .tag, .cmp-us .tag { display: none; }
  .cmp-arrow { display: block; width: 52px; height: 24px; justify-self: center; }
}

/* how it works */
.steps { display: grid; gap: 20px; counter-reset: step; position: relative; }
.step {
  position: relative; background: var(--card); border-radius: 28px; padding: 28px 26px 30px;
  border: 1px solid var(--line);
}
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.step-num { font: italic 400 3.5rem/1 var(--serif); color: var(--blue); }
.step-ico { width: 64px; height: 64px; }
.step h3 { font-size: 1.375rem; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
.step p { margin-top: 10px; color: var(--ink-2); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step:nth-child(2) { transform: translateY(28px); }
  .step:nth-child(3) { transform: translateY(56px); }
  .steps { padding-bottom: 56px; }
}

/* voice */
.voice-grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (min-width: 1000px) {
  .voice-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .voice-grid .preview { position: sticky; top: 100px; }
}
.outcomes { display: grid; gap: 14px; }
.outcome { padding: 24px 0 26px; border-top: 1px solid var(--line-2); display: grid; gap: 10px; }
.outcome:last-child { border-bottom: 1px solid var(--line-2); }
.outcome svg { width: 96px; height: 28px; }
.outcome h3 { font-size: 1.3125rem; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; }
.outcome p { color: var(--ink-2); }
.footnote { margin-top: 22px; display: flex; gap: 10px; align-items: flex-start; }
.footnote svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }

/* product preview (also used by the chat mock) */
.preview {
  position: relative; background: var(--card); border-radius: 30px; padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.preview-label {
  position: absolute; top: -13px; left: 24px;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 3px 12px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.vmsg {
  margin-left: clamp(0px, 6%, 48px); background: var(--primary-tint); border-radius: 22px 22px 6px 22px; padding: 16px 18px 14px;
}
.vmsg-head { display: flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.vmsg-head svg.mic { width: 16px; height: 16px; }
.vmsg-head .dur { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 400; color: var(--ink-3); }
.bars { position: relative; margin: 12px 0 6px; }
.bars svg { width: 100%; height: 34px; }
.bars rect { fill: var(--primary-soft); }
.bars .pause-mark { fill: none; stroke: var(--blue); stroke-width: 1.2; stroke-dasharray: 2 3; }
.playhead {
  position: absolute; top: -4px; bottom: -4px; left: 0; width: 2px; border-radius: 2px; background: var(--ink); opacity: 0;
}
.tl { margin-top: 10px; display: grid; gap: 2px; font-size: 1rem; }
.tl-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 6px 8px; border-radius: 12px; margin-inline: -8px; transition: background-color .4s ease; }
.tl-t { font-variant-numeric: tabular-nums; font-size: .8125rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: 3px; }
.tl-t .drop { color: var(--blue); font-size: .7rem; }
.tl-say { font-family: var(--serif); font-style: italic; font-size: 1.3125rem; line-height: 1.35; color: var(--ink); }
.tl-how { display: block; font-family: var(--sans); font-style: normal; font-size: .875rem; color: var(--sage); }
.tl-gap { grid-template-columns: 56px minmax(0, 1fr); }
.tl-gap .gap-line { display: flex; align-items: center; gap: 10px; font-size: .8125rem; color: var(--blue); font-variant-numeric: tabular-nums; }
.tl-gap .gap-line::before { content: ""; width: 44px; border-top: 1.5px dashed var(--blue); }
.pitch { color: var(--blue); font-family: var(--sans); font-style: normal; font-size: .95em; }
.dotsep { color: var(--primary); padding: 0 .3em 0 .2em; font-family: var(--sans); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: .8125rem; color: var(--ink-3); }
.legend b { color: var(--blue); font-weight: 600; }
.legend b.s { color: var(--sage); }
.amsg { margin-top: 12px; margin-right: clamp(0px, 6%, 48px); padding: 10px 12px; margin-left: -12px; border-radius: 16px; }
.amsg-who { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.amsg-who svg { width: 22px; height: 22px; }
.amsg p { margin-top: 8px; font-size: 1.125rem; line-height: 1.55; }
.preview-cap {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; gap: 10px; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  font-size: .9375rem; color: var(--ink-2);
}
.replay {
  font: 600 .875rem/1 var(--sans); color: var(--ink-2); background: none; border: 1px solid var(--line-2);
  border-radius: 999px; padding: 8px 12px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.replay:hover { color: var(--primary); border-color: var(--primary); }
.replay svg { width: 12px; height: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .preview.play .playhead { animation: sweep 7s linear forwards; }
  .preview.play .tl-row.r1 { animation: lit 2.6s ease .3s; }
  .preview.play .tl-row.r2 { animation: lit 1.8s ease 2.8s; }
  .preview.play .tl-row.r3 { animation: lit 2.6s ease 4.4s; }
  .preview.play .amsg { animation: lit 2.4s ease 6.4s; }
}
@keyframes sweep { 0% { left: 0; opacity: .8; } 96% { opacity: .8; } 100% { left: 100%; opacity: 0; } }
@keyframes lit { 0%, 100% { background: transparent; } 20%, 70% { background: color-mix(in srgb, var(--card) 70%, var(--primary-tint)); } }

/* approaches */
.approaches { display: grid; gap: 12px; counter-reset: ap; }
.ap {
  counter-increment: ap; position: relative;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border-radius: 22px; padding: 22px 22px 18px; border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ap:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ap::before {
  content: counter(ap, decimal-leading-zero);
  font: 600 .75rem/1 var(--sans); letter-spacing: .12em; color: var(--ink-3);
}
.ap h3 { font-size: 1.1875rem; line-height: 1.25; font-weight: 650; letter-spacing: -.005em; }
.ap p { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.ap .who { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-2); font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--sage); }
.ap-dot { position: absolute; top: 20px; right: 20px; width: 12px; height: 12px; border-radius: 50% 40% 55% 45%; }
.ap:nth-child(3n+1) .ap-dot { background: var(--primary-soft); }
.ap:nth-child(3n+2) .ap-dot { background: var(--sage-soft); }
.ap:nth-child(3n) .ap-dot { background: var(--blue-soft); }
@media (min-width: 640px) { .approaches { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .approaches { grid-template-columns: repeat(5, 1fr); } .ap { min-height: 252px; } }
.ap-foot { margin-top: 28px; display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.ap-foot svg { width: 20px; height: 20px; flex: none; }

/* groundwork */
.ground-grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 1000px) { .ground-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.ground-body { margin-top: 24px; color: var(--ink-2); max-width: 36em; font-size: 1.125rem; }
.index-card {
  position: relative; background: var(--card); border-radius: 10px 10px 10px 40px; padding: 30px 30px 26px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transform: rotate(-1.2deg);
}
.index-card .ic-head { padding-bottom: 14px; margin-inline: -30px; padding-inline: 30px; border-bottom: 1.5px solid color-mix(in srgb, var(--primary) 55%, transparent); }
.index-card .ic-k { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.index-card .ic-t { font-family: var(--serif); font-style: italic; font-size: 1.375rem; margin-top: 4px; }
.index-card ul { margin-top: 6px; display: grid; }
.index-card li { display: flex; align-items: center; gap: 12px; height: 48px; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
.index-card li svg { width: 18px; height: 18px; flex: none; }
.index-card .ic-foot { margin-top: 8px; font-size: .875rem; color: var(--ink-3); }
.proofs { display: grid; gap: 18px; margin-top: clamp(48px, 6vw, 80px); }
.proof { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; padding-top: 22px; border-top: 1px solid var(--line-2); }
.proof svg { width: 48px; height: 48px; }
.proof h3 { font-size: 1.1875rem; font-weight: 650; }
.proof p { color: var(--ink-2); margin-top: 2px; }
@media (min-width: 860px) { .proofs { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* honest */
.honest { color: var(--on-deep); }
.honest .eyebrow { color: var(--on-deep-2); }
.honest .eyebrow::before { background: var(--deep-accent); }
.honest-grid { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (min-width: 1000px) { .honest-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.honest .h2 { margin-top: 20px; }
.honest .h2 em { color: var(--deep-accent); }
.honest-body { margin-top: 24px; color: var(--on-deep-2); font-size: 1.1875rem; max-width: 34em; }
.pull { position: relative; padding: 8px 0 0; }
.pull svg.qmark { width: 64px; height: 52px; margin-bottom: 18px; }
.pull svg .q { fill: var(--deep-accent); }
.pull p {
  font-family: var(--serif); font-style: italic; font-weight: 350;
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.875rem); line-height: 1.18; letter-spacing: -.015em; text-wrap: balance;
}
.pull p .hl { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--deep-accent) 38%, transparent) 62% 92%, transparent 92%); }
.pull footer { margin-top: 20px; font-size: .9375rem; color: var(--on-deep-2); }
.honest :focus-visible { outline-color: var(--deep-accent); }

/* memory */
.mem-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 1000px) { .mem-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.mem-art svg { width: 100%; height: auto; overflow: visible; }
.mem-art .lbl { font: 400 13px var(--sans); fill: var(--ink-3); }
.mem-art .lbl-now { font-weight: 600; fill: var(--ink); }

/* privacy */
.priv-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .priv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .priv-grid { grid-template-columns: repeat(4, 1fr); } }
.priv { background: var(--card); border-radius: 24px; padding: 26px 24px; border: 1px solid var(--line); }
.priv svg { width: 40px; height: 40px; margin-bottom: 18px; }
.priv h3 { font-size: 1.1875rem; font-weight: 650; }
.priv p { margin-top: 6px; color: var(--ink-2); font-size: 1rem; }
.links-row { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; font-weight: 600; }
.links-row a { text-decoration: none; border-bottom: 1.5px solid var(--primary); padding-bottom: 2px; }

/* not */
.not-grid { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 1000px) { .not-grid { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); } }
.not-list { display: grid; }
.not-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding-block: 22px; border-top: 1px solid var(--line-2); }
.not-item:last-child { border-bottom: 1px solid var(--line-2); }
.not-item svg { width: 28px; height: 28px; margin-top: 2px; }
.not-item h3 { font-size: 1.25rem; font-weight: 650; }
.not-item p { color: var(--ink-2); margin-top: 4px; }
.not-item.crisis { background: var(--primary-tint); border-radius: 18px; border-top-color: transparent; padding-inline: 16px; margin-inline: -16px; }
.not-item.crisis + .not-item { border-top-color: transparent; }
.not-item.crisis p { color: var(--ink); }

/* closing: a quiet folio, then first light along the bottom of the sheet */
.closing { text-align: center; position: relative; overflow: hidden; padding-bottom: clamp(88px, 12vw, 160px); }
.closing .wrap { position: relative; z-index: 1; }
.folio { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 26px;
  font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--ink-2); font-variant-numeric: lining-nums; }
.folio::before, .folio::after { content: ""; width: 40px; height: 1px; background: var(--line-2); }
.closing .h2 { max-width: 15em; margin-inline: auto; font-size: clamp(2.25rem, 1.3rem + 4vw, 4.25rem); }
.closing .lead { margin: 22px auto 0; }
.closing .cta-row { justify-content: center; }
.horizon {
  position: absolute; left: 50%; bottom: 0; width: 170%; height: 70%; transform: translateX(-50%);
  background: radial-gradient(50% 62% at 50% 100%, color-mix(in srgb, var(--primary-soft) 34%, transparent), color-mix(in srgb, var(--primary-soft) 9%, transparent) 55%, transparent 80%);
  pointer-events: none;
}
.horizon::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
@keyframes dawn { from { opacity: .7; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) { .horizon { animation: dawn 9s ease-in-out infinite alternate; } }
