/* Everything after "Ask": the page is a Mac screen again (menu bar + notch stay at the top), on the white/paper
   background. Calm sizes (studied on superwhisper.com): titles ~44px, leads 17px, body 15px, a 1080px column.
   Colours only from tokens.css. */
:root { --wrap: 1080px; --sec: clamp(72px, 10vw, 128px); }
.wrap { max-inline-size: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { margin: 0 0 14px; font: 600 13px/1 var(--font-text); letter-spacing: .02em; color: var(--ink-2); }
.sec-title { margin: 0; font: 500 clamp(32px, 3.5vw, 48px)/1.06 var(--font-serif); letter-spacing: -.025em; text-wrap: balance; }
.sec-lead { margin: 16px 0 0; max-inline-size: 34em; font: 400 17px/1.55 var(--font-text); color: var(--ink-2); text-wrap: pretty; }
.sec-lead a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* letters that light up as you scroll: each flares and settles (BRAND.md display exception) */
.lit .lt { transition: color .5s var(--soft); color: inherit; }
.lit .lt.f1 { color: var(--coral-deep); } .lit .lt.f2 { color: var(--sky-text); } .lit .lt.done { color: var(--coral-deep); }
.lit.sky .lt.done { color: var(--sky-text); }

/* ===== the screen: the menu bar and the notch come back at Dictation and stay ===== */
.chrome { z-index: 60; transform: translateY(-100%); transition: transform .5s var(--soft); }
.g-notch { z-index: 61; transform: translateY(-110%); transition: transform .5s var(--soft), inline-size .5s var(--spring), block-size .45s var(--spring), border-radius .4s var(--soft); }
:root[data-chrome="1"] .chrome, :root[data-chrome="1"] .g-notch { transform: none; }
:root[data-chrome="1"] .float { opacity: 0 !important; pointer-events: none; }
.mb-wifi { position: relative; display: grid; place-items: center; inline-size: 26px; block-size: 22px; padding: 0; border: 0; border-radius: 5px; cursor: pointer; color: var(--ink); background: none; }
.mb-wifi:hover { background: rgb(var(--ink-rgb) / .08); }
.mb-wifi svg { inline-size: 18px; block-size: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mb-wifi:not(.on) svg { opacity: .35; } .mb-wifi:not(.on)::after { content: ""; position: absolute; inline-size: 20px; block-size: 1.8px; background: var(--ink); rotate: -40deg; }
.g-notch .lock { inline-size: 14px; block-size: 14px; fill: none; stroke: white; stroke-width: 1.6; stroke-linecap: round; opacity: 0; }
.g-notch[data-icon="lock"] .tick, .g-notch[data-icon="orb"] .tick { opacity: 0 !important; }
.g-notch[data-state="notice"][data-icon="lock"] .lock, .g-notch[data-state="notice"][data-icon="orb"] .orb { opacity: 1; }
.g-notch[data-state="notice"] { --w: var(--nw, calc(var(--notch) + 2 * 76px)); }
.g-notch .g-dl { position: absolute; inset-inline-end: 8px; inset-block-start: 7px; padding: 8px 14px; border-radius: 999px; font: 600 13px/1 var(--font-text); color: var(--graphite-bottom); background: white;
  opacity: 0; pointer-events: none; transition: opacity .25s; white-space: nowrap; }
.g-notch .g-dl:hover { text-decoration: none; }
.g-notch[data-state="ready"] { --w: 320px; --h: 46px; border-radius: 0 0 18px 18px; cursor: default; }
.g-notch[data-state="ready"] .wing.left { opacity: 1; block-size: 46px; } .g-notch[data-state="ready"] .orb { opacity: 1; }
.g-notch[data-state="ready"] .g-dl { opacity: 1; pointer-events: auto; transition-delay: .2s; }
.g-notch[data-state="ready"] .wing.right { opacity: 0; }

/* ===== a macOS window ===== */
.win { border-radius: 14px; overflow: hidden; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / .1), 0 24px 60px -24px rgb(var(--shade-rgb) / .4); }
.win-bar { position: relative; display: flex; align-items: center; gap: 8px; block-size: 40px; padding-inline: 14px; background: var(--well); border-block-end: 1px solid rgb(var(--ink-rgb) / .06); }
.win-bar i { inline-size: 12px; block-size: 12px; border-radius: 50%; background: rgb(var(--ink-rgb) / .14); }
.win-bar span { position: absolute; inset-inline: 0; display: flex; justify-content: center; align-items: center; gap: 7px; font: 600 13px/1 var(--font-text); pointer-events: none; }
.win-bar img { border-radius: 4px; }


/* ===== Privacy, live in the notch ===== */
.priv { padding-block: var(--sec); background: var(--paper); color: var(--ink); }
.priv-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.tryrow { display: grid; gap: 8px; margin-block-start: 26px; }
.tcard { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / .06); transition: box-shadow .3s; }
.tk { font: 600 12px/1 var(--font-text); color: var(--ink-2); } .tv { font: 400 15px/1.3 var(--font-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tv.mono { font-family: var(--font-mono); letter-spacing: .04em; }
.tcard button { padding: 8px 14px; border: 0; border-radius: 9px; cursor: pointer; font: 600 13px/1 var(--font-text); color: var(--on-primary); background: var(--primary); transition: transform .15s; }
.tcard button:active { transform: scale(.96); }
.tcard.kept { box-shadow: 0 0 0 1.5px var(--success); } .tcard.blocked { box-shadow: 0 0 0 1.5px var(--recording); }
.priv-wifi { margin: 18px 0 0; font: 400 14px/1.5 var(--font-text); color: var(--ink-2); }
.ledger { display: grid; border-radius: 22px; padding: 6px 24px; background: var(--surface); box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / .06), 0 30px 60px -40px rgb(var(--shade-rgb) / .4); }
.lg-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-block-end: 1px solid rgb(var(--ink-rgb) / .08); font: 400 15px/1.3 var(--font-text); color: var(--ink-2); }
.lg-row:last-child { border: 0; } .lg-row b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.lg-row.big b { font: 500 clamp(34px, 3.4vw, 48px)/1 var(--font-serif); letter-spacing: -.02em; }
.lg-row b.zero { color: var(--success); } .lg-row b.pulse { animation: pulse .6s var(--soft); }
@keyframes pulse { 40% { transform: scale(1.12); } }

