/* ==========================================================================
   Dot & Dash: the machine is the page.
   Light only, as the app is: white and cool grey on the studio's #f5f5f7, ink
   #16171a for the primary buttons and the marks, one solid accent (#0A66FF) for
   focus and the chosen finish. The only other colours are the seven finishes'
   own, on their swatches. No gradients in the chrome: the stage's sweep is the
   scene's own (css/stage.css, copied from the app by Scripts/site-build.sh).
   ========================================================================== */

:root {
  --page: #f5f5f7;
  --paper: #ffffff;
  --plate: #ebecf0;
  --ink: #16171a;
  --ink-2: #4c4f55;
  --ink-3: #6e7076;
  --tape-letter: #5f6268;
  --line: rgba(22, 23, 26, 0.1);
  --line-2: rgba(22, 23, 26, 0.06);
  --accent: #0a66ff;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --max: 1120px;
  --wide: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --window: 0 0 0 0.5px rgba(22, 23, 26, 0.12), 0 2px 6px rgba(22, 23, 26, 0.06), 0 22px 48px -18px rgba(14, 20, 36, 0.32);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: rgba(10, 102, 255, 0.16); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
kbd { display: inline-grid; place-items: center; min-width: 46px; height: 24px; padding: 0 8px; margin: 0 2px; border-radius: 6px;
  font: 600 12.5px/1 var(--sans); color: var(--ink); background: var(--paper); vertical-align: 1px;
  box-shadow: 0 0 0 0.5px rgba(22, 23, 26, 0.22), 0 1.5px 0 rgba(22, 23, 26, 0.14); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip:focus { left: 10px; }

h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(34px, 4.3vw, 60px); line-height: 1.04; letter-spacing: -0.036em; font-weight: 650; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.07; letter-spacing: -0.03em; font-weight: 650; }
h3 { font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; font-weight: 600; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border: 0; border-radius: 999px;
  font: 600 16px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s; }
.btn svg { width: 17px; height: 17px; }
.btn--ink { color: #fff; background: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(22, 23, 26, 0.3), 0 10px 22px -12px rgba(22, 23, 26, 0.6); }
.btn--ink:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(22, 23, 26, 0.3), 0 14px 28px -12px rgba(22, 23, 26, 0.6); }
.btn--plain { color: var(--ink); background: var(--paper); box-shadow: 0 0 0 0.5px var(--line), 0 1px 2px rgba(22, 23, 26, 0.06); }
.btn--plain:hover { box-shadow: 0 0 0 0.5px rgba(22, 23, 26, 0.18), 0 4px 12px -6px rgba(22, 23, 26, 0.25); }
.btn:active { transform: translateY(1px); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 14px; gap: 6px; }
.btn--sm svg { width: 14px; height: 14px; }
.btn--big { height: 56px; padding: 0 30px; font-size: 18px; }
.btn__price { font-weight: 500; opacity: 0.7; }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 40; transition: background-color 0.2s, box-shadow 0.2s; }
.nav.is-stuck { background: rgba(245, 245, 247, 0.8); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 0.5px 0 var(--line); }
.nav__in { display: flex; align-items: center; gap: 16px; height: 56px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font: 650 17px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.wordmark img { width: 28px; height: 28px; }
.nav__links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--ink-2); }
.nav__links a { text-decoration: none; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; gap: 8px; margin-left: auto; }
.nav__links + .nav__cta { margin-left: 12px; }
@media (max-width: 860px) { .nav__links { display: none; } .nav__links + .nav__cta { margin-left: auto; } }
@media (max-width: 420px) { .nav__dl { display: none; } }

/* ---------------------------------------------------------------- hero: the machine */
.hero { padding-top: clamp(18px, 3vh, 36px); }
.hero__head { position: relative; z-index: 3; text-align: center; pointer-events: none; }
.hero__head p { margin-top: 12px; }
.hero__head .lede { max-width: 34em; margin-left: auto; margin-right: auto; }
/* The stage: the app's own sweep (css/stage.css) on a band as wide as the page allows, at the concept's 5:2, so the
   still and the live scene frame the machine alike. The paper runs out of its left edge. */
#stage { position: relative; width: 100%; max-width: 1680px; aspect-ratio: 5 / 2; margin: calc(-1 * clamp(0px, 3.6vw, 64px)) auto 0; overflow: hidden; }
#stage .hero__still, #stage .hero__still img, #stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#stage .hero__still { z-index: 2; pointer-events: none; transition: opacity 0.45s ease; }
#stage video { z-index: 2; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
#stage video.is-playing { opacity: 1; }
#stage canvas { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#stage canvas.over-key { cursor: pointer; }
#stage canvas:active { cursor: grabbing; }
[data-machine="live"] #stage .hero__still { opacity: 0; }

