/* Planted site. Colours, type and motion come straight from lib/theme.dart. */

@font-face { font-family: Fraunces; src: url(../assets/fonts/Fraunces-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Fraunces; src: url(../assets/fonts/Fraunces-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: Fraunces; src: url(../assets/fonts/Fraunces-SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(../assets/fonts/InstrumentSans-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(../assets/fonts/InstrumentSans-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(../assets/fonts/InstrumentSans-SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(../assets/fonts/InstrumentSans-Bold.ttf); font-weight: 700; font-display: swap; }

:root {
  --cream: #F6F1E7; --paper: #FBF8F2; --sand: #EDE6D8; --cream-2: #EFE8DA;
  --line: #E4DCCD; --border: #C9BFAE;
  --ink: #2F2A24; --muted: #6B6259; --faint: #A99E8E;
  --forest: #3F6F4E; --deep: #1F3D29; --mint: #A9D1B1; --logo: #4BA56D;
  --nav-idle: #D9D0C2; --badge: #F2C4A0; --badge-text: #5A2E10; --lavender: #CDBDE3;

  --veg-bg: #DCEBDC; --veg-fill: #B7D6BD; --veg-ring: #7FB08A; --veg-fg: #33603F;
  --herb-bg: #D6E9E6; --herb-fill: #AFD3CE; --herb-ring: #6FA8A2; --herb-fg: #2B5E5A;
  --flower-bg: #E6DDF0; --flower-fill: #CDBDE3; --flower-ring: #A08BC2; --flower-fg: #5E4880;
  --fruit-bg: #F8E0CC; --fruit-fill: #F2C4A0; --fruit-ring: #E9A36F; --fruit-fg: #8A4A1F;

  --serif: Fraunces, Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;

  /* Motion tokens from theme.dart */
  --curve: cubic-bezier(.22, 1, .36, 1);
  --pop: cubic-bezier(.34, 1.4, .64, 1);
  /* Critically damped: what a spring with damping 1.0 looks like as a curve. For things that just appear. */
  --settle: cubic-bezier(.16, 1, .3, 1);
  --tab: cubic-bezier(.4, 0, .2, 1);
  --press: 110ms;
  --release: 360ms;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.01em; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--mint); color: var(--deep); }
html { scrollbar-color: var(--border) var(--cream); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; border: 3px solid var(--cream); }
input { caret-color: var(--forest); }
.wk big, .wk span, .lb, .picks, .left, .badge, .water-count, .left-count, #frost-val, #coach-dayn, .bar em { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2.5px solid var(--forest); outline-offset: 3px; border-radius: 10px; }
.defs { position: absolute; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 16px; }

/* Material-outlined style icons: one ink colour, one rounded stroke. */
use[href^="#i-"] { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:where(svg:not([viewBox]):not(.defs)) { width: 1.25em; height: 1.25em; flex: none; }
.leaf, .mark { fill: var(--logo); }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }

/* ---------- Shared bits ---------- */
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--logo); position: relative; flex: none; display: inline-block; }
.dot-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--logo); animation: ping 2.2s var(--curve) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6 } 80%, 100% { transform: scale(3.2); opacity: 0 } }

h1 em, h2 em, h3 em {
  font-style: normal; color: var(--forest);
  background: linear-gradient(var(--mk, var(--mint)), var(--mk, var(--mint))) no-repeat 0 88% / 0% .32em;
  transition: background-size 900ms var(--curve) 400ms;
}
.in em, h3 em { background-size: 100% .32em; }
.chapter h3 em { background-size: 0% .32em; transition-delay: 150ms; }
.chapter.on h3 em { background-size: 100% .32em; }

.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 36em; }

.btn {
  --bg: var(--ink); --fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 600 16px/1 var(--sans); white-space: nowrap; position: relative;
  transition: transform var(--release) var(--pop), background-color .2s, box-shadow .3s var(--curve);
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(47,42,36,.6); }
.btn:active, .btn.pressed { transform: scale(.96); transition-duration: var(--press); transition-timing-function: ease-out; }
.btn-forest { --bg: var(--forest); }
.btn-forest:hover { --bg: #35603f; }
.btn-ink { --bg: var(--ink); }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--border); }
.btn-ghost:hover { --bg: var(--paper); }
.btn-cream { --bg: var(--cream); --fg: var(--deep); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }

.seg {
  display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--sand); position: relative;
}
.seg button {
  height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px; position: relative; z-index: 1;
  transition: color .25s, background-color .3s var(--curve), transform var(--release) var(--pop);
}
.seg button:active { transform: scale(.94); transition-duration: var(--press); }
.seg button.on { background: var(--ink); color: var(--cream); }
.seg-sm button { height: 34px; padding: 0 13px; font-size: 13.5px; }
.seg-hi { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--ink); transition: transform 480ms var(--tab), width 480ms var(--tab); }
.seg-cats button.on { background: transparent; }

.pill { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font: 600 13px/1 var(--sans); }
.pill-flower { background: var(--flower-bg); color: var(--flower-fg); }
.pill-veg { background: var(--veg-bg); color: var(--veg-fg); }

/* Things that pop in on scroll: a soft overshoot so they land. */
.pop-in { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--curve), transform .9s var(--settle); transition-delay: var(--delay, 0ms); }
.pop-in.in { opacity: 1; transform: none; }
.words .w { display: inline-block; opacity: 0; transform: translateY(.35em); transform-origin: 50% 80%; transition: opacity .5s var(--curve), transform .9s var(--settle); transition-delay: calc(var(--i) * 55ms); }
.words.in .w { opacity: 1; transform: none; }