/* ===== Questions, in a big modern Notes window ===== */
.faq { padding-block: var(--sec); background: var(--paper); color: var(--ink); }
.faq-head { text-align: center; margin-block-end: 40px; }
.nw { display: grid; grid-template-columns: 330px 1fr; inline-size: 100%; max-inline-size: 1080px; min-block-size: 540px; margin-inline: auto; border-radius: 22px; overflow: hidden; background: var(--surface);
  box-shadow: 0 0 0 .5px rgb(var(--shade-rgb) / .2), 0 2px 6px rgb(var(--shade-rgb) / .05), 0 40px 80px -40px rgb(var(--shade-rgb) / .45); }
.nw-side { display: flex; flex-direction: column; gap: 10px; padding: 16px 12px; background: color-mix(in srgb, var(--paper) 70%, var(--well)); border-inline-end: .5px solid rgb(var(--ink-rgb) / .1); }
.nw-lights { display: flex; gap: 8px; padding: 2px 6px 8px; } .nw-lights i { inline-size: 12px; block-size: 12px; border-radius: 50%; background: rgb(var(--ink-rgb) / .16); }
.nw-search { display: flex; align-items: center; gap: 6px; block-size: 30px; padding-inline: 9px; border-radius: 9px; background: rgb(var(--ink-rgb) / .06); }
.nw-search svg { flex: none; inline-size: 13px; block-size: 13px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; }
.nw-search input { flex: 1; min-inline-size: 0; border: 0; outline: 0; background: none; font: 400 13.5px/1 var(--font-text); color: var(--ink); }
.nw-search input::placeholder { color: var(--ink-3); } .nw-search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
.nw-folder { display: flex; justify-content: space-between; margin: 8px 8px 2px; font: 600 12px/1 var(--font-text); color: var(--ink-2); } .nw-folder small { font-weight: 400; }
.nw-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nw-list button { display: grid; gap: 4px; inline-size: 100%; padding: 11px 12px; border: 0; border-radius: 10px; cursor: pointer; text-align: start; color: var(--ink); background: none; transition: background .2s; }
.nw-list button b { font: 600 14px/1.3 var(--font-text); }
.nw-list button small { font: 400 12.5px/1.3 var(--font-text); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nw-list time { color: var(--ink); margin-inline-end: 4px; }
.nw-list button:hover { background: rgb(var(--ink-rgb) / .045); }
.nw-list button[aria-selected="true"] { background: var(--butter-fill); }
.nw-list button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.nw-note { position: relative; padding: 12px clamp(28px, 5vw, 64px) 40px; }
.nw-tools { display: flex; justify-content: flex-end; gap: 18px; block-size: 24px; margin-block-end: 18px; opacity: .45; }
.nw-tools i { inline-size: 16px; block-size: 14px; border: 1.6px solid var(--ink); border-radius: 3px; } .nw-tools .t-check { border-radius: 50%; } .nw-tools .t-share { border-block-start: 0; border-radius: 0 0 3px 3px; }
.nw-date { margin: 0 0 22px; text-align: center; font: 400 12.5px/1 var(--font-text); color: var(--ink-2); }
.nw-note h3 { margin: 0 0 16px; font: 700 clamp(26px, 2.4vw, 32px)/1.2 var(--font-text); letter-spacing: -.02em; }
.nw-note h3.in { animation: nwIn .5s var(--soft, ease); }
@keyframes nwIn { from { opacity: 0; transform: translateY(6px); } }
.nw-a { margin: 0; max-inline-size: 34em; font: 400 19px/1.6 var(--font-text); color: var(--ink); }
.nw-a .wd { display: inline-block; animation: wdIn .45s var(--soft, ease) both; animation-delay: calc(var(--k) * 28ms + 120ms); }
@keyframes wdIn { from { opacity: 0; filter: blur(5px); transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .nw-a .wd, .nw-note h3.in { animation: none; } }
.faq-more { text-align: center; margin: 22px 0 0; font: 400 15px/1.4 var(--font-text); color: var(--ink-2); } .faq-more a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ===== the end ===== */
.end { background: var(--surface); color: var(--ink); }
.end { position: relative; overflow: clip; }
.end-in { display: grid; justify-items: center; align-content: center; gap: 16px; padding: 64px var(--gutter) 30px; text-align: center; }
.end-title { margin: 0; font: 500 clamp(40px, 5.6vw, 84px)/1.02 var(--font-serif); letter-spacing: -.03em; }
.end-sub { margin: 0; color: var(--ink-2); font-size: 16px; }
.end-promise { margin: 4px 0 6px; max-inline-size: 30em; padding: 12px 18px; border-radius: 14px; font: 400 16px/1.45 var(--font-text); color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .08); } .end-help { font-size: 14px; color: var(--ink-2); }

/* ===== footer, with a Dock ===== */
.site-foot { position: relative; padding-block: 34px 140px; background: var(--paper); color: var(--ink-2); font: 400 14px/1.5 var(--font-text); border-block-start: 1px solid rgb(var(--ink-rgb) / .06); }
.foot-grid { display: grid; grid-template-columns: 1.1fr 2.6fr; gap: 48px; }
.foot-brand .brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 600 18px/1 var(--font-display); } .foot-brand .brand svg { inline-size: 24px; block-size: 17px; } .foot-brand .brand:hover { text-decoration: none; }
.foot-brand p { margin: 14px 0 0; } .foot-brand .fine { font-size: 13px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-cols .fh { margin: 0 0 12px; font: 600 13px/1 var(--font-text); color: var(--ink); }
.foot-cols a { display: block; padding-block: 4px; color: var(--ink-2); } .foot-cols a:hover { color: var(--ink); text-decoration: none; }
.dock { position: absolute; inset-block-end: 22px; inset-inline-start: 50%; translate: -50% 0; display: flex; align-items: end; gap: 6px; padding: 8px 10px; border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / .1), 0 20px 40px -20px rgb(var(--shade-rgb) / .4); }
.dk { position: relative; display: grid; justify-items: center; } .dk:hover { text-decoration: none; }
.dk .ic { display: grid; place-items: center; inline-size: 48px; block-size: 48px; border-radius: 12px; transform-origin: bottom center; transition: transform .25s var(--spring), margin .25s var(--spring); }
.dk .ic img { inline-size: 48px; block-size: 48px; }
.dk .ic.stash { color: white; background: var(--graphite-bottom); } .dk .ic.stash svg { inline-size: 28px; block-size: 20px; }
.dk em { position: absolute; inset-block-end: calc(100% + 16px); padding: 5px 10px; border-radius: 7px; font: 500 12px/1 var(--font-text); font-style: normal; white-space: nowrap; color: var(--ink);
  background: var(--surface); box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / .1); opacity: 0; transition: opacity .15s; pointer-events: none; }
