/* Tiny Systems home. The app's look: green-charcoal, leaf green as the
   brand, amber only for "needs you". Dark by choice, like the app, so
   every colour is set here explicitly. */
:root {
  --bg: #0F130F; --bg-2: #131813; --panel: #161B17; --raised: #1D231E; --line: #232B24; --line-2: #2F3A31;
  --text: #EDF3EE; --text-2: #A7B3AA; --text-3: #6C7A70;
  --leaf: #46D87A; --leaf-2: #2EA35A; --leaf-bg: #46D87A1F;
  --amber: #F4B44C; --amber-bg: #F4B44C1F;
  --sky: #6FB7F2; --petal: #F07FA3; --lilac: #B79CF5; --sun: #F2D46B;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; font-weight: 500; letter-spacing: -0.04em; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.lead { color: var(--text-2); font-size: 18px; margin-top: 18px; max-width: 42ch; }

/* Avatars and the mark */
.av { --c: var(--leaf); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; flex: none; color: #0F130F;
  background: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--c), #fff 22%), var(--c) 55%, color-mix(in srgb, var(--c) 72%, #000)); box-shadow: inset 0 1px 0 #ffffff40, 0 4px 14px -6px var(--c); }
.av svg { width: 62%; height: 62%; }
.av.leaf { --c: var(--leaf); } .av.sky { --c: var(--sky); } .av.petal { --c: var(--petal); } .av.lilac { --c: var(--lilac); } .av.sun { --c: var(--sun); } .av.amber { --c: var(--amber); }
.av.xs { width: 20px; height: 20px; border-radius: 6px; } .av.sm { width: 24px; height: 24px; border-radius: 7px; } .av.lg { width: 58px; height: 58px; border-radius: 17px; }
.tilemark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(160deg, #5FE58F, #2EA35A); color: #0B1A10; box-shadow: inset 0 1px 0 #ffffff55; }
.tilemark svg { width: 70%; height: 70%; }
.tilemark.sm { width: 22px; height: 22px; border-radius: 7px; }
.tilemark.big { width: 0.92em; height: 0.92em; border-radius: 0.24em; vertical-align: -0.1em; box-shadow: inset 0 2px 0 #ffffff55, 0 18px 50px -12px #46D87A99; }
.tilemark.huge { width: 72px; height: 72px; border-radius: 20px; box-shadow: inset 0 2px 0 #ffffff55, 0 24px 60px -14px #46D87AAA; }
/* The seedling as a mascot: a little sprout that blinks, waves a leaf
   and looks toward the pointer (home.js sets --lx/--ly). */
.mascot .sprout { width: 80%; height: 80%; overflow: visible; }
.mascot .sp-eye { fill: #B5FACB; transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
.mascot .sp-eyes { transform: translate(calc(var(--lx, 0) * .7px), calc(var(--ly, 0) * .5px)); transition: transform .25s ease-out; }
.mascot .sp-smile { stroke: #B5FACB; }
.mascot .sp-hand { transform-box: view-box; transform-origin: 12px 16px; animation: wave 7s ease-in-out .8s infinite; }
.mascot .sp-tuft { transform-box: view-box; transform-origin: 12px 12.6px; animation: sway 5s ease-in-out infinite; }
.mascot:hover .sp-hand { animation: wave-now 1.1s ease-in-out infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@keyframes wave { 0%, 30%, 100% { transform: rotate(0); } 4%, 12%, 20% { transform: rotate(-28deg); } 8%, 16%, 24% { transform: rotate(8deg); } }
@keyframes wave-now { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(-28deg); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font: 500 15px var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn.light { background: #F1F5F2; color: #0F130F; }
.btn.light:hover { background: #fff; transform: translateY(-1px); }
.btn.ghost { border-color: var(--line-2); color: var(--text); background: #ffffff06; }
.btn.ghost:hover { border-color: var(--text-3); }
.btn.small { height: 34px; padding: 0 15px; font-size: 14px; }
.btn.disabled { opacity: .6; cursor: default; transform: none; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }

/* Nav: a floating pill */
.top { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(1100px, calc(100% - 24px)); }
.navin { display: flex; align-items: center; gap: 22px; height: 52px; padding: 0 8px 0 16px; border-radius: 16px; border: 1px solid #ffffff12; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(16px) saturate(1.4); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.navlinks { display: flex; gap: 20px; margin: 0 auto; font-size: 14px; }
.navlinks a { color: var(--text-2); text-decoration: none; }
.navlinks a:hover { color: var(--text); }
@media (max-width: 860px) { .navlinks { display: none; } .navin .btn { margin-left: auto; } }

/* Hero */
.hero { position: relative; padding: 150px 0 80px; text-align: center; overflow: hidden; isolation: isolate; }
.pollen, .tree { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.tree { z-index: -2; }
.beam { position: absolute; top: -40px; left: 86%; width: 4px; height: 760px; z-index: -1; pointer-events: none; }
.beam i { position: absolute; inset: 0; background: linear-gradient(180deg, #E8FFF0, #9BF5BD 40%, #46D87A 75%, transparent); filter: blur(1.5px); border-radius: 4px; animation: flicker 5s ease-in-out infinite; }
.beam::before { content: ""; position: absolute; left: 50%; top: 0; width: 220px; height: 100%; transform: translateX(-50%); background: radial-gradient(50% 60% at 50% 40%, #46D87A40, transparent 70%); filter: blur(20px); }
.beam b { position: absolute; left: 50%; bottom: 60px; width: 520px; height: 160px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, #CFFFE0aa, #46D87A55 35%, transparent 70%); filter: blur(18px); animation: flicker 5s ease-in-out infinite reverse; }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .82; } 55% { opacity: .95; } }
.beam.small { left: 50%; top: -20px; height: 340px; }
.beam.small b { bottom: 0; width: 360px; height: 120px; }
.hero-in { position: relative; }
/* Scroll cue: fixed to the bottom of the first screen, gone once you scroll. */
.scrollcue { position: fixed; left: 50%; bottom: 22px; z-index: 20; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); color: var(--text-2); font-size: 13px; text-decoration: none; transition: opacity .4s ease, transform .4s ease; animation: cue-in .6s 2.4s backwards; }
.scrollcue:hover { color: var(--text); border-color: var(--leaf-2); }
.scrollcue.gone { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.cue-track { position: relative; width: 16px; height: 24px; border: 1.5px solid currentColor; border-radius: 9px; opacity: .8; }
.cue-track i { position: absolute; left: 50%; top: 4px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--leaf); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateY(8px); opacity: 0; } 100% { opacity: 0; } }
@keyframes cue-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--line-2); background: #ffffff08; font-size: 13px; color: var(--text-2); }
.badge span { background: var(--text); color: var(--bg); font: 600 11px var(--mono); padding: 3px 8px; border-radius: 999px; }
.hero-title { font-size: clamp(48px, 9vw, 104px); line-height: 1; font-weight: 500; letter-spacing: -0.055em; margin-top: 26px; }
.lede { color: var(--text-2); font-size: clamp(17px, 2vw, 20px); margin: 24px auto 0; max-width: 40ch; }
.lede b { color: var(--text); font-weight: 500; }

/* The window around the embedded app. The app is laid out at 1180x720
   and scaled to fit (home.js sets --s). */
.window { position: relative; margin: 72px auto 0; max-width: 1080px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; text-align: left;
  box-shadow: 0 0 0 1px #000, 0 28px 56px -24px #000, 0 -30px 120px -40px #46D87A33; }
.titlebar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg); font-size: 12px; }
.titlebar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; } .titlebar i + i { background: #FEBC2E; } .titlebar i + i + i { background: #28C840; }
.titlebar span { margin-left: 12px; color: var(--text-3); }
.titlebar em { margin-left: auto; font-style: normal; color: var(--leaf); background: var(--leaf-bg); padding: 2px 9px; border-radius: 99px; font-size: 11px; }
.appframe { --s: 1; position: relative; height: calc(720px * var(--s)); overflow: hidden; background: #0E0F11; }
.appframe iframe { position: absolute; top: 0; left: 0; width: 1180px; height: 720px; border: 0; transform: scale(var(--s)); transform-origin: 0 0; display: block; }

/* Grove: pinned while you scroll */
.grove { position: relative; height: 240vh; }
.grove-stage { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; padding-top: 14vh; overflow: hidden; }
.grove-copy { text-align: center; padding: 0 16px; }
.words span { color: var(--text-3); opacity: .35; transition: color .45s, opacity .45s; }
.words span.lit:nth-child(2) { transition-delay: .1s; } .words span.lit:nth-child(3) { transition-delay: .2s; } .words span.lit:nth-child(4) { transition-delay: .3s; }
.words span.lit { color: var(--text); opacity: 1; }
.grove-sub { color: var(--text-2); font-size: 17px; max-width: 46ch; margin: 18px auto 0; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; }
.grove-sub.lit { opacity: 1; transform: none; }
.grove-field { position: relative; width: min(1000px, 100%); flex: 1; margin-top: 3vh; }
.grove-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.grove-lines path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.grove-lines .root { stroke: #46D87A66; stroke-width: 1.6; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.1s cubic-bezier(.3,.6,.2,1); }
.grove-lines .rootlet { stroke: #46D87A40; stroke-width: 1; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .7s ease .7s; }
.grove-lines .sap { stroke: #C9FFD9; stroke-width: 2.4; stroke-dasharray: 3 97; stroke-dashoffset: 100; opacity: 0; }
.grove-lines g.on .root, .grove-lines g.on .rootlet { stroke-dashoffset: 0; }
.grove-lines g.on .sap { opacity: 1; transition: opacity .4s 1.1s; animation: sap 2.6s linear 1.1s infinite; }
.grove-lines g.hot .root { stroke: #46D87AAA; stroke-width: 2.2; }
.grove-lines g:not(.hot) .sap { animation-duration: 4.2s; }
@keyframes sap { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes flow { to { stroke-dashoffset: -18; } }
.node { position: absolute; transform: translate(-50%, -50%) scale(.4); opacity: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; transition: opacity .5s, transform .6s cubic-bezier(.2, .9, .3, 1.3); }
.node.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.node em { font-style: normal; font-size: 12px; color: var(--text-2); }
.node .machine { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--raised); border: 1px solid var(--line-2); color: var(--text); }
.node .machine svg { width: 34px; height: 34px; }
.bubble { position: absolute; bottom: calc(100% + 10px); left: 50%; width: 250px; transform: translateX(-30%) translateY(6px); background: var(--raised); border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 12px; font-size: 13px; color: var(--text-2); text-align: left; opacity: 0; transition: opacity .4s, transform .4s; }
.bubble.on { opacity: 1; transform: translateX(-30%); }
.node.tiny .av { width: 34px; height: 34px; border-radius: 11px; }
@media (max-width: 600px) { .grove { height: 200vh; } .bubble { width: 190px; font-size: 12px; } }

/* Reveal: blur to sharp */
.reveal { opacity: 0; filter: blur(12px); transform: translateY(18px); transition: opacity .9s ease, filter .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; filter: none; transform: none; }

/* What it does: three scenes. Base styles are each scene's final frame;
   the animations under .play start from the opening frame (fill: both),
   so no JS or reduced motion simply shows the outcome. */
section { position: relative; }
.what { padding: 120px 0 80px; }
.sec-head p { color: var(--text-2); font-size: 18px; margin-top: 18px; max-width: 46ch; }
.scenes { display: flex; flex-direction: column; gap: 18px; margin-top: 54px; }
.scene { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 26px; padding: 40px; }
.scene.flip .scene-copy { order: 2; }
.scene-copy h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 500; letter-spacing: -0.03em; }
.scene-copy p { color: var(--text-2); font-size: 16px; margin-top: 14px; max-width: 44ch; }
.scene-copy p.fine { color: var(--text-3); font-size: 14px; }
.replay { margin-top: 22px; font: 500 13px var(--sans); color: var(--text-2); background: none; border: 1px solid var(--line-2); border-radius: 99px; padding: 7px 14px; cursor: pointer; }
.replay:hover { color: var(--text); border-color: var(--text-3); }
.stage { position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px; min-height: 300px; overflow: hidden; font-size: 13px; }
.scene.armed:not(.play) .stage > * { opacity: 0; }
@media (max-width: 860px) { .scene { grid-template-columns: 1fr; gap: 26px; padding: 26px 20px; } .scene.flip .scene-copy { order: 0; } }

.toast { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 14px; background: #222A23; border: 1px solid var(--line-2); box-shadow: 0 20px 40px -20px #000; }
.toast b { font-size: 13px; font-weight: 600; } .toast p { color: var(--text-2); font-size: 12px; }
.toast time { margin-left: auto; align-self: flex-start; color: var(--text-3); font-size: 11px; }
@keyframes appear { from { opacity: 0; transform: translateY(12px); } }

/* Protected: requests go out, one is refused, the keys fall away. */
.guard { display: grid; grid-template-columns: 150px 1fr; grid-template-rows: 1fr auto; gap: 18px 22px; }
.pod { border: 1.5px dashed #46D87A66; background: #46D87A0D; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.pod-h { display: flex; align-items: center; gap: 8px; }
.pod-keys { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-height: 84px; }
.pod-keys li { font-size: 11.5px; color: #F3D9A4; background: #F2B8480F; border: 1px solid #F2B84838; border-radius: 99px; padding: 3px 9px; width: max-content; opacity: 0; transform: translateY(46px) rotate(var(--r, 8deg)); }
.pod-keys li:nth-child(2) { --r: -9deg; } .pod-keys li:nth-child(3) { --r: 6deg; }
.pod-zero { margin-top: auto; color: var(--text-2); font-size: 12px; } .pod-zero b { color: var(--leaf); font-size: 22px; font-weight: 600; margin-right: 4px; }
.lanes { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.lane { display: grid; grid-template-columns: 1fr 150px; align-items: center; gap: 12px; }
.wire { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 10px); }
.wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 10px var(--leaf); opacity: 0; }
.wall { position: absolute; left: 72%; top: -10px; width: 3px; height: 22px; border-radius: 2px; background: var(--amber); }
.dest { font: 12.5px var(--mono); display: flex; flex-direction: column; gap: 2px; }
.dest em { font: 500 11px var(--sans); font-style: normal; color: var(--leaf); }
.lane.no .dest { color: var(--text-3); } .lane.no .dest em { color: var(--amber); }
.refuse { grid-column: 1 / -1; }
.refuse .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex: none; }
.tbtn { margin-left: auto; font-size: 12px; font-weight: 500; color: #0B1A10; background: var(--leaf); border-radius: 8px; padding: 5px 11px; }
.guard .pod-keys li { opacity: 0; }
.play .pod-keys li { animation: keyfall .9s cubic-bezier(.4, .1, .6, 1) both; }
.play .pod-keys li:nth-child(1) { animation-delay: 2.4s; } .play .pod-keys li:nth-child(2) { animation-delay: 2.75s; } .play .pod-keys li:nth-child(3) { animation-delay: 3.1s; }
@keyframes keyfall { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(46px) rotate(var(--r, 8deg)); } }
.play .pod-zero { animation: appear .6s 3.8s both; }
.play .lane.ok .wire i { animation: pkt 2.2s linear infinite; }
.play .lane.l2 .wire i { animation-delay: .7s; }
.play .lane.no .wire i { animation: pktno 2.6s 1s ease-in-out infinite; }
.play .wall { animation: wallhit 2.6s 1s infinite; }
.play .refuse { animation: appear .6s 2.3s both; }
@keyframes pkt { 0% { left: 0; opacity: 0; } 12%, 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes pktno { 0% { left: 0; opacity: 0; background: var(--leaf); } 12% { opacity: 1; } 52% { left: calc(72% - 10px); background: var(--leaf); } 58% { background: var(--amber); box-shadow: 0 0 10px var(--amber); } 100% { left: 25%; opacity: 0; background: var(--amber); } }
@keyframes wallhit { 0%, 50% { box-shadow: none; } 56% { box-shadow: 0 0 0 6px #F4B44C40; } 80%, 100% { box-shadow: none; } }
@media (max-width: 600px) { .guard { grid-template-columns: 1fr; } .pod-keys { min-height: 0; flex-direction: row; flex-wrap: wrap; } .lane { grid-template-columns: 1fr 128px; } .dest { font-size: 11px; } }

/* Isolated: one helper wipes its own box; the others carry on. */
.host-h { color: var(--text-3); font-size: 12px; margin-bottom: 10px; }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cell { background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 170px; }
.cell-h { display: flex; align-items: flex-start; gap: 6px; font-weight: 600; font-size: 12px; line-height: 1.3; }
.busy { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); animation: bob 1.4s infinite; }
.cell ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font: 11.5px var(--mono); color: var(--text-2); }
.kernel { margin-top: auto; border-top: 1px dashed var(--line-2); padding-top: 6px; color: var(--text-3); font-size: 10.5px; }
.cmd { font: 11.5px var(--mono); color: var(--amber); }
.cell.bad { border-color: #F4B44C77; }
.cell.bad ul li { opacity: 0; text-decoration: line-through; }
.cell.bad .busy { opacity: 0; }
.wiped { color: var(--amber); font-size: 11.5px; }
.host-ok { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--text-2); font-size: 12.5px; }
.host-ok svg { width: 15px; height: 15px; color: var(--leaf); flex: none; }
@keyframes bob { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.play .cmd { animation: type 1s .6s steps(10) both; }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.play .cell.bad { animation: badbox .5s 1.7s both; }
@keyframes badbox { 0% { border-color: var(--line-2); transform: none; } 25% { transform: translateX(-3px); } 50% { transform: translateX(3px); } 75% { transform: translateX(-2px); } 100% { border-color: #F4B44C77; transform: none; } }
.play .cell.bad ul li { animation: wipe .5s both; }
.play .cell.bad ul li:nth-child(1) { animation-delay: 1.8s; } .play .cell.bad ul li:nth-child(2) { animation-delay: 2s; } .play .cell.bad ul li:nth-child(3) { animation-delay: 2.2s; }
@keyframes wipe { from { opacity: 1; text-decoration: none; } 40% { opacity: 1; text-decoration: line-through; } to { opacity: 0; text-decoration: line-through; } }
.play .cell.bad .busy { animation: fadeout .3s 1.7s both; }
@keyframes fadeout { from { opacity: 1; } to { opacity: 0; } }
.play .wiped { animation: appear .5s 2.7s both; }
.play .host-ok { animation: appear .6s 3.2s both; }
@media (max-width: 520px) { .cells { gap: 6px; } .cell { padding: 8px; } .cell ul, .cmd { font-size: 10.5px; } }

/* Through the night: the clock runs, the lid closes, work finishes. */
.night-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.clock { font: 500 44px/1 var(--mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.lap { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 12px; }
.lap svg { width: 44px; height: 32px; color: var(--text-2); }
.lap em { font-style: normal; }
.lid { transform-origin: 24px 24px; transform: scaleY(.1); }
.play .lid { animation: lid .9s .2s cubic-bezier(.5, 0, .3, 1) both; }
@keyframes lid { from { transform: none; } }
.garden-h { color: var(--text-3); font-size: 12px; margin: 22px 0 10px; }
.runs { display: flex; flex-direction: column; gap: 10px; }
.run { display: grid; grid-template-columns: 20px 128px 1fr 110px; align-items: center; gap: 10px; }
.run b { font-weight: 600; font-size: 12.5px; }
.bar { height: 6px; border-radius: 99px; background: var(--raised); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--leaf); }
.r3 .bar i { width: 62%; background: var(--amber); }
.st { font-style: normal; font-size: 12px; } .st.done { color: var(--leaf); } .st.ask { color: var(--amber); }
.play .bar i { animation: fill 3s ease-out both; }
.play .r2 .bar i { animation-duration: 3.6s; } .play .r3 .bar i { animation-duration: 2.2s; } .play .r4 .bar i { animation-duration: 3.9s; }
@keyframes fill { from { width: 0; } }
.play .r1 .st { animation: appear .4s 3s both; } .play .r2 .st { animation: appear .4s 3.6s both; } .play .r3 .st { animation: appear .4s 2.2s both; } .play .r4 .st { animation: appear .4s 3.9s both; }
.morning { margin-top: 20px; }
.play .morning { animation: appear .6s 4.4s both; }
@media (max-width: 520px) { .run { grid-template-columns: 20px 96px 1fr 92px; } .run b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .clock { font-size: 34px; } .lap em { display: none; } }

.checks.also { justify-content: flex-start; margin-top: 34px; }
.also-more { margin-top: 14px; font-size: 14px; }
.also-more a { color: var(--text-2); text-underline-offset: 3px; } .also-more a:hover { color: var(--text); }

/* Ticks */
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; font-size: 15px; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { width: 16px; height: 16px; color: var(--leaf); }

/* Stacked cards */
.gardens { padding: 80px 0 120px; }
.gardens-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; align-items: start; }
.gardens-copy { position: sticky; top: 110px; }
.stack-nav { list-style: none; padding: 0; margin: 40px 0 0; border-left: 1px solid var(--line-2); font-size: 15px; counter-reset: s; }
.stack-nav li { counter-increment: s; padding: 7px 0 7px 16px; color: var(--text-3); position: relative; transition: color .3s; }
.stack-nav li::before { content: "0" counter(s); font: 500 11px var(--mono); margin-right: 10px; }
.stack-nav li.on { color: var(--text); }
.stack-nav li.on::after { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; background: var(--leaf); }
.gardens .stack { display: flex; flex-direction: column; gap: 40px; }
.scard { position: sticky; top: 110px; min-height: 330px; border-radius: 24px; padding: 26px 30px; color: #0B1A10; display: flex; flex-direction: column; box-shadow: 0 -20px 40px -24px #000c;
  background-image: linear-gradient(#0000000a 1px, transparent 1px), linear-gradient(90deg, #0000000a 1px, transparent 1px); background-size: 24px 24px; }
.scard:nth-child(2) { top: 126px; } .scard:nth-child(3) { top: 142px; } .scard:nth-child(4) { top: 158px; }
.scard.c1 { background-color: #6BE897; } .scard.c2 { background-color: #F2C76B; } .scard.c3 { background-color: #F49DB9; } .scard.c4 { background-color: #8EC5F5; }
.scard header { display: flex; justify-content: space-between; align-items: center; font: 500 12px var(--mono); }
.scard .tag { background: #0B1A1014; border: 1px solid #0B1A1022; padding: 4px 10px; border-radius: 99px; }
.sicon { width: 92px; height: 92px; align-self: flex-end; margin-top: 18px; }
.scard h3 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; margin-top: auto; }
.scard p { margin-top: 12px; max-width: 36ch; color: #0B1A10bb; }
@media (max-width: 880px) { .gardens-in { grid-template-columns: 1fr; gap: 30px; } .gardens-copy { position: static; } .stack-nav { display: none; } }

/* FAQ */
.faq { padding: 100px 0; }
.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; }
.more { display: inline-block; margin-top: 24px; color: var(--leaf); text-decoration: none; font-weight: 500; font-size: 15px; }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 20px 0; font-size: 17px; font-weight: 500; display: flex; justify-content: space-between; gap: 20px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--text-3); font-weight: 300; font-size: 22px; line-height: 1; transition: transform .25s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { color: var(--text-2); padding: 0 0 20px; max-width: 60ch; }
.qa a { color: var(--leaf); }
@media (max-width: 880px) { .faq-in { grid-template-columns: 1fr; gap: 30px; } }

/* Get */
.get { padding: 130px 0 120px; text-align: center; overflow: hidden; isolation: isolate; }
.get .tilemark.huge { margin-bottom: 26px; }
.get .lead { margin: 18px auto 0; }
.dev { margin-top: 30px; color: var(--text-3); font-size: 14px; }
.dev a { color: var(--leaf); }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--text-3); }
.footin { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footin .brand { color: var(--text); margin-right: auto; font-size: 14px; }
.footin a { text-decoration: none; } .footin a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scrollcue, .cue-track i { animation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; filter: none; transform: none; }
  .grove { height: auto; } .grove-stage { position: static; height: auto; padding: 100px 0; }
  .grove-field { height: 520px; flex: none; }
}

/* Hero safety strip: the five things that keep a helper in. */
.safety { list-style: none; padding: 0; margin: 34px auto 0; max-width: 980px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; text-align: left; }
.safety li { background: var(--bg); padding: 14px 16px; font-size: 13.5px; line-height: 1.4; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }
.safety b { color: var(--leaf); font-weight: 600; font-size: 14.5px; }
.safety-more { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--text-2); text-underline-offset: 3px; }
.safety-more:hover { color: var(--text); }
@media (max-width: 900px) { .safety { grid-template-columns: 1fr 1fr; } .safety li:last-child { grid-column: span 2; } }
@media (max-width: 520px) { .safety { grid-template-columns: 1fr; } .safety li:last-child { grid-column: auto; } }

/* Security page */
.wrap.narrow { max-width: 760px; }
/* The security page's lists read better wider; its lead keeps a line length. */
.sec .wrap.narrow { max-width: 920px; }
.sec .sec-hero p { max-width: 68ch; }
.sec-hero { padding: 120px 0 24px; }
.sec-hero h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.lede.left { margin: 22px 0 0; max-width: 60ch; }
.sec-part { padding: 36px 0; }
.sec-part h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.02em; margin: 0 0 18px; }
.sec-lead { color: var(--text-2); font-size: 17px; max-width: 62ch; margin: 0 0 18px; }
.sec-lead a { color: var(--text); text-underline-offset: 3px; }
.closed, .open { margin: 0; display: flex; flex-direction: column; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.closed > div, .open > div { background: var(--bg); padding: 16px 20px 16px 46px; position: relative; }
.closed > div::before, .open > div::before { content: ""; position: absolute; left: 20px; top: 22px; width: 10px; height: 10px; border-radius: 50%; }
.closed > div::before { background: var(--leaf); }
.open > div::before { background: transparent; border: 2px solid var(--amber); width: 6px; height: 6px; }
.closed dt, .open dt { font-weight: 600; font-size: 16px; color: var(--text); }
.closed dd, .open dd { margin: 4px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.5; max-width: 64ch; }
.sec .cta { justify-content: flex-start; margin-top: 8px; }
.navlinks a[aria-current="page"] { color: var(--text); }

/* Phone: answer from anywhere */
.phone { padding: 120px 0 40px; }
.phone-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.phone-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; max-width: 46ch; }
.phone-points li { display: flex; gap: 12px; color: var(--text-2); font-size: 16px; line-height: 1.5; }
.phone-points b { color: var(--text); font-weight: 500; }
.phone-points svg { flex: none; width: 18px; height: 18px; color: var(--leaf); margin-top: 3px; }
.phone .more { display: inline-block; margin-top: 24px; color: var(--text-2); font-size: 15px; text-underline-offset: 3px; }
.phone .more:hover { color: var(--text); }
.handset { position: relative; justify-self: center; width: min(330px, 100%); aspect-ratio: 9 / 16.5; margin-top: 40px; border-radius: 46px; padding: 12px; background: linear-gradient(160deg, #2A332C, #121612); border: 1px solid var(--line-2); box-shadow: 0 50px 100px -40px #000, 0 30px 80px -50px #46D87A66, inset 0 1px 0 #ffffff14; }
.hs-screen { height: 100%; border-radius: 36px; overflow: hidden; padding: 22px 16px; display: flex; flex-direction: column; gap: 12px; background: radial-gradient(90% 180px at 50% -30px, #46D87A2E, transparent 70%) no-repeat, var(--bg); }
.hs-top { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.hs-top em { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 99px; padding: 2px 8px 2px 7px; display: inline-flex; align-items: center; gap: 5px; }
.hs-top em::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }
.hs-h { font-size: 27px; line-height: 1.05; letter-spacing: -0.045em; font-weight: 500; margin: 8px 0 2px; }
.hs-h span { color: var(--amber); }
.hs-card { border-radius: 18px; padding: 13px; border: 1px solid #F4B44C3A; background: linear-gradient(180deg, #F4B44C12, transparent 70%) var(--bg-2); display: flex; flex-direction: column; gap: 9px; }
.hs-card > p { font-size: 13px; line-height: 1.4; }
.hs-who, .hs-row { display: flex; align-items: center; gap: 9px; }
.hs-who b, .hs-row b { display: block; font-size: 12.5px; font-weight: 600; }
.hs-who small, .hs-row small { display: block; font-size: 11px; color: var(--text-3); }
.hs-row small i { font-style: normal; color: var(--leaf); } .hs-row small i.d { color: var(--petal); }
.hs-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-opts span { font-size: 11.5px; border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 9px; background: var(--bg); }
.hs-opts .picked { border-color: var(--leaf); color: var(--leaf); }
.hs-row { padding: 10px 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.hs-note { position: absolute; left: -44px; right: 30px; top: -34px; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 16px; background: #222A23ee; border: 1px solid var(--line-2); backdrop-filter: blur(8px); box-shadow: 0 24px 50px -20px #000; }
.hs-note b { font-size: 12.5px; } .hs-note p { font-size: 11.5px; color: var(--text-2); }
.hs-note time { margin-left: auto; align-self: flex-start; font-size: 10.5px; color: var(--text-3); }
@media (prefers-reduced-motion: no-preference) { .hs-note { animation: nudge 5s ease-in-out infinite; } @keyframes nudge { 0%, 12% { opacity: 0; transform: translateY(-10px); } 20%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-10px); } } }
@media (max-width: 860px) { .phone-in { grid-template-columns: 1fr; gap: 48px; } .hs-note { left: -8px; right: 8px; } }
