/* ==========================================================================
   VOCEN — marketing site
   Editorial × Performance × Product-led
   Paper ground, ink blocks, one accent. Numbers are objects.
   Tokens mirror docs/03-design-system.md from the iOS app.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */

:root {
  color-scheme: light;

  /* Ground */
  --paper: #ffffff;
  --paper-2: #f4f6f5;
  --paper-3: #eceeed;
  --ink: #0b222d;
  --ink-2: #06161f;

  /* Type */
  --tx-1: #101312;
  --tx-2: #5b6360;
  --tx-3: #6e7572;
  --on-ink: #f2efe7;
  --on-ink-2: #a9b8c0;
  --on-ink-3: #8a9aa2;

  /* Accent — appears sparingly. It has to keep meaning something. */
  --accent: #0e7361;
  --accent-press: #0a5a4c;
  --accent-soft: #e4f1ed;
  --accent-ink: #39d4c3;

  /* Lines & tracks */
  --line: #e6e8e7;
  --border: #d5d9d7;
  --track: #dee1e0;
  --track-ink: #2a4855;
  --line-ink: #1f3b47;

  /* Feedback */
  --pos: #1b7a55;
  --attn: #9a5b17;

  /* Families */
  --serif: "Newsreader", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm — base unit 4, as in the app */
  --gut: 24px;
  --shell: 1280px;
  --measure: 66ch;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------------------------------------- 2. Reset-ish */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--tx-1);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--on-ink);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 16px; }

/* ------------------------------------------------------------ 3. Typography */

h1, h2, h3, h4 { margin: 0; font-weight: 500; }

.serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.02;
  font-variation-settings: "opsz" 40;
}

.d-xl { font-size: clamp(3.1rem, 8.2vw, 6.6rem); }
.d-lg { font-size: clamp(2.5rem, 5.6vw, 4.3rem); line-height: 1.03; }
.d-md { font-size: clamp(1.9rem, 3.4vw, 2.85rem); line-height: 1.08; }
.d-sm { font-size: clamp(1.4rem, 2.1vw, 1.75rem); line-height: 1.18; letter-spacing: -0.015em; }

em.acc { font-style: italic; font-variation-settings: "opsz" 20; }

.deck {
  font-size: clamp(1.05rem, 1.35vw, 1.24rem);
  line-height: 1.55;
  color: var(--tx-2);
  max-width: 46ch;
  margin: 0;
  text-wrap: pretty;
}

.lede { font-size: 1.06rem; color: var(--tx-2); line-height: 1.62; max-width: var(--measure); }

.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin: 0;
}
.label--accent { color: var(--accent); }
.label--ink { color: var(--on-ink-3); }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--tx-3);
  font-variation-settings: "opsz" 16;
}

/* --------------------------------------------------------------- 4. Layout */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule--ink { background: var(--line-ink); }

section { position: relative; }

.band { padding-block: clamp(72px, 9vw, 132px); }
.band--tight { padding-block: clamp(56px, 6vw, 88px); }

.band--ink {
  background: var(--ink);
  color: var(--on-ink);
  position: relative;
  isolation: isolate;
}
.band--ink::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image: 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='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
.band--paper2 { background: var(--paper-2); }

/* Section head: mono index in the margin, serif title beside it — the
   broadsheet move that carries the whole page. */
.shead {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 0 clamp(16px, 3vw, 40px);
  align-items: start;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.band--ink .shead { border-top-color: var(--line-ink); }

.shead__idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 8px;
  font-variant-numeric: tabular-nums;
}
.band--ink .shead__idx { color: var(--accent-ink); }

.shead__body { max-width: 62ch; }
.shead__body .deck { margin-top: 18px; max-width: 54ch; }
.band--ink .shead__body .deck { color: var(--on-ink-2); }