main, .top, .foot { position: relative; z-index: 1; }
main > section { overflow-x: clip; }

/* ---------- Top bar ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px; padding: 16px var(--gutter);
  transition: background-color .3s, box-shadow .3s, padding .3s var(--curve);
}
/* Flat and solid, like the app: cream bar, one hairline. */
.top.scrolled { background: var(--cream); box-shadow: 0 1px 0 var(--line); padding-block: 10px; }

/* The wordmark in the app's own serif, light and close-set. */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 27px/1 var(--serif); letter-spacing: -.025em; }
.brand span { transform: translateY(1px); }
.brand .mark { width: 26px; height: 30px; transition: transform .6s var(--pop); }
.brand:hover .mark { transform: rotate(-8deg) scale(1.08); }
.top-links { display: flex; gap: 6px; margin-left: auto; }
.top-links a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background-color .2s; }
.top-links a:hover { background: var(--sand); }

/* ---------- Floating loop nav (the app's floating nav) ---------- */
.loopnav {
  position: fixed; left: 50%; bottom: 20px; z-index: 50;
  display: flex; align-items: center; gap: 2px; height: 64px; padding: 6px; border-radius: 999px;
  background: var(--ink); box-shadow: 0 18px 40px -16px rgba(47,42,36,.55);
  transform: translate(-50%, 160%); transition: transform .7s var(--settle);
}
.loopnav.show { transform: translate(-50%, 0); }
.loopnav a {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; min-width: 56px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  color: var(--nav-idle); font-weight: 600; font-size: 15px; transition: color .3s, padding 480ms var(--tab);
}
.loopnav a b { font-weight: 600; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: max-width 480ms var(--tab), opacity .3s; }
.loopnav a.on { color: var(--ink); padding: 0 22px; }
.loopnav a.on b { max-width: 110px; opacity: 1; }
.loopnav-hi { position: absolute; top: 6px; height: 52px; left: 0; width: 0; border-radius: 999px; background: var(--cream); transition: transform 480ms var(--tab), width 480ms var(--tab); }