.dk:hover em, .dk:focus-visible em { opacity: 1; }
.dk:hover .ic, .dk:focus-visible .ic { transform: scale(1.35); margin-inline: 8px; }
.dk:hover + .dk .ic, .dk:has(+ .dk:hover) .ic { transform: scale(1.15); margin-inline: 3px; }

@media (max-width: 860px) {
  .nw { grid-template-columns: 1fr; } .nw-side { border: 0; border-block-end: .5px solid rgb(var(--ink-rgb) / .1); } .nw-a { font-size: 17px; } .foot-grid { grid-template-columns: 1fr; } .foot-cols { grid-template-columns: 1fr 1fr; }
  .chrome .mb-menu { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lit .lt, .chrome, .g-notch { transition: none; } }

/* ===== the ending: a slight zoom-out into the screen (--z from story.js, 0 → 1 as the ending arrives) ===== */
.bezel { position: fixed; z-index: 70; inset: calc(var(--z, 0) * 26px) calc(var(--z, 0) * 40px); border-radius: calc(var(--z, 0) * 22px); pointer-events: none;
  box-shadow: 0 0 0 200vmax black, inset 0 0 0 calc(var(--z, 0) * 1px) color-mix(in srgb, white 8%, transparent); opacity: min(1, calc(var(--z, 0) * 3)); visibility: var(--zv, hidden); }
:root[data-chrome="1"] .chrome { translate: 0 calc(var(--z, 0) * 26px); padding-inline: calc(14px + var(--z, 0) * 40px); }
:root[data-chrome="1"] .g-notch { translate: -50% calc(var(--z, 0) * 26px); }
@media (max-width: 760px) { .bezel { inset: calc(var(--z, 0) * 14px) calc(var(--z, 0) * 12px); } }


/* Notes polish: a real toolbar, a pinned folder */
.nw-bar { display: flex; align-items: center; gap: 6px; block-size: 38px; margin: 0 calc(-1 * clamp(28px, 5vw, 64px) + 12px) 14px; padding-inline: 4px; color: var(--ink-2); }
.nw-gap { flex: 1; }
.nw-tb { display: grid; place-items: center; inline-size: 32px; block-size: 28px; border-radius: 7px; font: 500 14px/1 var(--font-text); }
.nw-tb:hover { background: rgb(var(--ink-rgb) / .06); }
.nw-tb svg { inline-size: 18px; block-size: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nw-folder span { display: inline-flex; align-items: center; gap: 5px; } .nw-folder svg { inline-size: 12px; block-size: 12px; fill: var(--butter-deep); }
.nw-list button[aria-selected="true"] { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--butter) 60%, transparent); }

