/* A paper set: warm paper, black ink, one signal orange. The devices are dark objects
   standing on it, and their screens keep the app's own look. */

@property --paper { syntax: "<color>"; inherits: true; initial-value: #efebe3; }
@property --paper-2 { syntax: "<color>"; inherits: true; initial-value: #e5dfd3; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #16140f; }
@property --ink-2 { syntax: "<color>"; inherits: true; initial-value: #4a463e; }
@property --ink-3 { syntax: "<color>"; inherits: true; initial-value: #6b655a; }

:root {
  --accent: #ff4f12; /* fills and marks only: 2.8:1 on paper, too light for text */
  --on-accent: #16140f;
  --accent-ink: #c2360a; /* accent for text: 4.6:1 on paper */
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --pad: clamp(1.25rem, 5vw, 5.5rem);
  transition: --paper 0.9s, --paper-2 0.9s, --ink 0.9s, --ink-2 0.9s, --ink-3 0.9s;
}
/* The tour is a dark room lit only by its devices (night); after it the house lights come
   up. dusk forces the dark outside the tour (the talk bar's torch); lit is the phone's
   flashlight on in the room. */
html.night,
html.dusk {
  --paper: #0f0d0b;
  --paper-2: #1a1713;
  --ink: #f0e9dd;
  --ink-2: #cbc2b1;
  --ink-3: #a59b88;
  --accent-ink: #ff8a5c;
}
html.night.lit { --paper: #2a241c; --paper-2: #342d23; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.22;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .35 0 0 0 0 .28 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.night body::before, html.dusk body::before { opacity: 0.08; }
::selection { background: var(--accent); color: var(--on-accent); }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 99px; }
.skip:focus { top: 1rem; }

/* ---------- header ---------- */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  background: linear-gradient(var(--paper) 30%, transparent);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font: 600 0.9rem var(--mono); letter-spacing: 0.24em; text-decoration: none; }
.brand i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); animation: air 2.4s ease-in-out infinite; }
@keyframes air { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent); } }
.top nav { display: flex; gap: clamp(0.8rem, 2vw, 1.8rem); }
.top nav a { font: 500 0.74rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }

/* ---------- type ---------- */
.kicker, .num, .fine, .demo, figcaption { font-family: var(--mono); }
.kicker, .num { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 1.4rem; }
.num::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.6rem; border-radius: 50%; background: var(--accent); vertical-align: 0.05em; }
h1 { font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 380; font-size: clamp(4.6rem, 11vw, 10.5rem); line-height: 0.86; letter-spacing: -0.045em; margin: 0 0 1.6rem -0.06em; }
h1 em { font-style: italic; font-weight: 340; }
h1 i { display: inline-block; font-style: inherit; }
h1 .dot { color: var(--accent); }
h2 { font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 96; font-size: clamp(2.3rem, 4.2vw, 3.7rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 1.4rem; }
h3 { font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 36; font-size: 1.4rem; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.lede { font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 30; font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.3; letter-spacing: -0.01em; max-width: 26ch; }
.fine { font-size: 0.74rem; line-height: 1.6; color: var(--ink-2); max-width: 46ch; margin-top: 1.6rem; }
strong.stop { font: 700 0.75em var(--mono); letter-spacing: 0.1em; color: #fff; background: #e03131; padding: 0.15em 0.6em; border-radius: 99px; }

/* the headline rises in, and bounces like a level meter while the phone listens */
.js .wave i { animation: rise 1s cubic-bezier(0.2, 0.9, 0.2, 1) both; animation-delay: calc(var(--i) * 55ms + 0.1s); }
@keyframes rise { from { opacity: 0; translate: 0 0.35em; } }
html.hearing .wave i { animation: level 0.42s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -137ms); }
@keyframes level { from { translate: 0 0.03em; } to { translate: 0 -0.11em; } }

/* ---------- buttons ---------- */
.ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent);
  border-radius: 99px;
  font: 600 0.95rem var(--sans);
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  transition: translate 0.15s, box-shadow 0.25s, background 0.25s;
}
.btn:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.btn--go {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 3px 0 color-mix(in srgb, var(--accent) 60%, #000), 0 10px 28px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn--go:hover { color: var(--on-accent); background: var(--accent); translate: 0 1px; }
.btn--go:active { translate: 0 3px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 transparent, 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent); }
html.night .btn--go { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 3px 0 color-mix(in srgb, var(--accent) 60%, #000), 0 0 44px color-mix(in srgb, var(--accent) 55%, transparent); }
.btn--go::after { content: "↓"; font-family: var(--mono); }

/* ---------- the tour: sections scroll over the set ---------- */
.tour { position: relative; }
.tour > section { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; padding: 7rem var(--pad) 6rem; }
.tour > .chapter { min-height: 135vh; }
.tour .copy { max-width: 33rem; }
.tour > .flip { justify-content: flex-end; }
.hero .copy { max-width: 40rem; }

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-bottom: -100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.7s;
}
/* the set is only lit while the tour is on screen */
html.js:not(.night) .stage { opacity: 0; }
/* without JS or WebGL2 there is no set; the page reads fine on its own */
html:not(.js) .stage, html.noset .stage { display: none; }
html:not(.js) .bar { display: none; } /* the bar needs JS to answer */
/* the side the text sits on stays paper; the camera says which side that is (--lft/--rgt) */
.stage::before,
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--paper) 28%, color-mix(in srgb, var(--paper) 78%, transparent) 40%, transparent 50%);
  opacity: var(--lft, 1);
}
.stage::before { z-index: 1; scale: -1 1; opacity: var(--rgt, 0); }
.set { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- chapter copy ---------- */
.demo { margin: 2rem 0 1.4rem; font-size: 0.8rem; border-top: 1.5px solid var(--ink); }
.demo-h { display: flex; align-items: center; gap: 0.9rem; margin: 0 !important; padding: 0.7rem 0; }
.demo-h b { font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.demo-h { flex-wrap: wrap; }
.demo-h span { flex: 1; color: var(--ink-2); }
.replay { font: 500 0.72rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: none; border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 99px; padding: 0.3rem 0.8rem; cursor: pointer; }
.replay:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.replay::before { content: "↻ "; }
.replay:active { translate: 0 1px; }
html:not(.js) .replay { display: none; }
.log { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.log li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; padding: 0.45rem 0; border-top: 1px dashed var(--line); color: var(--ink-2); line-height: 1.5; transition: opacity 0.4s, color 0.4s; }
.log li::before { content: counter(s, decimal-leading-zero); color: var(--ink-3); }
.js .log li:not(.on) { opacity: 0.45; }
.log li.now { color: var(--ink); }
.log li.now::before { content: "▸"; color: var(--accent-ink); }

.said { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.said button, .chips button {
  font: italic 400 1rem var(--serif);
  font-variation-settings: "SOFT" 100;
  padding: 0.4rem 0.95rem;
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 38%, transparent);
  border-radius: 99px;
  background: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.said button::before { content: "“"; color: var(--accent-ink); }
.said button::after { content: "”"; color: var(--accent-ink); }
.said button:hover, .chips button:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); border-color: var(--ink); }
.said button:active, .chips button:active { translate: 0 1px; }

.lines { margin: 2rem 0 0; display: grid; gap: 0; }
.lines div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.lines dt { font: italic 400 clamp(1.25rem, 2vw, 1.55rem)/1.2 var(--serif); font-variation-settings: "SOFT" 100; letter-spacing: -0.01em; }
.lines dt::before { content: "“"; color: var(--accent-ink); }
.lines dt::after { content: "”"; color: var(--accent-ink); }
.lines dd { margin: 0.35rem 0 0; color: var(--ink-2); font-size: 0.95rem; }

/* ---------- after the tour ---------- */
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 var(--pad); }
.agents, .home, .more, .start { position: relative; z-index: 1; padding: 8rem 0; background: var(--paper); }
.intro { max-width: 44ch; color: var(--ink-2); margin-bottom: 2.6rem; }

