/* Snapline — landing page.
 *
 * The purchase pages put the offer inside the one undimmed rectangle of a
 * dimmed screen. The landing page is the other side of that device: the whole
 * page IS the undimmed screen, and the capture-selection grammar — marquee,
 * eight handles, live px readout — appears wherever Snapline itself would
 * draw it: around the hero window being captured, around the offer. One dark
 * dimmed-slate interlude ties back to /buy/.
 */

:root {
  /* Daylight-studio ground: sky canvas, bone-white cards, charcoal buttons the
     only dense dark. Depth comes from the canvas→card color shift, not shadows. */
  --paper: #ebf5ff;
  --card: #fafdff;
  --paper-raised: #f3f9ff;
  --ink: #0a0d12;
  --ink-soft: #535862;
  --fog: #93979f;
  --rule: #dbe8f5;

  --charcoal: #181d27;

  --dim: #191c22;
  --dim-raised: #21252d;

  /* Iris blue: the selection marquee and the page's single vivid accent. */
  --marquee: #0069e0;
  --marquee-deep: #0055b8;
  --iris: linear-gradient(rgb(71, 157, 255) 11.43%, rgb(0, 105, 224) 78.2%);
  --record: #ff453a;
  --annotate: #ff9f0a;

  /* Pastel washes — at most one per section, for the feature demo tiles. */
  --wash-powder: #cce7ff;
  --wash-lavender: #f1e6ff;
  --wash-mint: #d3f6e3;
  --wash-solar: #fff2be;

  --display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-window: 0 1px 2px rgba(10, 13, 18, 0.06), 0 12px 32px -8px rgba(4, 69, 144, 0.16);
  --shadow-card: 0 1px 2px rgba(10, 13, 18, 0.07), 0 8px 24px -6px rgba(4, 69, 144, 0.2);
  --shadow-lift: 0 14px 20px 4px rgba(4, 69, 144, 0.08);
  /* The pressed-into-page ring under charcoal buttons. */
  --shadow-press: 0 1px 2px rgba(10, 13, 18, 0.8), 0 0 0 1px #0a0d12;

  --radius-card: 32px;
  --radius-card-sm: 16px;
  --radius-media: 24px;

  --step: 8px;
  --gutter: clamp(20px, 4vw, 48px);

  /* Fast start, gentle settle — the ease every soft reveal shares. */
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  /* Lets block-size transition to `auto` (FAQ accordion) where supported. */
  interpolate-size: allow-keywords;
}

* { box-sizing: border-box; }

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

h1, h2, h3 { text-wrap: balance; font-family: var(--display); }

/* The display voice: mid-weight, enormous, tracked tight — never bolder than 500. */
h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.11;
  margin: 0 0 calc(var(--step) * 3);
}

