/* ===========================================================================
   Homepage only (index.html). The legal, support and landing pages keep
   css/site.css; this file is self-contained (fonts, tokens, header, footer)
   so the two cannot fight over specificity. The hero's laptop demo is
   css/hero.css (generated, see design/).

   Layout (2026-11-16 redesign): left-aligned type on a 1200px measure, one
   figure per section, and neighbouring sections laid out differently. Body
   text is Switzer; Poiret One is for large headings only.

   Same traps as site.css (see README.md): link colour lives on the bare `a`
   so any class can beat it, and Poiret One has no U+0398 or U+2192.
   =========================================================================== */

/* ---- base ---- */
@font-face{
  font-family:'Poiret One';
  src:url('/fonts/poiret-one-latin-400.woff2') format('woff2');
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  /* The official Fontshare file, unmodified: see fonts/README.md before touching it. */
  font-family:'Switzer';
  src:url('/fonts/Switzer-Variable.woff2') format('woff2');
  font-weight:100 900; font-style:normal; font-display:swap;
}

:root{
  --ink:#302058;
  --ink-2:#4C3D71;
  --muted:#75698E;
  --faint:#A79CBC;
  --lav:#D0B9F1;
  --lav-deep:#BFA3EA;
  --page:#F7F3FC;
  --card:#FFFFFF;
  --line:#E7E0F0;
  --line-2:#D3C8E6;
  --tint:#F0E8FB;
  --card-border:#DDD2EE;
  --on-ink:#EDE2FD;
  --on-ink-2:#BDB0DA;
  --excel:#107C41;
  --cell:#1B1530;
  --grid:#E4E1EA;

  --r-lg:22px; --r-md:14px; --r-sm:10px; --r-pill:999px;
  --spring:cubic-bezier(.22,.94,.24,1.02);
  --ease-out:cubic-bezier(.23,1,.32,1);

  --display:'Poiret One','Century Gothic','Futura',sans-serif;
  --body:'Switzer',-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;

  --gut-l:max(20px, env(safe-area-inset-left, 0px));
  --gut-r:max(20px, env(safe-area-inset-right, 0px));
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:84px}
body{
  margin:0; background:var(--card); color:var(--ink);
  font-family:var(--body); font-size:17px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; height:auto; display:block}
h1,h2,h3,p,ul,ol,dl,dd,figure{margin:0; padding:0}
ul,ol{list-style:none}
h1,h2,h3{font-weight:400; text-wrap:balance}
h2{font-family:var(--display); font-size:clamp(34px,4.4vw,52px); line-height:1.08}
p{text-wrap:pretty}
a{color:inherit; text-decoration-color:var(--line-2); text-underline-offset:3px}
a:hover{text-decoration-color:currentColor}
:focus-visible{outline:2px solid var(--ink); outline-offset:3px; border-radius:6px}
.on-ink :focus-visible{outline-color:var(--on-ink)}
.wrap{max-width:1200px; margin-inline:auto; padding-left:var(--gut-l); padding-right:var(--gut-r)}
.band{padding-block:112px}

/* skip link (same as site.css) */
.skip{
  position:absolute; left:-9999px; top:0; background:var(--ink); color:var(--on-ink);
  padding:10px 18px; z-index:40; text-decoration:none; border-radius:var(--r-pill);
}
.skip:focus{left:10px; top:10px}

/* -------------------------------- header -------------------------------- */
.head{position:sticky; top:0; z-index:20; background:var(--card); border-bottom:1px solid var(--line)}
.head .wrap{display:flex; align-items:center; justify-content:space-between; gap:16px; padding-block:14px}
.mark{display:flex; align-items:flex-end; gap:10px; text-decoration:none}
.mark img{height:34px; width:auto}
.mark .by{font-size:12px; color:var(--muted); padding-bottom:7px}
.nav{display:flex; align-items:center; gap:26px; font-size:15px}
.nav a{text-decoration:none; color:var(--ink-2); padding-block:10px}
.nav a:hover{color:var(--ink); text-decoration:underline; text-decoration-color:var(--lav-deep); text-decoration-thickness:2px}
.nav .btn{min-height:40px; padding:0 18px; font-size:14.5px; color:var(--on-ink)}
.nav .btn:hover{text-decoration:none; color:var(--on-ink)}

