/* Home page. Colour tokens and fonts come from /guides/guide.css.
   One pattern repeats down the page: a big statement, one sentence, then large cards. */
body[data-guide="home"]{background:var(--surface)}
body{overflow-x:hidden}
.home{max-width:1120px;margin:0 auto;padding:0 24px 48px}
.home section{padding:120px 0 0}
.home h2{font-family:var(--display);font-weight:700;font-size:clamp(36px,5vw,56px);line-height:1.05;letter-spacing:-.03em;margin:0 0 16px;text-wrap:balance}
.home .sub{font-size:clamp(19px,2vw,23px);line-height:1.4;color:var(--muted);max-width:36ch;margin:0 0 40px}
.home .more{margin:28px 0 0;font-size:17px;color:var(--muted)}

/* hero */
.home .hero{text-align:center;padding:80px 0 0}
.hero h1{font-family:var(--display);font-weight:700;font-size:clamp(42px,6.6vw,78px);line-height:1;letter-spacing:-.04em;margin:0 auto 22px;max-width:14ch;text-wrap:balance}
.hero .lede{font-size:clamp(19px,2.1vw,24px);line-height:1.4;color:var(--muted);max-width:34ch;margin:0 auto 34px;text-wrap:balance}
.actions{display:flex;gap:22px;flex-wrap:wrap;align-items:center}
.hero .actions,.closing .actions{justify-content:center}
.actions a{font-weight:600;text-decoration:none;border-radius:10px;font-size:17px}
.actions .go{background:var(--accent);color:var(--accent-ink);padding:15px 26px}
.actions .go:hover{filter:brightness(1.08)}
.actions .link{color:var(--accent);padding:15px 4px}
.actions .link:hover{text-decoration:underline}
.home .app{padding:0;margin:64px auto 0;max-width:1080px;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:var(--surface);box-shadow:0 40px 80px -40px rgba(20,32,43,.45),0 2px 6px rgba(20,32,43,.06);text-align:left}
.app .chrome{display:flex;align-items:center;gap:7px;padding:11px 16px;border-bottom:1px solid var(--line);background:var(--bg)}
.app .chrome span{width:11px;height:11px;border-radius:50%;background:var(--line)}
.app .chrome p{margin:0 0 0 12px;font-size:13.5px;color:var(--muted);display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.app .chrome b{color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent);border-radius:6px;padding:1px 8px;font-weight:600}
.app .chrome a{font-family:var(--mono);font-size:12.5px;border:1px solid var(--line);border-radius:6px;padding:1px 7px;text-decoration:none;background:var(--surface)}
.app img{display:block;width:100%;height:auto}
.hero .figcap{margin:18px auto 0;font-size:16px;color:var(--muted)}