.cols {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 0 clamp(16px, 3vw, 40px);
}
/* Empty spacer holding the 74px margin column, so the body text lines up under
   the section title. It must stay in flow — display:none removes it from the
   grid and drops the text into the margin column. */
.cols__pad { display: block; }

/* --------------------------------------------------------------- 5. Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-press); }

.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink:hover { background: var(--ink-2); }

.btn--outline { border-color: var(--border); color: var(--tx-1); background: transparent; }
.btn--outline:hover { border-color: var(--tx-1); background: var(--paper-2); }

.btn--onink { background: var(--accent-ink); color: #06202a; }
.btn--onink:hover { background: #2cb9aa; }

.btn--onink-ghost { border-color: var(--track-ink); color: var(--on-ink); }
.btn--onink-ghost:hover { border-color: var(--on-ink-2); }

.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* Underline link — the editorial one */
.ulink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.28s var(--ease), color 0.2s var(--ease);
}
.ulink:hover { background-size: 0% 1px; color: var(--accent); }
.ulink svg { transition: transform 0.28s var(--ease); }
.ulink:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------ 6. Site chrome */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav__in {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
/* The app icon's mark, traced to SVG. Its artwork is wider than it is tall,
   so height follows width rather than being forced square. */
.brand__mark { width: 32px; height: auto; flex: none; }

/* The shipped app icon, shown as iOS would round it. */
.appicon {
  width: 78px;
  height: 78px;
  flex: none;
  border-radius: 22.4%;
  background: #fdfdfc;
  overflow: hidden;
}
.appicon img { width: 100%; height: 100%; }
.brand__word {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.16em;
}

.nav__links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav__links a {
  font-size: 15px;
  color: var(--tx-2);
  transition: color 0.18s var(--ease);
}
.nav__links a:hover { color: var(--tx-1); }
.nav__cta { margin-left: 4px; }

.nav__burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--tx-1);
  position: relative;
}
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--tx-1);
  transition: transform 0.2s var(--ease);
}
.nav__burger span::before { top: -5px; }
.nav__burger span::after { top: 5px; }
.nav__burger[aria-expanded="true"] span { background: transparent; }
.nav__burger[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

.nav__sheet {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px clamp(20px, 4vw, 56px) 24px;
  background: var(--paper);
}
.nav__sheet.is-open { display: block; }
.nav__sheet a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.nav__sheet .btn { width: 100%; margin-top: 18px; }

/* ----------------------------------------------------------------- 7. Hero */

.hero { padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(40px, 5vw, 64px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.82fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 { margin: 22px 0 0; }
.hero h1 .line { display: block; }
.hero .deck { margin-top: 26px; }

.hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero__fine {
  margin-top: 18px;
  font-size: 13px;
  color: var(--tx-3);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero__fine .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }

/* Spec rail — hairline strip of the numbers that define the instrument */
.spec {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec__i { padding: 22px clamp(12px, 2vw, 28px) 22px 0; }
.spec__i + .spec__i { border-left: 1px solid var(--line); padding-left: clamp(16px, 2.4vw, 32px); }
.spec__v {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.spec__v sup { font-size: 0.5em; font-weight: 400; color: var(--tx-3); top: -0.9em; }
.spec__k { margin-top: 6px; font-size: 13.5px; color: var(--tx-2); line-height: 1.35; }

/* The value proposition, printed the way an instrument reads it. */
.reading__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.reading__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.reading__sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tx-3);
}
.reading__rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.readout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0 clamp(14px, 3vw, 40px);
  margin-top: clamp(20px, 2.6vw, 30px);
}
.readout__cell { min-width: 0; }
.readout__cell--accent .readout__n { color: var(--accent); }

.readout__n {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(3.4rem, 9.5vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--tx-1);
  position: relative;
}
.readout__n::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--ease) 0.08s;
}
.readout__cell.in .readout__n::after { transform: scaleX(1); }

.readout__k {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--tx-2);
}