/* -------------------------------- buttons ------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 22px;
  border-radius:var(--r-pill); font-weight:600; font-size:15.5px; text-decoration:none;
  border:1px solid transparent; cursor:pointer;
  transition:transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}
.btn:active{transform:scale(.97)}
.btn-solid{background:var(--ink); color:var(--on-ink)}
.btn-solid:hover{background:#3D2A6E}
.btn-out{border-color:var(--ink); color:var(--ink)}
.btn-out:hover{background:rgba(255,255,255,.55)}
.btn-light{background:var(--card); color:var(--ink)}
.btn-light:hover{background:var(--on-ink)}
.btn-ghost{border-color:rgba(237,226,253,.45); color:var(--on-ink)}
.btn-ghost:hover{border-color:var(--on-ink)}
.acts{display:flex; flex-wrap:wrap; gap:12px}
/* on lavender the default underline colour disappears */
.lhero a:not(.btn),.breathe a{text-decoration-color:rgba(48,32,88,.4)}
.lhero a:not(.btn):hover,.breathe a:hover{text-decoration-color:currentColor}

/* ------------------------------ works with ------------------------------ */
/* Official third-party logos on white (see assets/brands/README.md). */
.works .wrap{display:flex; flex-wrap:wrap; gap:14px 34px; align-items:center; padding-block:44px 0; font-size:15.5px; color:var(--ink-2)}
.works-logos{display:flex; gap:28px; align-items:center}
.works-logos img{width:auto}
.works-logos li:first-child img{height:22px}
.works-logos li:last-child img{height:26px}
.works-in{display:flex; flex-wrap:wrap; gap:7px; align-items:center}
.works-in img{width:18px; height:18px}

/* ------------------------------- statement ------------------------------ */
.statement{padding-block:104px 96px}
.huge{font-family:var(--display); font-size:clamp(28px,3.7vw,46px); line-height:1.22; max-width:25ch}
.huge em{font-style:normal; background:linear-gradient(transparent 62%, var(--lav) 0)}
.after{margin-top:34px; font-size:19px; text-wrap:balance}
.after b{font-weight:600}

/* ------------------- how it works: steps beside a schedule ---------------
   An illustrative Excel window: a prepaid schedule on the left, the Blink
   task pane on the right, cropped live from assets/shots/08-reports.webp.
   In the 1366x768 source the pane sits at x 741-1111, y 115-653 (370 x 538);
   the percent offsets on .crop img are derived from those numbers. */
.proof{background:var(--page)}
.proof-grid{display:grid; grid-template-columns:minmax(0,4fr) minmax(0,7fr); gap:64px; align-items:start}
.steps{margin-top:36px; display:grid; gap:28px; counter-reset:s}
.steps li{display:grid; grid-template-columns:34px minmax(0,1fr); counter-increment:s}
.steps li::before{content:counter(s); font-family:var(--display); font-size:34px; line-height:.95; color:var(--ink-2)}
.steps b{display:block; font-weight:600}
.steps span{display:block; margin-top:3px; font-size:15.5px; color:var(--ink-2)}