p { text-wrap: pretty; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

/* The charcoal pill: the only dense dark element on the page. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 28px;
  background: var(--charcoal);
  color: #fff;
  border: 0;
  border-radius: 9999px;
  font: inherit;
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
  box-shadow: var(--shadow-press);
}

.btn:hover {
  background: #0a0d12;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(10, 13, 18, 0.45), 0 0 0 1px #0a0d12;
}

.btn:active { transform: translateY(0); }

.btn--ghost {
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule);
}

.btn--ghost:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px #c8dcf1;
}

.btn--small {
  min-height: 36px;
  padding: 0 18px;
  font-size: 0.88rem;
  border-radius: 9999px;
}

/* ── Menu bar (the header is the product's home) ─────────────────────────── */

/* The nav floats over the canvas as a white pill, detached from the top edge. */
.menubar {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 56px;
  max-width: 1160px;
  width: calc(100% - 28px);
  margin: 14px auto 0;
  padding: 0 10px 0 22px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(4, 69, 144, 0.06), 0 8px 24px -12px rgba(4, 69, 144, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13.5px;
}

.menubar__mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.menubar__logo { display: block; }

.menubar__nav {
  display: flex;
  gap: 18px;
  color: var(--ink-soft);
}

.menubar__nav a {
  text-decoration: none;
  transition: color 120ms ease;
}

.menubar__nav a:hover { color: var(--ink); }

.menubar__spacer { margin-left: auto; }

.menubar__buy {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

.menubar__buy:hover { color: var(--ink); }

@media (max-width: 860px) {
  .menubar__nav { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

/* The banner: one centered editorial stack — headline, standfirst, one dark
   pill — with the app's own settings icons floating in the sky around it and
   the self-capturing demo below. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(40px, 6vh, 72px);
  overflow: hidden;
  padding: clamp(64px, 10vh, 128px) var(--gutter) clamp(48px, 8vh, 96px);
}

/* Soft cloud masses in the lower corners, like weather rolling in. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero::before { width: 52vw; height: 52vw; left: -16vw; bottom: -18vw; }
.hero::after  { width: 58vw; height: 58vw; right: -18vw; bottom: -24vw; }

.hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
}

.hero__headline {
  font-size: clamp(2.2rem, 4.6vw, 4.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 calc(var(--step) * 3);
}

/* Words become inline-blocks (JS wraps them) so they can stagger in. */
.hero__word { display: inline-block; }

/* Pre-paint gate: the head script adds .anim before first paint; landing.js
   (or its failsafe timeout) lifts it once initial states are staged. */
.anim .hero__copy { opacity: 0; }

/* The app icon sits inside the sentence, in a white circle chip, sized and
   dropped to center optically against the letters beside it. Keep the width
   in sync with heroHeadline()'s animation target. */
.hero__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.08em;
  height: 1.08em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(4, 69, 144, 0.16);
  vertical-align: -0.12em;
}

/* Sized by height alone so the logo stays square while the chip's width
   animates open. */
.hero__chip img { height: 70%; width: auto; }

.hero__standfirst {
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto calc(var(--step) * 4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: calc(var(--step) * 2);
}

.hero__fine {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin: 0;
}

/* Floating settings icons: the app's own objects drifting in the canvas.
   Parallax moves the outer span (JS); the idle bob lives on the img so the
   two transforms never fight. */
.hero__floats {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.float { position: absolute; will-change: transform; }

.float img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(4, 69, 144, 0.2));
}

.float--general     { top: 17%; left: 7%;   width: 66px; }
.float--shortcuts   { top: 11%; right: 9%;  width: 76px; }
.float--history     { top: 46%; left: 12%;  width: 56px; }
.float--quickaccess { top: 38%; right: 6%;  width: 48px; }
.float--wallpaper   { top: 66%; left: 5%;   width: 44px; }
.float--advanced    { top: 62%; right: 13%; width: 52px; }

@media (prefers-reduced-motion: no-preference) {
  .float img { animation: float-bob 7s ease-in-out infinite; animation-delay: var(--bob, 0s); }
  .float--shortcuts img { --bob: -2.1s; }
  .float--history img { --bob: -3.4s; }
  .float--quickaccess img { --bob: -1.2s; }
  .float--wallpaper img { --bob: -4.6s; }
  .float--advanced img { --bob: -5.5s; }
}

@keyframes float-bob { 50% { transform: translateY(-11px); } }

@media (max-width: 860px) {
  .float--history, .float--wallpaper, .float--quickaccess { display: none; }
  .float--general { top: 8%; left: 5%; width: 48px; }
  .float--shortcuts { top: 5%; width: 54px; }
  .float--advanced { top: 70%; right: 7%; }
}

/* ── The hero demo: the page captures its own window ─────────────────────── */

.demo {
  min-width: 0;
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
}

/* The one gradient border on the page: a thin iris frame around the hero
   desktop, holding the demo like a polaroid edge. */
.demo__desktop {
  position: relative;
  aspect-ratio: 6 / 4.4;
  border: 3px solid transparent;
  border-radius: 40px;
  overflow: hidden;
  /* The wallpaper, over a gradient in its palette while it loads; the iris
     gradient underneath everything shows only through the transparent border. */
  background:
    url("/assets/wallpaper.jpg") center / cover no-repeat padding-box,
    radial-gradient(120% 90% at 12% 8%, #ffd7e0 0%, transparent 52%) padding-box,
    radial-gradient(110% 90% at 88% 12%, #ffe4c2 0%, transparent 50%) padding-box,
    radial-gradient(130% 100% at 50% 100%, #c9e4ff 0%, transparent 58%) padding-box,
    linear-gradient(160deg, #fef4f6 0%, #eef4fd 100%) padding-box,
    var(--iris) border-box;
  box-shadow: var(--shadow-lift);
}

/* The window being captured */
.macwin {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

.demo__window {
  position: absolute;
  top: 11%;
  left: 9%;
  width: 62%;
}

.macwin__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 11px;
  background: linear-gradient(#f7f7f8, #efeff1);
  border-bottom: 1px solid #e3e3e6;
}

.macwin__lights { display: inline-flex; gap: 6px; }

.macwin__lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.macwin__lights i:nth-child(1) { background: #ff5f57; }
.macwin__lights i:nth-child(2) { background: #febc2e; }
.macwin__lights i:nth-child(3) { background: #28c840; }

.macwin__title {
  font-size: 11px;
  color: #86868b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.macwin__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
}

/* Greeked content */
.skeleton {
  display: block;
  height: 9px;
  border-radius: 4px;
  background: #e9eaee;
}

.skeleton--title {
  height: 14px;
  width: 56%;
  background: #dcdee4;
}

.skeleton-chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 74px;
  padding: 6px 2px 0;
}

.skeleton-chart i {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #9ec8f5, #cfe4fa);
}

.skeleton-chart--mini { height: 44px; gap: 5px; }

.skeleton-block {
  height: 64px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e4ecf7, #eff3f9);
}

.skeleton-block--alt { background: linear-gradient(135deg, #fdeee6, #f9f1ec); }

/* The marquee draws around the window: same box, plus breathing room */
.demo__marquee {
  position: absolute;
  top: calc(11% - 10px);
  left: calc(9% - 10px);
  width: calc(62% + 20px);
  aspect-ratio: auto;
  bottom: auto;
  border: 1.5px solid var(--marquee);
  box-shadow: 0 0 0 9999px rgba(10, 13, 18, 0);
  opacity: 0;
  pointer-events: none;
}

.handle {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--marquee);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(0, 105, 224, 0.25);
}

.handle--tl { top: -5px; left: -5px; }
.handle--tr { top: -5px; right: -5px; }
.handle--bl { bottom: -5px; left: -5px; }
.handle--br { bottom: -5px; right: -5px; }
.handle--tm { top: -5px; left: 50%; margin-left: -5px; }
.handle--bm { bottom: -5px; left: 50%; margin-left: -5px; }
.handle--ml { left: -5px; top: 50%; margin-top: -5px; }
.handle--mr { right: -5px; top: 50%; margin-top: -5px; }

/* Bottom-left rather than macOS's bottom-right: the Quick Access card lands
   in the bottom-right of this desktop, and the readout must stay legible. */
.demo__readout {
  position: absolute;
  left: 0;
  bottom: -26px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(21, 23, 28, 0.6);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.demo__flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

/* The Quick Access card the capture becomes */
.demo__card {
  position: absolute;
  right: 4.5%;
  bottom: 6%;
  width: 30%;
  opacity: 0;
  pointer-events: none;
}

.qcard__thumb { border-radius: 8px; box-shadow: var(--shadow-card); }

.macwin--mini .macwin__bar { height: 18px; padding: 0 7px; }
.macwin--mini .macwin__lights { gap: 4px; }
.macwin--mini .macwin__lights i { width: 6px; height: 6px; }
.macwin--mini .macwin__body { padding: 9px; gap: 6px; }
.macwin--mini .skeleton { height: 6px; }

.qcard__actions {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 7px;
}

.qcard__act {
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 3px rgba(21, 23, 28, 0.12);
  color: var(--ink);
}

.qcard__act--x { color: var(--ink-soft); }

.demo__replay {
  position: absolute;
  left: 22px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease;
}

.demo__replay:hover { color: var(--ink); border-color: #cdd1d8; }

.demo__replay[hidden] { display: none; }

/* ── Shortcut chords ─────────────────────────────────────────────────────── */

.chords {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 9vh, 104px);
  text-align: center;
}

.chords__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 3.5vw, 44px);
  list-style: none;
  margin: 0 0 calc(var(--step) * 2);
  padding: clamp(20px, 3vw, 30px) clamp(16px, 3vw, 36px);
}

.chords__list li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.keycap {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.06em;
  padding: 7px 12px 9px;
  border-radius: 8px;
  background: linear-gradient(#fff, #f3f4f6);
  border: 1px solid #d8dbe0;
  box-shadow: 0 2px 0 #d8dbe0, 0 3px 6px rgba(21, 23, 28, 0.06);
  transition: transform 90ms ease, box-shadow 90ms ease;
}

.chords__list li:hover .keycap {
  transform: translateY(2px);
  box-shadow: 0 0 0 #d8dbe0, 0 1px 2px rgba(21, 23, 28, 0.08);
}

.chords__what {
  font-size: 0.98rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.chords__note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.kbd-inline {
  font-family: var(--mono);
  font-size: 0.86em;
  letter-spacing: 0.05em;
  padding: 2px 7px 3px;
  border-radius: 6px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 var(--rule);
  white-space: nowrap;
}

/* ── Demo video ──────────────────────────────────────────────────────────── */

.demovideo {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 9vh, 104px);
  text-align: center;
}

.demovideo__sub {
  color: var(--ink-soft);
  max-width: 62ch;
  margin: calc(var(--step) * 2) auto calc(var(--step) * 4);
}

.demovideo__frame {
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--paper-raised);
  box-shadow: var(--shadow-lift);
}

.demovideo__frame video {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 560px) {
  .demovideo__frame { border-radius: 10px; }
}

/* ── Feature sections ────────────────────────────────────────────────────── */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 104px) var(--gutter);
}

.feature--flip .feature__copy { order: 2; }
.feature--flip > :last-child { order: 1; }

.feature__copy p {
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 calc(var(--step) * 2);
}

.feature__copy p:last-child { margin-bottom: 0; }

.feature__copy em { font-style: normal; font-weight: 600; color: var(--ink); }

.feature__assurance {
  padding: 16px 20px;
  border-radius: var(--radius-card-sm);
  background: var(--card);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__copy { order: 1; }
  .feature--flip > :last-child { order: 2; }
}

/* ── Scrolling capture demo ──────────────────────────────────────────────── */

/* Each feature demo sits on its own pastel tile — one wash per section. */
.scrollcap__demo,
.editor__demo,
.recording__demo,
.ocr__demo {
  min-width: 0;
  border-radius: var(--radius-card);
  padding: clamp(24px, 3.5vw, 44px) clamp(18px, 3vw, 40px);
}

.scrollcap__demo { background: var(--wash-powder); }
.editor__demo { background: var(--wash-lavender); }
.recording__demo { background: var(--wash-solar); }
.ocr__demo { background: var(--wash-mint); }

.scrollcap__stage {
  display: flex;
  align-items: stretch;
  gap: 18px;
  justify-content: center;
}

.capwin {
  position: relative;
  width: min(420px, 78%);
  border: 1.5px solid var(--marquee);
  background: #fff;
  box-shadow: var(--shadow-window);
}

.capwin__bar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 12px;
  background: linear-gradient(#f7f7f8, #efeff1);
  border-bottom: 1px solid #e3e3e6;
  position: relative;
  z-index: 2;
}

.capwin__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #28c840;
}

.capwin__word {
  font-family: var(--mono);
  font-size: 11px;
  color: #86868b;
}

.capwin__sticky {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--marquee);
  background: rgba(0, 105, 224, 0.09);
  border: 1px solid rgba(0, 105, 224, 0.25);
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
}

.capwin__view {
  height: 300px;
  overflow: hidden;
  position: relative;
}

.capwin__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  will-change: transform;
}

/* The stitch preview rail */
.rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 64px;
  flex: none;
}

.rail__track {
  flex: 1;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--paper-raised);
  padding: 4px;
  display: flex;
  flex-direction: column;
}

.rail__mini {
  height: 18%;
  border-radius: 4px;
  background:
    repeating-linear-gradient(
      180deg,
      #c6cbd4 0px, #c6cbd4 3px,
      transparent 3px, transparent 8px
    ),
    linear-gradient(#eef0f3, #eef0f3);
  border: 1px solid #d8dbe0;
  will-change: height;
}

.rail__label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  line-height: 1.35;
  text-align: center;
  color: var(--marquee);
  min-height: 2.7em;
}

.scrollcap__readout {
  margin: 18px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.scrollcap__pt { color: var(--ink); font-weight: 500; }

/* ── Editor demo ─────────────────────────────────────────────────────────── */

.editor__demo { min-width: 0; }

.macwin--editor { max-width: 560px; margin: 0 auto; }

.editor__tools {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: calc(var(--step) * 3) 0 0;
  padding: 0;
}

.editor__tools li {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 5px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  transition: color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.editor__tools li:hover {
  color: var(--marquee-deep);
  border-color: rgba(0, 105, 224, 0.45);
  transform: translateY(-1px);
}

.editor__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #e3e3e6;
  background: #fafafb;
}

.etool {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #e9eaee;
  position: relative;
}

.etool::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 3px;
  background: #b9bec7;
}

.etool--active { background: rgba(0, 105, 224, 0.16); }
.etool--active::after { background: var(--marquee); }

.editor__swatches {
  margin-left: auto;
  display: inline-flex;
  gap: 5px;
}

.editor__swatches i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(21, 23, 28, 0.12);
}

.editor__swatches i:nth-child(1) { background: #ff453a; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #ff453a; }
.editor__swatches i:nth-child(2) { background: #ff9f0a; }
.editor__swatches i:nth-child(3) { background: #30d158; }
.editor__swatches i:nth-child(4) { background: #0a84ff; }

/* The canvas keeps the ink SVG's own aspect (440×200), so the drawing scales
   uniformly and nothing letterboxes away from what it annotates. */
.editor__canvas {
  position: relative;
  aspect-ratio: 11 / 5;
}

.editor__ink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Recording demo ──────────────────────────────────────────────────────── */

.recording__demo { min-width: 0; }

.recording__menubar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 2;
}

.recording__appmenus { display: inline-flex; gap: 10px; }

.recording__appmenus i {
  width: 34px;
  height: 8px;
  border-radius: 4px;
  background: #d8dbe0;
}

.recording__spacer { margin-left: auto; }

.transport {
  display: inline-flex;
  align-items: center;
  height: 26px;
  border-radius: 7px;
  background: var(--record);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(255, 69, 58, 0.4);
}

.transport__pause {
  padding: 0 10px;
  font-size: 10px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.transport__divider {
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
}

.transport__stop {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  height: 100%;
}

.transport__square {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 1.5px;
}

.transport__time {
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.recording__status { display: inline-flex; gap: 8px; }

.recording__status i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: #d8dbe0;
}

.recording__frame {
  position: relative;
  max-width: 400px;
  margin: 26px auto 0;
  border: 2px solid var(--record);
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(255, 69, 58, 0.14);
}

.recording__subject {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: #fff;
}

.recording__caption {
  margin: 18px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

/* ── OCR demo ────────────────────────────────────────────────────────────── */

.ocr__demo { min-width: 0; }

.ocr__search {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 320px;
  margin: 0 auto 22px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-card);
  color: var(--ink-soft);
}

.ocr__query {
  font-size: 0.98rem;
  color: var(--ink);
  min-height: 1.2em;
}

.ocr__caret {
  width: 2px;
  height: 18px;
  background: var(--marquee);
  animation: caret-blink 1.05s steps(1) infinite;
}

@keyframes caret-blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ocr__caret { animation: none; }
}

.ocr__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}

.ocr__shot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-card);
}

.ocr__shot--match { position: relative; }

.ocr__line {
  font-size: 12.5px;
  color: var(--ink);
}

.ocr__line b {
  font-weight: 600;
}

.ocr__line--soft { color: var(--ink-soft); }

/* The matched word's highlight sweeps on (JS animates background-size). */
.ocr__hit {
  font-weight: 600;
  background-image: linear-gradient(transparent 10%, rgba(255, 214, 10, 0.55) 10%, rgba(255, 214, 10, 0.55) 90%, transparent 90%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  border-radius: 2px;
}

/* Three-across gets cramped well before the phone breakpoint. */
@media (max-width: 700px) {
  .ocr__grid { grid-template-columns: 1fr; }
  .ocr__shot[data-match="false"]:last-child { display: none; }
}

/* ── The feature grid ────────────────────────────────────────────────────── */

.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 104px) var(--gutter);
}

.features h2 { margin-bottom: calc(var(--step) * 6); text-align: center; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Bone-white cards on the sky canvas — the color shift is the depth. */
.feature-card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: clamp(28px, 3vw, 40px);
}

.feature-card svg {
  width: 68px;
  height: 68px;
  color: #7c8494;
  margin-bottom: 18px;
}

/* Accent strokes and fills pick up the selection blue. */
.fi-acc { stroke: var(--marquee); }
.fi-acc-fill { fill: var(--marquee); }
.fi-acc-text { fill: var(--marquee); stroke: none; font-family: var(--display); }

.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 var(--step);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.feature-card em { font-style: normal; font-weight: 600; color: var(--ink); }

@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .features__grid { grid-template-columns: 1fr; gap: 36px; }
}

.mono-name {
  font-family: var(--mono);
  font-size: 0.84em;
  letter-spacing: 0.01em;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 1.5px 6px;
  overflow-wrap: anywhere;
}

/* ── Native strip: the bone-white band ───────────────────────────────────── */

.native {
  background: var(--card);
  color: var(--ink-soft);
}

.native__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 112px) var(--gutter);
  text-align: center;
}