/* ---------- Hero ---------- */
/* The hero stays put while the logo turns into a plant's season. */
.hero-wrap { position: relative; }
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center;
  gap: 24px; padding: 80px var(--gutter) 40px; max-width: 1400px; margin: 0 auto;
}
.hero h1 { font-size: clamp(46px, 6.4vw, 96px); line-height: .98; letter-spacing: -.025em; margin: 0 0 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
/* Hero art: real pieces of the app on a 640×650 canvas, scaled to fit. */
.hero-art { position: relative; width: 100%; height: calc(650px * var(--hk, 1)); }
.collage { position: absolute; left: 50%; top: 0; width: 640px; height: 650px; transform: translateX(-50%) scale(var(--hk, 1)); transform-origin: 50% 0; }
.cg { position: absolute; opacity: 0; transform: translateY(22px); transition: opacity .7s var(--curve), transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(180ms + var(--i) * 110ms); translate: 0 var(--py, 0px); }
.collage.in .cg { opacity: 1; transform: none; }
.cg-now, .cg-weeks, .cg-today, .cg-bed { border-radius: 26px; box-shadow: 0 0 0 1px rgba(47,42,36,.05), 0 3px 6px -2px rgba(47,42,36,.06), 0 28px 50px -30px rgba(47,42,36,.38); }
.cg-now { left: 110px; top: 130px; width: 392px; padding: 22px 22px 20px; background: var(--veg-bg); color: var(--deep); z-index: 1; }
.cg-now .kick { font: 600 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--veg-fg); }
.cg-now h4 { font-size: 27px; line-height: 1.15; margin: 12px 0 16px; color: var(--deep); }
.cg-now h4 b { font-weight: 400; font-variant-numeric: tabular-nums; }
.cg-now .season { height: 9px; border-radius: 5px; background: var(--cream); overflow: hidden; }
.cg-now .season i { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--veg-ring); transition: width 1.6s cubic-bezier(.16, 1, .3, 1) .9s; }
.cg-now .season-ends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--veg-fg); margin: 7px 0 14px; }
.cg-now .mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cg-now .mini { background: var(--paper); border-radius: 15px; padding: 10px 11px; font-size: 14px; line-height: 1.25; min-width: 0; }
.cg-now .mini b { display: block; font-weight: 600; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-now .mini span { color: var(--muted); font-size: 12.5px; }
.cdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--veg-ring); }
.cdot.herb { background: var(--herb-ring); } .cdot.flower { background: var(--flower-ring); } .cdot.fruit { background: var(--fruit-ring); }
.cg-now .p-btn { display: flex; justify-content: center; align-items: center; gap: 8px; height: 50px; margin-top: 14px; border-radius: 25px; background: var(--forest); color: var(--cream); font-weight: 600; }
.cg-weeks { left: 332px; top: 18px; padding: 10px; background: var(--paper); z-index: 2; }
.hc-wk { display: flex; gap: 6px; position: relative; }
.hc-hi { position: absolute; left: 10px; top: 10px; width: 50px; height: 96px; border-radius: 15px; background: var(--ink); transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
.hc-c { position: relative; width: 50px; height: 96px; border-radius: 15px; background: var(--cream); display: flex; flex-direction: column; align-items: center; padding: 8px 0 7px; transition: color .4s; }
.hc-c small { height: 13px; font: 700 10px/1 var(--sans); letter-spacing: .6px; color: var(--muted); display: flex; align-items: center; gap: 2px; transition: color .4s; }
.hc-c small svg { width: 10px; height: 10px; color: var(--herb-fg); }
.hc-c big { font: 400 20px/1.2 var(--serif); }
.hc-c i { margin-top: auto; width: 16px; border-radius: 4px; background: var(--veg-ring); transition: background-color .4s; }
.hc-c span { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 4px; transition: color .4s; }
.hc-c.on { color: var(--cream); background: transparent; }
.hc-c.on small, .hc-c.on span { color: var(--nav-idle); }
.hc-c.on i { background: var(--mint); }
.cg-today { left: 0; top: 396px; width: 312px; padding: 16px 18px 6px; background: var(--paper); z-index: 2; }
.hc-th { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.hc-th b { font: 500 23px/1 var(--serif); }
.hc-th span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hc-task { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hc-task:last-child { border-bottom: 0; }
.hc-task i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--cream); box-shadow: inset 0 0 0 1.8px var(--border); transition: background-color .3s, box-shadow .3s, transform .5s var(--pop); }
.hc-task i svg { width: 17px; height: 17px; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .35s var(--curve) .1s; }
.hc-task b { position: relative; display: inline-block; font-weight: 600; font-size: 15px; transition: color .3s; }
.hc-task b u { position: absolute; left: 0; top: 55%; height: 1.5px; width: 0; background: var(--muted); transition: width .35s var(--curve) .15s; }
.hc-task small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.hc-task.done i { background: var(--forest); box-shadow: none; transform: scale(1.08); }
.hc-task.done i svg { stroke-dashoffset: 0; }
.hc-task.done b { color: var(--faint); }
.hc-task.done b u { width: 100%; }
.cg-bed { left: 368px; top: 424px; width: 272px; padding: 16px 14px 14px; background: var(--paper); z-index: 2; }
.hc-bh { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 10px; }
.hc-bh b { font: 500 20px/1 var(--serif); }
.hc-bh span { font-size: 12.5px; color: var(--muted); }
.hc-plot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 5px; border-radius: 15px; box-shadow: inset 0 0 0 1.5px var(--line); }
.hc-sq { position: relative; aspect-ratio: 1; border-radius: 9px; overflow: hidden; padding: 5px 6px; font-size: 10.5px; font-weight: 600; line-height: 1.15; }
.hc-sq i { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; transition: height 2.4s cubic-bezier(.45, 0, .2, 1); }
.hc-sq span { position: relative; z-index: 1; }
.hc-sq.open { box-shadow: inset 0 0 0 1.5px var(--border); background: transparent; display: grid; place-items: center; color: var(--muted); font-size: 16px; font-weight: 400; }
.hc-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px 0 12px; border-radius: 19px; font-weight: 600; font-size: 14px; white-space: nowrap; box-shadow: 0 0 0 1px rgba(47,42,36,.05), 0 14px 26px -16px rgba(47,42,36,.4); z-index: 3; }
.hc-pill svg { width: 18px; height: 18px; }
.cg-frost { left: 14px; top: 64px; background: var(--paper); color: var(--herb-fg); }
.cg-frost span { color: var(--ink); }
.cg-doc { left: 450px; top: 300px; background: var(--flower-bg); color: var(--flower-fg); }
.note { font-size: 13px; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.note::before { content: ""; width: 14px; height: 1.5px; border-radius: 1px; background: var(--border); }
.n-now { left: 112px; top: 102px; }
.n-weeks { left: 512px; top: 150px; }
.n-today { left: 6px; top: 600px; }
.n-bed { left: 376px; top: 626px; }
.app-chip { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.app-chip img { width: 64px; height: 64px; filter: drop-shadow(0 8px 14px rgba(47,42,36,.18)); }
.app-chip p { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.3; }
.app-chip b { font-weight: 600; }
.app-chip span { color: var(--muted); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--border); transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--forest); animation: cue 1.8s var(--curve) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1 } 70% { transform: translateY(16px); opacity: 0 } 100% { opacity: 0 } }

.ptile { flex: none; width: 54px; height: 54px; border-radius: 15px; background: var(--veg-bg); display: grid; place-items: center; }
.ptile img { width: 44px; height: 44px; }
.ptile.herb { background: var(--herb-bg); } .ptile.flower { background: var(--flower-bg); } .ptile.fruit { background: var(--fruit-bg); }

/* ---------- Loop intro ---------- */
.loop-intro { text-align: center; padding: 120px var(--gutter) 40px; max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.loop-intro h2 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.02em; margin: 18px 0 22px; }
.loop-chips { list-style: none; padding: 0; margin: 40px 0 0; display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px; }
.loop-chips li:not(.arrow):not(.again) { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 24px; background: var(--c); color: var(--f); font-weight: 600; }
.loop-chips .arrow { width: 26px; height: 2px; background: var(--border); position: relative; }
.loop-chips .arrow::after { content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 2px solid var(--border); border-right: 2px solid var(--border); transform: rotate(45deg); }
.loop-chips .again { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--border); }
.loop-chips .again svg { animation: spin 6s linear infinite; }
@keyframes chipbob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@keyframes spin { to { transform: rotate(360deg) } }

.copy h3 { font-size: clamp(30px, 2.8vw, 42px); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 16px; }
body:not(.studies) .study { height: 300vh; border-top: 0; }
#ch-discover { --mk: var(--veg-fill); } #ch-plant { --mk: var(--herb-fill); } #ch-care { --mk: var(--flower-fill); } #ch-harvest { --mk: var(--fruit-fill); }

.ask-hint { margin-top: 10px; font-size: 15px; }