/* cards: one style everywhere, solid fill, no outline */
.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.card{background:var(--bg);border-radius:20px;padding:34px 34px 0;display:flex;flex-direction:column;overflow:hidden}
.card h3{font-family:var(--display);font-weight:650;font-size:24px;letter-spacing:-.015em;margin:0 0 8px}
.card p{font-size:18px;line-height:1.5;color:var(--muted);margin:0;max-width:40ch}
.card .pic{margin-top:30px;flex:1;display:flex;align-items:flex-end}
.card .pic img{display:block;width:100%;height:auto;background:#fff;border-radius:12px 12px 0 0;box-shadow:0 -1px 0 var(--line),0 12px 30px -12px rgba(20,32,43,.25)}
.card.wide{width:100%;max-width:none;box-sizing:border-box;display:grid;grid-template-columns:1fr 1.3fr;gap:40px;align-items:center;padding:44px}
.card.wide .pic{margin:0}
.link-card{text-decoration:none;color:inherit;transition:transform .15s ease}
.link-card:hover{transform:translateY(-2px)}
.link-card:hover h3{color:var(--accent)}
.link-card .pic img{border-radius:12px 12px 0 0}

/* rigor: four principles, then the real studies as proof */
.principles{list-style:none;padding:0;margin:0 0 56px;display:grid;grid-template-columns:repeat(2,1fr);gap:36px 56px}
.principles li{display:flex;gap:18px;align-items:flex-start}
.principles svg{flex:none;width:44px;height:44px;padding:10px;box-sizing:border-box;border-radius:12px;background:color-mix(in srgb,var(--accent) 12%,transparent);fill:none;stroke:var(--accent);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.principles h3{font-family:var(--display);font-weight:650;font-size:21px;letter-spacing:-.01em;margin:6px 0 6px}
.principles p{font-size:17.5px;line-height:1.5;color:var(--muted);margin:0;max-width:40ch}

/* the "stays in your browser" drawing */
.art svg{width:100%;height:auto;max-width:460px;font-family:var(--body)}
.art-unused{list-style:none;padding:0;margin:28px 0 0;display:grid;grid-template-columns:repeat(2,1fr);gap:64px 56px}
.art li{display:flex;flex-direction:column;gap:6px}
.art h3{font-family:var(--display);font-size:23px;margin:0}
.art p{font-size:16.5px;color:var(--muted);margin:0 0 14px;max-width:46ch}
.art .shot{background:var(--bg);border:1px solid var(--line);border-radius:16px;height:230px;display:flex;align-items:center;justify-content:center;padding:20px 24px;margin-top:auto}
.art img{max-width:100%;max-height:100%;width:auto;height:auto;border-radius:8px;background:#fff}
.art svg{width:100%;height:100%;max-width:400px;font-family:var(--body)}
.art .ln{fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.art .thin{stroke-width:1.4;stroke:var(--ns)}
.art .dash{stroke-dasharray:5 6;stroke:var(--ns)}
.art .dot{fill:var(--line)}
.art .file{fill:var(--surface);stroke:var(--ink);stroke-width:2}
.art .badge{fill:var(--accent)} .art .lock{fill:var(--accent-ink)} .art .lockln{fill:none;stroke:var(--accent-ink);stroke-width:2}
.art .stop circle{fill:var(--surface);stroke:var(--up);stroke-width:2} .art .stop path{stroke:var(--up);stroke-width:2;stroke-linecap:round}
.art .cloud{stroke:var(--ns)}
.art .cap{font-size:12.5px;font-weight:600;fill:var(--accent);text-anchor:middle}
.art .cap.muted{fill:var(--muted);font-weight:500}
.art .arrow{stroke:var(--accent);stroke-width:2.6}
.art .up{fill:var(--up)} .art .dn{fill:var(--down)} .art .ns{fill:var(--ns)}
.art .track{fill:var(--line)} .art .fill{fill:var(--accent);transform-origin:22px 0;animation:fill 3.6s ease-out infinite}
.art .pop{opacity:0;animation:pop 3.6s ease-out infinite}
.art .bob{animation:bob 3.2s ease-in-out infinite}
.art .code text{font-family:var(--mono);font-size:13.5px;fill:var(--muted)}
.art .strike{stroke:var(--up);stroke-width:1.8;stroke-linecap:round;fill:none}
.art .btnbox{fill:var(--accent)} .art .btntxt{fill:var(--accent-ink);font-weight:600;font-size:15px;text-anchor:middle}
.art .ripple{fill:none;stroke:var(--accent-ink);stroke-width:2;opacity:0;transform-origin:262px 85px;animation:ripple 3.4s ease-out infinite}
.art .cursor{fill:var(--ink);stroke:var(--surface);stroke-width:1.5;animation:cursor 3.4s ease-in-out infinite}
@keyframes pop{0%,8%{opacity:0;transform:translateY(4px)}22%,88%{opacity:1;transform:none}100%{opacity:0}}
@keyframes fill{0%{transform:scaleX(0)}35%,88%{transform:scaleX(1)}100%{transform:scaleX(1);opacity:0}}
@keyframes bob{50%{transform:translateY(-4px)}}
@keyframes cursor{0%{transform:translate(170px,140px)}40%,78%{transform:translate(258px,84px)}100%{transform:translate(170px,140px)}}
@keyframes ripple{0%,42%{opacity:0;transform:scale(.6)}50%{opacity:.9}70%,100%{opacity:0;transform:scale(2.4)}}
@media (prefers-reduced-motion:reduce){
  .art .pop{animation:none;opacity:1} .art .fill,.art .bob,.art .ripple{animation:none}
  .art .cursor{animation:none;transform:translate(258px,84px)}
}


/* closing */
.home .closing{text-align:center;padding:140px 0 120px}

@media (max-width:860px){
  .home section{padding-top:88px}
  .cards,.principles{grid-template-columns:1fr}
  .principles{gap:28px;margin-bottom:56px}
  .card.wide{grid-template-columns:1fr;padding:30px 28px}
  .card{padding:28px 26px 0}
}
@media (max-width:560px){
  .home{padding:0 16px 40px}
  .home .hero{padding-top:44px}
  .home .app{margin-top:40px}
  .app .chrome p{font-size:12.5px}
  .hero .actions{flex-direction:column;gap:6px}
  .card h3{font-size:21px}
  .card p{font-size:17px}
}