.readout__op {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  color: var(--accent);
  user-select: none;
}
.readout__op::before,
.readout__op::after {
  content: "";
  width: 1px;
  height: clamp(20px, 3vw, 36px);
  background: var(--line);
}

/* Outcome cells read as numbered instrument lines. */
.outcome__n {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* A readout stacks into a vertical gauge on narrow screens. */
@media (max-width: 760px) {
  .readout {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }
  .readout__op {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    padding: 4px 0;
    font-size: 1.4rem;
  }
  .readout__op::before,
  .readout__op::after {
    width: clamp(44px, 14vw, 90px);
    height: 1px;
  }
  .readout__n { font-size: clamp(2.6rem, 15vw, 4.2rem); }
  .readout__k { margin-top: 12px; }
}

.outcome {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(26px, 3vw, 38px);
  border-top: 1px solid var(--line);
}
.outcome__i { padding: 22px clamp(14px, 2vw, 30px) 4px 0; }
.outcome__i + .outcome__i { border-left: 1px solid var(--line); padding-left: clamp(18px, 2.4vw, 32px); }
.outcome__k {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--tx-2);
  max-width: 34ch;
}

/* A single sentence given a whole band, because it removes the biggest
   reason someone won't press record. */
.statement { border-top: 1px solid var(--line); padding-bottom: clamp(56px, 6.5vw, 92px); }
.statement h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5.6vw, 4.1rem);
  letter-spacing: -0.025em;
  line-height: 1.03;
  max-width: 17ch;
}
.statement p {
  margin: 24px 0 0;
  max-width: 50ch;
  color: var(--tx-2);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
}

.wideshot { margin: clamp(34px, 4.5vw, 56px) 0 0; }
.wideshot img {
  display: block;
  width: 100%;
  height: clamp(190px, 26vw, 300px);
  object-fit: cover;
  object-position: 62% 32%;
  border-radius: 3px;
  filter: saturate(0.85) brightness(0.9);
}
.wideshot figcaption {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--on-ink-2);
  max-width: 54ch;
}

/* Twelve weeks, as an instrument reads them. */
.scene {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(32px, 4vw, 50px);
  border-top: 1px solid var(--line-ink);
}
.scene__i { padding: 26px clamp(14px, 2vw, 28px) 0 0; }
.scene__i + .scene__i { border-left: 1px solid var(--line-ink); padding-left: clamp(18px, 2.4vw, 30px); }
.scene__w {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-ink-3);
}
.scene__n {
  font-family: var(--mono);
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  color: var(--accent-ink);
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.scene__d { margin: 12px 0 0; color: var(--on-ink-2); font-size: 15px; line-height: 1.55; }

/* ------------------------------------------------- 8. The instrument (ring) */

.instr {
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 38px);
  color: var(--on-ink);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.instr::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image: 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='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

.instr__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-ink);
}

.ring {
  display: grid;
  place-items: center;
  margin: 26px auto 6px;
  position: relative;
  width: min(268px, 68vw);
  aspect-ratio: 1;
}
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring__tick {
  stroke: var(--track-ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  transition: stroke 0.5s var(--ease);
}
.ring__tick.on { stroke: var(--accent-ink); }

.ring__mid { text-align: center; position: relative; z-index: 2; }
.ring__num {
  font-family: var(--mono);
  font-size: clamp(3.4rem, 8vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ring__desc { margin-top: 8px; font-size: 14px; color: var(--on-ink-2); }

.instr__delta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--on-ink-2);
}
.instr__delta b { color: var(--accent-ink); font-weight: 500; }

.instr__dims { margin-top: 26px; border-top: 1px solid var(--line-ink); padding-top: 6px; }
.dimrow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 11px 0;
}
.dimrow + .dimrow { border-top: 1px solid var(--line-ink); }
.dimrow__n { font-size: 14.5px; }
.dimrow__v { font-family: var(--mono); font-size: 14px; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.dimrow__bar { grid-column: 1 / -1; height: 3px; background: var(--track-ink); border-radius: 2px; overflow: hidden; }
.dimrow__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-ink);
  border-radius: 2px;
  transition: width 0.9s var(--ease);
}

