/* Homepage: the approved r4 "decision desk" (ported unchanged; shared tokens, header and footer live in site.css). */
/* Hero */
.hero{max-width:1440px;margin:0 auto;padding:0 48px 20px;display:grid;grid-template-columns:minmax(0,1fr) 800px;gap:40px;align-items:center}
.hero-copy{display:flex;flex-direction:column;gap:22px;max-width:500px}
h1{font-family:var(--serif);font-weight:500;font-size:clamp(42px,4.6vw,68px);line-height:.98;letter-spacing:-.025em;color:var(--forest)}
h1 em{display:block;font-style:italic;color:var(--ink)}
.lede{font-size:17px;color:var(--ink-2);max-width:42ch}
.steps{list-style:none;padding:0;display:grid;gap:2px;border-top:1px solid var(--line)}
.steps li{position:relative;display:flex;align-items:center;gap:12px;padding:9px 10px;font-size:15px;font-weight:500;border-bottom:1px solid var(--line);isolation:isolate}
.step-hl{position:absolute;inset:3px 0;z-index:-1;background:var(--sage);border-radius:8px;opacity:0}
.step-no{flex:none;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--forest);color:var(--on-forest);font-size:12px;font-weight:700}
.hero-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.avail{font-size:13.5px;color:var(--muted);line-height:1.4}
.motion-controls{display:flex;gap:8px}
.motion-controls[hidden]{display:none}
.ctl{font:inherit;font-size:13px;font-weight:600;color:var(--ink-2);background:transparent;border:1px solid var(--line-2);border-radius:999px;padding:5px 12px;cursor:pointer;transition:transform 160ms var(--ease-out),background-color 160ms ease}
.ctl:active{transform:scale(.97)}
@media (hover:hover) and (pointer:fine){.ctl:hover{background:var(--sage)}}

