/*
  Rollspeed site. One stylesheet, written by hand, for index.html and the text pages tools/build.py makes.
  Type is the visitor's own system face (San Francisco on Apple devices), so no font is downloaded.
  Order: tokens, base, nav, buttons, hero, sections, devices, tiles, the parts of each section, the text
  pages, footer, motion.
*/

/* ---------------------------------------------------------------- tokens */
:root {
  --bg: #000;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #86868b;
  --tile: #161617;
  --tile-2: #1d1d1f;
  --line: rgb(255 255 255 / .14);
  --accent: #ff8a1f;
  --accent-text: #ff8a1f;
  --rec: #ff453a;
  --bezel: #0b0b0c;
  --bezel-edge: #3a3a3d;
  --font: system-ui, -apple-system, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --nav: 52px;
  --gutter: clamp(20px, 5vw, 48px);
  --wrap: 1180px;
  --ease: cubic-bezier(.28, .11, .32, 1);
  --pad-y: clamp(88px, 12vw, 168px);
  color-scheme: dark;
}
.light {
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #515154;
  --ink-3: #6e6e73;
  --tile: #fff;
  --tile-2: #e8e8ed;
  --line: rgb(0 0 0 / .14);
  --accent-text: #b54a00;
  --bezel-edge: #2a2a2d;
  background: var(--bg);
  color: var(--ink);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 16px); background: #000; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 17px/1.47 var(--font); letter-spacing: -.011em; color: var(--ink); background: var(--bg);
       -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip;
       min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(255 138 31 / .35); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 980px; background: var(--ink); color: #000; font-size: 14px; font-weight: 600; }
.skip:focus { top: 8px; }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; background: rgb(0 0 0 / .72);
       -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
       border-bottom: 1px solid rgb(255 255 255 / .1); color: #f5f5f7; }