/* --------------------------------------------------------------- 9. Phones */

.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3.4vw, 48px);
  margin-top: clamp(40px, 5vw, 68px);
}

.step__idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.step h3 { margin: 12px 0 8px; font-family: var(--serif); font-size: 1.6rem; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--tx-2); font-size: 15.5px; line-height: 1.55; }
.step__rule { height: 1px; background: var(--line); margin-bottom: 18px; }

.phone {
  margin-top: 26px;
  border: 1.5px solid var(--ink);
  border-radius: 32px;
  padding: 8px;
  background: var(--paper);
  aspect-ratio: 393 / 700;
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}
.step:hover .phone { transform: translateY(-6px); }
.phone__screen {
  height: 100%;
  border-radius: 25px;
  overflow: hidden;
  background: var(--paper);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}
.phone__screen--ink { background: var(--ink); color: var(--on-ink); }

.phone__screen--shot { padding: 0; }
.phone__shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.notch {
  width: 62px;
  height: 16px;
  border-radius: 999px;
  background: var(--ink);
  margin: 0 auto 4px;
  flex: none;
}
.phone__screen--ink .notch { background: #000; }

.mini-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--tx-3);
}
.phone__screen--ink .mini-label { color: var(--on-ink-3); }
.mini-title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.mini-sub { font-size: 12px; color: var(--tx-2); line-height: 1.45; }
.phone__screen--ink .mini-sub { color: var(--on-ink-2); }

/* live waveform */
.wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 78px;
  margin-block: auto;
}
.wave i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--accent-ink);
  height: 12%;
  animation: wv 1.15s var(--ease) infinite alternate;
}
@keyframes wv {
  to { height: var(--h, 60%); }
}

.rec-clock {
  font-family: var(--mono);
  font-size: 26px;
  letter-spacing: -0.03em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.rec-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-ink);
  margin-right: 7px;
  vertical-align: 1px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; } }

.rec-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 2px solid var(--accent-ink);
  margin: 0 auto;
  display: grid;
  place-items: center;
  flex: none;
}
.rec-btn i { width: 22px; height: 22px; border-radius: 6px; background: var(--accent-ink); display: block; }

/* plan rows */
.plan-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.plan-row__k {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--border);
  margin-top: 2px;
}
.plan-row__k.done { background: var(--accent); border-color: var(--accent); }
.plan-row__t { display: block; font-size: 13px; font-weight: 500; line-height: 1.3; }
.plan-row__m { display: block; font-family: var(--mono); font-size: 10px; color: var(--tx-3); margin-top: 3px; letter-spacing: 0.04em; }

