/* Constructivist palette, same as the app icon. */
:root {
  --red:   #D5202A;
  --ink:   #16181A;
  --paper: #EFE7D8;
  --muted: #6B6459;
  --rule:  rgba(22,24,26,.14);
  --max:   1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 24px; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px 24px; max-width: var(--max); margin-inline: auto;
  position: sticky; top: 0; z-index: 50;
}
/* The bar stays centred at --max, but its background has to reach both edges.
   Cheaper than wrapping the header in three separate files. */
.site-header::before {
  content: ''; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background: rgba(239, 231, 216, .78);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.stuck::before { border-bottom-color: var(--rule); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
/* The devices, sitting with the brand on the left of the row. margin-right
   keeps them there rather than letting space-between strand them mid-header. */
.platforms {
  display: flex; align-items: center; gap: 16px;
  margin: 0 auto 0 8px; font-size: 13px; color: var(--muted); white-space: nowrap;
}
.platforms span { display: inline-flex; align-items: center; gap: 5px; }
.platforms svg {
  width: 14px; height: 14px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.site-header nav { display: flex; gap: 20px; font-size: 14px; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  padding: clamp(40px, 7vw, 92px) 24px clamp(52px, 7vw, 84px);
  max-width: var(--max); margin-inline: auto; text-align: center;
}
.hero h1 { max-width: 16ch; margin-inline: auto; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 12px;
  font-weight: 700; color: var(--red); margin: 0 0 10px;
}
h1 { font-size: clamp(38px, 7.4vw, 88px); line-height: 1.02; margin: 0 0 20px; letter-spacing: -.03em; }
.lede {
  font-size: clamp(17px, 1.65vw, 21px); color: var(--muted);
  margin: 0 auto 30px; max-width: 54ch; line-height: 1.6;
}
.hero-art { margin: clamp(36px, 5vw, 64px) auto 0; max-width: 900px; }
.hero-art img {
  display: block; width: 100%; height: auto;
  border-radius: 12px; border: 1px solid var(--rule);
  box-shadow: 0 18px 50px rgba(22,24,26,.22);
}

/* The hero demo — a mock of the app window that plays the pipeline through:
   raw speech, then the fair copy, then the translation under it. */
.demo {
  background: #1B1D1F; color: #E9E5DE; border-radius: 12px; overflow: hidden;
  text-align: left;                 /* the hero centres; a transcript does not */
  box-shadow: 0 18px 50px rgba(22,24,26,.28);
  font-size: clamp(11px, 1.15vw, 13px); line-height: 1.5;
}
.demo-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; background: #232628; border-bottom: 1px solid rgba(255,255,255,.07);
}
.tl { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tl.r { background: #FF5F57; } .tl.y { background: #FEBC2E; } .tl.g { background: #28C840; }
.demo-name { margin-left: 6px; font-weight: 700; font-size: .92em; }
.demo-stage {
  margin-left: auto; font-size: .78em; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: #9BE6A8; white-space: nowrap;
}
.demo-stage.listening { color: #FF7A72; }
.demo-body { height: 17em; overflow: hidden; padding: 12px 14px; position: relative; }
.demo-foot {
  padding: 8px 14px; border-top: 1px solid rgba(255,255,255,.07);
  font-size: .78em; color: #8B8880; text-align: right; background: #202325;
}
.para { margin: 0 0 .95em; }
.who { font-weight: 700; font-size: .82em; margin-bottom: .2em; }
.who.a { color: #6FA8FF; } .who.b { color: #5FD07C; }
.said { margin: 0; }
.gloss {
  margin: .35em 0 0; padding-left: .85em; color: #9A968D;
  border-left: 2px solid rgba(255,255,255,.12);
}
/* Raw speech, before the model has tidied it. */
.para.raw .said { color: #B4AFA6; }
.demo .caret {
  display: inline-block; width: .5em; height: 1em; vertical-align: -.15em;
  background: #FF7A72; margin-left: .1em;
}
.hero-art figcaption {
  font-size: 14px; color: var(--muted); margin: 16px auto 0; max-width: 58ch;
}

.button-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.button {
  display: inline-block; padding: 11px 20px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 15px;
}
.button.primary { background: var(--red); color: #fff; }
.button.secondary { border: 1.5px solid var(--ink); }

/* Bands */
.band { border-top: 1px solid var(--rule); padding: clamp(64px, 8.5vw, 120px) 0; }
.band.dark { background: var(--ink); color: var(--paper); border-top: none; }
.band.dark h2, .band.dark h3 { color: var(--paper); }
.band.dark .muted { color: #A8A296; }
h2 { font-size: clamp(27px, 4vw, 46px); margin: 0 0 14px; letter-spacing: -.02em; line-height: 1.1; }
.muted { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; margin-top: 30px; }
.card h3 { font-size: 17px; margin: 0 0 6px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.band.dark .card p { color: #A8A296; }

/* Tables and prose */
table { border-collapse: collapse; width: 100%; font-size: 15px; margin-top: 18px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 36px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 7px; }
code { font: 13px ui-monospace, Menlo, monospace; background: rgba(22,24,26,.07); padding: 1px 5px; border-radius: 4px; }

footer {
  border-top: 1px solid var(--rule); margin-top: 20px; padding: 28px 24px 50px;
  font-size: 14px; color: var(--muted);
}
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 760px) {
  /* Pull the demo up so it clears the fold on a short phone too — it is the
     fastest explanation of the app on the page, and no use unseen. */
  .hero { padding-top: 26px; }
  .hero-art { margin-top: 30px; }
  .lede { font-size: 16.5px; margin-bottom: 24px; }
  /* A shorter pane on a phone: the fold falls partway down it either way, so
     a smaller one puts proportionally more of the transcript above the fold. */
  .demo-body { height: 12em; }
  /* Brand, strip and nav together need about 737px. Below that the strip is
     the thing to drop: the hero's eyebrow names the three devices anyway. */
  .platforms { display: none; }
}

@media (max-width: 620px) {
  /* Brand and nav collide below this; stack them instead of overlapping. */
  .site-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-header nav { flex-wrap: wrap; gap: 14px; }
}

/* Screenshots */
.shot { margin: 30px 0 0; }
.shot img {
  border-radius: 10px;
  border: 1px solid var(--rule);
  box-shadow: 0 14px 40px rgba(22,24,26,.16);
}
.shot figcaption {
  font-size: 14px; color: var(--muted); margin-top: 10px; max-width: 62ch;
}

/* Screenshot language switch */
.shots-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.langswitch { display: flex; border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; }
.lang {
  font: inherit; font-size: 13px; font-weight: 600; padding: 6px 14px;
  background: transparent; color: var(--ink); border: 0; cursor: pointer;
}
.lang.on { background: var(--ink); color: var(--paper); }

/* Where to get it — one column per platform, each with a code you can point a
   phone at. Two columns on a desktop, stacked on a phone, which is also the
   device most likely to be doing the scanning. */
.stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; margin-top: 30px; }
.store {
  border: 1px solid var(--rule); border-radius: 14px; padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.store h3 { margin: 0; font-size: 18px; }
.store p { margin: 0; font-size: 15px; color: var(--muted); }
.store .qr { display: flex; align-items: center; gap: 16px; }
.store .qr img { width: 104px; height: 104px; flex: 0 0 auto; }
.store .qr span { font-size: 13px; color: var(--muted); }
.store .button { align-self: flex-start; }
.store.soon { opacity: .72; }
.store .pending { font-size: 13px; color: var(--muted); font-style: italic; }
@media (prefers-color-scheme: dark) {
  .store { border-color: rgba(239,231,216,.18); }
}
.pill {
  font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  background: var(--red); color: #fff; border-radius: 999px;
  padding: 3px 8px; vertical-align: middle; margin-left: 6px; font-weight: 600;
}

/* Device shots. The Mac screenshots above are windows and take the full
   measure; these are whole devices and a portrait one blown up to 1040px is
   absurd, so they sit in a row and stay small. */
.devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; margin-top: 26px; align-items: end; }
.devices figure { margin: 0; }
.devices img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--rule); display: block; }
.devices figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.devices .phone { max-width: 230px; }
@media (prefers-color-scheme: dark) {
  .devices img, .hero-art img { border-color: rgba(239,231,216,.18); }
}

/* The fair copy and the gloss arrive rather than blink into place. */
@media (prefers-reduced-motion: no-preference) {
  .demo .who, .demo .gloss { animation: demoIn .5s ease-out both; }
  .demo-body { scroll-behavior: smooth; }
}
@keyframes demoIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* The graph phase of the hero demo. */
.demo-body.graphing > .para { display: none; }
.demo-graph { display: block; width: 100%; height: 100%; }
.demo-graph .edge {
  fill: none; stroke: rgba(233,229,222,.30); stroke-width: 1.1;
  transition: stroke-dashoffset .55s ease-out;
}
.demo-graph .arrow { fill: rgba(233,229,222,.34); }
.demo-graph .node {
  opacity: 0; transform: scale(.55);
  transform-box: fill-box; transform-origin: center;
  transition: opacity .3s ease-out, transform .3s cubic-bezier(.2,.9,.3,1.25);
}
.demo-graph .node.in { opacity: 1; transform: none; }
.demo-graph .node text { fill: #B8B4AC; font-size: 8px; font-weight: 600; }
.demo-graph .node.b circle { fill: #3E7BC4; }   /* the processors */
.demo-graph .node.w circle { fill: #C2683A; }   /* the analogy he reached for */
.demo-graph .node.n circle { fill: #8A8378; }   /* what the analogy is made of */


/* Things rise into place as they are scrolled to. Delays are set per element
   in script so a row of cards arrives in sequence rather than all at once. */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .75s cubic-bezier(.2, .7, .3, 1),
              transform .75s cubic-bezier(.2, .7, .3, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* The nav marks where you are, the way a long page should. */
.site-header nav a.on { color: var(--ink); font-weight: 600; }

/* The scrub track. The pane pins inside it while the page scrolls past, which
   is what advances the demo; the height IS the length of the scrub. */
/* 300vh put the store section almost four screens down, and a pinned pane
   that far from anything moving reads as a page that has stopped working.
   165vh is still enough travel for every frame to land. */
.scrub { position: relative; height: 165vh; margin-top: clamp(36px, 5vw, 64px); }
/* Pinned clear of the bar, whatever height the bar happens to be: the header
   stacks to two rows on a phone, and a fixed offset tucked the pane under it. */
.scrub .hero-art { position: sticky; top: calc(var(--headerH, 62px) + 14px); margin: 0 auto; }
.hint { color: var(--red); font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) { .scrub { height: 140vh; } }
/* No scrub for a reader who asked for stillness: the pane just sits there with
   the finished transcript that is already in the markup. */
@media (prefers-reduced-motion: reduce) {
  .scrub { height: auto; margin-top: clamp(36px, 5vw, 64px); }
  .scrub .hero-art { position: static; }
}

/* The recorded demo. Same frame as the stills it sits above. */
.demo-video {
  display: block; width: 100%; height: auto;
  border-radius: 10px; border: 1px solid var(--rule);
  box-shadow: 0 14px 40px rgba(22,24,26,.16);
  background: #121212;
}
@media (prefers-color-scheme: dark) { .demo-video { border-color: rgba(239,231,216,.18); } }


/* Proof that scrolling is doing something: the pane is pinned, so without
   this the only motion is text the eye may not have caught yet. */
.scrub-bar {
  height: 2px; margin: 10px auto 0; max-width: 900px;
  background: var(--rule); border-radius: 2px; overflow: hidden;
}
.scrub-bar span {
  display: block; height: 100%; width: 0; background: var(--red);
  transition: width .12s linear;
}
@media (prefers-reduced-motion: reduce) { .scrub-bar { display: none; } }