/* the installer window at the end */
.dmg { inline-size: min(520px, 100%); border-radius: 16px; overflow: hidden; text-align: center; background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 .5px rgb(var(--shade-rgb) / .2), 0 30px 60px -30px rgb(var(--shade-rgb) / .45); }
.dmg-bar { position: relative; display: flex; gap: 8px; align-items: center; block-size: 34px; padding-inline: 12px; background: color-mix(in srgb, var(--ink) 3%, var(--surface)); border-block-end: .5px solid rgb(var(--ink-rgb) / .1); }
.dmg-bar i { inline-size: 12px; block-size: 12px; border-radius: 50%; background: rgb(var(--ink-rgb) / .16); }
.dmg-bar span { position: absolute; inset-inline: 0; font: 600 13px/1 var(--font-text); pointer-events: none; }
.dmg-body { display: flex; align-items: center; justify-content: space-around; padding: 34px 30px 18px; }
.dmg-app, .dmg-apps { display: grid; justify-items: center; gap: 8px; color: var(--ink); }
.dmg-app { cursor: grab; touch-action: none; transition: transform .3s var(--spring, ease); } .dmg-app:hover { text-decoration: none; transform: scale(1.04); }
.dmg-app.dragging { cursor: grabbing; transition: none; z-index: 5; }
.dmg-ic { display: grid; place-items: center; inline-size: 92px; block-size: 92px; border-radius: 22px; color: var(--white); background: var(--graphite-bottom); box-shadow: 0 10px 22px -10px rgb(var(--shade-rgb) / .5); }
.dmg-ic svg { inline-size: 54px; block-size: 38px; }
.dmg-n { font: 500 13px/1 var(--font-text); }
.dmg-apps img { inline-size: 96px; block-size: auto; transition: transform .25s var(--spring, ease); }
.dmg-apps.hot img { transform: scale(1.12); }
.dmg-arrow { inline-size: 110px; block-size: 22px; fill: none; stroke: var(--ink-3); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 6 7; }
.dmg-cap { margin: 0; padding: 0 20px 22px; font: 400 13.5px/1.4 var(--font-text); color: var(--ink-2); }
.dmg.done .dmg-cap { color: var(--ink); font-weight: 500; }
.end-note, .end-chip { position: absolute; border: 0; cursor: grab; font: inherit; text-align: start; touch-action: none; transition: transform .3s var(--spring, ease); }
.end-note { inset: 22% auto auto 7%; inline-size: 190px; padding: 16px 14px 18px; rotate: -4deg; font: 500 15px/1.45 var(--font-text); color: var(--ink); background: var(--butter-fill); box-shadow: inset 0 14px 0 color-mix(in srgb, var(--butter) 55%, var(--butter-fill)), 0 18px 30px -18px rgb(var(--shade-rgb) / .4); padding-block-start: 26px; }
.end-chip { inset: 56% 8% auto auto; display: grid; inline-size: 120px; padding: 7px 7px 10px; rotate: 6deg; color: var(--graphite-bottom); background: var(--white); box-shadow: 0 14px 26px -14px rgb(var(--shade-rgb) / .4); }
.end-chip i { display: block; block-size: 84px; background: var(--paper); box-shadow: inset 0 0 0 1px rgb(var(--shade-rgb) / .08); }
.end-chip b { margin-block-start: 8px; font: 600 13px/1 var(--font-text); } .end-chip span { margin-block-start: 3px; font: 400 11px/1 var(--font-mono); }
[data-drag].dragging { cursor: grabbing; transition: none; z-index: 5; }
@media (max-width: 760px) { .end-note, .end-chip { display: none; } .dmg-body { padding: 26px 14px 14px; } .dmg-arrow { inline-size: 60px; } }

