/* static/home-sections.css (2026-11-01). Split out of home.html's inline
   <style> so the front door stays under its 200K cap
   (tests/test_the_front_door_stays_light.py) and these rules cache. Linked
   straight after that <style>, so it still comes last in the cascade.
   Holds: the desk, the ?palette= previews (never on production), the live phones, the
   How box, the spacing pass and the follow line. */
/* ===== 2026-11-01 the desk: scattered work becomes one clear picture ===== */
.dk{ max-width:1240px; margin:clamp(28px,4vw,48px) auto 0; }
.dk-stage{ display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:24px; align-items:center; }
.dk-step{ text-align:left; margin:0 0 22px; }
.dk-step .k{ font-family:'Montserrat',var(--font-sans),sans-serif; font-size:12px; font-weight:600; letter-spacing:.22em; text-transform:uppercase; color:var(--hero-coral); margin:0; }
.dk-step h3{ font-family:var(--font-serif); font-weight:400; color:var(--navy); font-size:clamp(24px,3vw,40px); line-height:1.1; margin:8px 0 10px; text-wrap:balance; }
.dk-step .b{ font-size:16px; line-height:1.6; color:var(--ink-soft); max-width:30em; margin:0; }
.dk-desk{ position:relative; height:min(70vh,620px); min-height:420px; border-radius:28px; background:radial-gradient(120% 100% at 50% 0%,#FFFDF9 0%,#F4EEE3 100%); box-shadow:inset 0 0 0 1px var(--hairline); overflow:hidden; }
.dk-lines{ position:absolute; inset:0; width:100%; height:100%; }
.dk-end{ position:absolute; z-index:3; display:flex; flex-direction:column; align-items:flex-start; gap:6px; transform:translate(-11px,-11px); }
/* the labels hang inward from their dots, so neither is cut off at the edge */
.dk-vis{ flex-direction:column-reverse; align-items:flex-end; transform:translate(calc(-100% + 11px),calc(-100% + 11px)); }
.dk-end i{ width:22px; height:22px; border-radius:50%; background:var(--navy); }
.dk-end b{ font-family:'Montserrat',var(--font-sans),sans-serif; font-size:10px; font-weight:600; letter-spacing:.18em; color:var(--navy); white-space:nowrap; }
.dk-move{ position:absolute; z-index:30; transform:translate(-50%,-50%); border-radius:999px; background:#7EA17B; color:#fff; font:600 12.5px 'Montserrat',var(--font-sans),sans-serif; padding:8px 13px; white-space:nowrap; box-shadow:0 8px 20px rgba(79,114,76,.3); }
.dk-card{ position:absolute; width:150px; padding:10px 12px; border-radius:12px; background:#fff; box-shadow:0 6px 18px rgba(31,58,95,.12); font-size:12.5px; line-height:1.35; color:#3A3A37;
  /* at rest: stacked above (or, near the top, below) its Key Move, labels peeking like folder tabs */
  transform-origin:0 0; z-index:calc(10 + var(--n,0)); }
.dk-card .t{ display:block; font-family:'Montserrat',var(--font-sans),sans-serif; font-size:10px; font-weight:600; letter-spacing:.14em; color:var(--ink-muted); margin-bottom:4px; white-space:nowrap; }
.dk-note{ background:#FFF6D9; font-family:var(--font-serif); font-style:italic; font-size:14px; }
.dk-photo{ width:120px; padding:6px; }
.dk-photo img{ display:block; width:100%; height:78px; object-fit:cover; object-position:center 25%; border-radius:8px; }
.dk-photo .cap{ display:block; font-size:11px; color:var(--ink-soft); margin-top:5px; }
.dk-voice{ background:#EAF1F7; }
.dk-voice .wave{ display:block; height:18px; margin-top:4px; border-radius:3px; opacity:.5; background:repeating-linear-gradient(90deg,var(--navy) 0 2px,transparent 2px 5px); }
.dk-doc{ background:#F1F6EF; }
.dk-article{ border-left:4px solid #DE8E7A; }
.dk-idea{ background:#F3EEF8; }
.dk-insight{ background:#FFF6D9; }
.dk-email{ background:#F7F4EE; }
.dk-progress{ position:absolute; left:20px; bottom:20px; display:none; gap:8px; z-index:40; }
.dk-progress i{ width:28px; height:4px; border-radius:2px; background:var(--hairline); transition:background .3s; }
.dk-progress i.on{ background:var(--salmon); }
/* playing: tall section, sticky stage, one beat at a time; the script moves the cards with transforms */
.dk.dk-play .dk-words{ position:relative; min-height:260px; }
.dk.dk-play .dk-step{ position:absolute; inset:0; margin:0; opacity:0; transform:translateY(14px); transition:opacity .5s, transform .5s; }
.dk.dk-play .dk-step.on{ opacity:1; transform:none; }
.dk.dk-play .dk-card{ left:0 !important; top:0 !important; bottom:auto !important; transform-origin:0 0 !important; will-change:transform; }
.dk.dk-play .dk-move, .dk.dk-play .dk-end{ transition:opacity .5s; }
.dk.dk-play .dk-progress{ display:flex; }
/* the How toggle (2026-11-01, Alison: "someone could pull it and see the chaos turn into clarity") */
.dk-pull{ display:none; margin:18px auto 0; max-width:560px; text-align:center; }
.dk.dk-play .dk-pull{ display:block; }
.dk-pull-row{ display:flex; align-items:center; gap:12px; }
.dk-pull-end{ flex:0 0 auto; background:none; border:0; padding:10px 4px; cursor:pointer; font:600 12px 'Montserrat',var(--font-sans),sans-serif; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-muted); }
.dk-pull-end:hover{ color:var(--navy); }
.dk-slider{ position:relative; flex:1 1 auto; height:44px; border-radius:999px; background:linear-gradient(90deg,#F4E3DA 0%,#EBF0E7 100%); box-shadow:inset 0 0 0 1px var(--hairline); cursor:pointer; touch-action:none; }
.dk-slider:focus-visible{ outline:2px solid var(--navy); outline-offset:3px; }
.dk-fill{ position:absolute; left:4px; top:4px; bottom:4px; border-radius:999px; background:rgba(126,161,123,.35); width:0; pointer-events:none; }
.dk-thumb{ position:absolute; top:50%; left:0; width:40px; height:40px; margin:-20px 0 0 -20px; border-radius:50%; background:#fff; box-shadow:0 4px 14px rgba(31,58,95,.22); display:flex; align-items:center; justify-content:center; pointer-events:none; }
.dk-watch{ text-align:center; margin:12px 0 0; }
.dk-watch a{ color:var(--navy); font-weight:600; font-size:14px; text-decoration:none; text-decoration-color:var(--sage); text-underline-offset:4px; }
.dk-pull-cap{ font-family:var(--font-serif); font-style:italic; font-size:15px; color:var(--ink-soft); margin:10px 0 0; }
.dk-vis.dk-glow i{ animation:dkGlow 1.1s ease-in-out 1; }
@keyframes dkGlow{ 0%{ transform:scale(1); box-shadow:0 0 0 0 rgba(31,58,95,.35); } 50%{ transform:scale(1.35); box-shadow:0 0 0 14px rgba(31,58,95,0); } 100%{ transform:scale(1); } }
@media (max-width:860px){
  .dk-photo img{ height:56px; }
  .dk-stage{ grid-template-columns:1fr; gap:10px; }
  .dk.dk-play .dk-words{ min-height:190px; }
  .dk-desk{ height:60vh; min-height:340px; }
  .dk-step .b{ font-size:15px; }
  .dk-card{ width:118px; font-size:11px; }
  .dk-photo{ width:100px; }
  .dk-move{ font-size:10.5px; padding:6px 9px; }
}

/* ===== 2026-11-01 ?palette=evening: the navy hero, for Alison to compare =====
   Only the hero and the wave's edge change; the page below stays as it is.
   Served only off production (server.py index()). Its colours are the
   Evening hero's (tag homepage-evening-navy-2026-11-01), with the fixes she
   asked for: mission and vision labelled, the line all the way to the
   vision circle, the stories orbiting, nothing clipped, no netting. */
body.palette-evening header.hero{ background:radial-gradient(120% 90% at 80% 0%,#2B4C74 0%,#16263D 55%,#111D2F 100%);
  margin-top:calc(-1 * (max(13vh,110px) + 61px)) !important; padding-top:calc(max(13vh,110px) + 61px - 34px) !important; padding-bottom:clamp(30px,4vw,52px) !important; }
@media (max-width:760px){ body.palette-evening header.hero{ margin-top:calc(-1 * (max(15vh,120px) + 61px)) !important; padding-top:calc(max(15vh,120px) + 61px - 24px) !important; } }
body.palette-evening .top-nav .pill-solid{ background:#fff; color:#1A2B42; }
body.palette-evening header.hero .hero-appname{ color:#9FD0A0 !important; }
body.palette-evening header.hero h1, body.palette-evening header.hero h1 .hl-line{ color:#F6EFE6 !important; }
body.palette-evening header.hero h1 .hero-rotate{ color:#9FD0A0 !important; }
body.palette-evening header.hero .hero-claim .hero-sub.hero-sub-play{ color:#F6EFE6; }
body.palette-evening header.hero .hero-claim .hero-sub.hero-desc{ color:#D5DCE6; }
body.palette-evening .hero-watch{ color:#F6EFE6; text-decoration-color:#9FD0A0; }
body.palette-evening header.hero .hero-claim .hero-act .hero-micro{ color:#AFC0D4 !important; }
/* the How Agent's blue (the pop-up card's light end, #a8c9dd), navy text: 8:1 */
body.palette-evening header.hero .hero-cta .btn{ background:#A8C9DD; color:#1A2B42; border-color:transparent; }
body.palette-evening header.hero .hero-cta .btn:hover{ background:#BFD8E6; color:#1A2B42; }
/* bring it all up: the picture a little smaller so the mission end shows above the fold */
body.palette-evening .hero-wide .ev-viz{ --vw:min(118%, calc((100vh - 200px) * 1.545)); }
@media (max-width:900px){ body.palette-evening .hero-wide .ev-viz{ --vw:100%; } }
body.palette-evening .ev-path{ stroke:#9FD0A0; }
body.palette-evening .ev-move{ fill:#9FD0A0; }
body.palette-evening .ev-vis{ fill:#F0A795; }
body.palette-evening .ev-mission{ fill:#F6EFE6; }
body.palette-evening .ev-lbl{ fill:#C5CEDA; }
body.palette-evening .ev-sat circle[fill="#1F3A5F"]{ fill:#F6EFE6; }
body.palette-evening .ev-sat circle[fill="#7EA17B"]{ fill:#9FD0A0; }
body.palette-evening .ev-sat circle[fill="#DE8E7A"]{ fill:#F0A795; }
body.palette-evening .ev-sat circle[fill="#AFC4D8"]{ fill:#A9C4E4; }

/* the welcome line under the hero line: smaller, the same coral italic */

/* ===== 2026-11-01 ?palette=dusk: the "Your turn" band's dusty blue at the top =====
   Alison: "what about this kind of colorway for the top of the homepage?"
   Preview only (server.py, never on production). Contrast on the blue
   (#B9CDE0 to #A9C0D6): navy 6.1 to 7.0; the carousel word #355233, 4.65
   to 5.35; the coral-family line #6E382D, 4.94 to 5.68; white on the
   button's green #4F724C, 5.46. With dusk on, the Your turn band turns sage
   so the blue is not used twice. */
body.palette-dusk header.hero{ background:linear-gradient(180deg,#B9CDE0 0%,#A9C0D6 100%);
  margin-top:calc(-1 * (max(13vh,110px) + 61px)) !important; padding-top:calc(max(13vh,110px) + 61px - 34px) !important; padding-bottom:clamp(30px,4vw,52px) !important; }
@media (max-width:760px){ body.palette-dusk header.hero{ margin-top:calc(-1 * (max(15vh,120px) + 61px)) !important; padding-top:calc(max(15vh,120px) + 61px - 24px) !important; } }
body.palette-dusk .hero-wide .ev-viz{ --vw:min(118%, calc((100vh - 200px) * 1.545)); }
@media (max-width:900px){ body.palette-dusk .hero-wide .ev-viz{ --vw:100%; } }
body.palette-dusk header.hero .hero-appname{ color:#355233 !important; }
body.palette-dusk header.hero h1, body.palette-dusk header.hero h1 .hl-line{ color:#1F3A5F !important; }
body.palette-dusk header.hero h1 .hero-rotate{ color:#355233 !important; }
body.palette-dusk header.hero .hero-claim .hero-sub.hero-sub-play{ color:#1F3A5F; }
body.palette-dusk header.hero .hero-claim .hero-sub.hero-desc{ color:#1F3A5F; }
body.palette-dusk header.hero .hero-claim .hero-act .hero-micro{ color:#1F3A5F !important; }
body.palette-dusk header.hero .hero-cta .btn{ background:#4F724C; color:#fff; border-color:transparent; }
body.palette-dusk header.hero .hero-cta .btn:hover{ background:#3F5E39; color:#fff; }
body.palette-dusk .ev-path{ stroke:#1F3A5F; }
body.palette-dusk .ev-move{ fill:#FCFAF5; stroke:#4F724C; stroke-width:3px; }
body.palette-dusk .ev-vis{ fill:#E9A08F; }
body.palette-dusk .ev-mission{ fill:#1F3A5F; }
body.palette-dusk .ev-lbl{ fill:#1F3A5F; }
body.palette-dusk .ev-sat circle[fill="#AFC4D8"]{ fill:#FCFAF5; }
body.palette-dusk .ev-sat circle[fill="#7EA17B"]{ fill:#4F724C; }
body.palette-dusk .tryhow{ background:linear-gradient(180deg,#E4EDDF 0%,#D8E6D2 100%); }

/* ===== 2026-11-01 ?palette=white: "what would white look like with a sage green outline?" =====
   Preview only (never on production). The hero on white under the real
   waves, its content held in one large panel with a 2px sage outline
   (#8DB88A) and the desk's radius; the three cards and the desk frame echo
   the outline so it reads as one system. Button: navy, which reads best on
   white (deep sage was close but softer). The coral line #C46A55 is 3.9:1 on
   white, which passes for its large italic size. */
body.palette-white header.hero{ background:#FFFFFF; margin-top:calc(-1 * (max(13vh,110px) + 61px)) !important; padding-top:calc(max(13vh,110px) + 61px - 30px) !important; padding-bottom:clamp(30px,4vw,52px) !important; }
@media (max-width:760px){ body.palette-white header.hero{ margin-top:calc(-1 * (max(15vh,120px) + 61px)) !important; padding-top:calc(max(15vh,120px) + 61px - 20px) !important; } }
body.palette-white .hero-row{ border:2px solid #8DB88A; border-radius:28px; padding:clamp(18px,2.4vw,34px) clamp(18px,2.4vw,36px); margin:0 clamp(12px,2vw,36px); max-width:1500px; }
@media (min-width:1564px){ body.palette-white .hero-row{ margin:0 auto; } }
body.palette-white .hero-wide .ev-viz{ --vw:min(100%, calc((100vh - 260px) * 1.545)); margin:0 0 0 calc(100% - var(--vw)); }
@media (max-width:900px){ body.palette-white .hero-wide .ev-viz{ --vw:100%; margin:0 auto; } }
body.palette-white header.hero .hero-cta .btn{ background:#1F3A5F; color:#fff; border-color:transparent; }
body.palette-white header.hero .hero-cta .btn:hover{ background:#16283F; color:#fff; }
body.palette-white header.hero .hero-claim .hero-act .hero-micro{ color:#1F3A5F !important; }
body.palette-white .dk-desk{ box-shadow:inset 0 0 0 2px #8DB88A; }

/* 2026-11-01 Alison: "move it all up a bit, that is a lot of white space."
   The whole hero (text and picture together) sits closer under the waves:
   the eyebrow about 60 to 70px below them at 1440, YOUR VISION still clear
   of the wave, mission still above the fold. */
@media (min-width:901px){ header.hero .hero-row{ margin-top:-86px; } body.palette-evening header.hero .hero-row, body.palette-dusk header.hero .hero-row{ margin-top:-36px; } body.palette-white header.hero .hero-row{ margin-top:-40px; } }
@media (max-width:900px){ header.hero .hero-row{ margin-top:-30px; } body.palette-evening header.hero .hero-row, body.palette-dusk header.hero .hero-row{ margin-top:-10px; } body.palette-white header.hero .hero-row{ margin-top:-14px; } }

/* ===== LIVE PHONES (2026-11-01, Alison): three small scenes in HTML, Kate's
   demo content only. COMPLETE AT REST: the markup is each scene's last frame,
   so without script, or with reduced motion, every phone shows its finished
   picture. home-how-play.js plays them only while they are on screen. Each
   scene is drawn on a 360x720 canvas and scaled to the frame. ===== */
.ph-screen{ position:relative; aspect-ratio:1/2; border-radius:26px; overflow:hidden; background:#fbfaf7; }
.pz-canvas{ position:absolute; left:0; top:0; width:360px; height:720px; transform-origin:0 0; transform:scale(.65); font-family:'Montserrat',-apple-system,system-ui,sans-serif; text-align:left; color:#1f2d3a; }
.pz-canvas{ transition:opacity .6s ease; }
.pz.fading .pz-canvas{ opacity:0; }
.pv{ transition:opacity .45s ease, transform .45s ease; }
.pz.playing .pv:not(.on){ opacity:0; transform:translateY(8px); }
.pz.pz-reset *, .pz.pz-reset .pz-canvas{ transition:none !important; }
.pz-top{ position:relative; height:70px; padding:16px 18px 0; display:flex; justify-content:space-between; align-items:flex-start; background:linear-gradient(100deg,#E9A08E 0%,#EFB5A1 60%,#F3C6B4 100%); color:#fff; font:600 14px 'Montserrat',sans-serif; }
.pz-top::after{ content:''; position:absolute; left:-8%; right:-8%; bottom:-16px; height:30px; border-radius:0 0 50% 50% / 0 0 100% 100%; background:linear-gradient(90deg,#AFC4D8 0%,#B9D3B0 100%); }
.pz-body{ padding:40px 24px 0; }
.pz-label{ margin:20px 0 8px; font:500 16px 'Montserrat',sans-serif; color:#1F3A5F; }
.pz-field{ background:#fff; border:1px solid #e3ddd3; border-radius:12px; padding:13px 15px; font:17px/1.45 'Montserrat',sans-serif; color:#1f2d3a; transition:border-color .3s ease, box-shadow .3s ease; }
.pz-note{ min-height:120px; }
.pz-title{ min-height:51px; }
.pz-field.typing{ border-color:#9fc3d6; box-shadow:0 0 0 3px rgba(159,195,214,.3); }
.pz-caret{ display:none; width:2px; height:1.1em; margin-left:1px; vertical-align:-3px; background:#1f2d3a; }
.pz-field.typing .pz-caret{ display:inline-block; animation:pzBlink 1s steps(1) infinite; }
@keyframes pzBlink{ 50%{ opacity:0; } }
.pz-save{ display:inline-flex; margin:26px 0 0; padding:13px 24px; border-radius:999px; background:#a9cba0; color:#13263a; font:700 15px 'Montserrat',sans-serif; letter-spacing:.02em; }
.pz-save.pulse{ animation:pzPulse .8s ease-in-out 2; }
@keyframes pzPulse{ 50%{ transform:scale(1.07); box-shadow:0 0 0 8px rgba(169,203,160,.35); } }
/* 2026-11-03: the memory How used, shown under its answer (a compact story card, as in the app) */
.pz .pz-hbox .pz-mem{ align-self:stretch; margin:14px 0 0; padding:11px 14px 12px; background:#fff; border:1px solid #e6dfd3; border-left:3px solid #7EA17B; border-radius:12px; box-shadow:0 2px 10px rgba(31,45,58,.06); display:flex; flex-direction:column; gap:4px; }
.pz .pz-hbox .pz-mem-k{ font:600 11px 'Montserrat',sans-serif; letter-spacing:.12em; text-transform:uppercase; color:#4f7a4b; }
.pz .pz-hbox .pz-mem-t{ font:16px/1.4 var(--font-serif, Georgia, serif); color:#1f2d3a; }
.pz .pz-hbox .pz-chip{ align-self:flex-start; margin:10px 0 0; padding:5px 12px; border-radius:999px; background:#EEF4EC; color:#4f7a4b; font:600 13px 'Montserrat',sans-serif; }
.pz .pz-memref{ text-decoration:none; text-decoration-color:transparent; text-decoration-thickness:2px; text-underline-offset:3px; transition:text-decoration-color .6s ease; }
.pz:not(.playing) .pz-memref, .pz .pz-memref.on{ text-decoration-color:#9CC09A; }
.pz.playing .pz-mem:not(.on){ transform:translateY(14px); }
.pz-svg .pz-cnt.tick .pz-n{ animation:pzTick .6s ease; }
@keyframes pzTick{ 0%{ font-size:9px; } 40%{ font-size:12px; } 100%{ font-size:9px; } }
.pz-saved{ margin:18px 0 0; display:flex; align-items:center; gap:10px; font:600 16px 'Montserrat',sans-serif; color:#4f7a4b; }
.pz-check{ display:inline-flex; width:26px; height:26px; border-radius:50%; align-items:center; justify-content:center; background:#4f7a4b; color:#fff; font-size:14px; }
.pz .pz-hbox.how-convo-card{ width:360px; height:720px; border-radius:0; box-shadow:none; }
.pz .pz-hbox .how-convo-header{ padding:30px 10px 8px 18px; }
.pz .pz-hbox .how-convo-title-row{ gap:0; }
.pz .pz-hbox .hc-icon-btn{ width:30px; }
.pz .pz-hbox .hc-new-btn{ padding:0 .35rem; }
.pz .pz-hbox .how-convo-thread{ flex:1; padding:20px 18px 12px; justify-content:flex-start; }
.pz .pz-hbox .hcm{ font-size:17px; }
.pz .pz-hbox .how-convo-save-btn{ padding:0 7px; letter-spacing:0; }
.pz .pz-hbox .how-convo-save-story-btn{ padding:0 12px; }
.pz .pz-hbox .how-convo-type-row{ margin:10px 14px 0; }
.pz .pz-hbox .how-convo-autosaved{ margin:2px 18px 16px; }
.pz-h{ margin:6px 0 0; text-align:center; font:500 32px/1.1 var(--font-serif); color:#6e9b62; }
.pz-kick{ margin:4px 0 0; text-align:center; font:600 12px 'Montserrat',sans-serif; letter-spacing:.2em; text-transform:uppercase; color:#8fb0cc; }
.pz-svg{ display:block; width:312px; height:auto; margin:24px 0 0; overflow:visible; }
.pz-svg text{ font:700 13px 'Montserrat',sans-serif; fill:#fff; }
.pz-svg .pz-lab{ font:700 8.5px 'Montserrat',sans-serif; letter-spacing:.08em; fill:#1F3A5F; }
.pz-svg .pz-cnt{ font:500 9px 'Montserrat',sans-serif; fill:#6b7680; }
.pz-line{ stroke-dasharray:100; stroke-dashoffset:0; }
.pz .hcm-thinking .lwh-tm{ width:48px; height:48px; color:#6c95b3; }
.pz-km, .pz-st{ transition:transform 1.1s cubic-bezier(.5,.03,.2,1), opacity .5s ease; }
.pz.playing .pz-line{ stroke-dashoffset:100; }
.pz.playing .pz-line.on{ stroke-dashoffset:0; transition:stroke-dashoffset 1.7s cubic-bezier(.35,.1,.45,1); }
.pz.playing .pz-km:not(.on){ transform:translate(-30px,-80px); opacity:0; }
.pz.playing .pz-st:not(.on){ transform:translate(var(--sx),var(--sy)); opacity:0; }
.ph-item figcaption{ font-family:var(--font-serif); font-size:16px; color:var(--navy); margin:14px auto 0; max-width:22ch; text-wrap:balance; }
.ph-dots{ display:none; }
@media (max-width:760px){
  .ph-row{ justify-content:flex-start; gap:0; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
  .ph-row::-webkit-scrollbar{ display:none; }
  .ph-item{ flex:0 0 100%; scroll-snap-align:center; padding:16px 0 4px; }
  .ph-item .ph-frame{ width:min(250px,70vw); margin:0 auto; }
  .ph-mid{ transform:none; }
  .ph-dots{ display:flex; justify-content:center; gap:10px; margin:12px 0 0; }
  .ph-dots button{ width:10px; height:10px; padding:0; border-radius:50%; border:1px solid var(--navy); background:transparent; cursor:pointer; }
  .ph-dots button[aria-selected="true"]{ background:var(--navy); }
  /* a 10px dot is a small target; the hit area is wider than it looks */
  .ph-dots button{ box-sizing:content-box; border-width:1px; outline-offset:6px; }
}
.hw-tools{ grid-template-columns:1fr; }
.hw-cells .hab-cells{ grid-template-columns:repeat(4,1fr); }
@media (max-width:760px){ .hw-cells .hab-cells{ grid-template-columns:1fr 1fr; } }

/* ===== THE HOW BOX (2026-11-01, Alison: the reference for every How on the
   homepage): the real How Agent pop-up as she uses it. The classes are the
   app's own (how-convo-*, hcm-*); the values are copied from static/style.css
   because this page does not load it, and tests/test_the_homepage_makes_the_case.py
   renders the same markup under static/style.css and compares, so the two
   cannot drift apart. Controls here are drawn, not live. ===== */
.hbox.how-convo-card{ background:linear-gradient(165deg,#a8c9dd 0%,#6c95b3 100%); border-radius:22px; box-shadow:0 20px 60px rgba(45,72,96,.24); color:#fff; overflow:hidden; border:none; display:flex; flex-direction:column; font-family:'Montserrat',-apple-system,system-ui,sans-serif; text-shadow:none; text-align:left; }
.hbox .how-convo-header{ padding:20px 24px 12px; }
.hbox .how-convo-title-row{ display:flex; align-items:center; gap:.85rem; }
.hbox .how-convo-eyebrow{ flex:1; font-family:'Montserrat',sans-serif; font-size:.7rem; font-weight:800; letter-spacing:.16em; color:#6e9b62; }
.hbox .hc-icon-btn{ display:inline-flex; width:36px; height:36px; align-items:center; justify-content:center; border-radius:6px; color:#13263a; flex:0 0 auto; }
/* The app's chic header (2026-11-20): HOW, + New as sage words, ⋯, ✕. */
.hbox .hc-new-btn{ display:inline-flex; align-items:center; height:36px; padding:0 .6rem; margin-left:auto; border-radius:6px; color:#2A5227; font:600 .8rem 'Montserrat',sans-serif; white-space:nowrap; }
.hbox .how-convo-thread{ background:#fbfaf7; margin:12px 0 0; padding:22.4px 32px 12px; display:flex; flex-direction:column; gap:18.4px; }
.hbox .hcm{ margin:0; font-family:'Montserrat',Inter,system-ui,sans-serif; font-size:16px; text-shadow:none; }
.hbox .hcm-user{ align-self:flex-end; max-width:min(80%,60ch); background:#efeee9; color:#1f2d3a; border-radius:18px; padding:.6rem 1rem; line-height:1.5; }
.hbox .hcm-agent{ align-self:flex-start; max-width:68ch; background:transparent; color:#1f2d3a; padding:0; border-radius:0; line-height:1.6; }
.hbox .hcm-agent em{ font-style:normal; color:#4f7a4b; font-weight:600; }
.hbox .hcm-thinking{ align-self:flex-start; color:#768898; background:transparent; }
.hbox .lwh-thinking{ display:inline-flex; align-items:center; gap:.5em; }
.hbox .how-convo-type-row{ display:flex; align-items:flex-end; background:#fff; border:1px solid rgba(31,45,58,.12); border-radius:26px; margin:12px 20px 0; padding:0 4.8px 0 0; }
.hbox .how-convo-attach, .hbox .how-convo-type-send, .hbox .how-convo-mic{ display:inline-flex; width:44px; height:44px; flex:0 0 auto; align-items:center; justify-content:center; border-radius:50%; }
.hbox .how-convo-attach{ color:#6b7680; margin-left:4.8px; }
.hbox .how-convo-type-send{ color:#1f2d3a; }
.hbox .how-convo-mic{ color:#4f7a4b; }
/* One button on the right, as in the app (2026-11-20): the drawn box is empty, so it shows the mic alone. Its send,
   when words are there, is the app's green circle with a white arrow; the drawn one is kept for the look's probe. */
.hbox span.how-convo-type-send{ display:none; color:#fff; }
.hbox .hb-input{ flex:1; min-width:0; min-height:44px; padding:12px 8px 12px 4.8px; color:#1f2d3a; font-size:16px; line-height:23.2px; }
.hbox .how-convo-mic-row{ display:flex; align-items:center; gap:8px; padding:3.2px 17.6px 0 25.6px; }
.hbox .how-convo-status{ flex:1; color:#13263a; font:500 11.84px 'Montserrat',sans-serif; letter-spacing:.2368px; }
.hbox .how-convo-continuous-btn{ display:inline-flex; width:44px; height:44px; align-items:center; justify-content:center; color:#13263a; }
.hbox .how-convo-footer{ display:flex; align-items:center; gap:2.4px; padding:1.6px 12.8px 7.2px 24px; }
.hbox .how-convo-save-btn{ position:relative; isolation:isolate; display:inline-flex; align-items:center; height:44px; padding:0 11.2px; color:#13263a; font:600 12.16px 'Montserrat',sans-serif; letter-spacing:.3648px; white-space:nowrap; }
.hbox .how-convo-save-story-btn{ padding:0 15.2px; }
/* No pill since 2026-11-20 (the app's Save as story is quiet words); the colour stays declared, as the app's does. */
.hbox .how-convo-save-story-btn::before{ content:none; background:#a9cba0; }
.howplay .hbox .how-convo-thread{ min-height:400px; }
.hbox .how-convo-eyebrow{ white-space:nowrap; }
.hbox .how-convo-autosaved{ margin:0 0 0 auto; color:#13263a; font-size:11.52px; line-height:1.7; }
.hbox .how-convo-status:empty{ display:none; }
.hbox .how-convo-mic-row{ justify-content:flex-end; }
@media (max-width:600px){ .try-row textarea.hb-input{ min-height:120px; font-size:15px; } .hbox .how-convo-header{ padding:16px 12px 10px 18px; } .hbox .hc-new-btn{ padding:0 .4rem; } .hbox .how-convo-thread{ padding:1rem 1.15rem .75rem; } .hbox .hcm{ font-size:15px; } .hbox .hc-icon-btn{ width:28px; } .hbox .how-convo-title-row{ gap:.15rem; } .hbox .how-convo-save-btn{ padding:0 6px; letter-spacing:0; } .hbox .how-convo-save-story-btn{ padding:0 10px; } }

/* ===== LESS SPACE, LESS CREAM (2026-11-01, Alison: "a lot of space and a lot
   of cream"). The bridge line sits on its own soft band, a light coral to sage
   to blue wash, so it reads apart from the solid sage Key Move band further
   down. On wide screens no stretch of empty page runs past about 96px. ===== */
.bridge-band{ position:relative; width:100vw; margin-left:calc(50% - 50vw); box-sizing:border-box; padding:24px 20px;
  background:linear-gradient(180deg, #E4EDF5 0%, #D9E6F1 100%); }
/* 2026-11-02 Alison: "a better color here." The coral-sage-blue wash read
   beige-grey; it is now one soft dusty blue from the waves, lighter than
   Your turn's band (#B9CDE0 to #9DB3CB) and nothing like the sage Key Move band. */
.bridge-band .bridge-line{ margin:0 auto; }
@media (min-width:901px){
  body:not(.line-short) .hero{ padding-bottom:0; }
  .bridge-band{ margin-top:0; padding:26px 20px; }
  .bridge-band + .dk{ margin-top:14px; }
  .phones{ margin-top:22px; }
  .howplay{ margin-top:40px !important; padding-top:40px; padding-bottom:28px; }
  .voices{ padding-top:30px !important; padding-bottom:0; }
  .tryhow{ margin-top:12px !important; padding-top:26px; padding-bottom:24px; }
  .outcomes{ margin-top:24px !important; padding-top:28px; padding-bottom:24px; }
  .hab-zone{ margin-top:24px !important; padding-bottom:14px; }
  .hab-ready{ margin-top:4px !important; padding-top:20px !important; padding-bottom:18px !important; }
  .howworks{ margin-top:20px !important; }
  .km-band{ padding-top:32px; padding-bottom:48px; }
  .hw-ask{ margin-top:22px; }
  .closing{ padding-top:32px; padding-bottom:24px; }
}

/* ===== THE LINE FOLLOWS YOU (2026-11-01) — static/home-follow-line.js ===== */
/* 2026-11-02, later: ON TOP again (under the nav), because behind the bands it
   vanished for whole screens. Its route never touches words, controls or cards. */
#followLine{ position:absolute; left:0; top:0; z-index:50; pointer-events:none; overflow:visible; display:block; }
#followLine .fl-light{ stroke:#B9D9B4; }
body.palette-evening #followLine .fl-light, body.palette-dusk #followLine .fl-light{ stroke:#CFE3CB; }
/* 2026-11-02 Alison could not see it following her: deeper sage, 3px, full opacity.
   Later the same day: "this could be more bold, better color" for the hero
   line; both lines are now the brand sage #7FA07C (evening #9FD0A0, dusk navy),
   so they read as one line. */
.fl-path{ stroke:#7FA07C; stroke-width:3; stroke-linecap:round; opacity:1; stroke-dasharray:1000; stroke-dashoffset:1000; }
.fl-dot{ fill:#7EA17B; opacity:0; transition:opacity .5s ease; }
/* 2026-11-03 Alison: "what if the dot was the PERIOD from 'purpose.' and then
   it followed down". The bridge sentence writes itself a word at a time; its
   last full stop is the follow line's start dot (an svg circle laid exactly
   on the period, which stays in the text, transparent, so the words wrap as
   they always did). The dot keeps the sentence's terracotta, since it is the
   sentence's full stop; the line leaves it in its own sage. */
/* off the page, not merely clipped: clipped text still lays out at full width where it sits */
.bridge-line .bw-sr{ position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }
.bridge-line .bw{ display:inline-block; opacity:0; transform:translateY(.32em); transition:opacity .45s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.bridge-line .bw.on{ opacity:1; transform:none; }
.bridge-line .bw-stop{ color:transparent; }
.bridge-line .bw-stop.real{ color:inherit; }   /* no line to start: a plain full stop */
.bridge-line .bw-base{ display:inline-block; width:0; height:0; vertical-align:baseline; }
.fl-start{ fill:#974D3A; opacity:0; transform-box:fill-box; transform-origin:center; transition:opacity .35s ease; }
.fl-start.shown{ opacity:1; animation:flStartPulse .9s ease-in-out 2; }
.fl-start.band{ fill:#7EA17B; }   /* the band dot, when there is no period to start from */
@keyframes flStartPulse{ 0%,100%{ transform:scale(1); } 45%{ transform:scale(1.7); } }
body.palette-evening .fl-path{ stroke:#9FD0A0; }
body.palette-dusk .fl-path{ stroke:#1F3A5F; }
@media (max-width:699px){ .fl-path{ stroke-width:2; } .fl-dot{ r:4px; } }
@media (prefers-reduced-motion:reduce){ .fl-path{ stroke-dashoffset:0; } .fl-dot{ opacity:1; transition:none; } .fl-start, .fl-start.shown{ animation:none; transition:none; }
  .bridge-line .bw{ opacity:1; transform:none; transition:none; } }

/* 2026-11-02 Alison: "the line isn't following me." At 1280 the desk ran to
   20px from each edge, so the follow line had no margin to pass and stayed
   hidden. On laptop widths the wide sections now leave it at least 60px. */
@media (min-width:901px){
  .dk{ max-width:min(1240px, calc(100vw - 120px)); }
  .hab-ready{ max-width:min(1080px, calc(100vw - 120px)); }
}

/* 2026-11-02 Alison: "The purpose line needs to be a different color."
   Navy, then the second sentence in a deep terracotta. The page's hero coral
   (#C46A55) and #B5705E measure about 3.3:1 on this band, under 4.5:1, so
   the terracotta is deepened to #A0533F (4.75:1 at the band's darkest stop;
   navy is 9.9:1). Contrast is checked in tests/test_the_homepage_makes_the_case.py. */
.bridge-band .bridge-line{ color:#1F3A5F; }
.bridge-band .bridge-line b{ color:#974D3A; }   /* 2026-11-02: a shade deeper on the blue band, 4.8:1 at its darkest (was #A0533F, 4.35:1 there) */

/* 2026-11-02 Alison: "YOUR STORIES is kind of floating." The label starts
   among the scattered stories and glides with them, ending as a caption just
   above-left of the first Key Move's cluster. Its resting place is in the
   markup, so with reduced motion it simply sits there. */
@media (prefers-reduced-motion:no-preference){
  .ev-lbl-stories{ animation:evLabel 1.6s cubic-bezier(.45,0,.3,1) var(--ld,3.6s) 1 both; }
}
@keyframes evLabel{ from{ transform:translate(var(--lx),var(--ly)); } to{ transform:translate(0,0); } }

/* ===== IN THEIR WORDS, ONE CARD THAT TURNS (2026-11-02) =====
   The slides share one grid cell, so the card is as tall as the longest quote
   and nothing below it moves when it turns. Entering, a quote rises a little
   as it fades in; leaving, it keeps rising as it fades out. */
.vcarousel{ max-width:760px; margin:0 auto; display:flex; flex-direction:column; align-items:center; }
/* 2026-11-02 Alison, first: "a more fun color... have it like a circle";
   then: "this can be rectangle cards that fade to the next one." Each quote
   is a centred rounded card in its own soft tone, sized to its words; every
   7s the next one crossfades in. No drift, no roll. */
.vslides{ display:grid; justify-items:center; width:100%; }
.vcarousel .vcard.vslide{ grid-area:1 / 1; background:none; border:0; box-shadow:none; padding:0; text-align:center; width:100%;
  display:flex; justify-content:center; align-items:stretch;
  opacity:0; visibility:hidden; transform:none; transition:opacity 1.1s ease, visibility 0s linear 1.1s; }
.vcarousel .vcard.vslide.is-on{ opacity:1; visibility:visible; transition:opacity 1.1s ease, visibility 0s; }
.vcarousel .vcard.vslide.was{ transform:none; }
.vfloat{ box-sizing:border-box; width:100%; max-width:760px; border-radius:20px; padding:clamp(26px,3vw,40px) clamp(22px,4vw,48px);
  box-shadow:0 10px 30px rgba(31,58,95,.08); border:1px solid rgba(31,58,95,.06);
  display:flex; flex-direction:column; justify-content:center; }
/* ONE CARD SIZE FOR EVERY QUOTE (2026-11-19). Before, each card was "sized to its words" and only the shared grid
   cell held the tallest, so nothing below moved but the card itself grew and shrank as it turned. Fine for two
   short quotes; David's is three times Karl's, so every card now stretches to the tallest and its words sit in
   the middle. */
.vfloat-y{ display:flex; flex-direction:column; align-items:center; gap:16px; }
.vt-sage .vfloat{ background:linear-gradient(135deg, #E3EFDF 0%, #CFE3CB 55%, #C9DCE8 100%); }
.vt-coral .vfloat{ background:linear-gradient(135deg, #FCEBDF 0%, #F8D9C9 55%, #F5CDBC 100%); }
/* David's card (2026-11-19): the soft blue the sage card already fades into, as its own tone. */
.vt-sky .vfloat{ background:linear-gradient(135deg, #E6EEF6 0%, #D5E3F0 55%, #DCE0F0 100%); }
.vcarousel .vcard .vquote{ font-size:clamp(17px,1.4vw,20px); line-height:1.45; margin:0; color:#1F3A5F; }
.vcarousel .vcard .vwho{ justify-content:center; text-align:left; }
.vcarousel .vcard .vrole{ color:#2D4860; }

.vdots{ display:flex; justify-content:center; gap:14px; margin:18px 0 0; }
.vdots button{ box-sizing:content-box; width:9px; height:9px; padding:6px; margin:-6px; border:0; border-radius:50%; cursor:pointer;
  background:var(--navy); background-clip:content-box; opacity:.25; transition:opacity .3s ease; }
.vdots button[aria-selected="true"]{ opacity:.9; }
.vdots button:focus-visible{ outline:2px solid var(--navy); outline-offset:2px; }
@media (prefers-reduced-motion:reduce){ .vcarousel .vcard.vslide, .vcarousel .vcard.vslide.is-on{ transition:none; transform:none; } }

/* Your turn's honeypot (2026-11-02): visually hidden, never display:none, so a
   bot filling every field fills it and a person never meets it. Clipped in
   place rather than pushed off the side, where it would widen the page. */
.try-hp{ position:absolute !important; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0; }

/* The team band (Alison, 2026-11-05). The blue box under the green one, which she loved. */
.teams{ max-width:1040px; margin:clamp(34px,4.5vw,56px) auto 0; padding:clamp(30px,4vw,52px) clamp(18px,3vw,44px); border-radius:24px; text-align:center; background:linear-gradient(180deg,#B9CDE0 0%,#9DB3CB 100%); }
.teams .hp-eyebrow{ color:#1F3A5F; }
.teams .hp-head em{ color:#1F3A5F; font-style:italic; display:block; }
.teams .hp-sub{ color:#2D4860; }
.tm-stage{ display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:clamp(16px,2.4vw,28px); align-items:stretch; margin-top:clamp(20px,3vw,32px); text-align:left; }
.tm-map{ display:flex; flex-direction:column; justify-content:center; background:#FBFAF6; border-radius:18px; padding:clamp(10px,1.6vw,20px) clamp(8px,1.4vw,16px); box-shadow:0 12px 34px rgba(31,58,95,.14); min-width:0; }
.tm-map svg{ display:block; width:100%; height:auto; }
.tm-map text{ font-family:'Montserrat','Poppins',sans-serif; font-size:13px; font-weight:700; letter-spacing:.08em; fill:#1F3A5F; }
.tm-map .mv{ font-size:20px; fill:#fff; }
.tm-who{ display:flex; justify-content:center; gap:18px; list-style:none; margin:8px 0 2px; padding:0; font-size:13.5px; color:#2D4860; }
.tm-who li{ display:flex; align-items:center; gap:6px; }
.teams i{ display:inline-block; flex:none; width:10px; height:10px; border-radius:50%; }
.teams i.tm-k{ background:#1F3A5F; } .teams i.tm-r{ background:#D0907C; } .teams i.tm-m{ background:#7EA17B; }
.tm-beats{ display:grid; gap:10px; list-style:none; margin:0; padding:0; min-width:0; }
.tm-beat{ display:grid; align-content:center; gap:4px; background:#fff; border-radius:14px; padding:12px 16px; box-shadow:0 6px 18px rgba(31,58,95,.1); }
.tm-beat b{ display:flex; align-items:center; gap:7px; font-family:'Montserrat','Poppins',sans-serif; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#1F3A5F; }
.tm-beat span{ font-size:15.5px; line-height:1.4; color:#2C2C2A; }
.tm-beat small{ font-size:12.5px; color:#4F6B4C; font-weight:500; }
.tm-beat.tm-last{ background:#1F3A5F; }
.tm-beat.tm-last span{ font-family:'Fraunces',Georgia,serif; font-size:19px; color:#fff; }
.tm-private{ margin:20px auto 0; font-size:16px; color:#1F3A5F; max-width:40em; }
.tm-go{ margin:10px 0 0; } .tm-go a{ color:#1F3A5F; font-weight:600; text-decoration:none; border-bottom:1px solid #1F3A5F; }
.tm-note{ margin:12px 0 0; font-size:12.5px; color:#2D4860; }
@media (max-width:760px){ .tm-stage{ grid-template-columns:1fr; } .tm-map text.km-label{ font-size:22px; letter-spacing:.02em; } }
.teams.tm-wait .tm-dot,.teams.tm-wait .tm-beat{ opacity:0; }
.teams.tm-play .tm-dot{ animation:tmDot .7s cubic-bezier(.22,.61,.36,1) both; }
.teams.tm-play .tm-rosa{ animation-delay:.3s; } .teams.tm-play .tm-marcus{ animation-delay:1.2s; } .teams.tm-play .tm-kate{ animation-delay:2.1s; }
.teams.tm-play .tm-beat{ animation:tmBeat .55s ease both; }
.teams.tm-play .tm-beat:nth-child(1){ animation-delay:.3s; } .teams.tm-play .tm-beat:nth-child(2){ animation-delay:1.2s; } .teams.tm-play .tm-beat:nth-child(3){ animation-delay:2.1s; } .teams.tm-play .tm-beat:nth-child(4){ animation-delay:3s; }
@keyframes tmDot{ from{ opacity:0; transform:translateY(-34px); } to{ opacity:1; transform:none; } }
@keyframes tmBeat{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
/* Phones first, spaced to the page's own rules (2026-11-05): the bridge sentence sits close
   above the phones, and Teams leaves no stretch of empty page over 100px. */
.bridge-band { padding-bottom: 14px; }
section.teams { margin-top: 24px; margin-bottom: 24px; padding-top: 32px; padding-bottom: 8px; }
section.teams + section.hab, section.teams + .hab { margin-top: 0; }
/* "Try free for 14 days" hugs its words, so its box never reaches the picture beside it. */
header.hero .hero-left p.hero-micro { width: fit-content !important; max-width: max-content; }

/* For teams, and Projects (2026-11-05): a second card in the blue band */
.tm-projects{ display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:clamp(16px,2.4vw,28px); align-items:center; margin-top:clamp(16px,2vw,24px); background:#FBFAF6; border-radius:18px; padding:clamp(18px,2.4vw,28px); text-align:left; }
.tm-proj-eyebrow{ margin:0 0 6px; font-family:'Montserrat','Poppins',sans-serif; font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#6E9A6B; }
.tm-proj-head{ margin:0 0 8px; font-family:'Fraunces','Cormorant Garamond',Georgia,serif; font-size:clamp(22px,2.2vw,28px); line-height:1.2; color:#1F3A5F; }
.tm-proj-sub{ margin:0; color:#2D4860; font-size:15px; line-height:1.55; }
.tm-proj-pic svg, .tm-proj-pic img{ display:block; width:100%; height:auto; }
.tm-proj-pic .tp-m{ font-family:"Montserrat","Poppins",sans-serif; font-size:22px; fill:#7A8794; }
.tm-proj-pic .tp-l{ font-family:"Montserrat","Poppins",sans-serif; font-size:24px; font-weight:700; fill:#1F3A5F; }
.tm-proj-pic .tp-n{ font-family:"Montserrat","Poppins",sans-serif; font-size:21px; fill:#2D4860; }
@media (max-width:760px){ .tm-projects{ grid-template-columns:1fr; } }

/* David on Projects (2026-11-17) was a section of its own here (.dq); since 2026-11-19 he is the third card in
   "In their words" above, so its styles came out with it. */