/* Desk stage: a fixed coordinate space (800x736 landscape, 400xH portrait) that script.js scales to fit. */
.desk{margin:0;position:relative;width:100%;max-width:800px}
.story .desk{overflow:clip;aspect-ratio:800/704}
@media (max-width:639px){.story .desk{aspect-ratio:400/890}}
.story .desk-scene{position:absolute;left:50%;top:0;margin-left:-400px;transform-origin:50% 0}
.story .desk-scene.is-port{margin-left:-200px}
.desk-scene{position:relative;width:800px;height:704px;border-radius:28px;background-color:var(--desk);
  background-image:linear-gradient(rgba(27,42,34,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(27,42,34,.045) 1px,transparent 1px);
  background-size:24px 24px;box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}

/* Browser tabs (only shown by the story) */
.desk-layer{position:absolute;inset:0}
.tab{display:none;position:absolute;width:270px;height:160px;background:var(--cream);border:1px solid var(--line-2);border-radius:14px;box-shadow:var(--shadow);transform-origin:50% 0}
.story .tab{display:block}
.story .slot{display:grid}
/* Until script.js has built the timeline, hide the story desk; index.html drops .story after 3s if it never does. */
.story:not(.story-ready) .desk-layer{opacity:0}
.story-reduced .step-hl{transition:opacity 320ms ease}
.step-hl.is-current{opacity:1}
.tab-1{left:16px;top:24px;z-index:6;transform:rotate(-2.5deg)}
.tab-2{left:262px;top:44px;z-index:5;transform:rotate(1.5deg)}
.tab-3{left:508px;top:28px;z-index:4;transform:rotate(-1deg)}
.tab-bar{display:flex;align-items:center;gap:8px;height:34px;padding:0 10px;background:#ebe8df;border-bottom:1px solid var(--line);border-radius:13px 13px 0 0;font-size:12px;color:var(--muted)}
.tab-bar span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fav{display:grid;place-items:center;width:16px;height:16px;border-radius:4px;background:var(--ink-2);color:var(--cream);font-style:normal;font-size:10px;font-weight:700}
.tab-x{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;font-size:16px;font-weight:400;line-height:1;color:var(--ink-2)}
.tab-body{position:relative;display:flex;gap:12px;padding:12px;height:124px}
.chair{flex:none;width:68px;height:68px;background:var(--sage);border-radius:10px;fill:none;stroke:var(--ink-2);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;padding:6px}
.shop{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.ttl{font-family:var(--serif);font-size:19px;line-height:1.1;margin-top:2px}
.spec{font-size:12px;color:var(--muted);margin-top:4px}
/* Price tag hangs from a pin so it can swing when its tab lifts. */
.price{position:absolute;right:14px;bottom:12px;padding:3px 9px 3px 15px;font-size:13.5px;font-weight:700;color:var(--ink);background:var(--sage);border:1px solid var(--line-2);border-radius:4px 7px 7px 4px;transform:rotate(-4deg);transform-origin:50% -10px}
.price::before{content:"";position:absolute;left:5px;top:50%;width:5px;height:5px;margin-top:-2.5px;border-radius:50%;background:var(--cream);box-shadow:inset 0 0 0 1px var(--line-2)}
.price::after{content:"";position:absolute;left:50%;top:-10px;width:1px;height:10px;background:var(--line-2)}
.tab-x{position:relative;isolation:isolate}
.x-hl{position:absolute;inset:-3px;z-index:-1;border-radius:50%;background:var(--sage-2);opacity:0}
/* Where a reason slip hangs under its tab; script.js sizes it and Flip.fit()s the slip onto it. */
.slip-anchor{position:absolute;left:50%;top:calc(100% - 6px);width:272px;height:60px;visibility:hidden;pointer-events:none;transform:translateX(-50%) scale(.86);transform-origin:50% 0}

/* After the tabs are closed */
.tabs-note{position:absolute;left:16px;top:24px;width:768px;height:212px;border:1.5px dashed var(--line-2);border-radius:18px;display:flex;flex-direction:column;justify-content:center;padding:0 32px;gap:4px;color:var(--ink-2)}
.tabs-count{font-family:var(--serif);font-size:40px;line-height:1;color:var(--ink)}
.tabs-count span{color:var(--forest)}
.closed{list-style:none;padding:0;margin-top:14px;display:flex;flex-wrap:wrap;gap:8px}
.closed li{display:flex;align-items:center;gap:7px;padding:5px 11px 5px 6px;font-size:12.5px;color:var(--muted);background:var(--cream);border:1px solid var(--line);border-radius:8px;text-decoration:line-through;text-decoration-color:var(--line-2)}
.closed .fav{opacity:.6}

/* Tably list */
.list{position:absolute;left:16px;top:268px;bottom:16px;display:flex;flex-direction:column;width:304px;padding:0 16px 14px;z-index:3;background:var(--sage);border:1px solid var(--line);border-radius:20px}
.list-empty{display:none}
.story .list-empty{position:absolute;left:16px;right:16px;top:52px;bottom:48px;justify-content:center;display:flex;flex-direction:column;gap:4px;padding:18px 16px;border:1.5px dashed var(--line-2);border-radius:12px;font-size:13px;color:var(--ink-2)}
.list-empty b{font-family:var(--serif);font-weight:500;font-size:19px;color:var(--ink)}
.list-foot{margin-top:auto;padding-top:12px;font-size:12.5px;font-weight:600;color:var(--muted)}
.list-head{display:flex;align-items:center;gap:8px;height:52px;font-size:15px}
.list-head img{width:22px;height:22px;border-radius:6px}
.list-head span{margin-left:auto;font-size:12.5px;color:var(--muted);font-weight:600}
.slips{list-style:none;padding:0;display:grid;gap:10px}
.slip{position:relative;width:272px;padding:11px 14px 10px;background:var(--cream);border:1px solid var(--line);border-left:4px solid var(--forest);border-radius:10px;box-shadow:0 1px 0 rgba(27,42,34,.05)}
.slip-reason{font-family:var(--serif);font-size:20px;line-height:1.15;color:var(--ink)}
.slip-meta{display:flex;justify-content:space-between;gap:8px;margin-top:5px;font-size:12.5px;color:var(--muted)}
.slip-meta span:last-child{font-weight:700;color:var(--ink)}

/* Calendar */
.cal{position:absolute;left:352px;top:268px;width:432px;padding:16px 18px;background:var(--cream);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);z-index:2}
.cal-head{display:flex;justify-content:space-between;align-items:baseline;font-size:14px}
.cal-head span{font-size:12.5px;font-weight:600;color:var(--muted)}
.days{position:relative;margin-top:12px}
.day-row{display:grid;grid-template-columns:repeat(5,1fr);text-align:center;font-size:12px;font-weight:600;color:var(--muted)}
.day-row span{display:flex;flex-direction:column;align-items:center;padding:7px 0 8px;margin:0 3px;border:1px solid var(--line);border-radius:10px}
.day-row b{font-size:19px;color:var(--ink);font-weight:600;line-height:1.2}
/* One forest pill glides between days; its inner row counter-moves so the labels stay put. Static spot: Thursday. */
.day-pill{position:absolute;left:0;top:0;bottom:0;width:20%;overflow:hidden;transform:translateX(300%)}
.day-pill::before{content:"";position:absolute;inset:0 3px;border-radius:10px;background:var(--forest)}
.day-row-on{position:absolute;left:0;top:0;width:500%;color:var(--on-forest);transform:translateX(-60%)}
.day-row-on span{border-color:transparent}
.day-row-on b{color:var(--on-forest)}
.cal-foot{margin-top:10px;font-size:13px;color:var(--ink-2)}

/* Decision card */
.decide{position:absolute;left:352px;bottom:16px;width:432px;padding:16px 18px 16px;z-index:4;isolation:isolate}
.decide-bg{position:absolute;inset:0;z-index:-1;background:var(--cream);border:1px solid var(--line-2);border-radius:20px;box-shadow:0 1px 0 rgba(27,42,34,.06),0 22px 40px -22px rgba(27,42,34,.5)}
.decide-reason{transform-origin:0 0}
.decide-top{display:flex;justify-content:space-between;font-size:12.5px;font-weight:600;color:var(--muted)}
.ready{color:var(--forest);background:var(--sage);padding:2px 9px;border-radius:999px}
.eyebrow{margin-top:10px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--forest)}
.decide-reason{font-family:var(--serif);font-size:30px;line-height:1.08;margin-top:2px}
.decide-item{display:flex;justify-content:space-between;align-items:flex-end;margin-top:10px;padding-top:10px;border-top:1px solid var(--line);font-size:14px}
.decide-item p:first-child{display:flex;flex-direction:column}
.decide-item p span{font-size:12px;color:var(--muted)}
.decide-price{font-weight:700}
.decide-actions{display:flex;gap:8px;margin-top:12px}
.act{position:relative;display:inline-grid;place-items:center;padding:8px 13px;font-size:14px;font-weight:600;color:var(--forest);border:1.5px solid var(--forest);border-radius:10px;background:var(--cream)}
.act{isolation:isolate}
.act-hover{position:absolute;inset:0;z-index:-1;border-radius:8px;background:var(--sage);opacity:0}
.act-on{position:absolute;inset:-1.5px;display:flex;align-items:center;justify-content:center;gap:5px;background:var(--forest);color:var(--on-forest);border-radius:10px;clip-path:circle(150% at 50% 50%)}
.check{fill:none;stroke:var(--on-forest);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;margin-left:-4px}
.check path{stroke-dasharray:16;stroke-dashoffset:0}
.slot{display:none;position:absolute;left:352px;bottom:16px;width:432px;height:236px;border:1.5px dashed var(--line-2);border-radius:20px;padding:22px 24px;text-align:center;align-content:center;color:var(--ink-2);font-size:14px}
.slot-day{font-family:var(--serif);font-size:26px;line-height:1.1;color:var(--ink);margin-bottom:4px}
.receipt{margin-top:10px;font-size:13px;font-weight:600;color:var(--forest)}

.cursor{position:absolute;left:0;top:0;z-index:10;fill:var(--ink);stroke:var(--cream);stroke-width:1.4;stroke-linejoin:round;opacity:0;pointer-events:none;filter:drop-shadow(0 2px 2px rgba(0,0,0,.18));transform-origin:4px 3px}

/* Compact band */
.band{max-width:1440px;margin:0 auto;padding:16px 48px 40px;display:grid;grid-template-columns:1.15fr 1.15fr 1fr .85fr;gap:14px}
.cell{display:flex;flex-direction:column;gap:10px;padding:20px;border-radius:20px;background:var(--cream);border:1px solid var(--line)}
.kicker{font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--forest)}
.cell h2{font-family:var(--serif);font-weight:500;font-size:25px;line-height:1.1}
.fine{font-size:13.5px;color:var(--ink-2)}
.cell-pro{background:var(--sage)}
.shortlist{background:var(--cream);border:1px solid var(--line);border-radius:14px;padding:4px 14px 10px;font-size:14px}
.sl-head{display:flex;justify-content:space-between;align-items:baseline;padding:8px 0;border-bottom:1px solid var(--line)}
.sl-head b{font-family:var(--serif);font-weight:500;font-size:19px}
.sl-head span{font-size:11.5px;font-weight:700;color:var(--forest)}
.shortlist p{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--line)}
.shortlist p span:last-child{font-weight:700}
.shortlist .sl-foot{border:0;padding-bottom:0;font-size:12.5px;color:var(--muted)}
.cell-privacy{background:var(--forest);color:var(--on-forest);border-color:var(--forest)}
.cell-privacy .kicker{color:#c1d8bd}
.facts{list-style:none;padding:0;display:grid;gap:0;font-size:14px}
.facts li{padding:7px 0 7px 22px;border-top:1px solid rgba(244,242,235,.2);position:relative}
.facts li::before{content:"";position:absolute;left:2px;top:13px;width:10px;height:6px;border-left:2px solid #c1d8bd;border-bottom:2px solid #c1d8bd;transform:rotate(-45deg)}
.ipad-crop{height:178px;overflow:hidden;border-radius:14px 14px 0 0;border:1px solid var(--line);border-bottom:0;background:var(--paper)}
.ipad-crop img{width:100%;transform:translateY(-6%)}
.cell-get{justify-content:space-between}
.cell-get .app-store-badge{align-self:flex-start}


/* Medium: copy above the desk */
@media (max-width:1339px){
  .hero{grid-template-columns:1fr;justify-items:center;padding:0 40px 20px}
  .hero-copy{max-width:800px;width:100%}
  .steps{grid-template-columns:repeat(2,1fr)}
  .band{grid-template-columns:repeat(2,1fr)}
}

/* Narrow: header and copy tighten. Without the story (no JS), the desk becomes a readable stack of the final state. */
@media (max-width:879px){
  .hero{padding:4px 20px 20px;gap:24px}
  .steps{grid-template-columns:1fr}
  html:not(.story) .desk-scene{width:100%;height:auto;display:flex;flex-direction:column;gap:12px;padding:12px;border-radius:22px}
  html:not(.story) .tab,html:not(.story) .cursor,html:not(.story) .slot,html:not(.story) .list-foot{display:none}
  html:not(.story) .desk-layer{position:static;display:flex;flex-direction:column;gap:12px}
  html:not(.story) :is(.tabs-note,.list,.cal,.decide){position:static;width:auto;transform:none}
  html:not(.story) .decide{position:relative;left:auto;bottom:auto}
  html:not(.story) .tabs-note{height:auto;padding:16px 18px}
  html:not(.story) .tabs-count{font-size:30px}
  html:not(.story) .closed{display:none}
  html:not(.story) .slip{width:auto}
  .band{grid-template-columns:1fr;padding:8px 20px 32px}
}
@media (max-width:420px){
  html:not(.story) .decide-reason{font-size:25px}
  html:not(.story) .decide-actions{flex-wrap:wrap}
  html:not(.story) .act{padding:8px 11px;font-size:13.5px}
  html:not(.story) .day-row span{margin:0 2px}
}

/* Portrait stage (400x900), used by the story below 640px. Same objects, stacked: tabs, list, return day; the decision lands where the tabs were. */
.is-port.desk-scene{width:400px;height:900px;border-radius:24px}
.is-port .tab{width:300px;height:84px}
.is-port .tab-1{left:12px;top:12px;transform:rotate(-1.5deg)}
.is-port .tab-2{left:86px;top:140px;transform:rotate(1.2deg)}
.is-port .tab-3{left:22px;top:268px;transform:rotate(-.8deg)}
.is-port .tab-bar{height:28px}
.is-port .tab-body{height:54px;padding:5px 10px;gap:10px}
.is-port .chair{width:44px;height:44px;padding:4px}
.is-port .spec,.is-port .shop{display:none}
.is-port .tab-body>div{max-width:156px}
.is-port .ttl{font-size:16px;line-height:1.08;margin-top:4px}
.is-port .price{bottom:14px;font-size:13px}
.is-port .tabs-note{left:12px;top:12px;width:376px;height:396px;padding:0 22px 22px;justify-content:flex-end}
.is-port .tabs-count{font-size:36px}
.is-port .list{left:12px;top:420px;bottom:auto;width:376px}
.is-port .slip{width:344px}
.is-port .slip-anchor{width:344px;transform:translateX(-50%) scale(.7)}
.is-port .cal{left:12px;top:auto;bottom:12px;width:376px;padding:14px 16px}
.is-port .decide{left:12px;top:12px;bottom:auto;width:376px}
.is-port .slot{display:none}

@media (max-width:1339px) and (min-width:880px){.band{padding:16px 40px 40px}}

/* Privacy cell: link to the full policy */
.cell-link{align-self:flex-start;margin-top:auto;font-size:13.5px;font-weight:600;color:var(--on-forest);text-decoration:underline;text-decoration-color:var(--on-forest-2);text-underline-offset:4px}
.cell-link:hover{text-decoration-color:var(--on-forest)}
.cell-privacy :focus-visible{outline-color:var(--on-forest-2)}

/* Field guides: five browser-tab cards on a strip of desk paper */
.guides{max-width:1440px;margin:0 auto;padding:0 48px 44px;display:grid;grid-template-columns:260px minmax(0,1fr);gap:14px 28px;align-items:start}
.guides-head{display:flex;flex-direction:column;gap:8px;padding-top:6px}
.guides-head h2{font-family:var(--serif);font-weight:500;font-size:30px;line-height:1.05;letter-spacing:-.02em}
.guides-head p{font-size:14px;color:var(--ink-2)}
.guide-tabs{list-style:none;padding:14px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;border-radius:20px;background-color:var(--desk);background-image:var(--grid-paper);background-size:24px 24px;box-shadow:inset 0 0 0 1px var(--line)}
.guide-tabs li{display:flex}
.guide-tab{display:flex;flex-direction:column;width:100%;text-decoration:none;background:var(--cream);border:1px solid var(--line-2);border-radius:14px;box-shadow:var(--shadow);transition:transform 220ms var(--ease-out),box-shadow 220ms var(--ease-out)}
.guide-bar{display:flex;align-items:center;gap:8px;height:32px;padding:0 12px;background:#ebe8df;border-bottom:1px solid var(--line);border-radius:13px 13px 0 0;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--forest)}
.guide-bar::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--forest)}
.guide-body{display:flex;flex-direction:column;gap:6px;padding:12px 14px 14px}
.guide-body strong{font-family:var(--serif);font-weight:500;font-size:19px;line-height:1.12;color:var(--ink)}
.guide-body small{font-size:13px;line-height:1.4;color:var(--muted)}
@media (hover:hover) and (pointer:fine){
  .guide-tab:hover{transform:translateY(-2px);box-shadow:0 1px 0 rgba(27,42,34,.06),0 16px 28px -16px rgba(27,42,34,.45)}
  .guide-tab:hover strong{text-decoration:underline;text-decoration-color:var(--forest);text-underline-offset:3px}
}
@media (prefers-reduced-motion:reduce){.guide-tab{transition:none}.guide-tab:hover{transform:none}}
@media (max-width:1339px){
  .guides{grid-template-columns:1fr;padding:0 40px 40px}
  .guide-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:879px){
  .guides{padding:0 20px 32px}
  .guide-tabs{grid-template-columns:1fr;padding:10px;gap:10px}
}
#guides,#pro,#privacy{scroll-margin-top:16px}