/* footer Dock: more apps, social placeholders, a soft colour glow underneath */
.dock-glow { position: absolute; inset-block-end: 6px; inset-inline-start: 50%; translate: -50% 0; inline-size: min(760px, 90vw); block-size: 90px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side at 22% 60%, color-mix(in srgb, var(--coral) 55%, transparent), transparent), radial-gradient(closest-side at 50% 55%, color-mix(in srgb, var(--butter) 55%, transparent), transparent), radial-gradient(closest-side at 78% 60%, color-mix(in srgb, var(--sky) 55%, transparent), transparent);
  filter: blur(22px); opacity: 1; inset-block-end: 26px; }
.dock .ic.soc { position: relative; } .dock .ic.soc::after { content: ""; position: absolute; inset: 12px; background: var(--white); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.dock .ic.ph { background: var(--coral-deep); } .dock .ic.x { background: var(--graphite-bottom); } .dock .ic.li { background: var(--sky-text); } .dock .ic.gh { background: var(--graphite-top, var(--graphite-bottom)); }
.dock .dsep { align-self: center; inline-size: 1px; block-size: 40px; margin-inline: 4px; background: rgb(var(--ink-rgb) / .14); }
.dock .dk.bounce .ic { animation: dkBounce .9s cubic-bezier(.3, 0, .4, 1); }
@keyframes dkBounce { 0%, 100% { translate: 0 0; } 22% { translate: 0 -22px; } 44% { translate: 0 0; } 62% { translate: 0 -10px; } 80% { translate: 0 0; } }

.end .end-promise { margin: 0; padding: 0; max-inline-size: 34em; background: none; box-shadow: none; font: 400 17px/1.5 var(--font-text); color: var(--ink-2); }
.dmg-body { padding-block: 26px 14px; }

/* real Mac traffic lights on every window we draw */
.win-bar i:nth-of-type(1), .nw-lights i:nth-child(1), .dmg-bar i:nth-child(1) { background: var(--mac-red); }
.win-bar i:nth-of-type(2), .nw-lights i:nth-child(2), .dmg-bar i:nth-child(2) { background: var(--mac-yellow); }
.win-bar i:nth-of-type(3), .nw-lights i:nth-child(3), .dmg-bar i:nth-child(3) { background: var(--mac-green); }

/* ===== both Docks, the macOS way (dock.js sets --s per icon from the pointer's distance) ===== */
.mac-dock { gap: 0 !important; padding: 5px 6px !important; border-radius: 19px !important; overflow: visible; align-items: flex-end !important;
  background: color-mix(in srgb, var(--surface) 42%, transparent) !important; -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: inset 0 0 0 .5px color-mix(in srgb, white 45%, transparent), 0 0 0 .5px rgb(var(--shade-rgb) / .2), 0 14px 34px -14px rgb(var(--shade-rgb) / .38) !important; }
.mac-dock .dk { --base: 46px; --s: 1; position: relative; display: flex !important; justify-content: center; align-items: flex-end; inline-size: calc(var(--base) * var(--s) + 6px); block-size: var(--base); }
[data-dock].mac-dock .dk { --base: 48px; }
.mac-dock.settle .dk { transition: inline-size .2s cubic-bezier(.2, .8, .2, 1); }
.mac-dock .dk > img, .mac-dock .dk > .dk-i, .mac-dock .dk > .ic { flex: none; inline-size: var(--base) !important; block-size: var(--base) !important; margin: 0 !important;
  transform: scale(var(--s)) !important; transform-origin: 50% 100%; }
.mac-dock.settle .dk > img, .mac-dock.settle .dk > .dk-i, .mac-dock.settle .dk > .ic { transition: transform .2s cubic-bezier(.2, .8, .2, 1) !important; }
.mac-dock .dk.bounce > img, .mac-dock .dk.bounce > .dk-i, .mac-dock .dk.bounce > .ic { animation: dkBounce .9s cubic-bezier(.3, 0, .4, 1); }
/* the label, like macOS: a small rounded tag above the icon */
.mac-dock .dk em { position: absolute; inset-block-end: calc(var(--base) * var(--s) + 12px); inset-inline-start: 50%; translate: -50% 0; padding: 4px 10px 5px; border-radius: 7px;
  font: 400 13px/1.2 var(--font-text); font-style: normal; white-space: nowrap; color: var(--ink); background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 0 0 .5px rgb(var(--shade-rgb) / .22), 0 4px 12px -4px rgb(var(--shade-rgb) / .3); opacity: 0; transition: opacity .12s; pointer-events: none; }
.mac-dock .dk:hover em, .mac-dock .dk:focus-visible em { opacity: 1; }
.mac-dock .sep, .mac-dock .dsep { align-self: center; inline-size: 1px; block-size: 38px; margin-inline: 6px; background: rgb(var(--ink-rgb) / .18); }
.mac-dock .run { inset-block-end: -4px !important; }


/* ===== the ending: twice as long, it stays with you while the zoom-out happens ===== */
.end { block-size: 210svh; overflow: visible; }
.end-stick { position: sticky; inset-block-start: 0; min-block-size: 100svh; display: grid; align-items: center; overflow: clip; }
.end-in { padding-block: calc(var(--mb) + 40px) 40px; }
.end-chip { display: none; }
/* a receipt of your day; click and it prints a little more */
.end-receipt { inset: 52% auto auto 6%; display: grid; gap: 8px; inline-size: 180px; padding: 16px 16px 20px; rotate: 3deg; color: var(--graphite-bottom); background: var(--white);
  font: 500 11.5px/1.3 var(--font-mono); letter-spacing: .02em; box-shadow: 0 18px 30px -18px rgb(var(--shade-rgb) / .45);
  border-radius: 2px; }
.rc-h { text-align: center; font-weight: 700; padding-block-end: 6px; border-block-end: 1px dashed rgb(var(--shade-rgb) / .25); }
.rc-rows { display: grid; gap: 5px; } .rc-rows span { display: flex; justify-content: space-between; gap: 10px; } .rc-rows i { font-style: normal; opacity: .7; }
.rc-rows span.new { animation: rcPrint .45s steps(6); }
@keyframes rcPrint { from { clip-path: inset(0 0 100% 0); } }
.rc-f { text-align: center; padding-block-start: 6px; border-block-start: 1px dashed rgb(var(--shade-rgb) / .25); opacity: .6; }
/* a paper plane: throw it and the page's link is copied for a friend */
.end-plane { inset: 18% 9% auto auto; display: grid; justify-items: center; gap: 4px; padding: 0; background: none; box-shadow: none; rotate: -8deg; }
.end-plane svg { inline-size: 120px; block-size: 80px; filter: drop-shadow(0 10px 12px rgb(var(--shade-rgb) / .22)); }
.end-plane .p1 { fill: var(--white); } .end-plane .p2 { fill: color-mix(in srgb, var(--sky-fill) 70%, var(--white)); } .end-plane .p3 { fill: var(--sky-muted); }
.pl-t { font: 500 12px/1 var(--font-text); color: var(--ink-2); }
.end-plane.fly { animation: plane 1.1s cubic-bezier(.5, 0, .8, .4) forwards; }
@keyframes plane { to { translate: 70vw -60vh; rotate: -24deg; scale: .4; opacity: 0; } }
.end-plane.back { animation: planeBack .6s var(--spring, ease); }
@keyframes planeBack { from { scale: .4; opacity: 0; } }
@media (max-width: 760px) { .end { block-size: auto; } .end-stick { position: relative; } .end-receipt, .end-plane { display: none; } }
.end-receipt, .end-plane { position: absolute; z-index: 2; border: 0; cursor: grab; text-align: start; touch-action: none; }
.end-plane { inline-size: 130px; overflow: visible; }
.end-plane svg path { stroke: none; }
.end-receipt { inline-size: 220px; } .rc-rows span { white-space: nowrap; }
.mac-dock .dk.moving { z-index: 3; transition: none; } .mac-dock .dk.moving > :first-child { filter: brightness(.92); } .mac-dock.rearranging { cursor: grabbing; }

/* Questions: a little bigger, and every button works */
.nw { max-inline-size: 1160px; min-block-size: 580px; transition: max-inline-size .5s var(--spring, ease), transform .45s cubic-bezier(.5, 0, .2, 1), opacity .35s; }
.nw.wide { max-inline-size: 1320px; }
.nw.no-side { grid-template-columns: 0 1fr; } .nw.no-side .nw-side { overflow: hidden; padding-inline: 0; border: 0; }
.nw.folded { transform: translateY(40%) scale(.15); opacity: .5; cursor: pointer; }
.nw.folded * { pointer-events: none; }
.nw-lights i { cursor: pointer; }
.nw-tb { cursor: default; } .nw-tb:focus-visible { outline: 2px solid var(--focus); }
.nw-tb.done { color: var(--focus); }
.nw.f-serif .nw-note h3, .nw.f-serif .nw-a { font-family: var(--font-serif); } .nw.f-mono .nw-note h3, .nw.f-mono .nw-a { font-family: var(--font-mono); font-size: 16px; }
.nw-a a { color: var(--focus); }
.nw-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; } .nw-check li { display: flex; gap: 12px; align-items: flex-start; }
.nw-check button { flex: none; inline-size: 20px; block-size: 20px; margin-block-start: 4px; padding: 0; border-radius: 50%; border: 1.5px solid var(--ink-3); background: none; cursor: pointer; }
.nw-check button[aria-pressed="true"] { border-color: var(--butter-deep); background: var(--butter-deep); box-shadow: inset 0 0 0 3px var(--surface); }
.nw-check button[aria-pressed="true"] + span { color: var(--ink-3); text-decoration: line-through; }
.nw-table { border-collapse: collapse; inline-size: 100%; max-inline-size: 30em; font-size: 16px; } .nw-table td { padding: 9px 12px; border: 1px solid rgb(var(--ink-rgb) / .12); } .nw-table td:first-child { color: var(--ink-2); inline-size: 40%; }