.mini-ring { width: 108px; aspect-ratio: 1; margin: 6px auto 0; position: relative; display: grid; place-items: center; }
.mini-ring svg { position: absolute; inset: 0; }
.mini-ring__n { font-family: var(--mono); font-size: 32px; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------- 10. Dimensions (score) */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

/* One accent for all five: shading them along a ramp would imply a ranking
   the product deliberately refuses to make. */
.dimtable { border-top: 1px solid var(--tx-1); }
.dim {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.dim__ic { grid-row: span 2; color: var(--accent); align-self: start; padding-top: 2px; }
.dim__ic svg { display: block; }
.dim__name { font-size: 1.12rem; font-weight: 500; letter-spacing: -0.015em; }
.dim__d { font-size: 14.5px; color: var(--tx-2); max-width: 46ch; line-height: 1.5; }

.sidenote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin-top: 34px;
}
.sidenote p { margin: 0; }

/* --------------------------------------------------------- 11. Ink metrics */

.mgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-ink);
  margin-top: clamp(38px, 5vw, 60px);
}
.mgrid__i { padding: 26px clamp(12px, 2vw, 26px) 4px 0; }
.mgrid__i + .mgrid__i { border-left: 1px solid var(--line-ink); padding-left: clamp(16px, 2.2vw, 30px); }
.mgrid__v {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.mgrid__k { margin-top: 8px; font-size: 14px; color: var(--on-ink-2); line-height: 1.4; }

.pull {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.1vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0;
}
.pull em { font-style: italic; color: var(--accent-ink); }

.trace { margin-top: 30px; width: 100%; height: 96px; }
.trace path.line {
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----------------------------------------------------------- 12. Depth cards */

.depths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(38px, 5vw, 60px); }
.depth {
  padding: 30px clamp(18px, 2.4vw, 34px) 34px 0;
  border-top: 1px solid var(--tx-1);
}
.depth + .depth { border-left: 1px solid var(--line); padding-left: clamp(20px, 2.6vw, 36px); }
.depth__t { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; }
.depth h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.022em; margin: 14px 0 10px; }
.depth p { margin: 0; color: var(--tx-2); font-size: 15.5px; }
.depth__time { margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--tx-3); }

/* --------------------------------------------------------- 13. Feature grid */

.fgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(36px, 5vw, 58px);
  border-top: 1px solid var(--line);
}
.feat {
  padding: 30px clamp(18px, 2.2vw, 34px) 34px 0;
  border-bottom: 1px solid var(--line);
}
.feat:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); padding-left: clamp(20px, 2.4vw, 34px); }
.feat__ic { color: var(--accent); margin-bottom: 16px; }
.feat h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.feat p { margin: 0; font-size: 15px; color: var(--tx-2); line-height: 1.55; }
.feat__tag {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 9px;
}

/* ---------------------------------------------------------- 14. Not-list */

.notlist { margin-top: clamp(30px, 4vw, 48px); }
.not {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr;
  gap: 8px clamp(20px, 4vw, 56px);
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.not__h {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  letter-spacing: -0.02em;
  color: var(--tx-1);
  position: relative;
  display: inline-block;
}
.not__h::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 54%;
  height: 1px;
  background: var(--tx-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.not.in .not__h::after { transform: scaleX(1); }
.not p { margin: 0; color: var(--tx-2); font-size: 15.5px; }

/* --------------------------------------------------------------- 15. Pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--tx-1);
}
.plan { padding: 32px clamp(20px, 3vw, 40px) 36px 0; }
.plan + .plan { border-left: 1px solid var(--line); padding-left: clamp(24px, 3vw, 44px); }
.plan__n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx-3); }
.plan--pro .plan__n { color: var(--accent); }
.plan__p {
  /* Sans rather than mono: a decimal point in a monospaced advance width
     floats in the middle of nowhere at this size. */
  font-family: var(--sans);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-top: 16px;
  font-variant-numeric: tabular-nums;
}
.plan__p small { font-family: var(--sans); font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--tx-3); margin-left: 6px; }
.plan__alt { margin-top: 10px; font-size: 14px; color: var(--tx-2); }
.plan__alt b { font-weight: 500; color: var(--accent); }
.plan ul { list-style: none; margin: 26px 0 0; padding: 0; }
.plan li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15.2px;
  color: var(--tx-2);
  align-items: start;
}
.plan li svg { margin-top: 4px; color: var(--accent); }
.plan li b { color: var(--tx-1); font-weight: 500; }
.plan .btn { margin-top: 28px; }
.plan__terms { margin-top: 14px; font-size: 12.5px; color: var(--tx-3); line-height: 1.5; max-width: 42ch; }

/* -------------------------------------------------------------- 16. FAQ */