.native h2 {
  color: var(--ink);
  max-width: 22ch;
  margin-inline: auto;
}

.native__claims {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: calc(var(--step) * 5);
}

.native__claim { text-align: left; }

.native__claim h3 {
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 var(--step);
}

.native__claim p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

/* ── Pricing ─────────────────────────────────────────────────────────────── */

.pricing {
  padding: clamp(64px, 10vh, 128px) 20px;
  display: flex;
  justify-content: center;
}

/* The one deliberately sharp rectangle in the rounded system: a capture
   selection has square corners, that's what the handles mean. (It still
   rounds ≤560px, where the handles are gone and it reads as a card.) */
.pricing__selection {
  position: relative;
  width: min(920px, 100%);
  border: 1.5px solid var(--marquee);
}

.pricing__readout {
  position: absolute;
  right: 0;
  bottom: -28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--marquee);
  font-variant-numeric: tabular-nums;
}

.pricing__pane {
  background: var(--card);
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 calc(var(--step) * 3);
}

.price__amount {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price__amount[data-state="loading"] {
  color: transparent;
  /* The span is empty while loading; without a line box the shimmer paints
     on zero height and the row jumps when the price lands. */
  min-height: 1em;
  background: linear-gradient(90deg, var(--rule), #f0f1f4, var(--rule));
  border-radius: 4px;
  min-width: 3.6ch;
  animation: shimmer 1.1s linear infinite;
  background-size: 200% 100%;
}

@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  .price__amount[data-state="loading"] { animation: none; }
}

/* The fallback when the price service is unreachable is a link, because a
   dead-looking headline where a price should be reads as broken. */
.price__amount a {
  color: inherit;
  text-decoration-color: var(--marquee);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.price__was {
  font-size: 1.15rem;
  color: var(--ink-soft);
  text-decoration-thickness: 1px;
  font-variant-numeric: tabular-nums;
}

.price__was[hidden] { display: none; }

.price__unit {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
}

.pricing__terms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* On the wide pane the terms are the second column, split off by a hairline —
   the offer on the left, the license facts on the right. */
@media (min-width: 821px) {
  .pricing__terms {
    border-left: 1px solid var(--rule);
    padding-left: clamp(24px, 3.5vw, 44px);
  }
}

.pricing__terms li {
  position: relative;
  padding: 11px 0 11px 30px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  border-top: 1px solid var(--rule);
}

.pricing__terms li:first-child { border-top: 0; }

.pricing__terms li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 18px;
  width: 9px;
  height: 9px;
  background: var(--marquee);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(0, 105, 224, 0.25);
}

.pricing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: calc(var(--step) * 2);
}