.end-in { transform: translateY(var(--endshift, 0px)); }
.end-receipt.empty { animation: shake .4s; } @keyframes shake { 25% { translate: -4px 0; } 75% { translate: 4px 0; } }
.end-receipt .rc-rows { max-block-size: 240px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }

/* round 6: the ending stays put and is never cut off */
.end { block-size: 150svh; }
.end-in { transform: none; }
.nw-side ul, .nw-list { max-block-size: 430px; overflow: auto; overscroll-behavior: contain; }
/* Easter egg: hold Shift on its own and everything moves in slow motion */
:root.slowmo { cursor: progress; }
/* Easter egg: shake the pointer over the notch and it waves */
.g-notch.wave, .island.wave { animation: notchWave .9s var(--spring); }
@keyframes notchWave { 20% { rotate: -2deg; } 40% { rotate: 2deg; } 60% { rotate: -1.4deg; } 80% { rotate: .8deg; } }

/* round 7: a big, clear download at the end (the .dmg window stays below as the playful way) */
.end-cta { display: grid; justify-items: center; gap: 10px; margin: 6px 0 4px; }
.big-dl { display: inline-flex; align-items: center; gap: 12px; padding: 0 34px; block-size: 64px; border-radius: 999px; font: 600 19px/1 var(--font-text); color: var(--on-primary); background: var(--graphite-bottom);
  box-shadow: 0 1px 0 rgb(255 255 255 / .12) inset, 0 18px 34px -16px rgb(var(--shade-rgb) / .55); transition: transform .35s var(--spring, ease), box-shadow .35s var(--soft, ease); }