.nav__bar { height: var(--nav); display: flex; align-items: center; gap: 20px; }
.nav__brand { display: flex; align-items: center; gap: 9px; margin-right: auto; padding: 8px 0; }
.nav__brand img { width: 22px; height: 22px; border-radius: 5px; }
.nav__brand svg { height: 20px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); }
.nav__links a { font-size: 13px; letter-spacing: -.005em; color: rgb(245 245 247 / .8); padding: 8px 0; transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: #fff; }
.nav__toggle { display: none; width: 44px; height: 44px; margin-right: -12px; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; }
.nav__toggle span { display: block; width: 17px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.nav__toggle span + span { margin-top: 6px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 1023px) {
  .js .nav__toggle { display: flex; }
  .nav__bar { gap: 12px; }
  .nav__links { position: absolute; inset: 100% 0 auto; display: grid; gap: 0; padding: 8px var(--gutter) 28px;
                background: #000;
                border-bottom: 1px solid rgb(255 255 255 / .1); max-height: calc(100dvh - var(--nav)); overflow-y: auto;
                visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .nav__links a { font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: #f5f5f7; padding: 13px 0; border-bottom: 1px solid rgb(255 255 255 / .1); }
  .nav__links a:last-child { border-bottom: 0; }
}
@media (max-width: 359px) { .nav .pill { display: none; } }

/* ---------------------------------------------------------------- buttons and links */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 980px;
        background: var(--accent); color: #1d1d1f; font-size: 17px; font-weight: 500; letter-spacing: -.015em; white-space: nowrap;
        transition: background-color .2s, transform .2s var(--ease), box-shadow .2s; }
.pill:hover { background: #ff9c40; }
.pill:active { transform: scale(.97); }
.pill--sm { min-height: 30px; padding: 0 13px; font-size: 12px; letter-spacing: -.005em; }
.pill--lg { min-height: 54px; padding: 0 30px; font-size: 19px; }
.pill--ghost { background: transparent; color: var(--accent-text); box-shadow: inset 0 0 0 1px currentColor; }
.pill--ghost:hover { background: var(--accent); color: #1d1d1f; box-shadow: none; }
.more { color: var(--accent-text); font-size: inherit; white-space: nowrap; }
.more::after { content: "\203A"; display: inline-block; margin-left: .3em; transition: transform .25s var(--ease); }
.more:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.more:hover::after { transform: translateX(3px); }

/* ---------------------------------------------------------------- type */
.eyebrow { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.2; font-weight: 600; letter-spacing: -.012em; color: var(--accent-text); }
.eyebrow--rec { color: var(--rec); }
.display { font-size: clamp(44px, 7.4vw, 96px); line-height: 1.05; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.headline { font-size: clamp(36px, 5.6vw, 72px); line-height: 1.07; font-weight: 600; letter-spacing: -.026em; text-wrap: balance; }
.lead { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.36; letter-spacing: -.012em; color: var(--ink-2); text-wrap: pretty; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: calc(var(--nav) + clamp(44px, 8vh, 92px)) 0 clamp(56px, 8vw, 112px); text-align: center; overflow: hidden; }
.hero__copy > * + * { margin-top: 12px; }
.hero .display { max-width: 13em; margin-inline: auto; }
.hero .lead { max-width: 31em; margin: 22px auto 0; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 30px; margin-top: 30px; font-size: clamp(17px, 1.6vw, 21px); }
/* the line that names the camera lines: in index.html, switched off until the maker's written permission arrives */
.works { margin-top: 18px; font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; font-size: 14px; color: var(--ink-3); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgb(255 138 31 / .18); }

.hero__stage { position: relative; width: fit-content; margin: clamp(44px, 6vw, 84px) auto 0; padding: 0 clamp(18px, 6vw, 84px) clamp(22px, 4vw, 52px); }
.hero__glow { position: absolute; inset: -18% -30% -12%; z-index: 0; pointer-events: none;
              background: radial-gradient(46% 52% at 54% 50%, rgb(255 138 31 / .30), transparent 72%),
                          radial-gradient(34% 42% at 22% 76%, rgb(255 69 58 / .24), transparent 72%); filter: blur(30px); }
.hero__stage .ipad { position: relative; z-index: 1; --w: min(900px, 84vw); }
.hero__stage .iphone { position: absolute; z-index: 2; left: 0; bottom: 0; --w: clamp(96px, 20vw, 218px); }

/* ---------------------------------------------------------------- devices: the app's real screens in plain bezels */
/* The screens' corners are the real ones (iPad Pro 30 pt, iPhone 62 pt), so the app's recording frame, which
   follows them, keeps one thickness all the way round. */
.ipad { width: var(--w); padding: calc(var(--w) * .0185); border-radius: calc(var(--w) * .0424); background: var(--bezel);
        box-shadow: inset 0 0 0 1.5px var(--bezel-edge), 0 0 0 1px #000, 0 50px 100px -40px rgb(0 0 0 / .9), 0 30px 60px -30px rgb(0 0 0 / .7); }
.ipad img { width: 100%; border-radius: calc(var(--w) * .0239); }
.iphone { width: var(--w); padding: calc(var(--w) * .034); border-radius: calc(var(--w) * .178); background: var(--bezel);
          box-shadow: inset 0 0 0 1.5px var(--bezel-edge), 0 0 0 1px #000, 0 40px 80px -30px rgb(0 0 0 / .9), 0 20px 40px -20px rgb(0 0 0 / .8); }
.iphone img { width: 100%; border-radius: calc(var(--w) * .144); }
.macwin { width: var(--w); filter: drop-shadow(0 40px 60px rgb(0 0 0 / .65)) drop-shadow(0 0 1px rgb(255 255 255 / .35)); }
.macwin img { width: 100%; }
.light .ipad, .light .iphone { box-shadow: inset 0 0 0 1.5px var(--bezel-edge), 0 50px 90px -40px rgb(0 0 0 / .45), 0 24px 48px -28px rgb(0 0 0 / .35); }

/* ---------------------------------------------------------------- sections */
.section { position: relative; padding: var(--pad-y) 0; }
.section--tight { padding-top: 0; }
.head { max-width: 860px; margin-inline: auto; text-align: center; }
.head > * + * { margin-top: 10px; }
.head .lead { max-width: 31em; margin: 22px auto 0; }
.head--left { margin-inline: 0; text-align: left; }
.head--left .lead { margin-inline: 0; }

.statement { padding: clamp(72px, 11vw, 150px) 0; }
.statement p { max-width: 1010px; margin-inline: auto; font-size: clamp(28px, 4.5vw, 56px); line-height: 1.13; font-weight: 600; letter-spacing: -.028em; color: var(--ink-3); text-wrap: pretty; }
.statement em { font-style: normal; color: var(--ink); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); margin-top: clamp(48px, 6vw, 84px); }
.facts li { padding-top: 20px; border-top: 1px solid var(--line); }
.facts h3 { font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -.018em; }
.facts p { margin-top: 8px; color: var(--ink-2); }
@media (max-width: 733px) { .facts { grid-template-columns: 1fr; gap: 24px; } }

.figure { display: flex; justify-content: center; margin-top: clamp(48px, 6vw, 84px); }
/* --w is used in calc(), so a percentage would not resolve: the centred figures set it in viewport units */
.figure .ipad { --w: min(940px, calc(100vw - 2 * var(--gutter))); }
.figure .macwin { --w: min(1060px, calc(100vw - 2 * var(--gutter))); }

/* ---------------------------------------------------------------- tiles */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: clamp(48px, 6vw, 84px); }
.tile { --tp: clamp(24px, 3.2vw, 44px); position: relative; grid-column: span 6; display: flex; flex-direction: column; min-height: 560px; overflow: hidden; border-radius: 28px; background: var(--tile); isolation: isolate; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
                background: radial-gradient(80% 60% at 50% 110%, rgb(255 255 255 / .07), transparent 70%); }
.tile--5 { grid-column: span 5; }
.tile--7 { grid-column: span 7; }
.tile--12 { grid-column: span 12; }
.tile__copy { padding: clamp(28px, 3.2vw, 44px) clamp(28px, 3.2vw, 44px) 0; max-width: 33em; }
.tile__kicker { font-size: 14px; font-weight: 600; letter-spacing: -.005em; color: var(--accent-text); margin-bottom: 8px; }
.tile h3 { font-size: clamp(24px, 2.5vw, 32px); line-height: 1.13; font-weight: 600; letter-spacing: -.024em; text-wrap: balance; }
.tile p { margin-top: 10px; color: var(--ink-2); text-wrap: pretty; }
.tile__art { position: relative; flex: 1 1 auto; display: flex; justify-content: center; align-items: flex-start; min-height: 300px; margin-top: 32px; padding: 0 clamp(24px, 3.2vw, 44px); overflow: hidden; }
.tile__art--whole { align-items: center; padding-bottom: clamp(28px, 3.2vw, 44px); }
.tile__art--fade { -webkit-mask-image: linear-gradient(#000 62%, transparent 98%); mask-image: linear-gradient(#000 62%, transparent 98%); }
.crop { width: min(100%, var(--cw, 330px)); border-radius: 16px; box-shadow: 0 0 0 1px rgb(255 255 255 / .09), 0 30px 60px -20px rgb(0 0 0 / .8); }
.tile__art--fade .crop { position: absolute; top: 0; left: 50%; translate: -50% 0; width: min(100% - 2 * var(--tp), var(--cw, 330px)); border-radius: 16px 16px 0 0; }

/* a wide tile: the words beside the picture */
@media (min-width: 1068px) {
  .tile--side { flex-direction: row; }
  .tile--side .tile__copy { flex: 1 1 0; padding-bottom: clamp(28px, 3.2vw, 44px); align-self: center; }
  .tile--side .tile__art { flex: 0 0 46%; margin-top: 44px; padding-left: 0; }
  .tile--side .tile__art--fade .crop { left: 0; translate: none; width: min(100% - var(--tp), var(--cw, 330px)); }
}
@media (max-width: 1067px) { .tile, .tile--5, .tile--7 { grid-column: span 6; } }
@media (max-width: 733px) {
  .bento { gap: 14px; }
  .tile, .tile--5, .tile--7 { grid-column: span 12; min-height: 0; border-radius: 22px; }
  .tile__art { min-height: 0; }
  .tile__art--fade { height: 330px; }
}

/* ---------------------------------------------------------------- shoot: the closer look */
#shoot .tile { min-height: 600px; }
#shoot .crop--dial { --cw: 300px; }
#shoot .crop--tiles { --cw: 560px; }
@media (max-width: 733px) { #shoot .tile { min-height: 0; } }

/* ---------------------------------------------------------------- record */
.rec { overflow: hidden; }
.rec__glow { position: absolute; inset: 22% 0 auto; height: 70%; z-index: 0; pointer-events: none;
             background: radial-gradient(42% 46% at 50% 50%, rgb(255 69 58 / .30), transparent 72%); filter: blur(40px); }
.rec .wrap { position: relative; z-index: 1; }
.rec .ipad { box-shadow: inset 0 0 0 1.5px var(--bezel-edge), 0 0 0 1px #000, 0 0 120px -10px rgb(255 69 58 / .35), 0 50px 100px -40px #000; transition: box-shadow .8s var(--ease); }
.rec__glow { transition: opacity .8s var(--ease); }
/* after the cut the red light goes out, until the next take */
.rec.is-cut .rec__glow { opacity: 0; }
.rec.is-cut .ipad { box-shadow: inset 0 0 0 1.5px var(--bezel-edge), 0 0 0 1px #000, 0 50px 100px -40px #000; }
/* the iPad's three screens, one over the other: recording, finalizing, ready */
.rec__screens { position: relative; }
.rec__shot + .rec__shot { position: absolute; left: calc(var(--w) * .0185); top: calc(var(--w) * .0185); width: calc(100% - var(--w) * .037); opacity: 0; transition: opacity .6s var(--ease); }
.rec__screens[data-take="fin"] .rec__shot[data-take="fin"], .rec__screens[data-take="ready"] .rec__shot[data-take="ready"] { opacity: 1; }
html:not(.js) .rec__shot + .rec__shot { display: none; }

/* the hold key: press and keep pressing for a second, as on the app's record key */
.hold { display: grid; justify-items: center; gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.hold__key { position: relative; display: inline-flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 34px 0 28px; border-radius: 18px; overflow: hidden;
             background: #c8231e; color: #fff; font-size: 17px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
             box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 16px 40px -12px rgb(255 69 58 / .6); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
             transition: transform .2s var(--ease), background-color .3s; }
.hold__key::before { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .28); transform-origin: left; transform: scaleX(var(--p, 0)); }
.hold__key > * { position: relative; }
.hold__key.is-held { transform: scale(.98); }
.hold__sq { width: 18px; height: 18px; border-radius: 4px; background: #fff; transition: border-radius .3s, background-color .3s; }
.hold__key.is-idle { background: #2a2a2c; box-shadow: inset 0 1px 0 rgb(255 255 255 / .12); }
.hold__key.is-idle .hold__sq { border-radius: 50%; background: var(--rec); }
.hold__key.is-busy { background: #2a2a2c; box-shadow: inset 0 1px 0 rgb(255 255 255 / .12); color: #a1a1a6; cursor: default; }
.hold__key.is-busy .hold__sq { border-radius: 50%; background: #ffb340; animation: busy 1s ease-in-out infinite alternate; }
@keyframes busy { to { opacity: .35; } }
.hold__note { font-size: 14px; color: var(--ink-3); min-height: 1.5em; }
html:not(.js) .hold { display: none; }

/* ---------------------------------------------------------------- image */
#image .tile__art--fade { min-height: 330px; }

/* ---------------------------------------------------------------- takes (light) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 980px; background: var(--tile-2); color: var(--ink-2); font-size: 14px; letter-spacing: -.005em; }
.head .chips { justify-content: center; margin-top: 26px; }
.light .chips li { background: #e3e3e8; color: #1d1d1f; font-weight: 500; }

/* ---------------------------------------------------------------- set up: words left, the screen running off the page's right edge */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__copy > * + * { margin-top: 10px; }
.split__copy .lead { margin-top: 22px; }
.split__copy .rows { margin-top: 30px; }
.split__copy .chips { margin-top: 30px; }
.rows li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.split__art .ipad { --w: clamp(620px, 62vw, 900px); }
#setup { overflow: hidden; }
@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; }
  .split__art { display: flex; justify-content: center; }
  .split__art .ipad { --w: min(900px, calc(100vw - 2 * var(--gutter))); }
}

/* ---------------------------------------------------------------- devices */
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 30px auto 0; padding: 4px; border-radius: 980px; background: var(--tile-2); }
.seg button { position: relative; z-index: 1; min-height: 40px; padding: 0 clamp(16px, 2.4vw, 26px); border-radius: 980px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: var(--ink-2); white-space: nowrap; transition: color .25s; }
.seg button[aria-selected="true"] { color: #1d1d1f; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"]:hover { color: #1d1d1f; }
.seg__thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 980px; background: #f5f5f7; transition: transform .4s var(--ease), width .4s var(--ease); }
html:not(.js) .seg { display: none; }

.devs { --stage: min(600px, calc((100vw - 2 * var(--gutter)) * .64)); display: grid; margin-top: clamp(36px, 5vw, 64px); }
.dev { grid-area: 1 / 1; display: grid; justify-items: center; align-content: start; gap: 28px; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s; }
.dev__art { display: grid; place-items: center; height: var(--stage); }
.dev .iphone { --w: calc(var(--stage) * .43); }
.dev .ipad { --w: calc(var(--stage) * 1.39); }
.dev .macwin { --w: calc(var(--stage) * 1.56); }
.dev p { max-width: 34em; text-align: center; color: var(--ink-2); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.38; text-wrap: pretty; }
.js .dev[hidden] { display: grid; visibility: hidden; opacity: 0; transform: scale(.97); transition: opacity .3s, transform .3s, visibility 0s .3s; }
html:not(.js) .devs { gap: 72px; }
html:not(.js) .dev { grid-area: auto; }
@media (max-width: 733px) {
  .devs { --stage: min(440px, 108vw); }
  .dev .ipad { --w: calc(100vw - 2 * var(--gutter)); }
  .dev .macwin { --w: calc(100vw - 2 * var(--gutter)); }
  .dev__art { height: auto; min-height: calc((100vw - 2 * var(--gutter)) * .7); }
  .dev .iphone { --w: min(230px, 60vw); }
}

/* three palettes: three phones, cut by the tile's foot */
.trio { display: flex; justify-content: center; gap: clamp(10px, 2vw, 22px); width: 100%; container-type: inline-size; }
.trio figure { display: grid; justify-items: center; gap: 14px; }
.trio figcaption { font-size: 14px; font-weight: 500; color: var(--ink-2); }
/* three across whatever the tile gives them: a third of the row, less the two gaps */
.trio .iphone { --w: min(168px, (100cqw - 44px) / 3); }

/* the Mac's keys */
.keys { display: grid; gap: 0; width: 100%; align-self: end; padding-bottom: var(--tp); }
.keys li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.keys kbd { display: inline-grid; place-items: center; min-width: 38px; height: 34px; padding: 0 10px; border-radius: 8px; font: 500 14px/1 var(--font); color: var(--ink);
            background: linear-gradient(#3a3a3d, #2a2a2c); box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 1px 0 #000, 0 2px 6px rgb(0 0 0 / .5); }
.keys span { display: inline-flex; gap: 6px; align-items: center; }

/* large text */
.aa { display: flex; align-items: baseline; justify-content: center; gap: .18em; width: 100%; align-self: center; font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.aa span:nth-child(1) { font-size: 40px; color: var(--ink-3); }
.aa span:nth-child(2) { font-size: 76px; color: var(--ink-2); }
.aa span:nth-child(3) { font-size: clamp(110px, 12vw, 150px); }

.wall .tile__art { flex: 0 0 auto; height: clamp(250px, 30vw, 380px); min-height: 0; justify-content: flex-start; padding-right: 0; }
.wall .ipad { --w: clamp(520px, 62vw, 760px); flex: 0 0 auto; }

/* ---------------------------------------------------------------- private */
.private { text-align: center; }
.private .display { max-width: 11em; margin-inline: auto; }
.private .lead { max-width: 30em; margin: 24px auto 0; }
.nos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 84px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nos li { padding: 30px 12px; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.2; font-weight: 600; letter-spacing: -.018em; }
.nos li + li { border-left: 1px solid var(--line); }
.nos li span { display: block; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); margin-bottom: 6px; }
.private__more { margin-top: 34px; font-size: clamp(17px, 1.6vw, 21px); }
@media (max-width: 899px) {
  .nos { grid-template-columns: 1fr 1fr; border-bottom: 0; }
  .nos li { border-bottom: 1px solid var(--line); padding: 22px 12px; }
  .nos li + li { border-left: 0; }
  .nos li:nth-child(even) { border-left: 1px solid var(--line); }
  .nos li:last-child { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- questions */
.faq { max-width: 820px; margin: clamp(40px, 5vw, 64px) auto 0; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none;
               font-size: clamp(19px, 1.9vw, 24px); line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
                      background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
                      opacity: .7; transition: transform .35s var(--ease), opacity .2s; }
.faq summary:hover::after { opacity: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 46px 26px 0; color: var(--ink-2); max-width: 40em; }
.faq a, .prose a:not(.pill), .footer__legal a { color: var(--accent-text); }
.faq a:hover, .prose a:not(.pill):hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* ---------------------------------------------------------------- close */
.close { text-align: center; padding-bottom: clamp(88px, 11vw, 150px); }
.close__icon { width: 112px; height: 112px; margin: 0 auto 30px; border-radius: 25px; box-shadow: 0 30px 60px -20px rgb(255 138 31 / .35), 0 0 0 1px rgb(255 255 255 / .1); }
.close .headline { max-width: 12em; margin-inline: auto; }
.close .lead { max-width: 28em; margin: 20px auto 0; }
.close .pill { margin-top: 32px; }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: 12px; line-height: 1.5; letter-spacing: -.005em; color: var(--ink-3); background: #000; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 32px; }
.footer__brand { display: grid; gap: 12px; align-content: start; justify-items: start; color: var(--ink); }
.footer__brand svg { height: 18px; width: auto; }
.footer__brand p { font-size: 14px; color: var(--ink-2); }
.footer h2 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.footer li + li { margin-top: 8px; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.footer__legal { display: grid; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line); max-width: none; }
@media (max-width: 733px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- the launch email sheet */
.sheet { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 28px; overflow: auto;
         background: #1d1d1f; color: #f5f5f7; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 40px 120px #000; text-align: center; }
.sheet::backdrop { background: rgb(0 0 0 / .62); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
html:has(.sheet[open]) { overflow: hidden; }
.sheet__form, .sheet__done { display: grid; justify-items: center; padding: 44px clamp(24px, 6vw, 40px) 32px; }
.sheet__done[hidden], .sheet__form[hidden] { display: none; }
.sheet__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgb(255 255 255 / .1); color: #a1a1a6; transition: background-color .2s, color .2s; }
.sheet__close:hover { background: rgb(255 255 255 / .18); color: #f5f5f7; }
.sheet__icon { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 16px 32px -12px rgb(255 138 31 / .4); }
.sheet h2 { margin-top: 20px; font-size: 28px; line-height: 1.12; font-weight: 600; letter-spacing: -.024em; outline: 0; }
.sheet__lead { margin-top: 10px; color: #a1a1a6; text-wrap: pretty; }
.sheet__lead strong { color: #f5f5f7; font-weight: 600; overflow-wrap: anywhere; }
.sheet__input { width: 100%; height: 54px; margin-top: 26px; padding: 0 18px; border: 1px solid rgb(255 255 255 / .2); border-radius: 14px; background: #000; color: #f5f5f7;
                font: inherit; font-size: 17px; letter-spacing: -.01em; transition: border-color .2s, box-shadow .2s; }
.sheet__input::placeholder { color: #6e6e73; }
.sheet__input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(255 138 31 / .25); }
.sheet__input[aria-invalid="true"] { border-color: var(--rec); box-shadow: 0 0 0 4px rgb(255 69 58 / .2); }
.sheet .pill--lg { width: 100%; margin-top: 12px; border: 0; cursor: pointer; font-family: inherit; }
.sheet .pill[disabled] { opacity: .6; cursor: default; }
.sheet__note { min-height: 1.5em; margin-top: 12px; font-size: 14px; color: #ff9f97; }
.sheet__note a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.sheet__small { margin-top: 6px; font-size: 12px; line-height: 1.45; color: #86868b; }
.sheet__small a { color: #a1a1a6; text-decoration: underline; text-underline-offset: .2em; }
.sheet__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sheet__tick { color: var(--accent); margin-top: 8px; }
/* the same field on the unsubscribe page (api/unsubscribe/) */
.leave { display: grid; gap: 4px; max-width: 420px; }
.leave .sheet__input { margin-top: 0; }
.leave .pill { border: 0; cursor: pointer; font-family: inherit; }
.prose form .pill { border: 0; cursor: pointer; font-family: inherit; }
.sheet__done .pill--lg { margin-top: 26px; }
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-in .45s var(--ease); }
  .sheet[open]::backdrop { animation: veil-in .35s ease; }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
  @keyframes veil-in { from { opacity: 0; } }
}

/* ---------------------------------------------------------------- the text pages */
.page { padding: calc(var(--nav) + clamp(56px, 8vw, 104px)) 0 clamp(88px, 10vw, 140px); }
.page__in { width: min(720px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.page__head { padding-bottom: clamp(32px, 4vw, 48px); margin-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page__head h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.06; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.page__head p { margin-top: 18px; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.36; color: var(--ink-2); text-wrap: pretty; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 52px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-weight: 600; letter-spacing: -.022em; }
.prose h3 { margin-top: 30px; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.prose ul ::marker { color: var(--ink-3); }
.prose .note { padding: 20px 24px; border-radius: 18px; background: var(--tile); }
.prose .note p { color: var(--ink); }
.prose .small { margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.prose .faq { max-width: none; margin-top: 20px; border-bottom: 0; }
.prose .faq__item { padding: 22px 0; border-top: 1px solid var(--line); }
.prose .faq__item h3 { margin-top: 0; }
.prose .faq__item p { margin-top: 8px; }
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.prose th { color: var(--ink); font-weight: 600; font-size: 14px; }

/* ---------------------------------------------------------------- the user guide (guide/, made by tools/build.py) */
.guide { display: grid; grid-template-columns: 250px minmax(0, 720px); justify-content: center; align-items: start; gap: clamp(40px, 6vw, 88px);
         padding: calc(var(--nav) + clamp(40px, 6vw, 72px)) var(--gutter) clamp(88px, 10vw, 140px); }
.guide__side { position: sticky; top: calc(var(--nav) + 24px); max-height: calc(100svh - var(--nav) - 48px); overflow-y: auto; overscroll-behavior: contain; padding-right: 8px; font-size: 14px; line-height: 1.35; scrollbar-width: thin; }
.toc summary { display: none; }
.toc h2 { margin: 22px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); }
.toc a { display: block; padding: 5px 0; color: var(--ink-2); transition: color .2s; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="page"] { color: var(--accent-text); font-weight: 600; }
.guide__main .page__head h1 { font-size: clamp(36px, 4.6vw, 56px); }
.crumb { margin-bottom: 14px; font-size: 14px; color: var(--ink-3); }
.guide__main .page__head .crumb { font-size: 14px; margin-top: 0; }
.crumb a { color: var(--accent-text); }
.crumb a:hover { text-decoration: underline; text-underline-offset: .2em; }
.prose ol { display: grid; gap: 8px; padding-left: 1.4em; list-style: decimal; }
.prose ol ::marker { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.prose em { font-style: italic; }
.screen { display: grid; justify-items: center; gap: 12px; margin: 30px 0; padding: 32px 20px 24px; border-radius: 22px; background: var(--tile); }
.screen img { width: 245px; border-radius: 26px; box-shadow: 0 0 0 5px var(--bezel), 0 0 0 6.5px var(--bezel-edge), 0 30px 60px -24px #000; }
.screen figcaption { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 !important; list-style: none !important; }
.pages a { display: grid; gap: 4px; height: 100%; padding: 18px 20px; border-radius: 18px; background: var(--tile); transition: background-color .2s, transform .3s var(--ease); }
.pages a:hover { background: var(--tile-2); text-decoration: none !important; transform: translateY(-2px); }
.pages strong { font-size: 17px; }
.pages span { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 64px; }
.step { display: grid; gap: 4px; padding: 18px 20px; border-radius: 18px; background: var(--tile); font-weight: 600; letter-spacing: -.015em; transition: background-color .2s; }
.step:hover { background: var(--tile-2); }
.step span { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); }
.step--on { text-align: right; }
@media (max-width: 1023px) {
  .guide { grid-template-columns: minmax(0, 720px); gap: 28px; }
  .guide__side { position: static; max-height: none; overflow: visible; padding: 0; }
  .toc { border-radius: 18px; background: var(--tile); }
  .toc summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
  .toc summary::-webkit-details-marker { display: none; }
  .toc summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
  .toc[open] summary::after { transform: translateY(2px) rotate(-135deg); }
  .toc nav { padding: 0 20px 18px; }
  .toc h2 { margin-top: 16px; }
  .toc a { padding: 7px 0; font-size: 15px; }
}
@media (max-width: 599px) { .pages, .steps { grid-template-columns: 1fr; } .step--on { text-align: left; } }

/* ---------------------------------------------------------------- motion
   Everything is in place without JavaScript and with Reduce Motion on. With both available, sections rise
   into place as they come into view, the hero arrives once on load, and the hero's phone drifts as the page scrolls. */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
  .js .rv.is-in { opacity: 1; transform: none; }
  .js .rv--zoom { transform: scale(.955) translateY(18px); }

  .js .hero__copy > * { animation: rise .9s var(--ease) both; }
  .js .hero__copy > :nth-child(2) { animation-delay: .06s; }
  .js .hero__copy > :nth-child(3) { animation-delay: .14s; }
  .js .hero__copy > :nth-child(4) { animation-delay: .22s; }
  .js .hero__copy > :nth-child(5) { animation-delay: .3s; }
  .js .hero__stage { animation: arrive 1.3s var(--ease) .25s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes arrive { from { opacity: 0; transform: translateY(44px) scale(.95); } }

  @supports (animation-timeline: scroll()) {
    .hero__stage .iphone { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 110vh; }
    .hero__glow { animation: dim linear both; animation-timeline: scroll(root); animation-range: 20vh 120vh; }
    @keyframes drift { to { transform: translateY(-13%); } }
    @keyframes dim { to { opacity: .35; } }
  }
}
