/* Lull — fictional demo. The world: keycaps and an incident timeline, one night on call. */
:root {
  --night: #0e0f12; --night-2: #16181d; --night-3: #1f2228; --night-line: #2c3038; --night-ink: #ece8e0; --night-mute: #8e9199;
  --slate: #17191e;
  --paper: #edeae3; --paper-2: #f6f4ef; --paper-line: #cbc6bb; --ink: #121317; --mute: #565961;
  --acc: #ff4a1c; --acc-wall: #a82c0c;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 64px);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.07  0 0 0 0 0.07  0 0 0 0 0.08  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.28'/></svg>");
  --cc: var(--night-ink); --cbg: rgba(14, 15, 18, .84); --cline: var(--night-line);
}
html[data-ground="paper"] { --cc: var(--ink); --cbg: rgba(237, 234, 227, .9); --cline: var(--paper-line); }
html[data-ground="slate"] { --cbg: rgba(23, 25, 30, .9); }

html { background: var(--night); scroll-padding-top: 72px; }
body { background: var(--night); color: var(--night-ink); font: 400 17px/1.55 var(--text); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--acc); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; font-stretch: 84%; letter-spacing: -.028em; line-height: .96; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, min(3.3vw, 6.6vh), 3.6rem); }
h2 { font-size: clamp(1.9rem, min(3.2vw, 6vh), 3.4rem); max-width: 16ch; }
h3 { font-size: clamp(1.35rem, 1.9vw, 1.9rem); letter-spacing: -.02em; }
.line { display: block; overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; } .line > span { display: block; }
.stamp { font: 500 12.5px/1.3 var(--mono); letter-spacing: .04em; color: var(--night-mute); display: flex; align-items: center; gap: .7em; margin-bottom: 18px; }
.stamp time { color: var(--night-ink); padding-left: 12px; position: relative; font-weight: 600; }
.stamp time::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 1px; background: currentColor; }
.doc .stamp { color: var(--mute); } .doc .stamp time { color: var(--ink); }
.lede { max-width: 58ch; color: inherit; opacity: .86; }
.micro { font: 500 12.5px/1.4 var(--mono); letter-spacing: .02em; opacity: .72; margin-top: 12px; }
.note { font: 500 12px/1.4 var(--mono); letter-spacing: .02em; color: var(--mute); margin-top: 40px; }

/* The switch device: any key named in a line is a real cap. */
kbd { font-family: var(--mono); }
kbd.cap { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.55em; padding: 0 .32em; box-sizing: border-box; font: 600 .7em/1 var(--mono); letter-spacing: 0;
  border: 1px solid color-mix(in srgb, currentColor 38%, transparent); border-bottom-width: 3px; border-radius: .34em; vertical-align: .14em; margin: 0 .06em; background: color-mix(in srgb, currentColor 7%, transparent); }