.big-dl svg { inline-size: 26px; block-size: 18px; }
.big-dl:hover { text-decoration: none; transform: translateY(-2px) scale(1.02); box-shadow: 0 1px 0 rgb(255 255 255 / .12) inset, 0 24px 40px -16px rgb(var(--shade-rgb) / .6); }
.big-dl:active { transform: scale(.98); }
.end-cta .fine { font-size: 13.5px; color: var(--ink-2); }
.end .dmg { transform: scale(.86); transform-origin: top center; margin-block-end: -36px; }
:root[data-theme="dark"] .big-dl { color: var(--graphite-bottom); background: var(--white); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .big-dl { color: var(--graphite-bottom); background: var(--white); } }

/* ===== phones (mobile-first pass, 23 Nov): nothing may widen the page; the footer Dock fits a 360 px screen ===== */
html { overflow-x: clip; }
@media (max-width: 600px) {
  :root { --notch: 124px; }
  .hero .display { font-size: clamp(30px, 9.2vw, 44px); }
  [data-dock].mac-dock .dk, .mac-dock .dk { --base: 30px; }
  [data-dock] .dk.ph-hide { display: none !important; }
  .mac-dock .sep, .mac-dock .dsep { block-size: 24px; margin-inline: 3px; }
}
.how-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .how-key { display: none; } .how-touch { display: inline; } }
@media (max-width: 600px) {
  .menubar .mb-dl, .menubar .mb-wifi { display: none; }   /* the phone notch leaves room for the brand and the time only */
  [data-bubble] { display: none !important; }              /* the character's speech bubble would sit on the headlines */
}
@media (max-width: 760px) {
  .end { block-size: auto; } .end-stick { min-block-size: 0; padding-block-end: 48px; }   /* no empty screen between the ending and the footer */
}
@media (max-width: 600px) { .mac-dock .dk .ic.soc::after { inset: 7px; } }

/* ---- 25 Nov: one picture each ---- */
.faq { position: relative; } .faq > .wrap { position: relative; } .faq::before { content: ""; position: absolute; inset: 0 0 auto; block-size: clamp(420px, 60vh, 600px); background: linear-gradient(var(--graphite-bottom), var(--graphite-bottom)); }
.faq-art { position: absolute; inset: 0 0 auto auto; inline-size: 62%; block-size: clamp(420px, 60vh, 600px); object-fit: cover; object-position: 100% 40%; mask: linear-gradient(90deg, transparent, black 42%); -webkit-mask: linear-gradient(90deg, transparent, black 42%); }
.faq-art ~ .wrap .eyebrow, .faq-art ~ .wrap .sec-title { color: var(--white); } .faq-art ~ .wrap .eyebrow { opacity: .7; }
.end-door, .end-door img { display: block; inline-size: 100%; } .end-door img { block-size: clamp(320px, 46vw, 660px); object-fit: cover; object-position: 50% 62%; } .site-foot > .end-door { margin-block-end: 56px; }
.faq-art ~ .wrap .faq-head { --coral-deep: var(--coral); }