/* Above the stage, which is positioned: the chosen swatch's ring is never under the sweep's edge. */
.hero__bar { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px; padding-top: clamp(4px, 1vw, 14px); }
.readout { grid-column: 1 / -1; display: flex; justify-content: center; align-items: baseline; gap: 14px; min-height: 1.3em;
  font: 600 clamp(28px, 2.6vw, 38px)/1.3 var(--display); letter-spacing: 0.04em; color: var(--ink); white-space: pre; overflow: hidden; }
.readout__code { font-family: var(--mono); font-weight: 500; letter-spacing: 0.08em; color: var(--tape-letter); }
.readout.is-idle { color: var(--ink-3); letter-spacing: -0.01em; font-weight: 500; }
.hint { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.hint b { font-weight: 600; color: var(--ink); }
.hint__phone { display: none; }
.marks { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; vertical-align: 1px; }
.marks i { display: block; height: 5px; border-radius: 3px; background: var(--ink); }
.marks i.d { width: 5px; }
.marks i.D { width: 15px; }
.marks i.gap { width: 7px; background: none; }
.hint.is-done { color: var(--ink); }

.finishes { display: flex; align-items: center; gap: 10px; }
.finishes__row { display: flex; gap: 8px; }
.swatch { position: relative; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: var(--finish);
  box-shadow: inset 0 0 0 0.5px rgba(22, 23, 26, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.35); transition: transform 0.15s var(--ease); }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 0.5px rgba(22, 23, 26, 0.28), 0 0 0 2.5px var(--page), 0 0 0 4.5px var(--accent); }
.finishes__name { min-width: 92px; font-size: 13.5px; color: var(--ink-2); }
[data-webgl="none"] .finishes { display: none; }
.hero__end { display: flex; justify-content: flex-end; }
.sound { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 10px; border: 0; border-radius: 999px; font-size: 13.5px; font-weight: 550;
  color: var(--ink-2); background: var(--paper); box-shadow: 0 0 0 0.5px var(--line); }
.sound svg { width: 16px; height: 16px; }
.sound .sound__off { display: none; }
.sound[aria-pressed="false"] .sound__on { display: none; }
.sound[aria-pressed="false"] .sound__off { display: block; }
.sound[aria-pressed="false"] { color: var(--ink-3); }

@media (max-width: 1040px) {
  /* The readout, the hint under it, then the finishes and the sound toggle together, all centred. */
  .hero__bar { grid-template-columns: 1fr auto auto 1fr; grid-template-areas: "read read read read" "hint hint hint hint" ". fin snd ."; gap: 14px 20px; }
  .readout { grid-area: read; }
  .hint { grid-area: hint; text-align: center; }
  .finishes { grid-area: fin; }
  .hero__end { grid-area: snd; }
}
/* Phones: the scene's still and a short loop of it, in the video's own band. */
@media (max-width: 719px) {
  .hero__head { padding: 0 var(--gut); }
  /* The band's empty top tucks under the headline, so the machine sits close under it. */
  #stage { aspect-ratio: 3 / 2; margin-top: -9vw; }
  .readout, .hero__end { display: none; }
  .hero__bar { grid-template-columns: 1fr; grid-template-areas: "fin" "hint"; justify-items: center; gap: 14px; padding-top: 8px; }
  .finishes { flex-direction: column; gap: 10px; }
  .finishes__name { min-width: 0; }
  .hint { max-width: 22em; text-wrap: balance; }
  .hint__desk { display: none; }
  .hint__phone { display: inline; }
}
/* Without WebGL the still is the hero: nothing to key, so no keying line, readout, finishes or sound. */
[data-webgl="none"] .readout, [data-webgl="none"] .hero__end, [data-webgl="none"] .hint__desk { display: none; }
[data-webgl="none"] .hint__still { display: inline; }
.hint__still { display: none; }

/* ---------------------------------------------------------------- the strip under the hero */
.facts-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin-top: clamp(28px, 4vw, 44px); padding: 0 var(--gut);
  font-size: 14.5px; color: var(--ink-2); }