.pricing__renew {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

@media (max-width: 820px) {
  .pricing__pane { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (max-width: 560px) {
  .pricing__selection .handle, .pricing__readout { display: none; }
  .pricing__selection { border-radius: 12px; overflow: hidden; }
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 9vh, 112px);
}

.faq h2 { margin-bottom: calc(var(--step) * 4); }

/* Each question is its own bone-white card. */
.faq__item {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 0 clamp(22px, 3vw, 36px);
  margin-bottom: 14px;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 36px 22px 0;
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  position: relative;
  transition: color 120ms ease;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary:hover { color: var(--marquee-deep); }

.faq__item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 400ms var(--ease-settle);
}

.faq__item[open] summary::after { transform: translateY(-30%) rotate(225deg); }

/* The answer eases open instead of snapping. Browsers without ::details-content
   or interpolate-size fall back to the instant toggle details always had. */
@media (prefers-reduced-motion: no-preference) {
  .faq__item::details-content {
    opacity: 0;
    block-size: 0;
    overflow-y: clip;
    transition:
      content-visibility 550ms allow-discrete,
      opacity 550ms var(--ease-settle),
      block-size 550ms var(--ease-settle);
  }

  .faq__item[open]::details-content {
    opacity: 1;
    block-size: auto;
  }
}

.faq__item p {
  margin: 0 0 24px;
  padding-right: 24px;
  color: var(--fog);
  max-width: 62ch;
}

.faq h2 { text-align: center; }

/* ── Close ───────────────────────────────────────────────────────────────── */

.close {
  text-align: center;
  padding: clamp(56px, 9vh, 112px) var(--gutter) clamp(64px, 10vh, 120px);
}

.close__logo { margin-bottom: calc(var(--step) * 2); }

.close h2 { margin-bottom: calc(var(--step) * 4); }

.close__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: calc(var(--step) * 2);
}

.close__fine {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--rule);
  padding: 22px 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.footer a { text-decoration-color: #c3c8cf; }

/* ── Small screens: hide selection furniture that needs room ─────────────── */

@media (max-width: 560px) {
  .capwin .handle { display: none; }
  .demo__readout { font-size: 10px; }
}