.faq { margin-top: clamp(30px, 4vw, 44px); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 44px 24px 0;
  position: relative;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 13px;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
}
.faq summary::before {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 1.5px;
  height: 13px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.faq details[open] summary::before { transform: translateY(-50%) rotate(90deg); opacity: 0; }
.faq__a { padding: 0 0 26px; color: var(--tx-2); max-width: 62ch; font-size: 15.8px; }
.faq__a p { margin: 0 0 12px; }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- 17. CTA */

.cta { text-align: left; }
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
}
.cta h2 { color: var(--on-ink); }
.cta .deck { color: var(--on-ink-2); }

/* ------------------------------------------------------------- 18. Footer */

.foot { background: var(--ink-2); color: var(--on-ink); padding-top: clamp(56px, 6vw, 84px); padding-bottom: 40px; }
.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 48px;
}
.foot h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-ink-3);
  margin-bottom: 18px;
  font-weight: 500;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 12px; }
.foot a { color: var(--on-ink-2); font-size: 15px; transition: color 0.18s var(--ease); }
.foot a:hover { color: var(--accent-ink); }
.foot__blurb { color: var(--on-ink-2); font-size: 15px; max-width: 34ch; margin: 18px 0 0; }
.foot__bar {
  border-top: 1px solid var(--line-ink);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  font-size: 13px;
  color: var(--on-ink-3);
  font-family: var(--mono);
}
.foot__bar .sep { margin-left: auto; }
.foot__word {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.3em;
  font-size: clamp(2.6rem, 11vw, 8rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--track-ink);
  line-height: 1;
  margin: 10px 0 34px;
  user-select: none;
}

/* --------------------------------------------------------- 19. Doc pages */

.dochead { padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(30px, 4vw, 44px); }
.dochead h1 { margin: 18px 0 0; }
.dochead__meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--tx-3);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.doc {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(40px, 5vw, 64px) clamp(70px, 8vw, 110px);
  align-items: start;
}

.toc { position: sticky; top: 96px; }
.toc h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin: 0 0 14px;
  font-weight: 500;
}
.toc ol { list-style: none; counter-reset: t; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.toc li { counter-increment: t; border-bottom: 1px solid var(--line); }
.toc a {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--tx-2);
  transition: color 0.18s var(--ease);
}
.toc a::before {
  content: counter(t, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--tx-3);
  padding-top: 3px;
}
.toc a:hover, .toc a.is-active { color: var(--accent); }
.toc a.is-active::before { color: var(--accent); }

.prose { max-width: var(--measure); }
.prose > section { padding-top: 8px; }
.prose > section + section { margin-top: 52px; }
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.022em;
  line-height: 1.12;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: baseline;
}
.prose h2::before {
  content: attr(data-n);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.prose h3 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 30px 0 8px;
}
.prose p { margin: 14px 0; color: var(--tx-2); line-height: 1.68; font-size: 16.2px; }
.prose p strong, .prose li strong { color: var(--tx-1); font-weight: 600; }
.prose ul, .prose ol { margin: 14px 0; padding-left: 0; list-style: none; }
.prose ul li, .prose ol li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--tx-2);
  line-height: 1.62;
  font-size: 16.2px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 7px;
  height: 1px;
  background: var(--accent);
}
.prose ol { counter-reset: p; }
.prose ol li { counter-increment: p; }
.prose ol li::before {
  content: counter(p) ".";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--tx-3);
}
.prose a:not(.btn) {
  color: var(--accent);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}
.prose a:not(.btn):hover { background-size: 0 1px; }

.note {
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 18px 22px;
  margin: 22px 0;
}
.note p { margin: 0; color: #14453b; font-size: 15.4px; }
.note p + p { margin-top: 10px; }
.note__k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.dtable { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.dtable th, .dtable td {
  text-align: left;
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--tx-2);
  line-height: 1.5;
}
.dtable th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tx-3);
  font-weight: 500;
  border-bottom-color: var(--tx-1);
}
.dtable td:first-child { color: var(--tx-1); font-weight: 500; width: 34%; }
.tablewrap { overflow-x: auto; }

