/* Blink site. Light and dark bands; the dark ones are "the notch" and hang a notch with Blink's eyes into the next section.
   Mood colours come from design/tokens.json (apple.* dark values, blink.mood.*). No purple or indigo.
   Mood colours are fills or dots, never body text on light surfaces (tokens: mood.rule). */
:root {
  /* tokens.json */
  --black: #000000;          /* blink.notch.hardware */
  --white: #FFFFFF;
  --gray: #8E8E93;           /* systemGray */
  --gray4: #3A3A3C;
  --gray5: #2C2C2E;          /* blink.notch.tile top */
  --gray6: #1C1C1E;          /* blink.notch.tile bottom */
  --rest: #FFFFFF;           /* mood.rest */
  --blue-fill: #0A84FF;      /* blink.accent (fills) */
  --red: #FF453A;            /* mood.important */
  --mint: #63E6E2;           /* mood.headsUp */
  --green: #30D158;          /* mood.done */
  --orange: #FF9F0A;         /* mood.attention / evening: Blink's warm accent */
  --yellow: #FFD60A;         /* mood.celebrate */
  --pink: #FF375F;           /* money.food */
  /* Site-only shades, chosen for AA text contrast (≥ 4.5:1) on their own band */
  --blue-btn: #0A66E8;       /* white text 5.2:1 */
  --blue-ink: #0062CC;       /* links on white 5.8:1, on mist 5.2:1 */
  --blue-ink-dark: #4DA3FF;  /* links on black 8:1 */
  --mist: #F2F2F0;           /* very light warm grey */
  --ink: #18181A;
  --r-notch: 12px;
  --r-tile: 28px;
  --r-inner: 16px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --page: min(1180px, 100% - 32px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;   /* reading text and the app mock-ups (reads like the Mac) */
  --display: "Bricolage Grotesque", var(--font);                       /* Blink's voice: headlines, titles, the sign-off */
}

/* Band themes: every component reads these. */
:root, .light, .mist {
  color-scheme: light;
  --bg: var(--white);
  --fg: var(--ink);
  --muted: #5E5E63;          /* 5.8:1 on white, 5.2:1 on mist */
  --line: rgba(0, 0, 0, .09);
  --link: var(--blue-ink);
  --surface: var(--white);
  --sunk: #F5F5F3;
}
.mist { --bg: var(--mist); }
.dark {
  color-scheme: dark;
  --bg: var(--black);
  --fg: var(--white);
  --muted: #A1A1A6;          /* 8:1 on black */
  --line: var(--gray4);
  --link: var(--blue-ink-dark);
  --surface: linear-gradient(var(--gray5), var(--gray6));
  --sunk: rgba(0, 0, 0, .4);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.light, .mist, .dark { background: var(--bg); color: var(--fg); }
img, video, svg { display: block; max-width: 100%; }
/* `hidden` must win over a component's own display (the film's play button is display:flex). */
[hidden] { display: none !important; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 8px; }
button { font: inherit; color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue-btn); color: #fff; padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(0, 0, 0, .07);
}
.site-head .inner { width: var(--page); margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 21px/1 var(--display); font-stretch: 90%; letter-spacing: -.02em; text-decoration: none; }
/* The notch in the menu bar: same shape as the dark bands' tabs, with Blink inside. */
.head-notch {
  position: absolute; left: 50%; top: 0; translate: -50% 0; width: 124px; height: 34px;
  background: var(--black); border-radius: 0 0 16px 16px; display: grid; place-items: center;
}
.head-notch::before, .head-notch::after { content: ""; position: absolute; top: 0; width: 10px; height: 10px; }
.head-notch::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent 9.5px, var(--black) 10px); }
.head-notch::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent 9.5px, var(--black) 10px); }
.head-notch .eyes-look { width: 44px; margin-top: -2px; }
@media (max-width: 480px) { .head-notch { width: 96px; height: 30px; } .head-notch .eyes-look { width: 36px; } .wide { display: none; } }
.site-head nav { margin-left: auto; display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.site-head nav a { color: #3A3A3F; text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--ink); }
/* The nav hides before it would run under the centred notch. */
@media (max-width: 900px) { .site-head nav { display: none; } .site-head .btn { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--blue-btn); color: #fff; font-weight: 600; font-size: 17px; text-decoration: none;
  cursor: pointer; transition: transform .25s var(--ease-pop), background-color .2s, box-shadow .25s var(--ease-out);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 18px -6px rgba(10, 102, 232, .55);
}
.btn:hover { background: #0057D1; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 26px -8px rgba(255, 159, 10, .65); }
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.small { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--link); box-shadow: none; padding: 0 10px; }
.btn.ghost:hover { text-decoration: underline; }

/* ---------- Type ---------- */
/* One scale, ratio 1.25 from the 17px body: 13.6 · 17 · 21 · 26.5 · 33 · 41 · 52 · 66 · 83 · 104.
   Headlines are set a little narrow and heavy; titles a touch wider and lighter, so the two levels never look alike. */
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(52px, 7.4vw, 104px); font-weight: 700; font-stretch: 94%; letter-spacing: -.018em; line-height: .96; }
h2 { font-size: clamp(41px, 5vw, 66px); font-weight: 680; font-stretch: 94%; letter-spacing: -.015em; line-height: 1; }
h3 { font-size: 21px; font-weight: 620; font-stretch: 100%; letter-spacing: -.005em; line-height: 1.2; }
.sub, .lede { margin: 0; color: var(--muted); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; font-weight: 400; text-wrap: pretty; max-width: 34em; }
.sub strong { color: var(--fg); }
p { text-wrap: pretty; }
kbd {
  font: 600 .88em/1 var(--font); padding: .2em .45em; border-radius: 8px; white-space: nowrap;
  background: var(--sunk); border: 1px solid var(--line); color: var(--fg); box-shadow: 0 1.5px 0 var(--line);
}

/* ---------- Sections ---------- */
section { padding: clamp(96px, 13vh, 152px) 0; }
.wrap { width: var(--page); margin: 0 auto; }
/* Section heads sit left: the headline, then its one-line sub right under it. */
.head { display: grid; gap: 18px; justify-items: start; margin-bottom: clamp(40px, 6vw, 64px); }
.head h2 { max-width: 14em; }

.band { position: relative; }

/* ---------- Welcome (only with motion; js/intro-gate.js turns it on) ----------
   A black screen over the page. Scrolling shrinks it (clip-path, scrubbed in main.js) into the menu bar's notch. */
.intro { display: none; }
.intro-on .intro {
  --ix: 0px; --ib: 0px; --ir: 0px;
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  display: grid; place-items: center; background: var(--black); color: var(--white); text-align: center;
  clip-path: inset(0 var(--ix) var(--ib) var(--ix) round 0 0 var(--ir) var(--ir));
}
.intro-words { display: grid; justify-items: center; gap: 6px; }
.intro-hi { margin: 0; display: flex; align-items: center; gap: .45em; font-size: clamp(22px, 2.4vw, 32px); font-weight: 400; letter-spacing: -.01em; }
.intro-name { margin: 0; font: 700 clamp(72px, 11vw, 150px)/1 var(--display); font-stretch: 94%; letter-spacing: -.02em; }
.intro-hi-words { display: block; }
.intro-eyes { display: block; width: 2.4em; }
.intro-scroll { position: absolute; left: 0; right: 0; bottom: 28px; margin: 0; display: grid; justify-items: center; gap: 4px; color: #8E8E93; font-size: 13px; }
.intro-scroll svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.8s var(--ease-out) infinite; }
@keyframes nudge { 50% { translate: 0 4px; } }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(36px, 6vh, 72px); padding-bottom: clamp(56px, 8vh, 96px); overflow: hidden;
  background:
    radial-gradient(40% 50% at 8% 0%, rgba(10, 132, 255, .10), transparent 70%),
    radial-gradient(36% 46% at 96% 18%, rgba(255, 159, 10, .13), transparent 70%),
    var(--white);
}
/* Centred: the promise, what it does, the action, and one quiet line of facts. */
.hero-head { text-align: center; display: grid; justify-items: center; }
.hero h1 { max-width: 11em; }
/* Blue highlighter under what matters. --hl is how far it has been drawn (main.js swipes it in). */
mark.hl {
  --hl: 100%; color: inherit; padding: 0 .06em; margin: 0 -.06em;
  background: linear-gradient(transparent 58%, rgba(10, 132, 255, .28) 58%, rgba(10, 132, 255, .28) 92%, transparent 92%) no-repeat 0 0 / var(--hl) 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
mark.hl.soft { color: var(--ink); background-image: linear-gradient(transparent 62%, rgba(10, 132, 255, .2) 62%); }
.hero .lede { margin-top: 22px; max-width: 31em; }
.cta-row { margin-top: 30px; display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap; }
.hero .cta-row { justify-content: center; }
.hero .cta-note { margin: 18px 0 0; color: var(--muted); font-size: 15px; }

/* The Mac. Everything inside .screen scales with its width (cqw). */
.mac { width: min(1080px, 100%); margin: clamp(48px, 7vw, 80px) auto 0; }
/* The hero shows a short, whole screen (no fade): the notch is the subject, the buttons sit below on white. */
.hero .mac { margin-top: clamp(36px, 4.5vw, 56px); }
.hero .screen { aspect-ratio: 16 / 10; }
@media (max-width: 640px) { .hero .screen { aspect-ratio: 4 / 3; } .hero .menubar > span:last-child, .hero .menubar > span:first-child > span { display: none; } }
.hero .moments { margin-top: 28px; }
/* On wider screens the moments become a glass dock on the Mac's screen, like the macOS Dock. */
@media (min-width: 641px) {
  .hero .moments {
    width: fit-content; margin: calc(-62px - clamp(10px, 1.5vw, 18px)) auto 0; padding: 4px; gap: 4px; border-radius: 999px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  }
  .hero .moment-btn { border: 0; background: transparent; color: rgba(255, 255, 255, .88); min-height: 30px; padding: 0 12px; gap: 6px; font-size: 13px; }
  .hero .moment-btn i { width: 6px; height: 6px; }
  .hero .moment-btn:hover { background: rgba(255, 255, 255, .12); }
  .hero .moment-btn[aria-pressed="true"] { background: var(--white); color: var(--black); }
}
/* A MacBook lid: slim black bezel, a thin aluminium edge, corners rounded at the top and nearly square at the hinge. */
.bezel {
  padding: clamp(5px, .75vw, 10px); border-radius: clamp(12px, 1.9vw, 24px) clamp(12px, 1.9vw, 24px) 4px 4px;
  background: var(--black); border: 1.5px solid #B9BAC0; outline: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 50px 100px -30px rgba(10, 60, 140, .35), 0 30px 60px -40px rgba(255, 140, 0, .4);
}
.screen {
  --p: 1; /* 0 notch at rest → 1 open; GSAP scrubs it */
  position: relative; container-type: inline-size; aspect-ratio: 16 / 10;
  border-radius: clamp(7px, 1.1vw, 14px) clamp(7px, 1.1vw, 14px) 2px 2px; overflow: hidden;
  background:
    radial-gradient(80% 90% at 20% 0%, rgba(10, 132, 255, .6) 0%, transparent 65%),
    radial-gradient(60% 70% at 90% 85%, rgba(255, 159, 10, .45) 0%, transparent 70%),
    radial-gradient(90% 60% at 50% 110%, rgba(100, 210, 255, .2) 0%, transparent 70%),
    #040812;
}
/* The base: wider than the lid, aluminium, with the thumb notch for opening it. */
.base {
  position: relative; width: 112%; margin-left: -6%; height: clamp(10px, 1.5vw, 18px);
  border-radius: 2px 2px 45% 45% / 2px 2px 100% 100%;
  background: linear-gradient(#F2F2F4, #D1D2D6 55%, #A9AAB0);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .45);
}
.base::before { content: ""; position: absolute; left: 50%; top: 0; width: 13%; height: 42%; translate: -50% 0; background: linear-gradient(#B4B5BA, #CFD0D4); border-radius: 0 0 12px 12px; }
.menubar {
  position: absolute; inset: 0 0 auto; height: 2.1cqw; padding: 0 1.6cqw;
  display: flex; align-items: center; justify-content: space-between;
  font-size: max(6px, .82cqw); font-weight: 500; color: rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .18);
}
.menubar > span:first-child { display: flex; gap: 1.6em; }
.menubar b { font-weight: 700; }
/* One app window, faint, so the screen reads as a desktop and the notch keeps its real size against it. */
.desk-win {
  position: absolute; left: 7cqw; top: 7cqw; width: 42cqw; height: 30cqw; border-radius: 1cqw;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 2cqw 5cqw -1cqw rgba(0, 0, 0, .5);
}
.desk-win::before {
  content: ""; position: absolute; left: 1.2cqw; top: 1.1cqw; width: .8cqw; height: .8cqw; border-radius: 50%;
  background: #FF5F57; box-shadow: 1.3cqw 0 #FEBC2E, 2.6cqw 0 #28C840; opacity: .8;
}
/* A note's title and lines, as soft bars. */
.desk-win::after {
  content: ""; position: absolute; left: 3cqw; right: 12cqw; top: 4.4cqw; bottom: 4cqw;
  background:
    linear-gradient(rgba(255, 255, 255, .22), rgba(255, 255, 255, .22)) 0 0 / 40% 1.1cqw no-repeat,
    repeating-linear-gradient(transparent 0 2cqw, rgba(255, 255, 255, .09) 2cqw 2.45cqw, transparent 2.45cqw 2.9cqw) 0 0 / 100% 100%;
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent);
}
/* Notch: one black shape, clipped from its open size down to the hardware notch. */
.notch {
  --rest-w: 12.2cqw; --rest-h: 2.1cqw;   /* Notch.swift: 185 x 32 pt at rest, 420 pt open, on a 1512 pt screen */
  position: absolute; top: 0; left: 50%; translate: -50% 0; z-index: 2;
  width: max(240px, 30cqw); font-size: max(11px, .9cqw);   /* true size, but never below readable */
  background: var(--black); color: var(--white); text-align: left;
  clip-path: inset(0 calc((1 - var(--p)) * (50% - var(--rest-w) / 2)) calc((1 - var(--p)) * (100% - var(--rest-h))) round 0 0 calc(var(--r-notch) + var(--p) * 16px) calc(var(--r-notch) + var(--p) * 16px));
}
.notch .eyes-slot { position: absolute; left: 50%; top: calc(var(--rest-h) / 2 + var(--p) * .7em); width: calc(3cqw + var(--p) * 1.2em); translate: -50% -50%; }
.notch-body { padding: calc(var(--rest-h) + 1.3em) 1.3em 1.2em; opacity: clamp(0, (var(--p) - .55) * 2.4, 1); }
.notch-label { display: flex; align-items: center; gap: .5em; color: #A1A1A6; font-size: .86em; }
.m-dot { width: .62em; height: .62em; border-radius: 50%; background: var(--mood, var(--blue-fill)); box-shadow: 0 0 .8em var(--mood, var(--blue-fill)); }
.m-kind { color: var(--white); font-weight: 600; }
.m-when { margin-left: auto; }
.m-acts { margin-top: 1em; display: flex; gap: .5em; }
.m-act { padding: .45em .9em; border-radius: 999px; background: var(--white); color: var(--black); font-size: .86em; font-weight: 600; }
.m-act.alt { background: var(--gray5); color: var(--white); }
.notch-q { margin-top: .5em; font-size: 1.25em; font-weight: 600; letter-spacing: -.01em; min-height: 1.3em; }
.notch-a { margin-top: .55em; color: #D1D1D6; font-size: 1.08em; line-height: 1.4; min-height: 2.8em; }

/* Under the Mac: pick a moment. The bar on the shown one fills while it is up, then the next one comes (main.js). */
.moments { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.moment-btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--fg);
  font: 500 15px/1 var(--font); cursor: pointer; transition: background-color .2s, color .2s, transform .25s var(--ease-pop);
}
.moment-btn:active { transform: scale(.96); }
.moment-btn i { width: 8px; height: 8px; border-radius: 50%; background: var(--mood); }
.moment-btn[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.moment-btn::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--mood); transform: scaleX(0); transform-origin: left; }
.moments.auto .moment-btn[aria-pressed="true"]::after { animation: moment-fill 4.2s linear forwards; }
.moments.auto:hover .moment-btn::after, .moments.auto:focus-within .moment-btn::after, .moments.away .moment-btn::after { animation-play-state: paused; }
@keyframes moment-fill { to { transform: scaleX(1); } }
.screen-keys { position: absolute; left: 50%; bottom: 7cqw; translate: -50% 0; display: flex; gap: 1cqw; opacity: clamp(0, 1 - var(--p) * 3, 1); font-size: max(9px, 1.6cqw); }
.screen-keys kbd { padding: .45em .7em; border-radius: .5em; background: rgba(28, 28, 30, .7); color: #fff; border-color: var(--gray4); box-shadow: none; }

/* Eyes: slot (position) > look (follows the pointer) > img (blinks). The PNGs are light eyes, so they always sit on black. */
.eyes-look { display: block; transition: transform .5s var(--ease-out); }
.eyes-look img { width: 100%; height: auto; aspect-ratio: 2 / 1; transform-origin: 50% 55%; transition: translate .45s var(--ease-out); }
.word { display: inline-block; }

/* ---------- Film ---------- */
.film-frame { position: relative; border-radius: var(--r-tile); overflow: hidden; border: 1px solid var(--gray4); background: var(--black); aspect-ratio: 16 / 9; }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 14px;
  padding: clamp(16px, 3vw, 32px); border: 0; cursor: pointer; color: #fff; font-weight: 600; font-size: 17px;
  background: linear-gradient(transparent 55%, rgba(0, 0, 0, .6));
}
.play > span:last-child { margin-bottom: clamp(13px, 1.7vw, 21px); }
.play .disc {
  width: clamp(52px, 6vw, 68px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .18); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform .3s var(--ease-pop), background-color .2s;
}
.play:hover .disc { transform: scale(1.08); background: var(--blue-btn); }
.play svg { width: 34%; margin-left: 8%; }

/* ---------- Everyday bento: 3 columns, 2 rows; Ask is wide, the two dark tiles sit on the diagonal ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t-ask { grid-column: span 2; }
@media (max-width: 1040px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); } .t-ask { grid-column: auto; } }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 18px; min-width: 0;
  padding: clamp(20px, 2.2vw, 26px); border-radius: var(--r-tile);
  background: var(--surface); color: var(--fg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -14px rgba(0, 0, 0, .14);
}
.tile.dark { box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 18px 40px -16px rgba(0, 0, 0, .45); }
.tile h3 { font-size: 20px; }
.tile-text p { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.tile-demo { margin-top: auto; min-width: 0; }

/* Blink peeks over the Mail tile on hover or focus: the bento's one peek. */
.peeker { position: absolute; right: 30px; bottom: 100%; width: 70px; height: 34px; overflow: hidden; pointer-events: none; }
.peeker .head {
  display: block; height: 100%; padding: 7px 12px 0; background: var(--black); border-radius: 20px 20px 0 0;
  transform: translateY(102%); transition: transform .35s var(--ease-out);
}
.tile:hover .peeker .head, .tile:focus-within .peeker .head { transform: translateY(0); transition: transform .5s var(--ease-pop); }

/* Shared mock pieces */
.row {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px;
  border-radius: var(--r-inner); background: var(--sunk); border: 1px solid transparent; min-width: 0;
}
.row + .row { margin-top: 6px; }
.row .grow { flex: 1; min-width: 0; }
.row .t, .row .m { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .t { font-weight: 600; font-size: 14px; }
.row .m { color: var(--muted); font-size: 13px; }
.icon { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.field {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 44px;
  border-radius: 14px; background: var(--sunk); border: 1px solid var(--line);
}
.field input { flex: 1; min-width: 0; border: 0; background: none; color: var(--fg); font: 500 16px var(--font); outline: none; }
.field:focus-within { border-color: var(--link); box-shadow: 0 0 0 3px rgba(10, 132, 255, .2); }
.field svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2; flex: none; }
.mini-notch {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 10px; color: #fff;
  background: var(--black); border-radius: 0 0 18px 18px; font-weight: 600; font-size: 14px;
  box-shadow: inset 0 -2px 0 var(--c, transparent);
}
.mini-notch img { width: 44px; height: 22px; }
.label { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }

/* Ask (wide, dark): words and model picker left, the open notch right */
.t-ask {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center;
  background: radial-gradient(70% 80% at 100% 0%, rgba(10, 132, 255, .28), transparent 70%), linear-gradient(var(--gray5), var(--gray6));
}
.t-ask h3 { font-size: clamp(26.5px, 2.4vw, 33px); }
/* The chat is the open notch: it hangs from the tile's top edge, eyes centred, like on the Mac. */
.t-ask .tile-demo { margin: 0; align-self: start; margin-top: calc(-1 * clamp(20px, 2.2vw, 26px)); }
@media (max-width: 760px) { .t-ask { grid-template-columns: minmax(0, 1fr); gap: 20px; } .t-ask .tile-demo { margin-top: 0; } .t-ask .chat { border-radius: 22px; } }
.chat { border-radius: 0 0 26px 26px; background: var(--black); padding: 16px clamp(16px, 2vw, 22px) 20px; }
.chat-top { display: flex; justify-content: center; }
.chat-top img { width: 48px; height: 24px; }
.bubble-q { margin-top: 10px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.bubble-a { margin-top: 8px; color: #D1D1D6; font-size: 16px; line-height: 1.45; min-height: 4.35em; }
.chat .m-acts { font-size: 15px; }
.models { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.model {
  min-height: 34px; padding: 0 13px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--gray4); cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease-pop);
}
.model:hover { border-color: #636366; }
.model:active { transform: scale(.95); }
.model[aria-pressed="true"] { border-color: var(--blue-fill); background: rgba(10, 132, 255, .2); }
.model small { color: var(--green); font-weight: 600; margin-left: 4px; font-size: 12px; }
.model-note { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* Mail */
.mail .row { width: 100%; text-align: left; cursor: pointer; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), border-color .3s, box-shadow .5s, background-color .3s; }
.mail .row:hover { border-color: var(--line); }
.mail .verdict { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: opacity .3s; }
.mail .verdict::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #C7C7CC; }
.mail .row.imp { background: var(--white); }
.mail .row.imp .verdict { color: var(--fg); }
.mail .row.imp .verdict::before { background: var(--red); box-shadow: 0 0 0 3px rgba(255, 69, 58, .2); }
.mail.sorted .row:not(.imp) { opacity: .55; }
.mail.sorted .row.imp { border-color: var(--red); box-shadow: 0 10px 28px -12px rgba(255, 69, 58, .55); }
.mail:not(.sorted) .verdict { opacity: 0; }

/* Clipboard */
.clip-list { list-style: none; margin: 8px 0 0; padding: 0; }
.clip-list li { cursor: grab; padding: 7px 10px; }
.clip-list li:active { cursor: grabbing; }
.clip-list li[hidden] { display: none; }

/* ⌘K */
/* Both search boxes sit right under their text, so they line up side by side. */
.t-clip .tile-demo, .t-search .tile-demo { margin-top: 0; }
.palette .hits { margin-top: 8px; }
.clip-list[data-none]::after, .hits[data-none]::after { content: "No matches"; display: block; padding: 18px 0; text-align: center; color: var(--muted); font-size: 14px; }
.palette .row { padding: 7px 10px; }
.palette .hit.on { background: rgba(10, 132, 255, .12); border-color: rgba(10, 132, 255, .45); }
.palette .kind { color: var(--muted); font-size: 12px; }

/* Ask-First (dark) */
.t-af { background: radial-gradient(80% 60% at 0% 100%, rgba(255, 69, 58, .22), transparent 70%), linear-gradient(var(--gray5), var(--gray6)); }
.approve { text-align: center; }
/* The reply waiting for the OK. */
.draft { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--r-inner); text-align: left; font-size: 14px; line-height: 1.4; color: #D1D1D6; background: rgba(0, 0, 0, .35); border: 1px solid var(--gray4); }
.draft .to { display: block; margin-bottom: 2px; color: var(--muted); font-size: 12px; font-weight: 600; }
.approve .q { margin: 0 0 12px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.touch { display: grid; justify-items: center; gap: 10px; }
.touch button { position: relative; width: 76px; height: 76px; border-radius: 50%; border: 0; background: none; cursor: pointer; padding: 0; }
.touch svg { width: 100%; height: 100%; overflow: visible; }
.touch .ring-bg { stroke: var(--gray4); }
.touch .ring { stroke: var(--red); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .9s var(--ease-out), stroke .3s; }
.touch .print { stroke: var(--white); transition: opacity .3s; }
.touch .tick { stroke: var(--green); opacity: 0; transform-origin: center; scale: .7; transition: opacity .3s, scale .45s var(--ease-pop); }
.touch.done .ring { stroke-dashoffset: 0; stroke: var(--green); }
.touch.busy .ring { stroke-dashoffset: 0; }
.touch.done .print { opacity: 0; }
.touch.done .tick { opacity: 1; scale: 1; }
.touch-label { font-weight: 600; font-size: 14px; min-height: 1.5em; }
.touch-label.ok { color: var(--green); }

/* ---------- Showcase: a tab list and one stage ---------- */
.showcase { display: grid; gap: 24px; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: start; }
.tabs { display: grid; gap: 4px; }
.tab {
  display: grid; gap: 2px; text-align: left; padding: 14px 18px; border: 0; border-radius: 18px; cursor: pointer;
  background: none; color: var(--muted); font-size: 18px; font-weight: 600; letter-spacing: -.01em;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out);
}
.tab small { font-size: 14px; font-weight: 450; letter-spacing: 0; color: var(--muted); }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { background: var(--mist); color: var(--fg); }
/* Every panel shares one grid cell, so the stage is as tall as the tallest panel and never jumps. */
.stage { display: grid; gap: 56px; padding: clamp(24px, 3.4vw, 44px); border-radius: var(--r-tile); background: var(--mist); }
.panel { display: flex; flex-direction: column; gap: 28px; min-width: 0; border-radius: var(--r-inner); }
.showcase[data-ready] .panel { grid-area: 1 / 1; }
.panel[hidden] { display: flex; visibility: hidden; }
.panel:not([hidden]) { animation: panel-in .45s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); filter: blur(6px); } }
.panel h3 { font-size: clamp(26.5px, 2.4vw, 33px); }
.panel-text p { margin: 10px 0 0; color: var(--muted); font-size: 17px; max-width: 40em; }
.panel-demo { --pad: clamp(18px, 2.4vw, 28px); margin-top: auto; min-width: 0; padding: var(--pad); border-radius: 22px; background: var(--white); box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 12px 32px -18px rgba(0, 0, 0, .18); }
@media (max-width: 900px) {
  .showcase { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* Phones: the tabs become a row of pills that scrolls sideways inside the page width. */
  .tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; scroll-padding-inline: 16px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; padding: 0 18px; min-height: 44px; align-content: center; border-radius: 999px; font-size: 16px; box-shadow: inset 0 0 0 1px var(--line); }
  .tab[aria-selected="true"] { background: var(--ink); color: var(--white); box-shadow: none; }
  .tab small { display: none; }
  /* One panel at a time in the flow, so short panels don't inherit the tallest one's height. */
  .showcase[data-ready] .panel { grid-area: auto; }
  .panel[hidden] { display: none; }
}

/* Day */
/* Notches hang from the top edge of their card, like the real one. */
.peeks { display: flex; flex-wrap: wrap; gap: 10px; margin: calc(-1 * var(--pad)) 0 18px; }
.timeline { position: relative; height: 60px; border-radius: 14px; background: var(--sunk); }
.block {
  position: absolute; top: 10px; bottom: 10px; border-radius: 8px; transform-origin: left center;
  background: var(--c); color: #000; font-size: 13px; font-weight: 600; padding: 0 8px;
  display: flex; align-items: center; overflow: hidden; white-space: nowrap;
}
.block[style*="blue-fill"] { color: #fff; }
.block.short { font-size: 0; }
@media (max-width: 1100px) { .block { font-size: 12px; padding: 0 6px; } }
@media (max-width: 560px) { .block { font-size: 0; } }
.now { position: absolute; top: 2px; bottom: 2px; width: 2px; background: var(--red); border-radius: 2px; }
.hours { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 6px; font-variant-numeric: tabular-nums; }

/* Money */
.money-demo { display: grid; gap: 24px; grid-template-columns: auto minmax(0, 1fr); align-items: end; }
@media (max-width: 560px) { .money-demo { grid-template-columns: minmax(0, 1fr); } }
.big-num { font-size: clamp(32px, 3.4vw, 42px); font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 4px; }
.runway { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; font-size: 14px; }
.runway i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.bars { position: relative; display: flex; align-items: flex-end; gap: 4px; height: 120px; margin-top: 10px; }
.bars span { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--blue-fill); transform-origin: bottom; }
.bars span.over { background: var(--orange); }
.budget-line { position: absolute; left: 0; right: 0; border-top: 1.5px dashed #8E8E93; }
.budget-line em { position: absolute; right: 0; top: -20px; font-style: normal; font-size: 12px; color: var(--muted); }

/* Habits */
.habit { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name streak" "week week"; align-items: center; gap: 8px 10px; padding: 10px 0; }
.habit:first-child { padding-top: 0; }
.habit:last-child { padding-bottom: 0; }
.habit + .habit { border-top: 1px solid var(--line); }
.habit .name { grid-area: name; font-weight: 600; font-size: 15px; }
.habit .week { grid-area: week; display: flex; gap: 6px; }
.habit .streak { grid-area: streak; }
.dot { width: 22px; height: 22px; border-radius: 50%; background: #E5E5EA; display: grid; place-items: center; }
.dot.on { background: var(--green); }
.dot svg { width: 12px; height: 12px; stroke: #000; stroke-width: 3; fill: none; }
button.dot {
  width: 28px; height: 28px; margin: -3px; border: 0; padding: 0; cursor: pointer; background: var(--white);
  box-shadow: inset 0 0 0 2px #8E8E93; transition: transform .25s var(--ease-pop), background-color .2s;
}
button.dot.on { background: var(--green); box-shadow: none; }
button.dot:active { transform: scale(.85); }
.streak { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; position: relative; display: inline-flex; align-items: center; gap: 6px; justify-self: end; }
.streak::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.streak.gold::before { background: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 214, 10, .35); }
.spark { position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); pointer-events: none; }

/* Content */
#content-mock .mini-notch { display: flex; width: fit-content; margin: calc(-1 * var(--pad)) auto 0; }
.ideas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
@media (max-width: 560px) { .ideas { grid-template-columns: minmax(0, 1fr); } }
.idea {
  display: flex; flex-direction: column; gap: 10px; justify-content: space-between; min-height: 120px; padding: 14px;
  border-radius: 18px; background: var(--sunk);
}
.idea .fmt { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.idea .fmt i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.idea .ttl { font-size: 17px; font-weight: 650; line-height: 1.2; letter-spacing: -.015em; }
.idea .plat { color: var(--muted); font-size: 12px; }

/* Moods */
.peek-stage { display: grid; justify-items: center; gap: 18px; }
.peek { margin-top: calc(-1 * var(--pad)); }
.peek {
  position: relative; width: min(400px, 100%); min-height: 86px; padding: 42px 18px 16px; color: #fff;
  background: var(--black); border-radius: 0 0 26px 26px; text-align: center; font-weight: 600; font-size: 16px;
  box-shadow: 0 24px 50px -24px var(--mood-glow, rgba(0, 0, 0, .4));
  transition: box-shadow .5s var(--ease-out);
}
.peek .eyes-slot { position: absolute; left: 50%; top: 8px; width: 68px; translate: -50% 0; }
.peek-text { transition: color .3s; }
.moods { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mood {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer;
  font-size: 15px; font-weight: 500; transition: border-color .2s, background-color .2s, transform .2s var(--ease-pop);
}
.mood:active { transform: scale(.95); }
.mood i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.mood[aria-pressed="true"] { border-color: var(--ink); background: var(--sunk); }

/* ---------- Privacy band ---------- */
/* Privacy, drawn: Mac ↔ your server (a rack with your key locked on it) ↔ your AI and mail. Light runs along the wires. */
.vault {
  position: relative; display: grid; grid-template-columns: 1fr minmax(40px, .6fr) 1fr minmax(40px, .6fr) 1fr; align-items: center;
  padding: 48px 28px 32px;
}
/* The dashed frame round what you own: the Mac and the server. */
.yours { position: absolute; left: 0; top: 0; bottom: 0; width: calc(60% + 14px); border: 1.5px dashed rgba(48, 209, 88, .5); border-radius: 32px; pointer-events: none; }
.yours span { position: absolute; top: 14px; left: 22px; color: var(--green); font-size: 13px; font-weight: 600; }
.v-node { display: grid; justify-items: center; text-align: center; gap: 4px; }
.v-node > b { margin-top: 18px; font: 620 19px/1.2 var(--display); }
.v-node > span { color: var(--muted); font-size: 14px; }
.mini-mac { width: 132px; }
.mm-screen { position: relative; aspect-ratio: 16 / 10; border: 4px solid #000; outline: 1px solid var(--gray4); border-radius: 9px 9px 2px 2px; background: radial-gradient(90% 90% at 20% 0%, rgba(10, 132, 255, .7), transparent 70%), radial-gradient(70% 70% at 90% 100%, rgba(255, 159, 10, .5), transparent 70%), #040812; }
.mm-screen i { position: absolute; left: 50%; top: 0; width: 26%; height: 9%; translate: -50% 0; background: #000; border-radius: 0 0 4px 4px; }
.mm-base { width: 114%; margin-left: -7%; height: 6px; border-radius: 0 0 40% 40% / 0 0 100% 100%; background: linear-gradient(#D1D2D6, #8E8E93); }
.rack { position: relative; display: grid; gap: 5px; width: 128px; }
.unit {
  height: 24px; border-radius: 7px; border: 1px solid var(--gray4); display: flex; align-items: center; padding: 0 10px;
  background: repeating-linear-gradient(90deg, transparent 0 4px, rgba(255, 255, 255, .07) 4px 6px) 46px 50% / 62px 10px no-repeat, linear-gradient(var(--gray5), var(--gray6));
}
.unit i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.unit:nth-child(2) i { animation-delay: .7s; }
.unit:nth-child(3) i { animation-delay: 1.3s; }
.key {
  position: absolute; right: -16px; bottom: -14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); box-shadow: 0 6px 18px -4px rgba(255, 214, 10, .55); rotate: -12deg;
}
.key svg { width: 22px; height: 22px; fill: none; stroke: #000; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.providers { display: grid; gap: 6px; justify-items: center; }
.providers span { padding: 6px 14px; border-radius: 999px; background: linear-gradient(var(--gray5), var(--gray6)); border: 1px solid var(--gray4); font-size: 13px; font-weight: 600; }
.providers .mail { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.providers svg, .facts svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* A wire, and two pulses of light going back and forth on it. */
.wire { position: relative; height: 2px; margin: 0 6px 58px; background: linear-gradient(90deg, var(--green), var(--blue-fill)); border-radius: 2px; }
.wire i { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px rgba(100, 210, 255, .9); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .wire i { animation: pulse-go 2.4s var(--ease-out) infinite; }
  .wire i + i { animation-name: pulse-back; animation-delay: 1.2s; }
  .unit i { animation: led 2.2s steps(1) infinite; }
}
@keyframes pulse-go { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes pulse-back { 0% { left: 100%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 0; opacity: 0; } }
@keyframes led { 0%, 70% { opacity: 1; } 80% { opacity: .3; } 90% { opacity: 1; } }
.pex { margin: 22px 0 0; display: flex; gap: 12px; align-items: center; justify-content: center; color: var(--muted); font-size: 15px; opacity: .8; }
.pex-chip { padding: 5px 12px; border-radius: 999px; border: 1px dashed var(--gray4); color: var(--fg); font-weight: 600; text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .45); }
.facts { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.facts li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: linear-gradient(var(--gray5), var(--gray6)); border: 1px solid var(--gray4); font-size: 15px; font-weight: 500; }
.facts svg { width: 18px; height: 18px; color: var(--green); }
@media (max-width: 820px) {
  .vault { grid-template-columns: 1fr; padding: 48px 20px 24px; }
  .yours { width: auto; right: 0; bottom: auto; height: calc(66% - 30px); }
  .wire { width: 2px; height: 44px; margin: 14px auto; background: linear-gradient(var(--green), var(--blue-fill)); }
  .wire i { left: 50%; top: 0; margin: -4px 0 0 -4px; }
  @keyframes pulse-go { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
  @keyframes pulse-back { 0% { top: 100%; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: 0; opacity: 0; } }
  .pex { flex-direction: column; text-align: center; }
}

/* ---------- Setup: three steps on one rail; the numbers sit on it ---------- */
.flow { position: relative; padding-top: 30px; }
.rail { position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--line); }
.rail i { position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform-origin: left; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
.step { counter-increment: step; position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--r-tile); background: var(--mist); }
/* The number is a stop on the rail. */
.step::before {
  content: counter(step); position: absolute; left: 26px; top: -44px; display: grid; place-items: center; width: 28px; height: 28px;
  background: var(--bg); color: var(--ink); font: 650 14px/1 var(--display); border: 2px solid var(--ink); border-radius: 50%;
}
.step > b { display: block; font: 620 21px/1.2 var(--display); letter-spacing: -.005em; margin: 22px 0 6px; }
.step > span { color: var(--muted); }
.step-art { overflow: hidden; display: grid; place-items: center; min-height: 196px; padding: 18px; border-radius: 20px; background: var(--white); box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 12px 32px -18px rgba(0, 0, 0, .18); }
/* 1: the disk image window */
.dmg { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); }
.dmg .app { display: grid; justify-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.dmg img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .45); }
.folder { position: relative; width: 66px; height: 50px; margin-top: 10px; border-radius: 6px 10px 10px 10px; background: linear-gradient(#6CB8FF, #2F8CF5); }
.folder::before { content: ""; position: absolute; left: 0; top: -7px; width: 26px; height: 9px; border-radius: 5px 5px 0 0; background: #5AA9F7; }
.drag { width: 46px; stroke: var(--muted); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 3 4; }
/* 2: the button and the installer's real steps */
.art-server { place-items: stretch; align-content: center; gap: 14px; }
.sb-btn { display: flex; align-items: center; justify-content: center; min-height: 38px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }
.progress { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.progress li { display: flex; align-items: center; gap: 8px; }
.progress li::before { content: ""; flex: none; line-height: 1; width: 14px; height: 14px; border-radius: 50%; box-sizing: border-box; }
.progress .ok::before { content: "✓"; display: grid; place-items: center; background: var(--green); color: #000; font-size: 9px; font-weight: 800; }
.progress .wait { color: var(--muted); }
.progress .wait::before { border: 2px solid #C7C7CC; border-top-color: var(--ink); }
/* 3: the notch with the next meeting, above the key and the permission */
.art-notch { place-items: stretch; align-content: start; gap: 8px; padding-top: 0; }
.art-notch .mini-notch { justify-self: center; margin-bottom: 10px; white-space: nowrap; font-size: 13px; }
.perm { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--sunk); font-size: 13px; font-weight: 600; }
.perm .dots { color: var(--muted); letter-spacing: .1em; }
.perm .on { display: inline-flex; align-items: center; gap: 6px; }
.perm .on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
/* Phones: the rail runs down the left, the numbers on it. */
@media (max-width: 820px) {
  .flow { padding: 0 0 0 30px; }
  .rail { right: auto; bottom: 0; width: 2px; height: auto; }
  .rail i { transform-origin: top; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step::before { left: -44px; top: 26px; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 24px 64px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); align-items: start; } .faq-grid .head { grid-template-columns: 1fr; position: sticky; top: 96px; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-size: clamp(18px, 1.8vw, 20px); font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
/* Plus that turns into a minus: a round button with a horizontal bar, plus a vertical bar that rotates flat. */
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, var(--white);
  box-shadow: 0 0 0 1px var(--line);
}
.faq summary::before {
  content: ""; position: absolute; right: 19px; top: 50%; width: 2px; height: 12px; margin-top: -6px; z-index: 1;
  background: var(--ink); transition: rotate .3s var(--ease-out);
}
.faq details[open] summary::before { rotate: 90deg; }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 62ch; }
.faq details p strong { color: var(--fg); }

/* ---------- Waitlist ---------- */
.end { text-align: center; overflow: hidden; background: radial-gradient(50% 60% at 50% 0%, rgba(10, 132, 255, .22), transparent 70%), radial-gradient(40% 50% at 80% 100%, rgba(255, 159, 10, .16), transparent 70%), var(--black); }
.end .sub { margin: 18px auto 0; }
.end-eyes { width: 128px; margin: 0 auto 26px; }
.waitlist { width: min(560px, 100%); margin: 40px auto 0; text-align: left; position: relative; }
.wl-row { display: grid; gap: 8px; }
.wl-label { grid-column: 1 / -1; font-weight: 600; font-size: 15px; }
.wl-input {
  min-width: 0; min-height: 52px; padding: 0 18px; border-radius: 999px; font: 500 17px var(--font);
  color: var(--white); background: var(--gray6); border: 1px solid var(--gray4);
}
.wl-input::placeholder { color: var(--gray); }
.wl-input:focus { outline: none; border-color: var(--blue-ink-dark); box-shadow: 0 0 0 3px rgba(77, 163, 255, .35); }
.wl-input[aria-invalid="true"] { border-color: #FF6961; }
.wl-submit { margin-top: 22px; width: 100%; min-height: 52px; }
.wl-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 15px; }
.wl-consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue-btn); cursor: pointer; }
.wl-consent input[aria-invalid="true"] { outline: 2px solid #FF6961; outline-offset: 2px; }
.wl-consent label { cursor: pointer; }
.wl-fine { margin: 8px 0 0 34px; color: var(--muted); font-size: 14px; }
.wl-status { margin: 16px 0 0; min-height: 1.5em; font-weight: 600; font-size: 15px; }
.wl-status.error { color: #FF6961; }   /* 7:1 on black */
.wl-status.ok { color: var(--green); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.waitlist.done .wl-row, .waitlist.done .wl-consent, .waitlist.done .wl-fine, .waitlist.done .wl-submit { display: none; }
.waitlist.done .wl-status { text-align: center; font-size: 19px; }

/* ---------- Footer: a dark screen with the name cropped at the bottom ---------- */
.site-foot { position: relative; overflow: hidden; background: var(--gray6); color: #A1A1A6; padding: 88px 0 0; font-size: 15px; }
/* Blinks on its own, for the header notch on the pages that run no script. */
.css-blink { animation: blink 7s 2s infinite; }
@keyframes blink { 0%, 96%, 100% { transform: scaleY(1); } 98% { transform: scaleY(.08); } }
.site-foot .inner { width: var(--page); margin: 0 auto; }
.foot-top { display: grid; gap: 40px 64px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); align-items: start; }
.sign { margin: 0 0 22px; max-width: 15em; color: var(--white); font: 650 clamp(26.5px, 2.8vw, 33px)/1.12 var(--display); font-stretch: 90%; letter-spacing: -.02em; text-wrap: balance; }
.foot-cols { display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.foot-cols h2 { margin: 0 0 12px; font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.3; color: #8E8E93; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: #D1D1D6; overflow-wrap: anywhere; }
.site-foot a:not(.btn) { color: #D1D1D6; text-decoration: none; }
.site-foot a:not(.btn):hover, .site-foot a[aria-current] { color: var(--white); text-decoration: underline; }
.site-foot :focus-visible { outline-color: var(--blue-ink-dark); }
.copy { margin: 56px 0 0; padding-top: 18px; border-top: 1px solid var(--gray4); }
.copy small { font-size: 14px; }
/* The name, set big enough that the screen's bottom edge crops it. */
.wordmark {
  margin: 8px 0 -.2em; text-align: center; font-family: var(--display); font-size: clamp(120px, 27vw, 400px); font-weight: 800; font-stretch: 88%; letter-spacing: -.025em; line-height: .9;
  background: linear-gradient(#48484A, var(--gray6) 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
@media (max-width: 820px) {
  .foot-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cols > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Text pages (install, privacy, terms) ---------- */
.doc { width: min(720px, 100% - 32px); margin: 0 auto; padding: clamp(56px, 9vh, 96px) 0 112px; }
.doc h1 { font-size: clamp(44px, 6.4vw, 72px); }
.doc .lede { margin-top: 18px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.doc h2 { font-size: clamp(26px, 3vw, 32px); letter-spacing: -.025em; margin: 56px 0 14px; scroll-margin-top: 80px; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { color: #3A3A3F; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); }
.doc code { font: 500 .9em ui-monospace, Menlo, monospace; background: var(--mist); border-radius: 6px; padding: .1em .4em; word-break: break-all; }
.doc ol.steps-doc { list-style: none; padding: 0; counter-reset: s; }
.doc ol.steps-doc > li { counter-increment: s; position: relative; padding-left: 56px; margin-top: 28px; }
.doc ol.steps-doc > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); color: var(--ink); font: 650 14px/1 var(--display); display: grid; place-items: center; }
.doc ol.steps-doc b { color: var(--ink); display: block; font-size: 18px; margin-bottom: 4px; }
.note { margin-top: 28px; padding: 18px 20px; border-radius: 20px; background: var(--mist); }
.note.warn { box-shadow: inset 4px 0 0 var(--orange); }
.note p { margin: 0; }
.note p + p, .note .cta-row { margin-top: 12px; }
.download-box { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.download-box[hidden] { display: none; }
.download-box .size { color: var(--muted); font-size: 15px; }
.path { color: var(--ink); font-weight: 600; }
table.who { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
table.who th, table.who td { text-align: left; vertical-align: top; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); color: #3A3A3F; }
table.who th { color: var(--ink); font-weight: 600; width: 34%; }

/* ---------- Reduced motion: final states, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