.sched{background:var(--card); border-radius:var(--r-md); box-shadow:0 0 0 1px var(--line-2); overflow:hidden; font-size:13px; line-height:1.3; color:var(--cell)}
.book-bar{display:flex; align-items:center; gap:9px; padding:11px 16px; background:var(--page); border-bottom:1px solid var(--line); font-weight:600; color:var(--ink)}
.book-bar img{width:17px; height:17px}
.book-bar small{margin-left:auto; font-weight:400; font-size:12.5px; color:var(--muted)}
.book-body{display:grid; grid-template-columns:minmax(0,1fr) 34%}
.fx{display:flex; gap:14px; align-items:center; padding:8px 14px; border-bottom:1px solid var(--grid); font-size:12.5px; color:var(--ink-2)}
.fx b{font-weight:500; min-width:26px}
.fx code{font-family:Consolas,'SF Mono',Menlo,monospace}
.sheet{border-right:1px solid var(--line); min-width:0; overflow-x:auto}
.sheet table{width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums}
.sheet td{border-bottom:1px solid var(--grid); border-right:1px solid var(--grid); padding:8px 10px; text-align:right; white-space:nowrap}
.sheet td.l{text-align:left}
.sheet tr.t td{font-weight:600; color:var(--ink)}
.sheet tr.h td{font-weight:600; background:var(--tint); color:var(--ink)}
.sheet td.calc{color:var(--ink); background:#FBF8FF}
.sheet td.sel{box-shadow:inset 0 0 0 2px var(--excel)}
.crop{position:relative; aspect-ratio:370/538; overflow:hidden; background:var(--page)}
.crop img{position:absolute; max-width:none; width:369.19%; left:-200.27%; top:-21.375%}

/* what Blink can pull: two lists, one rule under each heading */
.pulls{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:36px 48px; margin-top:88px}
.pulls h3{font-size:15px; font-weight:600; padding-bottom:12px; border-bottom:1px solid var(--line-2)}
.pulls li{display:flex; justify-content:space-between; gap:16px; align-items:baseline; padding-top:13px}
.pulls li span{font-size:13.5px; color:var(--muted); text-align:right}
.guides{margin-top:44px; font-size:14.5px; color:var(--muted)}
.guides a{color:var(--ink); display:inline-block; padding-block:8px; margin-right:14px}

/* ------------------- carry: one figure in three documents ----------------
   No script: a visually hidden checkbox (#carry-ck) before .docs, with its
   label styled as the button. Each digit that differs between the two values
   is a .sw holding both, stacked; only those cross-fade, the rest stay put. */
.carry-grid{display:grid; grid-template-columns:minmax(0,7fr) minmax(0,4fr); gap:64px; align-items:center; margin-top:52px}
.carry-fig{position:relative}
.carry-ck{position:absolute; opacity:0; width:1px; height:1px; pointer-events:none}
.docs{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; align-items:stretch}
.doc{background:var(--card); border-radius:var(--r-sm); box-shadow:0 0 0 1px var(--line-2); display:flex; flex-direction:column; min-width:0}
.doc-h{display:flex; gap:7px; align-items:center; padding:9px 12px; border-bottom:1px solid var(--line); font-size:12.5px; font-weight:600}
.doc-h img{width:15px; height:15px}
.doc-b{padding:16px 14px 20px; font-size:13px; line-height:1.5; color:var(--cell); flex:1}
.doc .fig{font-variant-numeric:tabular-nums; font-weight:600; background:linear-gradient(transparent 62%, var(--lav) 0); white-space:nowrap}
.doc .cellrow{display:flex; justify-content:space-between; gap:8px; padding:7px 0; border-bottom:1px solid var(--grid)}
.doc .big{display:block; font-size:clamp(17px,1.9vw,23px); margin-top:8px; background:none; color:var(--ink)}
.doc .slide-t{font-size:11.5px; color:var(--muted)}
.sw{display:inline-grid}
.sw > *{grid-area:1/1; font-style:normal; transition:opacity 460ms var(--ease-out), transform 460ms var(--ease-out), filter 460ms var(--ease-out)}
.sw > :last-child{opacity:0; transform:translateY(.4em); filter:blur(2px)}
.carry-ck:checked ~ .docs .sw > :first-child{opacity:0; transform:translateY(-.4em); filter:blur(2px)}
.carry-ck:checked ~ .docs .sw > :last-child{opacity:1; transform:none; filter:none}
.sw.d2 > *{transition-delay:20ms}
.sw.d3 > *{transition-delay:40ms}
.sw.d4 > *{transition-delay:60ms}
.carry-ctl{margin-top:22px; display:flex; flex-wrap:wrap; gap:12px; align-items:center; font-size:13.5px; color:var(--muted)}
.carry-btn{font-weight:600; color:var(--ink); background:var(--tint); border:1px solid var(--line-2); border-radius:8px; padding:9px 14px; cursor:pointer; user-select:none; transition:transform 140ms var(--ease-out)}
.carry-btn:hover{border-color:var(--ink)}
.carry-btn:active{transform:scale(.97)}
.carry-ck:focus-visible ~ .carry-ctl .carry-btn{outline:2px solid var(--ink); outline-offset:3px}
.carry-ctl .n1, .carry-ck:checked ~ .carry-ctl .n0{display:none}
.carry-ck:checked ~ .carry-ctl .n1{display:inline}
.hooks{display:grid; gap:22px; font-size:16px; color:var(--ink-2)}
.hooks b{color:var(--ink); font-weight:600}

/* ------------- Breathe Out: lavender ground (lavender is never text) ------ */
.breathe{background:var(--lav)}
.breathe-grid{display:grid; grid-template-columns:minmax(0,5fr) minmax(0,3fr) minmax(0,4fr); gap:56px; align-items:start}
.lead{margin-top:24px; font-size:18px; max-width:44ch}
.fine{margin-top:20px; font-size:14px; color:var(--ink-2)}
.shot{border-radius:var(--r-md); overflow:hidden; box-shadow:0 0 0 1px rgba(48,32,88,.16); background:var(--page); aspect-ratio:800/1090}
.shot img{width:100%}
.blist{display:grid; gap:18px; font-size:15.5px; line-height:1.5}
.blist dt{font-weight:600}
.blist dd{color:var(--ink-2)}

/* --------------------------------- on ink -------------------------------- */
.on-ink{background:var(--ink); color:var(--on-ink)}
.origin-grid{display:grid; grid-template-columns:minmax(0,6fr) minmax(0,5fr); gap:72px; margin-top:56px; align-items:start}
.litany{display:grid; gap:14px; font-family:var(--display); font-size:clamp(24px,2.7vw,34px); line-height:1.25}
.origin-copy{display:grid; gap:18px; font-size:17.5px}
.pull{font-weight:500; font-size:20px; line-height:1.35; color:#fff; padding-top:22px; border-top:1px solid rgba(237,226,253,.25)}

/* ----------------------------- implementation ---------------------------- */
.impl{padding-bottom:0}
.impl-grid{display:grid; grid-template-columns:minmax(0,6fr) minmax(0,5fr); gap:72px; align-items:center}
.impl .lead{color:var(--ink-2)}
.strike{display:grid; gap:10px; font-family:var(--display); font-size:clamp(22px,2.4vw,30px); color:var(--muted)}
.strike s{text-decoration-thickness:1px; text-decoration-color:var(--ink)}

/* ------------------------------- screenshots ------------------------------
   assets/strip.js adds the arrows' behaviour and the unattended advance; the
   strip still scrolls by hand with no JavaScript. */
.shots{padding-block:96px 112px}
.shots-head{display:flex; align-items:flex-end; justify-content:space-between; gap:24px}
.shots-nav{display:flex; gap:8px; flex:none}
.shots-btn{
  width:44px; height:44px; padding:0; cursor:pointer;
  font:inherit; font-size:16px; line-height:1; color:var(--ink-2);
  background:#fff; border:1px solid var(--card-border); border-radius:999px;
  transition:transform 140ms var(--ease-out);
}
.shots-btn:hover{color:var(--ink); border-color:var(--ink)}
.shots-btn:active{transform:scale(.97)}
.strip{
  display:flex; gap:20px; margin-top:34px; padding:4px 0 18px;
  overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory;
  scrollbar-width:thin; scrollbar-color:var(--line-2) transparent;
}
.strip::-webkit-scrollbar{height:8px}
.strip::-webkit-scrollbar-thumb{background:var(--line-2); border-radius:4px}
.strip:focus-visible{outline:2px solid var(--ink); outline-offset:3px; border-radius:4px}
.slide{flex:0 0 100%; margin:0; scroll-snap-align:start; scroll-snap-stop:always; box-sizing:border-box}
.slide{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:56px; align-items:center;
  background:var(--page); border-radius:var(--r-lg); padding:56px 64px 0; overflow:hidden}
.slide figcaption{align-self:center; padding-bottom:56px}
.slide h3{font-family:var(--display); font-weight:400; font-size:40px; line-height:1.1; color:var(--ink)}
.slide figcaption p{margin-top:18px; font-size:17px; line-height:1.6; color:var(--ink); max-width:40ch}
.slide img{display:block; justify-self:center; width:min(100%, 360px); height:auto; aspect-ratio:800/1320;
  border-radius:16px 16px 0 0; border:1px solid var(--card-border); border-bottom:0; background:#fff;
  object-fit:cover; object-position:top; max-height:520px}
/* the Reports slide: a tall capture of the whole Reports tab. On devices that can hover it sits at
   the top and scrolls only while the pointer is over it, pausing where it is when the pointer
   leaves; .is-current (strip.js) resets it to the top each time the slide comes round. Touch
   devices never scroll it. Plays regardless of reduced motion, since the viewer starts it. */
.pane-scroll{--frame:520px; justify-self:center; width:min(100%, 360px); height:var(--frame); overflow:hidden;
  border-radius:16px 16px 0 0; border:1px solid var(--card-border); border-bottom:0; background:#fff}
.slide .pane-scroll img{width:100%; height:auto; max-height:none; aspect-ratio:auto; border:0; border-radius:0}
.slide .hint{display:none; margin-top:14px; font-size:14px; color:var(--ink-2)}
@media (hover:hover){
  .slide .hint{display:block}
  .pane-scroll{cursor:ns-resize}
  .slide.is-current .pane-scroll img{animation:pane-scroll 20s cubic-bezier(.45,0,.25,1) infinite !important;
    animation-play-state:paused !important}
  .slide.is-current .pane-scroll:hover img{animation-play-state:running !important}
}
@keyframes pane-scroll{
  0%,2%{transform:translateY(0)}
  80%,90%{transform:translateY(calc(-100% + var(--frame)))}
  100%{transform:translateY(0)}
}

/* ------------------------ close: the invitation, on ink ------------------- */
.close h2{font-size:clamp(40px,6vw,76px)}
.close .lead{font-size:20px}
.close .acts{margin-top:36px}
.contact{margin-top:22px; font-size:14px; color:var(--on-ink-2)}
.sig{margin-top:44px; font-family:var(--display); font-size:24px}

/* --------------------------------- footer -------------------------------- */
.foot .wrap{display:flex; flex-wrap:wrap; gap:16px 40px; justify-content:space-between; padding-block:30px; font-size:13.5px; color:var(--muted)}
.foot .tm{display:block; max-width:60ch; margin-top:6px; font-size:12px}
.foot .links{display:flex; flex-wrap:wrap; gap:0 22px}
.foot .links a{color:var(--ink-2); text-decoration:none; padding-block:12px}
.foot .links a:hover{text-decoration:underline}

@media (max-width:980px){
  .band{padding-block:72px}
  .nav a:not(.btn){display:none}
  .proof-grid,.carry-grid,.origin-grid,.impl-grid{grid-template-columns:minmax(0,1fr); gap:40px}
  .breathe-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:40px}
  .breathe-grid > :first-child{grid-column:1/-1}
  .statement{padding-block:72px}
  .pulls{margin-top:56px; grid-template-columns:repeat(2,minmax(0,1fr))}
  .impl{padding-bottom:0}
  .shots{padding-block:64px 72px}
}
@media (max-width:860px){
  .slide{grid-template-columns:1fr; gap:28px; padding:32px 24px 0}
  .slide figcaption{padding-bottom:0}
  .slide h3{font-size:30px}
  .pane-scroll{--frame:440px}
}
@media (max-width:640px){
  body{font-size:16px}
  .book-body{grid-template-columns:minmax(0,1fr)}
  .sheet{border-right:0}
  .book-bar small{display:none}
  .sheet td{padding:7px 7px}
  .sched{font-size:12px}
  .sched .crop{display:none}
  .pulls,.docs{grid-template-columns:minmax(0,1fr)}
  .breathe-grid{grid-template-columns:minmax(0,1fr)}
  .shot{max-width:280px}
  .mark .by{display:none}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none !important; transition:none !important}
}

/* Page-to-page cross-fade (2026-11-16). CSS only: browsers without cross-document view transitions
   (Firefox) load pages as before. Both stylesheets carry it, since both pages must opt in. Kept short
   because people navigate often. */
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:180ms; animation-timing-function:cubic-bezier(.23,1,.32,1)}
@media (prefers-reduced-motion:reduce){
  @view-transition{navigation:none}
}
