:root {
  --paper: #eceef1;
  --paper-2: #f7f8fa;
  --ink: #15181d;
  --mute: #56606c;
  --line: #c9ced6;
  --red: #ff3b30;
  --slate: #1b1f26;
  --slate-line: #353c47;
  --gutter: clamp(20px, 6vw, 96px);
  --measure: 62ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.9rem, 8.2vw, 7rem); font-variation-settings: "wdth" 68; line-height: 0.92; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-variation-settings: "wdth" 72; }
h3 { font-size: 1.25rem; font-variation-settings: "wdth" 88; font-weight: 700; line-height: 1.2; letter-spacing: 0; }
p { margin: 0; max-width: var(--measure); }
.lede { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.45; max-width: 46ch; }
.tc { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* The page behaves like the app: everything hugs the left edge, and a fixed
   triangle marks the reading line beside the "camera" side of the screen. */
.reading-mark {
  position: fixed;
  left: clamp(4px, 1.6vw, 28px);
  top: 50%;
  width: 0; height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-right: 19px solid var(--red);
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
}
@media (max-width: 900px) { .reading-mark { display: none; } }

.site-header, main > section, .site-footer { padding-inline: var(--gutter); }

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 22px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.2rem; font-variation-settings: "wdth" 80; text-decoration: none;
}
.wordmark svg { width: 20px; height: 22px; }
.site-nav { display: flex; gap: clamp(14px, 2.4vw, 32px); font-size: 1rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
@media (max-width: 640px) { .site-nav a.optional { display: none; } }

/* Hero */
.hero { padding-block: clamp(28px, 6vw, 80px) clamp(48px, 8vw, 112px); }
.hero h1 { max-width: 11ch; }
.hero .lede { margin-top: clamp(20px, 3vw, 36px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.soon {
  display: inline-block; padding: 13px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper-2); font-weight: 600; font-size: 1rem;
}

.phone {
  margin-top: clamp(36px, 6vw, 72px);
  width: min(100%, 1040px);
  aspect-ratio: 19.5 / 9;
  background: #000;
  border-radius: clamp(22px, 5vw, 54px);
  padding: clamp(6px, 1.2vw, 13px);
  box-shadow: 0 0 0 2px #2c313a, 0 30px 60px -30px rgba(21, 24, 29, 0.55);
  container-type: inline-size;
}
.screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: clamp(17px, 4vw, 42px);
  background: #000; color: #fff;
  display: grid; grid-template-columns: 10cqw 1fr 17cqw;
}
.island {
  position: absolute; left: 1.6cqw; top: 50%; transform: translateY(-50%);
  width: 3.4cqw; height: 11cqw; border-radius: 3cqw; background: #101216;
  box-shadow: inset 0 0 0 1px #20242b;
}
.island::after {
  content: ""; position: absolute; left: 50%; top: 22%; width: 1.5cqw; height: 1.5cqw;
  margin-left: -0.75cqw; border-radius: 50%; background: #1d2a44;
}
.cue {
  align-self: center; justify-self: end; margin-right: 1cqw;
  width: 0; height: 0;
  border-top: 1.7cqw solid transparent; border-bottom: 1.7cqw solid transparent;
  border-right: 2.95cqw solid var(--red);
}
.scroll-window {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
.scroll-text {
  position: absolute; left: 0; top: 50%; width: 62%;
  margin-top: -2.6cqw;
  font-size: 3.5cqw; font-weight: 600; line-height: 1.32;
  animation: prompt 46s linear infinite;
}
.scroll-text p { max-width: none; margin-bottom: 1.2em; }
@keyframes prompt { from { transform: translateY(0); } to { transform: translateY(-100%); } }
.controls { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqw; }
.stop {
  width: 7cqw; height: 7cqw; border-radius: 50%; background: var(--red);
  display: grid; place-items: center;
}
.stop::after { content: ""; width: 2.6cqw; height: 2.6cqw; border-radius: 0.5cqw; background: #000; }
.speed { font-size: 1.5cqw; color: #9aa3ad; text-align: center; }
.speed span {
  display: flex; justify-content: space-between; margin-top: 0.6cqw; padding: 0.7cqw 1.6cqw;
  width: 11cqw; border-radius: 9cqw; background: #1c1f24; color: #fff; font-size: 2cqw;
}
.phone-note { margin-top: 14px; font-size: 0.95rem; color: var(--mute); }

/* Sections */
main > section { padding-block: clamp(56px, 9vw, 128px); }
main > section + section { border-top: 1px solid var(--line); }
.section-intro { margin-top: 20px; }

/* The take, drawn as a timeline */
.take { margin-top: clamp(32px, 5vw, 56px); max-width: 1040px; }
.take-bar { display: grid; grid-template-columns: 2fr 9fr 3fr; height: 56px; border-radius: 6px; overflow: hidden; }
.take-bar > div { display: grid; place-items: center start; padding-left: 14px; font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; }
.take-bar .handle { background: repeating-linear-gradient(-45deg, #dfe3e8 0 8px, #d2d7de 8px 16px); }
.take-bar .read { background: var(--ink); color: var(--paper-2); }
.take-ruler { display: grid; grid-template-columns: 2fr 9fr 3fr; margin-top: 8px; font-size: 0.9rem; color: var(--mute); }
.take-ruler > div { border-left: 1px solid var(--ink); padding-left: 8px; }
.steps { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; display: grid; gap: 28px 48px; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1040px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-size: 2.4rem; font-variation-settings: "wdth" 68; line-height: 1; margin-bottom: 10px; }
.steps p { margin-top: 6px; color: var(--mute); font-size: 1.02rem; }

/* Two angles: the one dark band */
main > section.angles { background: var(--slate); color: #eef0f3; border-top: 0; }
main > section.angles + section { border-top: 0; }
.angles .section-intro { color: #c3cad3; }
.tracks { margin-top: clamp(32px, 5vw, 56px); max-width: 1040px; display: grid; gap: 10px; }
.track { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.track-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; font-size: 0.95rem; color: #c3cad3; }
.track-meta b { color: #fff; font-weight: 700; }
.track-lane { height: 34px; border-radius: 4px; background: #262c35; position: relative; }
.track-lane i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.track-lane .a { left: 6%; right: 9%; background: #eef0f3; }
.track-lane .b { left: 2%; right: 4%; background: var(--red); }
.clock { display: flex; justify-content: space-between; font-size: 0.85rem; color: #8f99a5; border-top: 1px solid var(--slate-line); padding-top: 8px; margin-top: 6px; }
.angle-points { margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; list-style: none; display: grid; gap: 26px 48px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); max-width: 1040px; }
.angle-points p { margin-top: 6px; color: #c3cad3; font-size: 1.02rem; }

/* Details: a plain two-column definition list, not cards */
.details { margin: clamp(28px, 4vw, 48px) 0 0; max-width: 1040px; }
.details div { display: grid; grid-template-columns: minmax(150px, 260px) minmax(0, 1fr); gap: 8px 32px; padding-block: 18px; border-top: 1px solid var(--line); }
.details dt { font-weight: 700; }
.details dd { margin: 0; color: var(--mute); max-width: 56ch; }
@media (max-width: 620px) { .details div { grid-template-columns: 1fr; } }

/* Pricing */
.plans { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 1040px; }
.plan { background: var(--paper-2); border-radius: 10px; padding: 28px; }
.plan.pro { background: var(--ink); color: var(--paper-2); }
.plan .price { margin-top: 14px; font-weight: 800; font-size: 2.6rem; line-height: 1; font-variation-settings: "wdth" 72; }
.plan .price small { font-size: 1rem; font-weight: 500; font-variation-settings: "wdth" 100; }
.plan .or { margin-top: 8px; font-size: 1rem; }
.plan ul { margin: 20px 0 0; padding-left: 1.1em; }
.plan li { margin-top: 6px; }
.plan .fine { margin-top: 18px; font-size: 0.92rem; opacity: 0.8; }

/* FAQ */
.faq { margin-top: clamp(24px, 4vw, 40px); max-width: 860px; }
.faq details { border-top: 1px solid var(--line); padding-block: 16px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-top: 10px; color: var(--mute); }

/* Footer and text pages */
.site-footer { padding-block: 40px 56px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font-size: 0.98rem; color: var(--mute); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.doc { padding: clamp(28px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 104px); }
.doc h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.doc h2 { font-size: 1.5rem; font-variation-settings: "wdth" 84; margin-top: 40px; line-height: 1.15; letter-spacing: 0; }
.doc p, .doc ul { margin-top: 14px; max-width: 66ch; }
.doc ul { padding-left: 1.1em; }
.doc li { margin-top: 6px; }
.doc .updated { color: var(--mute); margin-top: 16px; }
.draft { margin-top: 24px; padding: 14px 18px; border-left: 4px solid var(--red); background: var(--paper-2); max-width: 66ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-text { animation: none; }
}

/* Camera view behind the script, dimmed as in the app */
.screen .preview { position: absolute; inset: 0; width: 100%; height: 100%; transform: scaleX(-1); }
.screen .dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.58); }
.screen > .island, .screen > .cue, .screen > .scroll-window, .screen > .controls, .screen > .static-text { position: relative; }
.screen > .island { position: absolute; }

/* Voice section: text left, upright phone right */
.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: start; max-width: 1040px; }
.voice-points { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; gap: 24px; }
.voice-points p { margin-top: 6px; color: var(--mute); font-size: 1.02rem; max-width: 48ch; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.phone.upright { width: min(100%, 300px); aspect-ratio: 9 / 19.5; margin-top: 0; border-radius: 44px; padding: 9px; }
.phone.upright .screen {
  border-radius: 36px; display: flex; flex-direction: column; align-items: center;
  grid-template-columns: none;
}
.phone.upright .island {
  position: relative; left: auto; top: auto; transform: none; margin-top: 4cqw;
  width: 30cqw; height: 9cqw; border-radius: 9cqw;
}
.phone.upright .island::after { left: auto; right: 9%; top: 50%; margin: -1.6cqw 0 0; width: 3.2cqw; height: 3.2cqw; }
.phone.upright .cue {
  margin: 3cqw 0 0; align-self: center;
  border-left: 4.4cqw solid transparent; border-right: 4.4cqw solid transparent;
  border-bottom: 7.6cqw solid var(--red); border-top: 0;
}
.static-text {
  width: 88%; height: 38%; margin-top: 2cqw; overflow: hidden;
  font-size: 7.6cqw; font-weight: 600; line-height: 1.32; color: #fff;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.static-text .said { color: rgba(255, 255, 255, 0.36); }
.phone.upright .controls { flex: 1; gap: 4cqw; }
.phone.upright .stop { width: 19cqw; height: 19cqw; }
.phone.upright .stop::after { width: 7cqw; height: 7cqw; border-radius: 1.4cqw; }
.phone.upright .speed { font-size: 4.2cqw; }
.phone.upright .speed span { width: 34cqw; padding: 2cqw 5cqw; font-size: 5.4cqw; border-radius: 20cqw; margin-top: 1.4cqw; }

/* Hero: sideways and upright phones at the same height */
.hero-phones {
  margin-top: clamp(36px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.213fr);
  gap: clamp(16px, 2.4vw, 32px); align-items: start; max-width: 1280px;
}
.hero-phones .phone { margin-top: 0; width: 100%; }
.hero-phones .phone.upright { border-radius: clamp(18px, 2.7vw, 40px); padding: clamp(4px, 0.6vw, 9px); }
.hero-phones .phone.upright .screen { border-radius: clamp(14px, 2.1vw, 32px); }
.phone.upright .scroll-window {
  width: 88%; height: 40%; margin-top: 2cqw;
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent);
          mask-image: linear-gradient(to bottom, #000 68%, transparent);
}
.phone.upright .scroll-text { top: 0; margin-top: 1cqw; width: 100%; font-size: 7.6cqw; animation-duration: 30s; }
@media (max-width: 820px) {
  .hero-phones { grid-template-columns: 1fr; }
  .hero-phones .phone.upright { width: min(70%, 260px); border-radius: 44px; padding: 9px; }
  .hero-phones .phone.upright .screen { border-radius: 36px; }
}

/* Photo behind the upright phones */
.screen .preview.photo { object-fit: cover; object-position: 50% 30%; transform: none; }

/* Hero: the upright phone is the same device size as the sideways one and overlaps it */
.hero-phones { display: block; position: relative; aspect-ratio: 1 / 0.8; max-width: 1180px; }
.hero-phones .phone { width: 80%; margin-top: 24%; }
.hero-phones .phone.upright {
  position: absolute; right: 0; top: 0; z-index: 2; margin-top: 0;
  width: calc(80% * 9 / 19.5);
  border-radius: clamp(14px, 5vw, 54px); padding: clamp(4px, 1.2vw, 13px);
  box-shadow: 0 0 0 2px #2c313a, -24px 30px 60px -24px rgba(21, 24, 29, 0.6);
}
.hero-phones .phone.upright .screen { border-radius: clamp(11px, 4vw, 42px); }
.screen .preview.photo.wide { object-position: 50% 35%; }