/* ---------- iPad ---------- */
.ipad { max-width: 1240px; margin: 0 auto; padding: 120px var(--gutter) 150px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.ipad h2 { font-size: clamp(38px, 4.4vw, 62px); line-height: 1.03; letter-spacing: -.02em; margin-bottom: 20px; text-wrap: balance; }
.ipad-frame { position: relative; margin: 0; justify-self: center; width: min(100%, 600px); border-radius: 36px; overflow: hidden; background: var(--cream);
  box-shadow: 0 0 0 1px rgba(47,42,36,.07), 0 3px 6px -2px rgba(47,42,36,.06), 0 30px 60px -28px rgba(47,42,36,.3), 0 80px 120px -70px rgba(47,42,36,.32); }
.ipad-frame img { display: block; width: 100%; height: auto; }
.ipad-frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(rgba(246,241,231,0), var(--cream) 85%); pointer-events: none; }

/* ---------- Premium ---------- */
.premium { background: var(--sand); padding: 110px var(--gutter) 140px; border-radius: 56px 56px 0 0; }
.section-head { max-width: 860px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head h2 { font-size: clamp(38px, 5vw, 68px); line-height: 1.03; letter-spacing: -.02em; margin: 18px 0 20px; }

/* The doctor and the track continue the Premium section's sand. */
.premium { padding-bottom: 20px; }
.doctor-study, .track-wrap { background: var(--sand); }
.track-wrap { border-radius: 0 0 56px 56px; }

/* Plant doctor study */
.obs { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 22px 0 16px; border-radius: 26px; background: var(--paper); font-size: 17px; font-weight: 500; white-space: nowrap; box-shadow: 0 0 0 1px rgba(47,42,36,.05), 0 10px 24px -18px rgba(47,42,36,.4); color: var(--flower-fg); }
.obs span { color: var(--ink); }
.obs svg { width: 22px; height: 22px; }
.obs-dot { width: 16px; height: 16px; border-radius: 50%; background: #D9B48C; box-shadow: 0 0 0 2px #8A4A1F inset, 0 0 0 4px #EFE3A8; flex: none; }
.doc-card { border-radius: 28px; background: var(--paper); box-shadow: 0 0 0 1px rgba(47,42,36,.05), 0 30px 60px -36px rgba(47,42,36,.4); overflow: hidden; }
.dc-pill { height: 32px; padding: 0 14px; border-radius: 16px; display: grid; place-items: center; background: var(--flower-bg); color: var(--flower-fg); font-size: 14px; font-weight: 600; white-space: nowrap; }
.dc-title, .dc-today { font-family: var(--serif); font-weight: 400; font-size: 40px; letter-spacing: -.02em; white-space: nowrap; }
.dc-today { font-size: 32px; }
.dc-desc { width: 360px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.dc-new { color: var(--muted); font-size: 15px; white-space: nowrap; }
.dc-h { font-family: var(--serif); font-weight: 600; font-size: 21px; }
.dc-step { width: 364px; height: 62px; border-top: 1px solid var(--line); padding: 10px 0 0 46px; }
.dc-step b { display: block; font-weight: 600; font-size: 16.5px; white-space: nowrap; }
.dc-step small { display: block; color: var(--muted); font-size: 14px; }
.dc-n { position: absolute; left: 4px; top: 10px; font-family: var(--serif); font-size: 21px; color: var(--faint); }
.dc-c { position: absolute; left: 0; top: 13px; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.8px var(--border); opacity: 0; }
.dc-rescan { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 19px; background: var(--flower-bg); color: var(--flower-fg); font-weight: 600; font-size: 15px; white-space: nowrap; }
.dc-rescan svg { width: 19px; height: 19px; }

/* Premium track: pinned, sliding sideways */
.track-wrap { position: relative; }
.track-stick { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 44px; padding-top: 40px; }
.track-head { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.02em; padding: 0 var(--gutter); }
/* Room at both ends, so each panel slides in from the right and has time to play. */
.track { display: flex; gap: 36px; padding: 0 38vw 0 92vw; width: max-content; will-change: transform; }
.panel { width: min(520px, 84vw); flex: none; display: flex; flex-direction: column; }
.panel h3 { font-size: clamp(21px, 1.8vw, 25px); line-height: 1.22; hyphens: none; -webkit-hyphens: none; text-wrap: balance; letter-spacing: -.01em; color: color-mix(in oklab, var(--ink) 62%, var(--sand)); }
.panel h3 b { font-weight: 600; color: var(--ink); }
.panel > p { color: color-mix(in oklab, var(--ink) 74%, var(--sand)); font-size: 15.5px; line-height: 1.5; margin-top: 10px; min-height: 4.5em; max-width: 46ch; }
.pstage { position: relative; margin-top: 24px; aspect-ratio: 520 / 440; border-radius: 30px; background: var(--paper); overflow: hidden; box-shadow: 0 0 0 1px rgba(47,42,36,.05), 0 24px 50px -36px rgba(47,42,36,.35); }
.scene.mini { width: 520px; height: 440px; left: 0; top: 0; transform-origin: 0 0; }
.scene.mini svg.full text { font-family: var(--sans); }
.fr-read small { display: block; font-size: 15px; color: var(--muted); }
.fr-read b { display: block; font: 400 64px/1 var(--serif); letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.notif { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 22px; background: var(--paper); box-shadow: 0 0 0 1px rgba(47,42,36,.06), 0 18px 34px -18px rgba(47,42,36,.45); }
.notif img { width: 44px; height: 44px; flex: none; }
.notif div { flex: 1; min-width: 0; }
.notif p { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.notif p b { color: var(--ink); font-weight: 600; }
.notif strong { display: block; font-size: 16px; font-weight: 600; margin-top: 2px; }
.notif em { display: block; font-style: normal; font-size: 15px; color: var(--muted); line-height: 1.35; }
.cchip { border-radius: 16px; display: flex; flex-direction: column; align-items: center; padding-top: 9px; z-index: 1; }
.cchip small { font: 700 11.5px/1 var(--sans); letter-spacing: .6px; }
.cchip big { font: 400 22px/1.25 var(--serif); }
.cchip i { width: 18px; border-radius: 4px; margin-top: auto; margin-bottom: 12px; }
.scene.mini .wkb-hi { z-index: 0; }
.scene.mini .abs:not(.wkb-hi):not(.cchip) { z-index: 1; }
.ctray { border-radius: 20px; box-shadow: inset 0 0 0 1.5px var(--line); }
.ccell { border-radius: 13px; background: var(--cream); overflow: hidden; }
.ccell .sun { position: absolute; inset: 0; background: var(--fruit-bg); opacity: 0; }
.ccell img { position: absolute; right: 12px; bottom: 10px; width: 62px; height: 62px; transform-origin: 50% 100%; }
.ccell b { position: absolute; left: 12px; bottom: 10px; font-weight: 600; font-size: 14.5px; }
.cstep { font-size: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cstep b { color: var(--ink); font-weight: 600; }
.rlayer { transform-origin: 0 0; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line), 0 14px 28px -20px rgba(47,42,36,.4); }
.rsq { border-radius: 11px; display: flex; align-items: flex-end; padding: 8px 10px; font-weight: 600; font-size: 14.5px; }
.rring { border-radius: 15px; border: 3px solid var(--flower-ring); }
.rnote { font-size: 16px; color: var(--muted); }
.hs { background: linear-gradient(160deg, #E9E1D2, #DCE6D8); }
.hw { border-radius: 30px; background: var(--paper); padding: 18px 18px 8px; box-shadow: 0 24px 44px -24px rgba(47,42,36,.45), 0 0 0 1px rgba(47,42,36,.05); }
.hw-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.hw-h .mark { width: 18px; height: 21px; }
.hw-h b { font-family: var(--serif); font-weight: 500; font-size: 22px; flex: 1; }
.hw-h span { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hw-r { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 15.5px; transition: color .3s; }
.hw-r i { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--cream); box-shadow: inset 0 0 0 1.8px var(--border); transition: background-color .25s, box-shadow .25s, transform .4s var(--pop); }
.hw-r i svg { width: 17px; height: 17px; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .35s var(--curve) .08s; }
.hw-r.done { color: var(--faint); }
.hw-r.done i { background: var(--forest); box-shadow: none; transform: scale(1.08); }
.hw-r.done i svg { stroke-dashoffset: 0; }
.happ { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.happ img { width: 100px; height: 100px; filter: drop-shadow(0 12px 18px rgba(47,42,36,.25)); }
.happ span { font-size: 14px; font-weight: 600; }
.happ .hb { position: absolute; right: -10px; top: -10px; transition: transform .4s var(--pop); }

/* ---------- Library ---------- */
.library { padding: 140px var(--gutter) 120px; position: relative; }
.ask { font-size: clamp(38px, 5.6vw, 76px); line-height: 1.1; letter-spacing: -.02em; margin: 18px 0 10px; }
.ask-field { position: relative; display: inline-block; vertical-align: baseline; min-width: 2.5em; }
.ask-field input { position: absolute; inset: 0; width: 100%; font: inherit; color: var(--forest); background: none; border: 0; padding: 0; outline: none; letter-spacing: inherit; text-align: center; }
.ask-field input::placeholder { color: var(--faint); }
.ask-sizer { visibility: hidden; white-space: pre; padding: 0 .1em; }
.ask-field::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .1em; border-radius: .05em; background: var(--mint); transition: background-color .3s, transform .4s var(--pop); }
.ask-field:focus-within::after { background: var(--logo); transform: scaleY(1.3); }
.ask-answer { min-height: 92px; max-width: 640px; margin-top: 18px; display: grid; place-items: center; }
.answer { display: flex; align-items: center; gap: 16px; text-align: left; background: var(--paper); border-radius: 26px; padding: 14px 22px 14px 14px; box-shadow: 0 14px 40px -24px rgba(47,42,36,.4); animation: regrow .5s var(--pop); }
.answer .ptile { width: 64px; height: 64px; border-radius: 18px; }
.answer .ptile img { width: 52px; height: 52px; }
.answer b { display: block; font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.2; }
.answer span { color: var(--muted); font-size: 15px; }
.answer.yes b { color: var(--forest); }
.answer.no b { color: var(--fruit-fg); }
.ask-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.ask-chips button { height: 38px; padding: 0 15px; border-radius: 19px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; font-weight: 500; transition: transform .4s var(--pop), background-color .2s; }
.ask-chips button:hover { transform: translateY(-3px) scale(1.04); background: #fff; }
.seg-cats { display: flex; width: fit-content; margin: 64px auto 0; }
.cloud { max-width: var(--max); margin: 36px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; min-height: 400px; }
.bub {
  --bg: var(--veg-bg); position: relative; width: 76px; height: 76px; border-radius: 22px; background: var(--bg); display: grid; place-items: center;
  transition: transform .5s var(--pop), opacity .4s; animation: regrow .6s var(--pop) both; animation-delay: calc(var(--i) * 6ms);
}
.bub.herb { --bg: var(--herb-bg); } .bub.flower { --bg: var(--flower-bg); } .bub.fruit { --bg: var(--fruit-bg); }
.bub img { width: 60px; height: 60px; pointer-events: none; }
.bub:hover { transform: translateY(-4px) scale(1.1); z-index: 2; }
.bub .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translate(-50%, 6px) scale(.8); background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 10px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .35s var(--pop); }
.bub:hover .tip, .bub:focus-visible .tip { opacity: 1; transform: translate(-50%, 0) scale(.82); }
.cloud-foot { text-align: center; margin-top: 30px; font-size: 15px; }

#plant-card { border: 0; padding: 0; border-radius: 32px; background: var(--cream); width: min(440px, calc(100vw - 32px)); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(47,42,36,.55); }

#plant-card { will-change: transform; overflow: visible; }
#plant-card .pc-inner { border-radius: inherit; overflow: hidden; }
#plant-card::backdrop { background: rgba(47,42,36,calc(.38 * var(--dim, 1))); }
/* On phones the card is a bottom sheet: grab it anywhere and drag it down. */
#plant-card.sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 28px 28px 0 0; touch-action: none; padding-bottom: env(safe-area-inset-bottom); }
#plant-card.sheet .pc-inner::before { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--border); z-index: 2; }
#plant-card.sheet .pc-inner { position: relative; }
.pc-top { background: var(--veg-bg); padding: 26px 26px 20px; display: flex; gap: 16px; align-items: center; }
.pc-top.herb { background: var(--herb-bg); } .pc-top.flower { background: var(--flower-bg); } .pc-top.fruit { background: var(--fruit-bg); }
.pc-top img { width: 84px; height: 84px; background: var(--paper); border-radius: 22px; padding: 6px; }
.pc-top h3 { font-size: 32px; line-height: 1.05; }
.pc-top p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.pc-body { padding: 20px 26px 26px; }
.pc-body > p { font-size: 16px; }
.pc-now { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--paper); font-size: 15px; }
.pc-now b { color: var(--forest); }
.pc-now.no b { color: var(--fruit-fg); }
.pc-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.pc-facts div { background: var(--paper); border-radius: 14px; padding: 10px 12px; font-size: 12.5px; color: var(--muted); }
.pc-facts b { display: block; color: var(--ink); font-size: 15px; }
.pc-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.pc-close svg { width: 20px; height: 20px; }

/* ---------- Pricing: a ledger whose ticks fill in like Today's tasks ---------- */
.pricing { padding: 120px var(--gutter) 130px; }
.ledger { max-width: 920px; margin: 54px auto 0; }
.lrow { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 16px; min-height: 64px; border-bottom: 1px solid var(--line); font-size: 17px; }
.lrow > span:first-child { font-weight: 600; }
.lrow > span:not(:first-child) { color: var(--muted); }
.lrow > span:last-child { color: var(--ink); }
.lhead { border-bottom-color: var(--border); min-height: 72px; }
.lhead > span { font-family: var(--serif); font-size: 26px; color: var(--ink) !important; font-weight: 400 !important; }
.lhead > .lprem { color: var(--cream) !important; }
.lprem { justify-self: start; height: 48px; padding: 0 22px; border-radius: 24px; display: grid; place-items: center; background: var(--ink); color: var(--cream) !important; }
.lprice { border-bottom: 0; }
.lprice > span:not(:first-child) { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.tk { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--cream); box-shadow: inset 0 0 0 1.8px var(--border); transition: background-color .3s var(--curve) var(--d), box-shadow .3s var(--d), transform .5s var(--pop) var(--d); }
.tk svg { width: 20px; height: 20px; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .4s var(--curve) calc(var(--d) + .12s); }
.lrow.in .tk { background: var(--forest); box-shadow: none; transform: scale(1.06); }
.lrow.in .tk svg { stroke-dashoffset: 0; }
.no { color: var(--faint); }

/* ---------- Closing ---------- */
.closing { background: var(--deep); color: var(--cream); text-align: center; padding: 110px var(--gutter) 150px; border-radius: 56px 56px 0 0; display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; }
.closing h2 { font-size: clamp(40px, 6vw, 84px); line-height: 1.02; letter-spacing: -.02em; margin: 28px 0 20px; }
.closing-icon { width: 144px; height: 144px; filter: drop-shadow(0 26px 30px rgba(0,0,0,.35)); }
.closing h2 em { color: var(--mint); background-image: linear-gradient(color-mix(in srgb, var(--mint) 25%, var(--ink)), color-mix(in srgb, var(--mint) 25%, var(--ink))); }
.closing .lede { color: rgba(246,241,231,.75); }
.closing .lede b { color: var(--mint); font-weight: 600; font-variant-numeric: tabular-nums; }
.cweeks { display: flex; gap: 8px; margin: 10px 0 30px; }
.cw { width: 64px; height: 124px; border-radius: 20px; background: color-mix(in srgb, var(--cream) 7%, var(--ink)); display: flex; flex-direction: column; align-items: center; padding: 11px 0 9px; color: color-mix(in srgb, var(--cream) 85%, var(--ink)); }
.cw small { height: 14px; font: 700 11px/1 var(--sans); letter-spacing: .6px; color: rgba(246,241,231,.55); }
.cw big { font: 400 24px/1.2 var(--serif); }
.cw i { margin-top: auto; width: 18px; height: 0; border-radius: 4px; background: var(--mint); transition: height .8s var(--pop) var(--d); }
.cw span { font-size: 12.5px; font-weight: 600; margin-top: 5px; color: rgba(246,241,231,.6); }
.cweeks.in .cw i { height: var(--h); }
.cw.on { background: var(--cream); color: var(--ink); }
.cw.on small, .cw.on span { color: var(--muted); }
.cw.on i { background: #7FB08A; }
.stores { display: flex; gap: 12px; margin: 34px 0 22px; flex-wrap: wrap; justify-content: center; }
.store { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; height: 62px; padding: 0 24px; border-radius: 18px; box-shadow: inset 0 0 0 1.5px rgba(246,241,231,.35); font-weight: 600; font-size: 19px; line-height: 1.1; }
.store small { font-weight: 400; font-size: 12px; opacity: .7; }
/* Sponsorship contact: a flat band at the foot of the closing. */
.sponsor { scroll-margin-top: 30vh; }
.sponsor { display: flex; align-items: center; gap: 24px 40px; width: min(860px, 100%); margin-top: 84px; padding: 30px 34px; border-radius: 28px; background: color-mix(in srgb, var(--cream) 8%, var(--deep)); text-align: left; }
.sponsor h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: -.01em; margin-bottom: 6px; }
.sponsor p { color: color-mix(in srgb, var(--cream) 72%, var(--deep)); font-size: 16px; max-width: 52ch; }
.sponsor-btn { flex: none; margin-left: auto; display: inline-flex; align-items: center; height: 52px; padding: 0 26px; border-radius: 26px; background: var(--cream); color: var(--ink); font-weight: 600; text-decoration: none; transition: transform .1s ease-out; }
.sponsor-btn:hover { background: var(--mint); }
.sponsor-btn:active { transform: scale(.97); }
@media (max-width: 640px) { .sponsor { flex-direction: column; align-items: flex-start; padding: 26px 24px; margin-top: 64px; } .sponsor-btn { margin-left: 0; } }
.foot { display: flex; gap: 18px 32px; align-items: center; flex-wrap: wrap; padding: 36px var(--gutter) 44px; background: var(--deep); color: rgba(246,241,231,.7); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-left: auto; }
.foot-links a, .brand-sm { text-decoration: none; }
.foot-links a:hover { color: var(--cream); }
.foot-note { flex-basis: 100%; font-size: 13.5px; color: rgba(246,241,231,.5); }
.brand-sm { display: inline-flex; align-items: center; gap: 9px; font: 400 21px/1 var(--serif); letter-spacing: -.02em; color: var(--cream); }
.brand-sm .mark { width: 17px; height: 20px; fill: var(--mint); }
.link { text-decoration: underline; text-underline-offset: 3px; color: var(--cream); font-size: 14px; }

.flyer { position: fixed; z-index: 85; pointer-events: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--veg-bg); box-shadow: 0 10px 24px -10px rgba(47,42,36,.5); left: 0; top: 0; }
.flyer img { width: 42px; height: 42px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; align-items: start; padding-top: 96px; padding-bottom: 60px; gap: 28px; }
  .hero h1 { font-size: 40px; margin-bottom: 14px; }
  .hero .lede { font-size: 15.5px; }
  .hero-ctas { margin-top: 18px; }
  .app-chip { margin-top: 18px; }
  .scroll-cue { display: none; }
  .ipad { grid-template-columns: 1fr; gap: 40px; padding-block: 90px 120px; }
  .top-links { display: none; }
  .top .btn { margin-left: auto; }
  .plans { grid-template-columns: 1fr; }
  .loopnav { display: none; }
  .premium, .closing { border-radius: 36px 36px 0 0; }
  .track-wrap { border-radius: 0 0 36px 36px; }
  .track { padding: 0 10vw 0 96vw; }
  .lrow { font-size: 15px; gap: 10px; }
  .lhead > span { font-size: 20px; }
  .lprem { height: 36px; padding: 0 12px; font-size: 17px !important; }
  .lrow { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); }
  .ledger::before { left: calc((100% - 20px) * 2.25 / 3.25 + 20px - 8px); right: -8px; }
  .cweeks { gap: 6px; }
  .cw { width: 48px; height: 110px; }
  .foot-links { margin-left: 0; }
}
@media (max-width: 640px) {
  .bub { width: 62px; height: 62px; }
  .bub img { width: 48px; height: 48px; }
  .loop-chips .arrow { width: 14px; }
  .loop-chips li:not(.arrow):not(.again) { height: 42px; padding: 0 14px; font-size: 15px; }
  .seg-cats button { padding: 0 11px; font-size: 14px; }
  .ask-answer { min-height: 110px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Premium column: a soft mint glow behind every cell, so it reads as the richer plan. */
.lrow > span:last-child { position: relative; isolation: isolate; }
.ledger { position: relative; isolation: isolate; }
.ledger::before { content: ""; position: absolute; z-index: -1; top: 4px; bottom: -8px; right: -20px; left: calc((100% - 32px) * 2.5 / 3.5 + 32px - 20px);
  border-radius: 30px; background: color-mix(in srgb, var(--mint) 24%, var(--cream));
  box-shadow: 0 0 0 1px rgba(75,165,109,.14), 0 0 60px 8px rgba(75,165,109,.16); }
.lrow:not(.lhead) > span:last-child { color: var(--deep); font-weight: 600; }
.lrow > span:last-child .tk { box-shadow: 0 0 0 4px rgba(169,209,177,.35), 0 0 18px 4px rgba(75,165,109,.35); }
.lhead > .lprem { box-shadow: 0 0 0 4px rgba(169,209,177,.35), 0 0 28px 6px rgba(75,165,109,.35); }
.lprice > span:last-child { color: var(--forest) !important; text-shadow: 0 0 18px rgba(75,165,109,.35); }
.lprice small { font-family: var(--sans); font-size: 14px; color: var(--muted); }

/* Hero collage, now hands-on */
.collage button, .collage a { border: 0; font: inherit; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.hc-c { cursor: pointer; transition: color .4s, transform .35s var(--pop); }
.hc-c:hover { transform: translateY(-3px); }
.hc-c:active { transform: scale(.94); }
.cg-now .mini { cursor: pointer; transition: transform .35s var(--pop), box-shadow .25s; }
.cg-now .mini:hover { transform: translateY(-3px); box-shadow: 0 10px 20px -14px rgba(47,42,36,.5); }
.cg-now .mini:active { transform: scale(.95); }
.hc-task { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.hc-tasks .hc-task:last-child { border-bottom: 0; }
.hc-task:hover i { box-shadow: inset 0 0 0 1.8px var(--forest); }
.hc-task.done:hover i { box-shadow: none; }
.hc-task.fresh { animation: hc-in .6s var(--pop); }
@keyframes hc-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.hc-task b em { font-style: normal; }
.hc-sq.open { cursor: pointer; transition: box-shadow .2s, color .2s, transform .35s var(--pop); }
.hc-sq.open:hover { box-shadow: inset 0 0 0 1.5px var(--forest); color: var(--forest); transform: scale(1.05); }
.hc-sq.landed { animation: hc-drop .6s var(--pop) both; }
.hc-sq.dip { animation: hc-dip .6s var(--curve); }
@keyframes hc-drop { from { transform: translateY(-26px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hc-dip { 30% { transform: scale(.9); } 65% { transform: scale(1.04); } }
.cg-frost, .cg-doc { cursor: pointer; border: 0; transition: transform .35s var(--pop), box-shadow .25s; }
.cg-frost:hover, .cg-doc:hover { transform: translateY(-2px); }
.cg-now .p-btn { transition: transform .35s var(--pop), background-color .2s; }
.cg-now .p-btn:hover { background: #35603f; }
.collage :focus-visible { outline: 2.5px solid var(--forest); outline-offset: 3px; }

/* The loop intro: the four steps light up in turn, each icon doing its thing, then the loop arrow turns. */
.loop-chips .lc { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 24px; background: var(--c); color: var(--f); font-weight: 600; opacity: .5; transition: opacity .45s, box-shadow .45s, transform .6s var(--pop); }
.loop-chips .lc.on { opacity: 1; box-shadow: inset 0 0 0 2px var(--f); transform: translateY(-3px); }
.loop-chips .ic { transform-origin: 50% 70%; }
.lc.on .ic-leaf { animation: ic-sway 1.2s ease-in-out; }
.lc.on .ic-garden { animation: ic-pop .9s var(--pop); }
.lc.on .ic-drop { animation: ic-drip 1.1s var(--curve); }
.lc.on .ic-basket { animation: ic-bob 1.1s var(--pop); }
.loop-chips .again { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--border); transition: box-shadow .45s; }
.loop-chips .again.on { box-shadow: inset 0 0 0 2px var(--forest); }
.loop-chips .again .ic { transform-origin: 50% 50%; }
.loop-chips .again.on .ic { animation: ic-spin 1.1s cubic-bezier(.65, 0, .35, 1); }
.loop-chips .arrow.on { background: var(--forest); }
.loop-chips .arrow.on::after { border-color: var(--forest); }
@keyframes ic-sway { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-14deg); } 65% { transform: rotate(9deg); } }
@keyframes ic-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes ic-drip { 0% { transform: translateY(-7px); opacity: 0; } 45% { transform: translateY(2px); opacity: 1; } 70% { transform: translateY(-1px); } 100% { transform: none; } }
@keyframes ic-bob { 0%, 100% { transform: none; } 35% { transform: translateY(-5px) rotate(-6deg); } 70% { transform: translateY(1px) rotate(3deg); } }
@keyframes ic-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .loop-chips .lc { height: 42px; padding: 0 14px; font-size: 15px; } }

/* While the question is still typing, its last answer steps back. */
.ask-answer { transition: opacity .25s; }
.ask-answer.stale { opacity: .35; }
@media (max-width: 640px) { .loop-chips .arrow { display: none; } .loop-chips { gap: 10px; } }

/* "planted": the marker sits under "plan" only, and "ted." arrives a beat later, so the word reads plan → planted. */
h1 em.pun, h2 em.pun { background: none; color: inherit; white-space: nowrap; }
.pun-a { color: var(--forest); background: linear-gradient(var(--mint), var(--mint)) no-repeat 0 88% / 0% .32em; transition: background-size .9s var(--curve) .5s; }
.in .pun-a { background-size: 100% .32em; }
.pun-b { color: var(--ink); }
/* The hyphen is the hinge of the pun: lighter, close-set, so it reads as a deliberate split. */
.pun-h { color: var(--faint); margin: 0 .01em; }
.closing .pun-h { color: rgba(246,241,231,.45); }
.words .pun-b .w { transition-delay: calc(var(--i) * 55ms + 420ms); }
.closing .pun-a { color: var(--mint); background-image: linear-gradient(color-mix(in srgb, var(--mint) 28%, var(--ink)), color-mix(in srgb, var(--mint) 28%, var(--ink))); }
.closing .pun-b { color: var(--cream); }

/* Apple-style details */
body { font-optical-sizing: auto; }
/* Feedback on press, not release: every tappable tile answers the moment it's touched. */
.bub:active, .cg-now .mini:active, .ask-chips button:active { transform: scale(.95); transition-duration: 90ms; }
.hc-task:active i { transform: scale(.88); transition-duration: 90ms; }
.loopnav a:active { transform: scale(.95); transition: transform 90ms; }
/* Higher contrast: a defined edge. */

@media (prefers-contrast: more) {
  .top.scrolled { background: var(--cream); box-shadow: 0 1px 0 var(--border); }
  .loopnav { background: var(--ink); box-shadow: 0 0 0 1.5px var(--cream); }
  .lede, .muted { color: #4E463E; }
}
