@font-face { font-family: "Lato"; src: url("fonts/Lato-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("fonts/Lato-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ground: #EEF3EA; --surface: #FFFFFF; --surface-muted: #F1F4EE;
  --stack1: #E7EEE2; --stack2: #DCE6D5;
  --ink: #1E2B20; --ink-2: #4C5E4F; --accent: #2F6B3E; --on-accent: #FFFFFF;
  --ground-line: #9AAE8F; --stem: #4F7F4A; --leaf: #6FA35F; --dormant: #A8B8A0;
  --green-bg: #DDEFD6; --green-fg: #24572A;
  --sky-bg: #DCEBF5; --sky-fg: #1F4E73;
  --rose-bg: #F8E3E8; --rose-fg: #8C2846;
  --amber-bg: #F7EBD2; --amber-fg: #7A5410;
  --shadow: 0 10px 30px rgba(40,70,40,0.12);
  --shadow-sm: 0 2px 8px rgba(40,70,40,0.09);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #141A15; --surface: #1E2620; --surface-muted: #28322A;
    --stack1: #1B231D; --stack2: #182019;
    --ink: #E6EDE4; --ink-2: #A3B3A5; --accent: #7DBF84; --on-accent: #102014;
    --ground-line: #3E4C40; --stem: #6E9E68; --leaf: #86B877; --dormant: #3A463B;
    --green-bg: #24382A; --green-fg: #A9DDB0;
    --sky-bg: #1F3040; --sky-fg: #A9CDEB;
    --rose-bg: #3D2530; --rose-fg: #F2B8C6;
    --amber-bg: #3A3020; --amber-fg: #EBCB8B;
    --shadow: none; --shadow-sm: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 "Lato", system-ui, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; }
.brand { font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
nav a { color: var(--ink-2); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav a:hover { color: var(--accent); }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 48px 0 96px; }
.eyebrow { color: var(--ink-2); font-size: 15px; margin: 0 0 12px; }
h1 { font-weight: 700; font-size: clamp(36px, 5vw, 52px); line-height: 1.1; margin: 0 0 20px; letter-spacing: -0.01em; }
.lede { font-size: 20px; color: var(--ink-2); margin: 0 0 32px; max-width: 30em; }
.cta { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 700; padding: 14px 28px; border-radius: 999px; text-decoration: none; box-shadow: var(--shadow-sm); }
.cta-note { display: block; margin-top: 12px; font-size: 14px; color: var(--ink-2); }

.deck { position: relative; max-width: 380px; margin: 0 auto 20px; width: 100%; }
.deck .stack { position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-radius: 32px; }
.deck .s2 { background: var(--stack2); transform: translateY(20px) scaleX(0.926); }
.deck .s1 { background: var(--stack1); transform: translateY(10px) scaleX(0.968); }
.card { position: relative; background: var(--surface); border-radius: 32px; box-shadow: var(--shadow); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; min-height: 400px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 14px; padding: 3px 12px; border-radius: 999px; }
.pill.green { background: var(--green-bg); color: var(--green-fg); }
.pill.sky { background: var(--sky-bg); color: var(--sky-fg); }
.pill.rose { background: var(--rose-bg); color: var(--rose-fg); }
.pill.amber { background: var(--amber-bg); color: var(--amber-fg); }
.card-title { font-weight: 700; font-size: 36px; line-height: 1.1; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--surface-muted); border-radius: 10px; padding: 4px 10px; font-size: 15px; color: var(--ink-2); }
.chip.first { color: var(--ink); font-weight: 700; }
.spacer { flex: 1; }
.prompt { font-size: 21px; margin: 0; }
.hints { display: flex; justify-content: space-between; font-size: 15px; }
.hints .no { color: var(--ink-2); }
.hints .yes { color: var(--accent); font-weight: 700; }

.strip { display: block; width: 100%; max-width: 380px; margin: 40px auto 0; }
.strip .soil { stroke: var(--ground-line); }
.strip .stem { stroke: var(--stem); }
.strip .leaf { fill: var(--leaf); }
.strip .dormant { stroke: var(--dormant); }
.bloom-green { fill: var(--leaf); stroke: none; }
.bloom-sky { fill: var(--sky-fg); stroke: none; }
.bloom-rose { fill: var(--rose-fg); stroke: none; }

.preview { display: flex; justify-content: center; padding: 0 0 96px; }
.phone { width: 320px; max-width: 100%; padding: 10px; border-radius: 50px; background: var(--surface); box-shadow: var(--shadow); }
.screen { position: relative; overflow: hidden; height: 600px; border-radius: 40px; background: var(--ground); padding: 20px 16px 0; display: flex; flex-direction: column; }
.screen > *, .screen .pdeck { transition: opacity .45s ease; }
.screen.fade > * { opacity: 0; }
.screen.still *, .screen.still { transition: none !important; }
.pbar { display: flex; justify-content: flex-end; height: 36px; margin-bottom: 14px; }
.ppill { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border-radius: 999px; padding: 6px 14px; box-shadow: var(--shadow-sm); }
.ppill svg { width: 16px; height: 16px; color: var(--accent); }
.ppill b { font-weight: 700; font-size: 16px; min-width: 1ch; }
.pdeck { position: relative; height: 380px; }
.pcard { position: absolute; left: 0; right: 0; top: 0; height: 356px; background: var(--surface); border-radius: 32px; box-shadow: var(--shadow); padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; transition: transform .45s cubic-bezier(.2,.7,.3,1), opacity .45s ease, background-color .45s ease, box-shadow .45s ease; }
.pcard > * { transition: opacity .3s ease; }
.pcard .card-title { font-size: 28px; }
.pcard .pill { font-size: 13px; }
.pcard .chip { font-size: 14px; }
.pcard .prompt { font-size: 18px; }
.pcard .hints { font-size: 14px; }
.pcard[data-pos="0"] { z-index: 3; }
.pcard[data-pos="1"] { z-index: 2; transform: translateY(10px) scaleX(.962); background: var(--stack1); box-shadow: none; }
.pcard[data-pos="2"], .pcard[data-pos="3"] { z-index: 1; transform: translateY(20px) scaleX(.912); background: var(--stack2); box-shadow: none; }
.pcard[data-pos="3"] { opacity: 0; z-index: 0; }
.pcard:not([data-pos="0"]) > * { opacity: 0; }
.pcard[data-pos="gone-right"] { z-index: 4; transform: translateX(130%) rotate(10deg); opacity: 0; }
.pcard[data-pos="gone-left"] { z-index: 4; transform: translateX(-130%) rotate(-10deg); opacity: 0; }
.pstrip { display: block; width: 100%; margin-top: auto; margin-bottom: 28px; }
.pstrip .soil { stroke: var(--ground-line); }
.plant .pstem { stroke: var(--dormant); transform-box: fill-box; transform-origin: bottom; transform: scaleY(.3); transition: transform .7s cubic-bezier(.2,.7,.3,1), stroke .5s ease; }
.plant .pleaf { fill: var(--leaf); opacity: 0; transition: opacity .4s ease .35s; }
.plant .pbloom { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .45s cubic-bezier(.3,1.4,.5,1) .5s; }
.plant.grown .pstem { stroke: var(--stem); transform: none; }
.plant.grown .pleaf { opacity: 1; }
.plant.grown .pbloom { transform: none; }
.bloom-amber { fill: var(--amber-fg); stroke: none; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--surface); border-radius: 28px 28px 0 0; padding: 24px 20px 32px; box-shadow: 0 -6px 24px rgba(40,70,40,0.12); transform: translateY(105%); transition: transform .45s cubic-bezier(.2,.7,.3,1); }
.sheet.open { transform: none; }
.sheet-title { margin: 0 0 16px; font-size: 18px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.opt { background: var(--surface-muted); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: 15px; transition: background-color .2s ease, color .2s ease; }
.opt.sel { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.sheet-actions { display: flex; justify-content: space-between; align-items: center; }
.cancel { color: var(--ink-2); font-size: 15px; }
.save { background: var(--accent); color: var(--on-accent); font-weight: 700; border-radius: 999px; padding: 10px 24px; }
.touch { position: absolute; left: -18px; top: -18px; z-index: 6; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.3,.7,.3,1), opacity .25s ease, scale .15s ease; }
.touch.on { opacity: .22; }
.touch.press { scale: .75; opacity: .35; }

section.features { padding: 0 0 96px; }
section h2 { font-weight: 700; font-size: 28px; margin: 0 0 32px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { background: var(--surface); border-radius: 24px; padding: 28px 24px; box-shadow: var(--shadow-sm); }
.feature h3 { font-weight: 700; font-size: 20px; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--ink-2); }

.quote { text-align: center; padding: 0 0 96px; }
.quote p { font-size: clamp(22px, 3vw, 26px); max-width: 560px; margin: 0 auto; }

footer { padding: 32px 0 48px; color: var(--ink-2); font-size: 14px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
footer a { color: var(--ink-2); }

.prose { max-width: 680px; padding: 24px 0 80px; }
.prose h1 { font-size: 36px; }
.prose h2 { font-size: 22px; margin: 36px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 24px 0 72px; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  nav a { margin-left: 14px; }
  .card { min-height: 340px; }
  .card-title { font-size: 30px; }
}