/* ------------------------------------------------------------ 20. Contact */

.ccards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--tx-1);
  margin-top: clamp(30px, 4vw, 46px);
}
.ccard { padding: 28px clamp(16px, 2vw, 30px) 32px 0; border-bottom: 1px solid var(--line); }
.ccard + .ccard { border-left: 1px solid var(--line); padding-left: clamp(20px, 2.4vw, 32px); }
.ccard h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.ccard p { margin: 8px 0 16px; font-size: 15px; color: var(--tx-2); }
.ccard a.mail {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  word-break: break-all;
}
.ccard a.mail:hover { background-size: 0 1px; }
.ccard .sla { display: block; margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--tx-3); text-transform: uppercase; }

.form { display: grid; gap: 18px; max-width: 620px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx-3); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--tx-1);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  width: 100%;
  transition: border-color 0.18s var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--tx-3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__fine { font-size: 13px; color: var(--tx-3); line-height: 1.55; margin: 0; }

/* ------------------------------------------------------- 21. Reveal motion */

.rv {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-motion .rv {
  opacity: 0;
  transform: translateY(18px);
}
.js-motion .rv.in { opacity: 1; transform: none; }
[data-rv-delay="1"] { transition-delay: 0.07s; }
[data-rv-delay="2"] { transition-delay: 0.14s; }
[data-rv-delay="3"] { transition-delay: 0.21s; }
[data-rv-delay="4"] { transition-delay: 0.28s; }
[data-rv-delay="5"] { transition-delay: 0.35s; }
[data-rv-delay="6"] { transition-delay: 0.42s; }
[data-rv-delay="7"] { transition-delay: 0.49s; }

/* --------------------------------------------------------- 22. Responsive */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .instr { max-width: 520px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat:not(:nth-child(3n + 1)) { border-left: 0; padding-left: 0; }
  .feat:nth-child(even) { border-left: 1px solid var(--line); padding-left: clamp(20px, 2.4vw, 34px); }
  .ccards { grid-template-columns: 1fr; }
  .ccard + .ccard { border-left: 0; padding-left: 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .spec, .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec__i:nth-child(odd), .mgrid__i:nth-child(odd) { border-left: 0; padding-left: 0; }
  .spec__i:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .mgrid__i:nth-child(n + 3) { border-top: 1px solid var(--line-ink); }
  .phones { grid-template-columns: 1fr; gap: 44px; }
  .phone { max-width: 320px; }
  .depths, .plans, .not, .outcome, .scene { grid-template-columns: 1fr; }
  .outcome__i + .outcome__i, .scene__i + .scene__i {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .scene__i + .scene__i { border-top-color: var(--line-ink); }
  .outcome__i, .scene__i { padding-bottom: 18px; }
  .depth + .depth, .plan + .plan { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .depth + .depth { padding-top: 30px; }
  .plan + .plan { padding-top: 32px; }
  .not { gap: 6px; }
  .shead, .cols { grid-template-columns: 1fr; }
  .cols__pad { display: none; }
  .shead__idx { padding-top: 0; padding-bottom: 14px; }
  .form__row { grid-template-columns: 1fr; }
  .hero__fine { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero__fine .dot { display: none; }
  .foot__grid { grid-template-columns: 1fr; gap: 34px; }
  .cta__grid { grid-template-columns: 1fr; align-items: start; }
  .prose h2 { grid-template-columns: 1fr; gap: 6px; }
  .prose h2::before { display: block; }
  .dtable td:first-child { width: 40%; }
}

@media (max-width: 520px) {
  .fgrid { grid-template-columns: 1fr; }
  .feat:nth-child(even) { border-left: 0; padding-left: 0; }
  .hero__acts .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-motion .rv { opacity: 1; transform: none; }
}

@media print {
  .nav, .foot, .cta { display: none; }
  body { font-size: 11pt; }
  .prose { max-width: none; }
}