.keys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); column-gap: 4rem; border-top: 1.5px solid var(--ink); }
.keys li { display: grid; grid-template-columns: 11.5rem 1fr; gap: 1.2rem; align-items: baseline; padding: 1.15rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.97rem; line-height: 1.5; }
.keys kbd { display: inline-flex; align-items: center; gap: 0.65rem; font: italic 400 1.6rem/1 var(--serif); font-variation-settings: "SOFT" 100; letter-spacing: -0.01em; color: var(--ink); }
.keys kbd::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 20%, transparent); }

.home .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.device { margin: 0; display: grid; justify-items: center; gap: 1.4rem; perspective: 1600px; }
.phone3d { position: relative; width: min(19rem, 70vw); transform-style: preserve-3d; transform: rotateY(-20deg) rotateX(6deg); }
.phone3d i { position: absolute; inset: 0; border-radius: 2.6rem; background: #2a2b2f; transform: translateZ(calc(var(--k) * -2.4px)); }
.phone3d i:first-child { background: #151618; box-shadow: 30px 40px 60px rgba(30, 24, 14, 0.35); }
.phone3d img { position: relative; display: block; width: 100%; height: auto; border-radius: 2.6rem; border: 9px solid #0d0e10; }
figcaption { font-size: 0.74rem; color: var(--ink-3); }

.grid { border-top: 1.5px solid var(--ink); counter-reset: m; }
.grid article { counter-increment: m; display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.5fr); gap: 1.5rem; align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.grid article::before { content: counter(m, decimal-leading-zero); font: 500 0.78rem var(--mono); letter-spacing: 0.1em; color: var(--accent-ink); }
.grid h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: 0; }
.grid p { color: var(--ink-2); font-size: 0.98rem; margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.4rem; counter-reset: st; }
.steps li { counter-increment: st; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin-bottom: 1.1rem; border: 1.5px solid var(--ink); border-radius: 50%; font: 400 1.7rem var(--serif); background: var(--paper); }
.steps li:last-child::before { background: var(--accent); color: var(--on-accent); }
.steps p { color: var(--ink-2); font-size: 0.98rem; }
.start .ctas { margin-top: 3.4rem; }

.foot { position: relative; z-index: 1; padding: 5rem 0 9rem; border-top: 1.5px solid var(--ink); background: var(--paper); color: var(--ink-2); font-size: 0.92rem; overflow: hidden; }
.foot-word { font: 380 clamp(4.5rem, 17vw, 16rem)/0.85 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -0.05em; color: var(--ink); margin: 0 0 2.4rem -0.05em !important; white-space: nowrap; }
.foot-word em { font-weight: 340; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin-top: 1.4rem; }
.foot nav a { font: 500 0.74rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

/* ---------- the talk bar ---------- */
.bar { position: fixed; z-index: 25; left: 50%; bottom: 1.1rem; width: min(35rem, calc(100% - 1.6rem)); translate: -50% 0; display: grid; gap: 0.55rem; transition: translate 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s; }
.pill { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.35rem 0.35rem 1.25rem; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 99px; background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22); transition: padding 0.3s; }
.pill input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 400 1rem var(--sans); padding: 0.5rem 0; }
.pill input::placeholder { color: var(--ink-3); }
.pill:focus-within { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.orb { position: relative; flex: none; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; }
.orb::after { content: ""; position: absolute; inset: 33%; border-radius: 50%; background: var(--accent); scale: calc(1 + var(--lvl, 0) * 1.3); transition: scale 0.08s, border-radius 0.2s, inset 0.2s; }
.bar.listening .orb::after { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 35%, transparent); } }
.bar.typing .orb::after { inset: 30% 28% 30% 36%; border-radius: 2px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.orb:focus-visible { outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; }
.chips button { font-size: 0.88rem; padding: 0.28rem 0.8rem; background: color-mix(in srgb, var(--paper) 88%, transparent); }
.bubble { display: none; justify-self: center; max-width: 100%; padding: 0.85rem 1.15rem; border-radius: 20px; background: var(--ink); color: var(--paper); box-shadow: 0 12px 30px rgba(30, 24, 14, 0.25); }
.bar.open .bubble { display: block; animation: pop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
@keyframes pop { from { opacity: 0; translate: 0 8px; scale: 0.97; } }
.bubble .heard { font: 400 0.78rem var(--mono); opacity: 0.7; margin: 0; }
.bubble .heard:empty { display: none; }
.bubble .answer { font: 400 1.08rem/1.35 var(--serif); font-variation-settings: "SOFT" 100; margin: 0.2rem 0 0; }
.bubble .answer small { display: block; margin-top: 0.4rem; font: 400 0.74rem/1.45 var(--sans); opacity: 0.75; }
.torch { position: fixed; inset: 0; z-index: 24; pointer-events: none; opacity: 0; transition: opacity 0.6s; background: radial-gradient(circle 240px at var(--fx, 50%) var(--fy, 45%), rgba(255, 232, 190, 0.28), rgba(255, 232, 190, 0.08) 55%, transparent 75%); mix-blend-mode: screen; }
html.dusk.torch-on .torch { opacity: 1; }

/* ---------- narrow screens ---------- */
@media (max-width: 899px) {
  .top nav a:not(:last-child) { display: none; }
  .top { background: var(--paper); padding-block: 0.9rem; }
  .kicker { font-size: 0.66rem; letter-spacing: 0.1em; }
  /* Phones: the set stays pinned in the top part while the text scrolls up under it, so
     a demo can be watched while its log is read. */
  .stage { height: 44svh; margin-bottom: -44svh; z-index: 2; background: var(--paper); border-bottom: 1.5px solid var(--ink); }
  .stage::after { opacity: 1; background: linear-gradient(transparent 72%, var(--paper)); }
  .stage::before { display: none; }
  .tour > section, .tour > .chapter { min-height: 0; display: block; padding: 3.5rem 1.25rem 2.5rem; }
  .tour > .hero { min-height: 100svh; padding-top: calc(44svh + 1.4rem); }
  .tour > .say { padding-bottom: 6rem; }
  h1 { font-size: clamp(3.9rem, 19vw, 6rem); margin-bottom: 1rem; }
  .kicker { margin-bottom: 0.9rem; }
  .lede { font-size: 1.2rem; }
  .ctas { margin-top: 1.3rem; }
  .hero .fine { display: none; }
  .demo-h span { order: 3; flex-basis: 100%; }
  .demo-h button { margin-left: auto; }
  .home .wrap { grid-template-columns: 1fr; }
  .keys li { grid-template-columns: 1fr; gap: 0.5rem; }
  .grid article { grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.4rem 1rem; }
  .grid p { grid-column: 2; }
  .agents, .home, .more, .start { padding: 5rem 0; }
}
/* Wide screens: the bar sits bottom right, under the set, clear of the text column. */
@media (min-width: 900px) {
  .bar { left: auto; right: var(--pad); width: min(29rem, 38vw); translate: none; }
  html.flip .bar { translate: calc(-100vw + 100% + 2 * var(--pad)) 0; }
}
.bar:not(:focus-within):not(.open) .chips { display: none; }
/* Where the bar would cover the hero's Download button (phones, short windows), it waits
   until that button has scrolled away. */
@media (max-width: 899px) {
  .cta-in .bar:not(:focus-within) { translate: -50% calc(100% + 2rem); opacity: 0; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .cta-in .bar:not(:focus-within) { translate: 0 calc(100% + 2rem); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Folded: just the orb, bottom right (phones, and below the tour on computers). Tapping it
   unfolds the bar. */
.bar.folded:not(:focus-within):not(.open):not(.listening) { width: 3.6rem; left: auto; right: 1rem; translate: none; }
.bar.folded:not(:focus-within):not(.open):not(.listening) .pill { padding: 0.35rem; }
.bar.folded:not(:focus-within):not(.open):not(.listening) input { width: 0; flex: 0; padding: 0; }
.bar.folded:not(:focus-within):not(.open):not(.listening) .chips { display: none; }