.facts-line b { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- feature sections */
.feature { padding-top: clamp(96px, 12vw, 168px); }
.feature__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 18px 64px; align-items: end; }
.feature__head .lede { padding-bottom: 6px; max-width: 34em; }
@media (max-width: 860px) { .feature__head { grid-template-columns: 1fr; } }
.plate { width: 100%; max-width: var(--wide); margin: clamp(32px, 4.4vw, 60px) auto 0; padding: 0 var(--gut); }
.plate img { width: 100%; height: auto; border-radius: clamp(14px, 2.2vw, 28px); background: var(--plate); }
.plate figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-3); text-align: center; }
.pair { display: grid; grid-template-columns: 1fr 1fr; margin-top: 14px; padding: 0 3.4%; font-size: 14px; color: var(--ink-3); text-align: center; }
/* Phones: the two Transcribe windows one above the other, each at a size that reads. */
.only-phone { display: none; }
.stack figure { margin: 0; }
.stack figure + figure { margin-top: 28px; }
.stack figcaption { margin-top: 10px; }
@media (max-width: 719px) { .only-desk { display: none; } .only-phone { display: block; } }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 48px; margin: clamp(32px, 4vw, 52px) 0 0; }
.facts div { padding-top: 16px; border-top: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; gap: 0; } .facts div { padding: 16px 0; } }

/* Share: the outputs themselves, as the app writes them. */
.outputs { display: grid; grid-template-columns: 1.62fr 1fr 0.58fr; gap: clamp(16px, 2.4vw, 32px); align-items: end; padding: clamp(24px, 4vw, 56px);
  border-radius: clamp(14px, 2.2vw, 28px); background: var(--plate); }
.outputs figure { margin: 0; }
.outputs img { width: 100%; height: auto; border-radius: 6px; box-shadow: var(--window); background: var(--paper); }
.outputs figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 760px) { .outputs { grid-template-columns: 1fr 0.58fr; } .outputs figure:first-child { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- price */
.price { padding-top: clamp(96px, 12vw, 168px); }
.price__card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; padding: clamp(28px, 5vw, 64px);
  border-radius: clamp(18px, 2.4vw, 32px); background: var(--paper); box-shadow: 0 0 0 0.5px var(--line-2), 0 30px 60px -40px rgba(14, 20, 36, 0.25); }
.price__icon { width: 88px; height: 88px; margin-bottom: 22px; }
.price__amount { font: 650 clamp(48px, 6vw, 76px)/1 var(--display); letter-spacing: -0.04em; }
.price__amount span { font-size: 0.42em; letter-spacing: -0.02em; color: var(--ink-3); font-weight: 600; margin-left: 6px; }
.price__lede { margin-top: 14px; }
.price__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.price__fine { margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }
.price__list { list-style: none; margin: 0; padding: 0; align-self: center; }
.price__list li { display: flex; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line-2); font-size: 16.5px; }
.price__list li:first-child { border-top: 0; }
.price__list svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--ink); }
@media (max-width: 860px) { .price__card { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- questions */
.faq { padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 10vw, 128px); }
.faq__list { max-width: 760px; margin-top: 28px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; list-style: none; cursor: pointer; font-weight: 600; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-weight: 400; font-size: 22px; line-height: 1; color: var(--ink-3); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 40em; }

/* ---------------------------------------------------------------- footer */
.footer { padding: 36px 0 48px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--ink-3); }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.footer__links a, .footer__sign a { text-decoration: none; color: var(--ink-2); }
.footer__links a:hover, .footer__sign a:hover { color: var(--ink); }
.footer__sign { width: 100%; }

/* ---------------------------------------------------------------- inner pages (thanks, privacy, support) */
.page { padding: clamp(40px, 7vw, 88px) 0 clamp(72px, 9vw, 120px); }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(34px, 4.4vw, 52px); }
.page .lede { margin-top: 16px; }
.page h2 { margin-top: 48px; font-size: clamp(22px, 2.2vw, 27px); letter-spacing: -0.02em; }
.page h2 + p, .page h2 + ul, .page h2 + ol { margin-top: 12px; }
.page p + p { margin-top: 12px; }
.page ul, .page ol { margin: 12px 0 0; padding-left: 1.2em; color: var(--ink-2); }
.page li + li { margin-top: 8px; }
.page p { color: var(--ink-2); }
.page p b, .page li b { color: var(--ink); font-weight: 600; }
.card { margin-top: 32px; padding: clamp(22px, 3.4vw, 36px); border-radius: 22px; background: var(--paper); box-shadow: 0 0 0 0.5px var(--line-2), 0 24px 48px -36px rgba(14, 20, 36, 0.3); }
.card h2 { margin-top: 0; }
.card--download { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.card--download img { width: 72px; height: 72px; }
.fine { font-size: 13.5px; color: var(--ink-3); }
.notice { margin-top: 18px; padding: 18px 20px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 0.5px var(--line-2); }
.notice h3 { margin-bottom: 6px; }
.notice pre { margin: 12px 0 0; white-space: pre-wrap; font: 12px/1.5 var(--mono); color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none; animation: none; }
}