/* ---------- the keycap (the world object) ---------- */
.key { --top: #23262d; --wall: #08090b; --edge: #363a44; --fg: var(--night-ink);
  display: inline-flex; align-items: center; gap: .7em; padding: .82em 1.1em; border-radius: 10px; border: 1px solid var(--edge);
  background: linear-gradient(180deg, color-mix(in srgb, var(--top) 88%, #fff) 0, var(--top) 38%); color: var(--fg);
  box-shadow: 0 4px 0 var(--wall), 0 5px 10px rgba(0,0,0,.18); font: 600 15px/1 var(--text); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transform: translateY(0); user-select: none; -webkit-tap-highlight-color: transparent; }
.key kbd { display: inline-grid; place-items: center; min-width: 1.75em; height: 1.75em; padding: 0 .35em; box-sizing: border-box; border-radius: 6px; font: 600 .78em/1 var(--mono);
  border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent); background: color-mix(in srgb, var(--fg) 6%, transparent); }
.key:hover { --top: #2b2f37; }
.key:active, .key.is-down, .key[aria-pressed="true"], .key[aria-selected="true"] { transform: translateY(3px); box-shadow: 0 1px 0 var(--wall), 0 1px 2px rgba(0,0,0,.2); }
.key--paper { --top: #fbfaf7; --wall: #b9b2a4; --edge: #cdc7bb; --fg: var(--ink); box-shadow: 0 4px 0 var(--wall), 0 6px 12px rgba(60,50,30,.08); }
.key--paper:hover { --top: #ffffff; }
.key--paper[aria-pressed="true"], .key--paper[aria-selected="true"] { --top: var(--ink); --fg: var(--paper); --edge: var(--ink); --wall: #000; }
.key--cta { --top: var(--acc); --wall: var(--acc-wall); --edge: #ff6a40; --fg: var(--ink); }
.key--cta:hover { --top: #ff5b30; }
.key--cta kbd { border-color: rgba(18,19,23,.32); background: rgba(18,19,23,.06); }
.key--ghost { --top: transparent; --wall: color-mix(in srgb, currentColor 40%, transparent); --edge: color-mix(in srgb, currentColor 42%, transparent); --fg: currentColor; background: transparent; box-shadow: 0 3px 0 var(--wall); }
.key--ghost:hover { background: color-mix(in srgb, currentColor 6%, transparent); }
.key--sm { padding: .6em .85em; font-size: 14px; border-radius: 9px; }
.key--xs { padding: .38em .6em; font-size: 12px; border-radius: 7px; gap: .5em; box-shadow: 0 2px 0 var(--wall); }
.key--xs[aria-pressed="true"] { box-shadow: 0 0 0 var(--wall); transform: translateY(2px); }

/* ---------- instruments ---------- */
.chrome { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: 64px; display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter); color: var(--cc); background: var(--cbg); backdrop-filter: blur(8px); border-bottom: 1px solid color-mix(in srgb, var(--cline) 60%, transparent); }
.mark { display: inline-flex; gap: 3px; text-decoration: none; }
.mark .cap { display: inline-grid; place-items: center; width: 24px; height: 26px; border-radius: 6px; font: 700 15px/1 var(--mono); border: 1px solid color-mix(in srgb, currentColor 30%, transparent); box-shadow: 0 3px 0 color-mix(in srgb, currentColor 30%, transparent); background: color-mix(in srgb, currentColor 6%, transparent); }
.nav { display: flex; gap: 22px; margin-left: 12px; font-size: 14.5px; font-weight: 500; }
.nav a, .signin { text-decoration: none; opacity: .8; } .nav a:hover, .signin:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.signin { font-size: 14.5px; font-weight: 500; }

.clock { flex: 0 1 260px; margin-left: auto; color: var(--cc); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; pointer-events: none; }
.clock-rail { position: relative; height: 1px; background: color-mix(in srgb, currentColor 30%, transparent); }
.clock-rail i { position: absolute; left: calc(var(--at) * 100%); top: -3px; width: 1px; height: 7px; background: currentColor; opacity: .5; }
.clock-fill { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: currentColor; transform-origin: 0 50%; transform: scaleX(0); }
.clock-time { font: 600 12.5px/1 var(--mono); letter-spacing: .04em; font-variant-numeric: tabular-nums; }

.chip { position: fixed; z-index: 40; left: var(--gutter); bottom: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 999px; font: 500 12.5px/1 var(--mono); letter-spacing: .02em; color: var(--cc); background: var(--cbg); border: 1px solid var(--cline); font-variant-numeric: tabular-nums; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.chip-state { font-weight: 700; }
.chip.is-quiet .chip-dot { background: transparent; border: 1px solid currentColor; }
.key--help { position: fixed; z-index: 40; right: var(--gutter); bottom: 16px; }


/* ---------- frames ---------- */
.frame { box-sizing: border-box; }
.page .frame, .quiet .frame { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); grid-template-rows: auto 1fr auto; column-gap: 5vw;
  padding: calc(64px + min(5vh, 44px)) var(--gutter) calc(68px + var(--safe-bottom));
  background: radial-gradient(55% 60% at 74% 32%, rgba(120, 140, 175, .10), transparent 70%), var(--night); }
.hero-copy, .quiet-copy { grid-column: 1; grid-row: 1; align-self: start; }
.hero-copy h1 { margin-bottom: 20px; }
.sub { max-width: 46ch; font-size: clamp(16px, min(1.25vw, 2.4vh), 19px); opacity: .9; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 24px; }

.feed { grid-column: 2; grid-row: 1 / 3; align-self: start; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 14px; padding: 14px 16px 12px; font: 400 12.5px/1.5 var(--mono); color: var(--night-mute); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.feed-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.feed-live { color: var(--night-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.feed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--night-ink); }
.feed-src { flex: 1; opacity: .7; }
.spark { display: block; width: 100%; height: min(70px, 8vh); margin: 4px 0 6px; }
.spark-limit { stroke: var(--night-line); stroke-dasharray: 3 4; fill: none; vector-effect: non-scaling-stroke; }
.spark-line { stroke: var(--night-ink); stroke-width: 1.5; fill: none; vector-effect: non-scaling-stroke; }
.feed-log { height: calc(5 * 1.5em); overflow: clip; position: relative; }
.feed-log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 1.5em; }
.feed-log time { color: var(--night-ink); opacity: .55; margin-right: 1ch; }
.inc-row { display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: 9px; background: var(--night-3); border: 1px solid var(--night-line); border-left: 3px solid var(--acc); color: var(--night-ink); }
.inc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.inc-id { font-weight: 700; }
.inc-what { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inc-who { grid-column: 2 / -1; color: var(--night-mute); }

.hero-word { grid-column: 1 / -1; grid-row: 3; align-self: end; display: flex; align-items: flex-end; justify-content: space-between; gap: 3vw; }
.status-word { font-family: var(--display); font-weight: 800; font-stretch: 75%; letter-spacing: -.022em; line-height: .8; white-space: nowrap; color: var(--night-ink); }
.status-word.big { font-size: min(19vw, 30vh); margin: 0 0 -.02em -.04em; }
.status-word.mid { font-size: min(8.6vw, 15vh); margin: min(2vh, 16px) 0 min(1.4vh, 12px) -.03em; }
.hint { max-width: 22ch; font-size: 15px; opacity: .78; padding-bottom: 2.4vh; text-align: right; }
.status-word .tfx-stage { line-height: .86; }

/* ---------- drill ---------- */
.drill .frame { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, .86fr); grid-template-rows: auto 1fr; column-gap: 3.2vw; row-gap: min(2.6vh, 22px);
  padding: calc(64px + min(3.4vh, 30px)) var(--gutter) calc(68px + var(--safe-bottom)); background: var(--night); }
.drill-head { grid-column: 1; }
.drill-head h2 { margin-bottom: 8px; }
.drill-head .lede { font-size: 16px; }
.console { grid-column: 1; position: relative; align-self: stretch; display: flex; flex-direction: column; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 16px; padding: min(2.2vh, 18px) 22px min(2.6vh, 22px); box-shadow: 0 40px 80px rgba(0,0,0,.4); }
.con-bar { display: flex; align-items: center; gap: 12px; font: 500 12.5px/1 var(--mono); color: var(--night-mute); }
.sev { padding: 4px 7px; border-radius: 5px; border: 1px solid var(--night-line); color: var(--night-ink); font-weight: 700; }
.con-id { flex: 1; }
.con-timer { color: var(--night-ink); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.con-title { font-size: clamp(16px, 1.35vw, 20px); font-weight: 600; }
.con-meta { font: 400 12.5px/1.5 var(--mono); color: var(--night-mute); margin-top: 2px; }
.captions { margin-top: min(1.8vh, 14px); min-height: 3.1em; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.45; max-width: 60ch; }
.js .captions li { display: none; } .js .captions li.on { display: block; }
.nudge { font: 500 12.5px/1.4 var(--mono); color: var(--acc); min-height: 1.4em; margin: 6px 0 2px; }
.keys { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.key--act.is-next { --edge: var(--acc); box-shadow: 0 4px 0 var(--wall), 0 0 0 calc(var(--pulse, 0) * 5px) rgba(255, 74, 28, .28); }
.key--act.is-next kbd { background: var(--acc); color: var(--ink); border-color: var(--acc); }
.key--act.is-done { opacity: .5; }
.key--act.is-shake { --edge: var(--night-ink); }
.insert { position: absolute; right: 18px; top: 46px; pointer-events: none; opacity: 0; }
.insert kbd { display: grid; place-items: center; width: min(15vmin, 132px); height: min(15vmin, 132px); border-radius: 18px; font: 700 min(7.4vmin, 64px)/1 var(--mono); color: var(--ink);
  background: linear-gradient(180deg, #fff 0, #e9e5dc 60%); border: 1px solid #fff; box-shadow: 0 10px 0 #9e978a, 0 24px 40px rgba(0,0,0,.45); }

.timeline { grid-column: 2; grid-row: 1 / 3; position: relative; border-left: 1px solid var(--night-line); padding-left: 2.4vw; display: flex; flex-direction: column; min-height: 0; }
.tl-graph { display: grid; grid-template-columns: 1fr auto; font: 500 12.5px/1.3 var(--mono); color: var(--night-mute); margin-bottom: 14px; }
.tl-val { color: var(--night-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.tl-graph svg { grid-column: 1 / -1; width: 100%; height: min(90px, 11vh); margin-top: 6px; }
.tl-limit { stroke: var(--night-line); stroke-dasharray: 3 4; fill: none; vector-effect: non-scaling-stroke; }
.tl-line { stroke: var(--night-ink); stroke-width: 1.6; fill: none; vector-effect: non-scaling-stroke; }
.log { font: 400 12.5px/1.45 var(--mono); color: var(--night-ink); }
.log li { padding: min(.55vh, 5px) 0; border-top: 1px solid color-mix(in srgb, var(--night-line) 60%, transparent); display: grid; grid-template-columns: 9ch 1fr; gap: 1ch; }
.log time { color: var(--night-mute); }
.js .log li { opacity: 0; } .js .log li.on { opacity: 1; } .js .log li.fresh { color: var(--night-ink); }
.pm { position: absolute; left: 2.4vw; right: 0; bottom: 0; background: var(--night-3); border: 1px solid var(--night-line); border-radius: 14px; padding: 16px 18px 18px; box-shadow: 0 -20px 40px rgba(14,15,18,.9); }
.js .pm { visibility: hidden; }
.js .pm.on { visibility: visible; }
.pm-h { font: 600 12.5px/1.3 var(--mono); color: var(--night-mute); margin-bottom: 8px; }
.pm-cause { font-size: 16px; line-height: 1.45; margin-bottom: 8px; }
.pm-meta { font-size: 14px; color: var(--night-mute); margin-bottom: 12px; }
.pm-you { font: 600 13px/1.3 var(--mono); margin-bottom: 12px; }

/* ---------- dawn ---------- */
.dawn .frame { display: grid; align-content: center; padding: 80px var(--gutter) calc(80px + var(--safe-bottom)); }
.dawn-ground { position: absolute; inset: 0; background: var(--night); }
.dawn-ground::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: var(--grain-o, 0); }
.dawn-in { position: relative; max-width: 66rem; color: var(--night-ink); }
.dawn .stamp { color: inherit; opacity: .7; } .dawn .stamp time { color: inherit; }
.statement { font-family: var(--display); font-weight: 500; font-stretch: 88%; letter-spacing: -.018em; font-size: clamp(1.45rem, min(2.75vw, 5vh), 3rem); line-height: 1.22; text-wrap: pretty; }
.wipe { position: absolute; inset: 0; background: var(--paper); clip-path: inset(0 100% 0 0); pointer-events: none; }

/* ---------- documents (paper) ---------- */
.doc .frame { background-color: var(--paper); background-image: var(--grain); color: var(--ink); padding: min(14vh, 140px) var(--gutter); }
.doc .lede { color: var(--ink); opacity: .84; margin-top: 16px; }
.h-small { font-size: clamp(1.4rem, 2vw, 2rem); max-width: none; margin-bottom: 40px; }
.numbers .frame { padding-top: min(12vh, 110px); padding-bottom: min(10vh, 96px); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 2.4vw; }
.stats li { border-top: 2px solid var(--ink); padding-top: 18px; }
.odo { font-family: var(--display); font-weight: 800; font-stretch: 75%; letter-spacing: -.04em; line-height: .9; font-size: clamp(3.4rem, min(7.4vw, 13vh), 8rem); margin-bottom: 14px; white-space: nowrap; }
.odo .tfx-stage { line-height: 1 !important; }
.odo .tfx-stage > span:first-child, .odo .tfx-stage > span:last-child, .amt .tfx-stage > span:first-child { letter-spacing: 0; font-stretch: 100%; font-weight: 600 !important; margin-left: .12em; }
.stats li > p:last-child { max-width: 24ch; color: var(--mute); font-size: 16px; }

.roles .frame { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 6vw; border-top: 1px solid var(--paper-line); }
.tabs { display: flex; flex-wrap: wrap; gap: 12px 10px; margin-top: 30px; }
.role-word { font-family: var(--display); font-weight: 800; font-stretch: 75%; letter-spacing: -.04em; font-size: clamp(3.2rem, 7vw, 7.6rem); line-height: 1; margin-top: 44px; color: var(--ink); white-space: nowrap; }
.panels { align-self: start; padding-top: 34px; }
.panel h3 { margin-bottom: 22px; font-size: clamp(1.6rem, 2.4vw, 2.4rem); }
.feats li { border-top: 1px solid var(--paper-line); padding: 16px 0 17px; max-width: 60ch; color: #2b2d33; }
.feats b { color: var(--ink); font-weight: 650; }

.wiring .frame { background: var(--slate); color: var(--night-ink); }
.wiring .stamp { color: var(--night-mute); } .wiring .stamp time { color: var(--night-ink); }
.wiring .lede { color: var(--night-ink); }
.wiring .note { color: var(--night-mute); }
.wiring-head { max-width: 62rem; margin-bottom: 48px; }
.wiring-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 4vw; align-items: start; }
.tool-group + .tool-group { margin-top: 26px; }
.tg-h { font: 500 12.5px/1 var(--mono); color: var(--night-mute); margin-bottom: 12px; letter-spacing: .04em; }
.tool-group ul { display: flex; flex-wrap: wrap; gap: 12px; }
.key--tile { font-size: 15px; padding: .8em 1em; }
.key--tile.is-on { --top: var(--night-ink); --fg: var(--ink); --edge: var(--night-ink); --wall: #8f8a80; transform: translateY(3px); box-shadow: 0 1px 0 var(--wall); }
.js .tool-note { display: none; }
.tool-note { font-size: 14px; color: var(--night-mute); margin: 6px 0 0; max-width: 40ch; }
.preview { position: sticky; top: 96px; background: var(--night-3); border: 1px solid var(--night-line); border-radius: 16px; padding: 22px 24px 20px; min-height: 280px; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.pv-k { font: 500 12px/1 var(--mono); color: var(--night-mute); margin-bottom: 18px; letter-spacing: .04em; }
.pv-title { font-size: clamp(1.8rem, 2.6vw, 2.6rem); font-stretch: 80%; margin-bottom: 26px; white-space: nowrap; }
.pv-body { max-width: 44ch; margin-bottom: 18px; }
.pv-code { font: 400 12px/1.55 var(--mono); color: var(--night-mute); background: var(--night-2); border-radius: 10px; padding: 12px 14px; margin: 0; white-space: pre; overflow: hidden; }

.security .frame { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 6vw; }
.security .lede { margin-top: 0; font-size: 19px; }
.audit { margin: 34px 0 30px; font-size: 17px; }
.audit li { display: grid; grid-template-columns: 9ch 1fr; gap: 2ch; border-top: 1px solid var(--paper-line); padding: 13px 0; }
.audit li:last-child { border-bottom: 1px solid var(--paper-line); }
.audit time { font: 500 12.5px/1.9 var(--mono); color: var(--mute); }
.callout { border-left: 3px solid var(--ink); padding: 4px 0 4px 18px; max-width: 56ch; font-weight: 500; }

.pricing .frame { border-top: 1px solid var(--paper-line); }
.pr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 44px; }
.billing { display: flex; gap: 10px; }
/* the plans are one ruled sheet, like the drill's timeline: no cards, three columns of the same paper */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--paper-line); }
.plan { position: relative; padding: 30px 28px 30px; border-left: 1px solid var(--paper-line); transition: background-color .25s; }
.plan:first-child { border-left: 0; padding-left: 0; }
.plan::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 6px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.plan:first-child::before { left: 0; }
.plan.is-fit { background: var(--paper-2); }
.plan.is-fit::before { transform: scaleX(1); }
.plan.is-fit:first-child { padding-left: 20px; }
.pl-flag { font: 600 12px/1 var(--mono); letter-spacing: .03em; color: var(--mute); margin: -4px 0 12px; display: flex; align-items: center; gap: .7em; }
.pl-flag::before { content: ""; width: 6px; height: 1px; background: currentColor; }
.plan:not(.plan--raised) h3 { margin-top: 24px; }
.plan h3 { font-size: 1.6rem; }
.pl-fit { color: var(--mute); margin: 6px 0 18px; font-size: 15.5px; }
.pl-price { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 20px; min-height: 4.3rem; }
.amt { font-family: var(--display); font-weight: 800; font-stretch: 78%; letter-spacing: -.04em; line-height: .86; font-size: clamp(3.4rem, 4.6vw, 4.6rem); white-space: nowrap; }
.amt .tfx-stage { line-height: 1 !important; }
.per { font: 500 12px/1.35 var(--mono); color: var(--mute); max-width: 17ch; padding-bottom: 6px; }
.pl-plus { font-weight: 650; font-size: 15px; margin-bottom: 6px; }
.plan ul { margin-bottom: 24px; }
.plan li { padding: 8px 0 8px 22px; border-top: 1px solid color-mix(in srgb, var(--paper-line) 70%, transparent); position: relative; font-size: 15.5px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 9px; height: 1.5px; background: var(--ink); }
.plan .micro { color: var(--mute); opacity: 1; }
/* the conversion set piece: the responder count on keycaps, the month at display size */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4vw; align-items: end; padding: 34px 0 40px; margin-bottom: 44px; border-top: 1px solid var(--paper-line); }
.calc label { display: flex; align-items: center; gap: .7em; font: 500 12.5px/1.3 var(--mono); letter-spacing: .04em; color: var(--mute); margin-bottom: 20px; }
.calc label::before { content: ""; width: 6px; height: 1px; background: currentColor; }
.calc-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.calc-step { padding: 0; width: clamp(58px, 5.4vw, 76px); height: clamp(58px, 5.4vw, 76px); justify-content: center; border-radius: 12px; font-size: 26px; }
.calc-step kbd { border: 0; background: none; font: 600 clamp(26px, 2.4vw, 34px)/1 var(--mono); min-width: 0; height: auto; }
.calc input { -moz-appearance: textfield; appearance: textfield; box-sizing: border-box; width: 3.1ch; text-align: center; padding: .06em .04em 0; margin: 0;
  font: 800 clamp(64px, 8vw, 128px)/1 var(--display); font-stretch: 75%; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  color: var(--ink); background: #e4dfd5; border: 1px solid #b9b2a4; border-bottom-color: #d8d2c6; border-radius: 14px; box-shadow: inset 0 4px 0 rgba(60,50,30,.10); }
.calc input::-webkit-outer-spin-button, .calc input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; background: #ece8df; }
.calc-unit { font: 500 12.5px/1 var(--mono); color: var(--mute); letter-spacing: .04em; }
.calc-total { display: flex; align-items: flex-end; gap: 14px; min-height: 1em; font: 800 clamp(64px, 8vw, 128px)/.9 var(--display); font-stretch: 75%; letter-spacing: -.04em; white-space: nowrap; }
.calc-amt .tfx-stage { line-height: 1 !important; align-items: flex-start !important; }
.calc-amt .tfx-stage > span:first-child { letter-spacing: 0; font-stretch: 100%; font-weight: 600 !important; padding-top: .12em; }
.calc-per { padding-bottom: 30px; font: 500 13px/1 var(--mono); letter-spacing: .04em; color: var(--mute); }
.calc-total.is-none .calc-amt, .calc-total.is-none .calc-per { display: none; }
.calc-total.is-none::before { content: "—"; color: var(--paper-line); }
.calc-out { margin-top: 16px; font-size: 17px; font-weight: 500; max-width: 46ch; }
.terms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4vw; margin: 30px 0 56px; }
.terms p + p { margin-top: 0; }
.terms p { color: #2b2d33; max-width: 52ch; } .terms p + p { margin-top: 12px; color: var(--mute); }
.terms a { font-weight: 650; text-underline-offset: 3px; }
.compare-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 680px; }
.compare caption { text-align: left; font: 700 1.35rem/1 var(--display); font-stretch: 84%; padding: 22px 0 14px; letter-spacing: -.02em; }
.compare th, .compare td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.compare thead th { font: 600 12.5px/1 var(--mono); color: var(--mute); }
.compare tbody th { font-weight: 600; width: 28%; }
.compare td.no { color: #8d8f94; }

.faq .frame { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 6vw; border-top: 1px solid var(--paper-line); padding-bottom: min(18vh, 170px); }
.qa details { border-top: 1px solid var(--paper-line); }
.qa details:last-child { border-bottom: 1px solid var(--paper-line); }
.qa summary { list-style: none; cursor: pointer; padding: 19px 44px 19px 0; font: 650 19px/1.3 var(--text); position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 2px; top: 16px; width: 26px; height: 26px; display: grid; place-items: center; font: 600 15px/1 var(--mono); border: 1px solid #b9b2a4; border-radius: 6px; box-shadow: 0 2px 0 #b9b2a4; background: #fbfaf7; }
.qa details[open] summary::after { content: "−"; transform: translateY(2px); box-shadow: none; }
.qa details p { padding: 0 0 22px; max-width: 62ch; color: #2b2d33; }

/* ---------- final ---------- */
.quiet .frame { background: var(--night); }
.quiet-copy .sub { margin-top: 18px; }
.quiet .hero-word { justify-content: flex-start; }

.foot { background: var(--night); color: var(--night-mute); border-top: 1px solid var(--night-line); }
.foot-in { padding: 44px var(--gutter) 110px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px 40px; font-size: 14.5px; }
.fiction { color: var(--night-ink); max-width: 60ch; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; justify-self: end; }
.foot nav a { text-decoration: none; } .foot nav a:hover { text-decoration: underline; }
.colo { font: 500 12px/1.4 var(--mono); }

/* ---------- dialogs ---------- */
.sheet { border: 0; padding: 0; border-radius: 18px; background: var(--paper); color: var(--ink); width: min(560px, calc(100vw - 32px)); box-shadow: 0 10px 0 #b9b2a4, 0 40px 80px rgba(0,0,0,.4); }
.sheet::backdrop { background: rgba(8, 9, 11, .62); }
.sheet-in { padding: 28px 28px 26px; }
.sheet h2 { font-size: 2rem; margin-bottom: 20px; }
.sc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-bottom: 22px; }
.sc div { display: flex; align-items: center; gap: 12px; }
.sc dt kbd.cap { font-size: 15px; }
.sheet-k { font: 500 12px/1 var(--mono); color: var(--mute); margin-bottom: 10px; }
.sheet-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 22px; font-weight: 600; }
.form-sheet label { display: flex; align-items: center; gap: .7em; font: 500 12.5px/1.3 var(--mono); letter-spacing: .04em; color: var(--mute); margin: 18px 0 8px; }
.form-sheet label::before { content: ""; width: 6px; height: 1px; background: currentColor; }
/* fields are the sockets the keys sit in: recessed plate, the same paper, the ink ring on focus */
.form-sheet input, .form-sheet select { width: 100%; box-sizing: border-box; font: 500 17px/1.3 var(--mono); letter-spacing: -.01em; padding: 13px 14px 12px; border-radius: 10px;
  border: 1px solid #b9b2a4; border-bottom-color: #d8d2c6; background: #e4dfd5; color: var(--ink); box-shadow: inset 0 3px 0 rgba(60,50,30,.10); }
.form-sheet input::placeholder { color: #8a857b; }
.form-sheet input:focus-visible, .form-sheet select:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; background: #ece8df; }
.form-sheet input[aria-invalid="true"] { border-color: #b3260a; }
.form-note { font: 500 12.5px/1.4 var(--mono); letter-spacing: .02em; color: var(--mute); margin-top: -10px; }
.form-err { color: #b3260a; font-weight: 600; min-height: 1.4em; margin-top: 10px; font-size: 15px; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.form-done { margin-top: 16px; font-weight: 600; }
.demo-only { display: none; } .form-sheet.is-demo .demo-only { display: block; }

@media (max-width: 1180px) { .clock { display: none; } .signin { margin-left: auto; } }

/* ---------- laptop (short) ---------- */
@media (max-height: 700px) and (min-width: 761px) {
  .drill-head .lede { display: none; }
  .con-meta { display: none; }
  .feed-log { height: calc(3 * 1.5em); }
  .keys { flex-wrap: nowrap; gap: 8px; }
  .key--act { padding: .62em .78em; font-size: 14px; gap: .55em; }
  .drill-head h2 { font-size: 2rem; }
}

/* ---------- phone: its own cut ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .chrome { height: 56px; gap: 12px; }
  .nav, .signin { display: none; }
  .chrome .key--cta { margin-left: auto; }
  .chrome .key--cta { margin-left: auto; }
  .clock { display: none; }
  .chip { left: 12px; bottom: calc(10px + var(--safe-bottom)); padding: 7px 10px; font-size: 11.5px; gap: 7px; }
  .key--help { right: 12px; bottom: calc(8px + var(--safe-bottom)); }
  .key--help span { display: none; }
  html[data-stage="drill"] .chip, html[data-stage="drill"] .key--help { visibility: hidden; }
  h1 { font-size: clamp(2rem, 9.4vw, 2.6rem); }
  h2 { font-size: clamp(1.8rem, 8.4vw, 2.4rem); }

  .page .frame, .quiet .frame { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; padding: 72px 16px calc(58px + var(--safe-bottom)); row-gap: 14px; }
  .page .spark, .page .feed-log { display: none; }
  .feed .inc-row { margin-top: 4px; }
  .hero-copy h1 { margin-bottom: 14px; }
  .sub { font-size: 15.5px; }
  .ctas { margin-top: 18px; }
  .feed { grid-column: 1; grid-row: 2; padding: 10px 12px; font-size: 11.5px; }
  .feed-src { display: none; }
  .spark { height: 36px; }
  .feed-log { height: calc(2 * 1.5em); }
  .inc-row { padding: 8px 10px; }
  .hero-word { grid-column: 1; grid-row: 3; flex-direction: column; align-items: flex-start; gap: 6px; }
  .status-word.big { font-size: 25vw; }
  .hint { text-align: left; padding: 0; font-size: 14px; max-width: none; }

  .drill .frame { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; align-content: start; padding: 66px 16px calc(12px + var(--safe-bottom)); row-gap: 12px; }
  .drill-head .stamp { margin-bottom: 8px; }
  .drill-head h2 { font-size: 2rem; margin-bottom: 4px; }
  .drill-head .lede { font-size: 14px; line-height: 1.4; }
  .console { padding: 12px 12px 12px; }
  .con-id { font-size: 11px; }
  .status-word.mid { font-size: 13.2vw; }
  .con-title { font-size: 15px; }
  .con-meta { display: none; }
  .captions { font-size: 14.5px; min-height: 4.4em; margin-top: 8px; }
  .keys { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .key--act { flex-direction: column; gap: 5px; padding: .6em .2em; font-size: 11px; justify-content: center; }
  .key--act kbd { font-size: 13px; }
  .insert { right: 10px; top: 36px; }
  .insert kbd { width: 76px; height: 76px; font-size: 38px; border-radius: 14px; }
  .timeline { grid-column: 1; grid-row: 3; border-left: 0; padding-left: 0; }
  .tl-graph { display: none; }
  .js .log li { display: none; } .js .log li.recent { display: grid; }
  .log { font-size: 11.5px; }
  .pm { position: absolute; left: 0; right: 0; bottom: auto; top: -8px; padding: 12px 14px; }
  .pm-cause { font-size: 14.5px; }
  .pm-meta { display: none; }

  .dawn .frame { padding: 70px 16px calc(40px + var(--safe-bottom)); }
  .statement { font-size: 6.4vw; line-height: 1.26; }

  .doc .frame { padding: 72px 16px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .odo { font-size: 15vw; }
  .stats li > p:last-child { font-size: 14.5px; }
  .roles .frame, .security .frame, .faq .frame { grid-template-columns: 1fr; gap: 28px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 8px; margin-top: 22px; }
  .tabs .key { flex: none; }
  .role-word { font-size: 15vw; margin-top: 20px; }
  .panels { padding-top: 0; }
  .wiring-body { grid-template-columns: minmax(0, 1fr); }
  .preview { min-width: 0; }
  .pv-code { white-space: pre-wrap; word-break: break-word; }
  .preview { position: relative; top: 0; order: -1; min-height: 0; padding: 18px; }
  .pv-title { font-size: 1.9rem; margin-bottom: 18px; }
  .pv-code { font-size: 11px; }
  .key--tile { font-size: 14px; }
  .pr-head { margin-bottom: 32px; }
  .plans { grid-template-columns: 1fr; }
  .plan, .plan:first-child { border-left: 0; padding: 26px 0; }
  .plan + .plan { border-top: 1px solid var(--paper-line); }
  .plan.is-fit, .plan.is-fit:first-child { padding: 26px 14px; margin: 0 -14px; }
  .plan:not(.plan--raised) h3 { margin-top: 0; }
  .calc { grid-template-columns: 1fr; gap: 26px; padding: 26px 0 30px; margin-bottom: 32px; }
  .calc-step { width: 56px; height: 56px; }
  .calc input { font-size: 72px; }
  .calc-total { font-size: 72px; }
  .terms { grid-template-columns: 1fr; gap: 12px; }
  .compare-wrap { margin: 0 -16px; padding: 0 16px; }
  .compare tbody th { position: sticky; left: 0; background: var(--paper); }
  .foot-in { grid-template-columns: 1fr; padding-bottom: 90px; }
  .foot nav { justify-self: start; }
}

/* ---------- the accessible cut ---------- */
.reduced-motion .wipe { display: none; }
.reduced-motion .dawn-ground { background: var(--paper); }
.reduced-motion .dawn-in { color: var(--ink); }
.reduced-motion .dawn .frame { min-height: 70vh; }
.form-sheet .m-demo, .form-sheet .m-signin { display: none; }
.form-sheet[data-mode="demo"] .m-signup, .form-sheet[data-mode="signin"] .m-signup { display: none; }
.form-sheet[data-mode="demo"] .m-demo, .form-sheet[data-mode="signin"] .m-signin { display: inline; }
.form-next { font-size: 14.5px; color: var(--mute); margin-top: 14px; }

/* low instruments follow the ground under them */
.chip[data-g="paper"], .clock[data-g="paper"] { --cc: var(--ink); --cbg: rgba(237, 234, 227, .92); --cline: var(--paper-line); }
.chip[data-g="night"], .chip[data-g="slate"], .clock[data-g="night"], .clock[data-g="slate"] { --cc: var(--night-ink); --cbg: rgba(14, 15, 18, .84); --cline: var(--night-line); }
.key--help[data-g="paper"] { --top: #fbfaf7; --wall: #b9b2a4; --edge: #cdc7bb; --fg: var(--ink); }

.roster { display: flex; flex-wrap: wrap; gap: 8px; margin-top: min(1.6vh, 14px); font: 400 12.5px/1.2 var(--mono); }
.roster li { display: inline-flex; align-items: baseline; gap: 7px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--night-line); color: var(--night-mute); background: var(--night); }
.roster b { color: var(--night-ink); font-weight: 600; }
.roster em { font-style: normal; color: var(--night-ink); }
.roster li.is-live { border-color: color-mix(in srgb, var(--night-ink) 45%, transparent); }
.feed--quiet { grid-column: 2; grid-row: 1 / 3; }
.feed-log--still { height: auto; }
.feed-log--still li { color: var(--night-mute); }
.inc-row--quiet { border-left-color: var(--night-ink); }
.inc-row--quiet .inc-dot { background: transparent; border: 1px solid var(--night-ink); }
.amt .tfx-stage { align-items: flex-start !important; }
.amt .tfx-stage > span:first-child { padding-top: .12em; }
@media (max-width: 760px) {
  .roster { gap: 5px; font-size: 10.5px; }
  .roster li { padding: 5px 7px; gap: 5px; }
  .roster span { display: none; }
  .feed--quiet { display: none; }
}
@media (max-height: 700px) and (min-width: 761px) { .roster span { display: none; } }

/* A designed cut overlaps the previous scene: its section box must not swallow the clicks meant for the frame underneath. */
[data-scene][data-cut] { pointer-events: none; }
[data-scene][data-cut] > .frame { pointer-events: auto; }

.wipe { display: grid; place-items: center; color: var(--ink); }
.wipe span { font: 600 clamp(1.4rem, 3.4vw, 3rem)/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------- review fixes ---------- */
/* The low instruments get their own ground: a slate across the bottom, like the one across the top. Flow scenes
   and the reduced-motion cut scroll beneath it instead of beneath a floating chip. */
.lowbar { position: fixed; z-index: 39; left: 0; right: 0; bottom: 0; height: 60px; pointer-events: none;
  --cbg: rgba(14, 15, 18, .84); --cline: var(--night-line);
  background: var(--cbg); backdrop-filter: blur(8px); border-top: 1px solid color-mix(in srgb, var(--cline) 60%, transparent); }
.lowbar[data-g="paper"] { --cbg: rgba(237, 234, 227, .92); --cline: var(--paper-line); }
.chip { bottom: 14px; }
.key--help { bottom: 9px; }
.doc .frame { padding-bottom: max(min(14vh, 140px), calc(72px + var(--safe-bottom))); }
.numbers .frame { padding-bottom: max(min(10vh, 96px), calc(72px + var(--safe-bottom))); }
.faq .frame { padding-bottom: max(min(18vh, 170px), calc(72px + var(--safe-bottom))); }

/* the opening cut: the alert row's own edge, rising to the top of the frame */
.cut-edge { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 1px; background: var(--acc); opacity: 0; pointer-events: none; }

/* drill → dawn: the swap bar's timestamp is a paper keycap plate that stays on screen through the whole overlap,
   so the mid-cut frame always has a subject, over the night console and over the paper alike */
.wipe-ts { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; pointer-events: none; opacity: 0;
  padding: .42em .62em .38em; border-radius: 12px; background: var(--paper); color: var(--ink); border: 1px solid #fbfaf7; box-shadow: 0 6px 0 #b9b2a4, 0 18px 40px rgba(0,0,0,.35);
  font: 600 clamp(1.4rem, 3.4vw, 3rem)/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reduced-motion .wipe-ts { display: none; }

/* drill keys: full labels on the wide cut, short ones in the phone's thumb bar; Replay lives in the console header */
.l-short { display: none; }
.con-bar .key--replay { flex: none; }
.key--replay.is-next { --edge: var(--acc); }

/* the final line, when Sam took the page */
.take { font: 600 .82em/1 var(--mono); letter-spacing: .02em; white-space: nowrap; text-underline-offset: 4px; margin-left: .25em; }

.terms p + p { margin-top: 0; }

@media (max-width: 760px) {
  .lowbar { height: calc(50px + var(--safe-bottom)); }
  .chip { bottom: calc(12px + var(--safe-bottom)); }
  .key--help { bottom: calc(7px + var(--safe-bottom)); }
  html[data-stage="drill"] .lowbar { visibility: hidden; }
  .doc .frame { padding-bottom: calc(72px + var(--safe-bottom)); }
  .wipe-ts { font-size: 9vw; }

  /* the thumb bar: four equal keys on their own ground at the bottom of the frame */
  .drill .frame { padding-bottom: calc(92px + var(--safe-bottom)); }
  .drill .console { position: static; }
  .keys { position: absolute; z-index: 3; left: 0; right: 0; bottom: var(--safe-bottom); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
    margin: 0; padding: 10px 16px 14px; background: var(--night); border-top: 1px solid var(--night-line); }
  .keys .key--act { flex-direction: column; gap: 5px; padding: .62em .2em .58em; font-size: 12.5px; min-width: 0; }
  .l-full { display: none; } .l-short { display: inline; white-space: nowrap; }
  .con-bar .key--replay { flex-direction: row; gap: .45em; padding: .36em .55em; font-size: 11px; }
  .con-bar .key--replay kbd { font-size: 11px; }
  .insert { right: 16px; top: 200px; }
}
