/* Direction D (mock-up for Ranya): built from the approved brand sheet v2 (BRAND.md). Sits on styles.css + brand.css. */

/* Bolder headlines (brand sheet §1) */
.hero h1 { font-size: clamp(2.75rem, 7vw, 4.75rem); line-height: 1.02; letter-spacing: -.03em; }
main h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.06; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 14px; height: 7px; border-radius: 999px; background: var(--amber); transform: rotate(-17deg); flex: none; }
.center .eyebrow { justify-content: center; }
.cta .eyebrow::before { background: var(--on-green); }

/* Phones: every one sits on the phone stage, with a real-app loop */
.stage video { display: block; width: 100%; height: auto; border-radius: 37px; background: #F5F7F6; }
.hero .stage { margin: 112px 0 0; }
.hero .stage .phone { width: min(300px, 74vw); }
.show-img .stage { margin-top: 104px; }

/* Six apps → one: tiles drift toward the middle as you scroll, the pills drift sideways */
.apps .app { transform: translate3d(var(--dx, 0), 0, 0) scale(var(--sc, 1)); transition: background-color .25s ease; }
.load { transform: translate3d(var(--lx, 0), 0, 0); }
.one-fern { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; padding: 12px 20px 12px 12px; border-radius: 999px; background: var(--surface); box-shadow: 0 1px 2px rgba(12,32,24,.12), 0 14px 30px -10px rgba(12,32,24,.22); font-weight: 600; }
.one-fern img { width: 40px; height: 40px; }

/* Leaflet row divider, the amber one glides along */
.leaves { margin: 0 auto 26px; }
.leaves i.a { transition: transform 1.2s var(--ease); }

/* Steps: the number sits on an amber leaflet */
.step::before { background: color-mix(in srgb, var(--amber) 40%, transparent); color: var(--ink); border-radius: 999px; width: 40px; height: 28px; transform: rotate(-12deg); }

/* Fern AI Assistant: the one deep fern panel on the page */
.assist { background: var(--night); color: #ECF1EE; }
.assist h2 { color: #ECF1EE; }
.assist .eyebrow { color: #8FD6BD; }
.assist .lead { color: #B9C8C1; }
.assist .stage { --tint: #24564A; margin: 96px 0 8px; }
.assist .stage::before { background: radial-gradient(60% 55% at 50% 38%, rgba(160, 230, 200, .18), transparent 70%); }
.count { display: flex; align-items: baseline; gap: 12px; margin-top: 26px; }
.count b { font: 700 clamp(3rem, 6vw, 4.25rem)/1 var(--font-display); color: var(--amber); font-variant-numeric: tabular-nums; }
.count span { color: #B9C8C1; max-width: 14em; }

/* Why Fern: the Fern column checks arrive one by one */
@media (prefers-reduced-motion: no-preference) {
  .js-motion .why td.us.yes { opacity: 0; transform: scale(.6); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .js-motion .why.in td.us.yes { opacity: 1; transform: none; }
  .js-motion .why.in tr:nth-child(2) td.us { transition-delay: .12s; } .js-motion .why.in tr:nth-child(3) td.us { transition-delay: .24s; }
  .js-motion .why.in tr:nth-child(4) td.us { transition-delay: .36s; } .js-motion .why.in tr:nth-child(5) td.us { transition-delay: .48s; }
}
.why thead th.us::before { content: ""; display: inline-block; width: 12px; height: 6px; border-radius: 999px; background: var(--amber); transform: rotate(-17deg); margin-right: 6px; vertical-align: middle; }

/* Pricing: Pro lifts (depth touch), the founding box carries the amber leaflet */
.plan.pro { transform: translateY(-10px); box-shadow: 0 1px 2px rgba(12,32,24,.12), 0 22px 44px -14px rgba(12,32,24,.28); }
.founding { position: relative; padding-left: 42px; }
.founding::before { content: ""; position: absolute; left: 14px; top: 16px; width: 18px; height: 9px; border-radius: 999px; background: var(--amber); transform: rotate(-17deg); }
@media (prefers-color-scheme: dark) { .plan.pro { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 22px 44px -14px rgba(0,0,0,.6); } }

/* Final call to action with the morning glow */
#join .wrap { position: relative; isolation: isolate; }
#join .wrap::after { content: ""; position: absolute; inset: -30% -10%; background: radial-gradient(closest-side, var(--glow), transparent 72%); z-index: -1; }

.mock-pill { position: fixed; left: 12px; bottom: 12px; z-index: 50; background: #17201C; color: #fff; font: 600 13px Figtree, system-ui; padding: 7px 12px; border-radius: 999px; opacity: .85; }
/* The assistant's phone rises out of its stage but stays inside the dark panel */
.assist { padding-top: clamp(56px, 7vw, 88px); }
.assist .stage { margin-top: 72px; }
.assist .stage .phone { margin-top: -64px; }
.count { align-items: center; }
/* Feature rows sit closer: the stage's rise already gives each phone its own air */
.show + .show { margin-top: 24px; }
.show-img .stage { margin-top: 96px; }

/* AI-tell fixes (design critic, Oct 30): vary the layouts, no glow blobs, no identical cards */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.setup .leaves { justify-content: flex-start; }
.steplist { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steplist li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.steplist li:last-child { border-bottom: 1px solid var(--line); }
.steplist li::before { content: counter(s); grid-row: span 2; font: 700 2.4rem/1 var(--font-display); color: var(--green); letter-spacing: -.03em; }
.steplist h3 { margin: 0 0 4px; }
.steplist p { margin: 0; color: var(--ink-2); }
.pricing-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.pricing-split .plans { margin: 0; max-width: none; }
@media (max-width: 860px) { .pricing-split { grid-template-columns: 1fr; } }
/* Questions as a simple list, not cards */
#faq details { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; margin: 0; }
#faq details:first-of-type { border-top: 1px solid var(--line); }
#faq details:hover { box-shadow: none; }
/* No glow blobs */
#join .wrap::after { content: none; }
.stage::before { content: none; }

/* ---- Design critic round 2 (Oct 30) ---- */
/* #3 Phones big enough to read on a computer, and less empty space above them */
.stage { margin-top: 64px; }
.stage .phone { margin-top: -56px; }
.hero .stage { margin-top: 64px; }
@media (min-width: 900px) {
  .hero .stage .phone { width: 360px; }
  .show-img .stage .phone { width: 340px; }
  .assist .stage .phone { width: 320px; }
}
.show-img .stage { margin-top: 64px; }

/* #4 The leaf: a solid amber leaflet drawn from the logo, under the word only (not its punctuation), on any background */
.leaf::before { left: 15%; right: 15%; bottom: -.11em; height: .32em; border-radius: 100% 0 100% 0 / 100% 0 100% 0; transform-origin: center; background: var(--amber); transform: rotate(-3deg); transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .leaf::before { transform: rotate(-3deg) scaleX(0); transition: transform .8s var(--ease) .2s; }
  .in .leaf::before, .leaf.in::before { transform: rotate(-3deg) scaleX(1); }
}
.hero .leaf::before { transform: rotate(-3deg); transition: none; }

/* Six apps: the tiles sit on one soft card, like the phone stage, so the problem reads as one cluttered pile */
.apps { background: color-mix(in srgb, var(--soft) 70%, transparent); border-radius: 28px; padding: 18px; gap: 10px;
  box-shadow: inset 0 0 0 1px var(--line); }
.apps .app { background: var(--surface); border-color: transparent; box-shadow: 0 1px 2px rgba(12,32,24,.08), 0 6px 14px -6px rgba(12,32,24,.16); }
.apps .app .ic { color: var(--green); }

/* Comparison: the table sits on a stage card with layered depth; the Fern column is lifted */
.why-stage { max-width: 820px; margin: 36px auto 0; padding: 22px; border-radius: 32px; background: #D9EADC; }
.why-stage .why { margin: 0; box-shadow: 0 1px 2px rgba(12,32,24,.12), 0 18px 40px -16px rgba(12,32,24,.28); }
.why td.us, .why th.us { background: color-mix(in srgb, var(--soft) 85%, var(--surface)); }
@media (prefers-color-scheme: dark) { .why-stage { background: #1C3A31; } .why-stage .why { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 40px -16px rgba(0,0,0,.6); } }

/* Questions: a leaflet row instead of a big empty gap */
#faq { padding-top: clamp(40px, 6vw, 72px); }
#faq .leaves { margin-bottom: 18px; }
/* Room under the line for the leaf */
.hero h1 { line-height: 1.1; }
#join h2 { line-height: 1.16; }
/* On the Fern-green call-to-action the leaf darkens so it still reads (light and dark) */
.cta .leaf::before { background: color-mix(in srgb, var(--amber) 75%, #5A3300); }
@media (prefers-color-scheme: light) { .cta .leaf::before { background: var(--amber); } }

/* ---- Approved styled elements (Ranya, Oct 30: C, E, 5, 1, 4, 6). Rules in BRAND.md §7 ---- */
/* 4 · Bold color band: one per page, carries the promise line */
.colorband { padding: clamp(48px, 8vw, 88px) 16px; background: #D9EADC; color: #17201C; text-align: center; }
.colorband p { margin: 0 auto; max-width: 14em; font: 700 clamp(2.4rem, 6.5vw, 4.5rem)/1.04 var(--font-display); letter-spacing: -.03em; }
@media (prefers-color-scheme: dark) { .colorband { background: #1C3A31; color: #ECF1EE; } }
.colorband + section { padding-top: var(--section); }

/* E · Clean callouts: numbered markers on the real screen, matched by a numbered list beside it */
.hot { position: absolute; z-index: 2; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--green); color: var(--on-green); font: 700 14px/26px var(--font-body); text-align: center;
  box-shadow: 0 0 0 3px rgba(255,255,255,.92), 0 4px 10px rgba(12,32,24,.25); }
@media (prefers-color-scheme: dark) { .hot { box-shadow: 0 0 0 3px rgba(18,20,19,.92), 0 4px 10px rgba(0,0,0,.5); } }
.callouts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.callouts li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.callouts .hot { position: static; margin: 0; flex: none; }

/* 6 · Small icon illustrations above the three short items */
.also.spots > div { flex-direction: column; gap: 8px; }
.spot { width: 104px; height: 78px; margin-left: -10px; }
.spot .bg { fill: #D9EADC; } .spot .ln { fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; } .spot .am { fill: var(--amber); }
@media (prefers-color-scheme: dark) { .spot .bg { fill: #1C3A31; } }
@media (max-width: 800px) { .also.spots > div { flex-direction: row; align-items: center; gap: 14px; } .spot { width: 88px; height: 66px; flex: none; } }

/* 5 · Sticker label: once per page, the founding price on the Pro card */
.plan.pro { position: relative; }
.sticker { position: absolute; top: -22px; right: -12px; transform: rotate(8deg); background: var(--amber); color: #17201C; border-radius: 999px; padding: 9px 16px; font: 700 .95rem/1.15 var(--font-display); text-align: center; box-shadow: 0 0 0 4px var(--surface), 0 8px 18px -6px rgba(12,32,24,.35); }
.sticker small { display: block; font: 600 .72rem var(--font-body); }
@media (max-width: 520px) { .sticker { right: 6px; top: -26px; } }
.founding { padding-left: 14px; } .founding::before { content: none; }

/* C · The margin line as the guide down the questions; the leaflet sits at the group you're reading */
#faq h2 { margin-bottom: 28px; }
.guide { position: relative; display: grid; grid-template-columns: 170px 1fr; max-width: 920px; }
.guide::before { content: ""; position: absolute; left: 170px; top: 0; bottom: 0; width: 1px; background: color-mix(in srgb, var(--green) 30%, transparent); }
.guide > div { display: contents; }
.guide .ml { text-align: right; padding: 20px 26px 20px 0; font: 600 .95rem var(--font-body); color: var(--muted, var(--ink-2)); transition: color .3s var(--ease); }
.guide .on .ml { color: var(--green); }
.guide .tx { padding: 0 0 18px 30px; }
.guide .tx details:first-of-type { border-top: 0; }
.guide > div:not(:last-of-type) .tx { border-bottom: 1px solid var(--line); margin-bottom: 0; }
.gleaf { position: absolute; left: 164px; top: 22px; width: 12px; height: 20px; background: var(--amber); border-radius: 12px 0 12px 0; transform: rotate(20deg); box-shadow: 0 0 0 3px var(--bg); transition: top .3s var(--ease); z-index: 1; }
@media (max-width: 700px) { .guide { grid-template-columns: 1fr; padding-left: 22px; } .guide::before { left: 0; } .gleaf { left: -6px; }
  .guide .ml { text-align: left; padding: 22px 0 2px; } .guide .tx { padding: 0 0 12px; } }
@media (prefers-reduced-motion: reduce) { .gleaf, .guide .ml { transition: none; } }

/* 6 · The icon illustrations come alive once as they scroll in (and again on hover): the date gets marked, the bell rings,
   the plan travels from iPhone to Mac. Calm: one short play, brand easing, no loops. Reduce Motion: they stay still, fully drawn. */
.spot .am, .spot .swing, .spot .link { transform-box: fill-box; }
.spot .swing { transform-origin: 50% 0; }
@media (prefers-reduced-motion: no-preference) {
  .js-motion .spots .spot .am { opacity: 0; transform: scale(.3); transform-origin: center; }
  .js-motion .spots .play .am { animation: spot-pop .5s var(--ease) forwards; }
  .js-motion .spots .play .cal .am { animation-delay: .25s; }
  .js-motion .spots .play .swing { animation: spot-ring .9s var(--ease); }
  .js-motion .spots .play .bell .am { animation-delay: .55s; }
  .js-motion .spots .play .sync .am { animation-delay: .15s; }
  .js-motion .spots .play .sync .link { animation: spot-link .5s var(--ease) .4s; }
  .js-motion .spots .play .sync .am.mac { animation-delay: .75s; }
}
@keyframes spot-pop { to { opacity: 1; transform: scale(1); } }
@keyframes spot-ring { 0% { transform: rotate(0); } 18% { transform: rotate(13deg); } 38% { transform: rotate(-10deg); } 58% { transform: rotate(6deg); } 78% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
@keyframes spot-link { 0%, 100% { stroke: var(--green); } 50% { stroke: var(--amber); stroke-width: 3.4; } }
