/* ════════════════════════════════════════════════════════════════
   tidepage — landing page
   Editorial-technical. Sea-biased slate surfaces, a single reserved
   tide accent (teal, never decorative), Newsreader serif headlines,
   precise 1px borders. Built on the vendored design tokens in
   tokens.css. No gradients, no emoji.
   ════════════════════════════════════════════════════════════════ */

/* ── Helpers ───────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--surface-card); color: var(--text-primary);
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
  padding: 8px 14px; font-size: var(--text-sm); font-weight: var(--weight-medium);
  transition: top var(--dur-fast) var(--ease-standard);
}
.skip-link:focus { top: 12px; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--surface-page); }

/* ── Brand mark + wordmark ─────────────────────────────────────── */
/* The tidepage lockup: line-only horizon mark + serif wordmark, the
   wordmark optically centred on the mark's horizon. The mark is line
   art (no tile), so light/dark variants swap with the page theme. */
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-mark { display: inline-flex; flex: none; width: 30px; height: 30px; }
.brand-mark img { width: 100%; height: 100%; }
.brand-mark .brand-mark-light { display: block; }
.brand-mark .brand-mark-dark  { display: none; }
[data-theme="dark"] .brand-mark .brand-mark-light { display: none; }
[data-theme="dark"] .brand-mark .brand-mark-dark  { display: block; }
.brand-word {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: var(--wordmark-weight); letter-spacing: var(--wordmark-tracking);
  color: var(--text-primary); line-height: 1; white-space: nowrap;
}
.brand-flip-e { display: inline-block; transform: scaleX(-1); }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: var(--text-base); font-weight: var(--weight-medium);
  line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius-md);
  padding: 0 16px; height: var(--control-md);
  transition: var(--transition-colors), transform var(--dur-fast) var(--ease-standard);
}
.btn i { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--text-on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: var(--shadow-glow); }
.btn-primary:active { background: var(--accent-pressed); transform: translateY(1px); box-shadow: none; }
.btn-secondary { background: var(--surface-card); color: var(--text-primary); border-color: var(--border-default); }
.btn-secondary:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.btn-secondary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--surface-hover); color: var(--text-primary); }
.btn-lg { height: var(--control-lg); padding: 0 22px; font-size: var(--text-md); border-radius: var(--radius-md); }
.theme-toggle { width: var(--control-md); padding: 0; }
.theme-toggle i { width: 18px; height: 18px; }

/* ── Nav ───────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface-page) 82%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-in {
  max-width: 1120px; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  text-decoration: none; color: var(--text-secondary);
  font-size: var(--text-base); font-weight: var(--weight-medium);
  transition: var(--transition-colors);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-signin {
  text-decoration: none; color: var(--text-secondary);
  font-size: var(--text-base); font-weight: var(--weight-medium);
  transition: var(--transition-colors);
}
.nav-signin:hover { color: var(--text-primary); }

/* ── Wave-field background (brand signature, ported from the brief) ──
   A still field of equal wave-lines with a single teal "live" line. No
   motion — per the brief, the page carries no ambient animation. Drawn to
   a <canvas> by initWaveFields() in landing.js; theme-aware. */
.wave-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  max-width: 1120px; margin: 0 auto; padding: 72px 32px 64px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-text, .hero .shot { position: relative; z-index: 1; }
/* Hero eyebrow — replaces the old pill badge. A quiet mono overline with a
   single teal tick, in keeping with "the accent marks the live thing". */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0;
}
.hero-eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 1px;
  background: var(--accent); flex: none;
}
.h1 {
  font-family: var(--font-display); font-size: clamp(40px, 5vw, 62px);
  font-weight: 600; line-height: 1.04; letter-spacing: -0.03em; margin: 20px 0 0;
}
.accent { color: var(--accent); }
.lede {
  font-size: var(--text-lg); line-height: 1.6; color: var(--text-primary);
  max-width: 50ch; margin: 24px 0 0;
}

/* ── Hero / CTA actions ────────────────────────────────────────── */
.hero-actions { display: flex; gap: 12px; margin: 30px 0 0; flex-wrap: wrap; }
.cta-actions { display: flex; gap: 12px; margin: 28px 0 0; flex-wrap: wrap; justify-content: center; }

/* ── Hero product shot ─────────────────────────────────────────── */
.shot {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.shot-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--slate-200);
}
[data-theme="dark"] .shot-bar { border-bottom-color: var(--border-subtle); }
.shot-mark { width: 18px; height: 18px; }
.shot-name { font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--text-primary); }
.shot-saved { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); }
.shot-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); }
.shot-review {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--accent-text);
  background: var(--accent-subtle); border: 1px solid var(--accent-border);
  border-radius: var(--radius-full); padding: 2px 8px;
}
.shot-review i { width: 12px; height: 12px; }
.shot-seg {
  margin-left: 10px; display: inline-flex; gap: 2px; background: var(--surface-sunken);
  border-radius: 8px; padding: 3px; font-size: 12px; font-weight: 500;
}
.shot-seg span { padding: 4px 10px; border-radius: 6px; color: var(--text-muted); }
.shot-seg .on { background: var(--surface-card); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.shot-body { position: relative; padding: 26px; background: var(--surface-inset); }
.shot-page {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-sm);
}
.shot-eyebrow {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent-text);
}
/* selected element + popover */
.shot-sel { position: relative; display: inline-block; margin: 10px 0 18px; }
.shot-sel h3 {
  font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.05;
  letter-spacing: -0.02em; margin: 0; color: var(--text-primary);
  outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px;
}
.shot-pop {
  position: absolute; top: -46px; left: -6px; display: flex; align-items: center; gap: 8px;
  background: var(--surface-raised); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); box-shadow: var(--shadow-pop); padding: 6px 8px;
}
.shot-pop-swatches { display: inline-flex; gap: 4px; }
.shot-pop .sw { width: 16px; height: 16px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--slate-950) 12%, transparent); }
.shot-pop .sw-1 { background: var(--slate-900); }
.shot-pop .sw-2 { background: var(--tide-500); }
.shot-pop .sw-3 { background: var(--green-500); }
.shot-pop .sw-4 { background: var(--amber-500); }
.shot-pop .sw.on { box-shadow: 0 0 0 2px var(--surface-raised), 0 0 0 4px var(--accent); }
.shot-pop-div { width: 1px; height: 18px; background: var(--border-subtle); }
.shot-pop-chip {
  font-size: 11px; font-weight: 600; color: var(--text-secondary);
  background: var(--surface-inset); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); padding: 3px 7px;
}
.shot-pop-chip--cat { color: var(--highlight-fg); background: var(--highlight-bg); border-color: var(--highlight-border); }
.shot-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shot-kpi {
  display: flex; flex-direction: column; gap: 3px; padding: 12px;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
}
.shot-kpi span { font-size: 10px; color: var(--text-muted); }
.shot-kpi strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; }
.shot-kpi em { font-style: normal; font-size: 10px; font-weight: 600; color: var(--green-700); }
[data-theme="dark"] .shot-kpi em { color: var(--success-fg); }
.shot-kpi--sel { position: relative; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.shot-pin {
  position: absolute; top: -8px; right: -8px; width: 18px; height: 18px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* ── Section primitives ────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin: 0 0 12px;
}
.h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0;
}

/* ── Review-with-Claude showcase band ──────────────────────────────
   A full-bleed, near-black band — a cinematic contrast moment in light
   mode and a lifted panel in dark mode. The light product screencast pops
   against it. Text colors are pinned to the dark-on-light treatment in
   both themes. */
.showcase {
  --showcase-ink:   var(--slate-50);
  --showcase-ink-2: var(--slate-300);
  background: var(--slate-900);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .showcase {
  background: var(--surface-raised);
  border-color: var(--border-subtle);
}
.showcase-in {
  max-width: 1120px; margin: 0 auto; padding: 80px 32px;
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center;
}
.showcase .eyebrow { color: var(--tide-bright); }
.showcase-text .h2 { margin-top: 10px; color: var(--showcase-ink); }
.showcase-lede {
  font-size: var(--text-md); line-height: 1.6; color: var(--showcase-ink-2);
  max-width: 46ch; margin: 16px 0 0;
}

/* Stacked variant: heading on top, the side-by-side below. */
.showcase-in--stack { display: block; }
.showcase-in--stack .showcase-text { max-width: 60ch; margin-bottom: 44px; }

/* Claude and tidepage, side by side, with the MCP hand-off between them. */
.sidebyside { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; }
.sbs-pane { margin: 0; }
.sbs-label {
  font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--showcase-ink-2); margin-bottom: 10px;
}
.sbs-slot, .sbs-shot {
  aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.sbs-slot {
  position: relative; background: rgba(255, 255, 255, 0.03);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 0 22px;
}
.sbs-slot::after {
  content: ""; position: absolute; inset: 16px; border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.16); pointer-events: none;
}
.showcase .shot-slot__tag { color: var(--tide-bright); }
.showcase .shot-slot__cap { color: var(--showcase-ink-2); }
.sbs-shot { background: #000; }
.sbs-shot .shot-video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Connector = the MCP hand-off (the tide running both ways). */
.sbs-link { display: flex; align-items: center; justify-content: center; }
.sbs-link__chip {
  position: relative; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--tide-bright);
  background: color-mix(in srgb, var(--tide-500) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--tide-bright) 45%, transparent);
  border-radius: var(--radius-full); padding: 4px 10px; white-space: nowrap;
}
.sbs-link__chip::before, .sbs-link__chip::after {
  content: ""; position: absolute; top: 50%; width: 12px; height: 2px;
  background: color-mix(in srgb, var(--tide-bright) 55%, transparent); border-radius: 1px;
}
.sbs-link__chip::before { right: 100%; }
.sbs-link__chip::after { left: 100%; }

/* ── The loop (schematic) ───────────────────────────────────────────
   A hand-drawn diagram of the turn-taking. Arcs are neutral; the page is
   the one teal (live) element, per the accent discipline. */
.loop { max-width: 1120px; margin: 0 auto; padding: 64px 32px 24px; text-align: center; }
.loop .eyebrow { text-align: center; }
.loop-in .h2 { margin: 12px auto 0; max-width: 22ch; }
.loop-svg { display: block; width: 100%; max-width: 760px; height: auto; margin: 44px auto 0; }
.loop-arc { fill: none; stroke: var(--border-strong); stroke-width: 2; }
.loop-arrowhead { stroke: var(--text-muted); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.loop-arc-label {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.04em;
  fill: var(--text-muted);
}
.loop-node { fill: var(--surface-card); stroke: var(--border-strong); stroke-width: 1.5; }
.loop-node-label { font-family: var(--font-display); font-size: 22px; font-weight: 500; fill: var(--text-primary); }
.loop-page { fill: var(--surface-card); stroke: var(--accent); stroke-width: 1.5; }
.loop-page-wave { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.loop-page-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; fill: var(--accent-text); }

/* ── How it works — close-up carousel ───────────────────────────────
   A horizontal carousel of cards, one per step, several visible at once.
   Each card: a placeholder slot for a real UI close-up, the card wave-top
   seam, then a caption. Native scroll-snap; arrows nudge it (initCarousel). */
.how { max-width: 1120px; margin: 0 auto; padding: 72px 32px; }
.how-head { max-width: 60ch; }
.how-head .h2 { margin-top: 12px; }
.how-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

.carousel-nav { display: flex; gap: 8px; flex: none; }
.carousel-btn {
  width: var(--control-md); height: var(--control-md); display: grid; place-items: center;
  background: var(--surface-card); color: var(--text-secondary);
  border: 1px solid var(--border-default); border-radius: var(--radius-md); cursor: pointer;
  transition: var(--transition-colors);
}
.carousel-btn:hover { border-color: var(--border-strong); color: var(--text-primary); background: var(--surface-hover); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-btn:disabled:hover { border-color: var(--border-default); color: var(--text-secondary); background: var(--surface-card); }
.carousel-btn i { width: 18px; height: 18px; }

.step-carousel {
  list-style: none; margin: 44px 0 0; padding: 4px 4px 6px;
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;            /* Firefox — hide the desktop scrollbar */
  -ms-overflow-style: none;
}
.step-carousel::-webkit-scrollbar { display: none; }   /* Chrome / Safari */
.step-card {
  flex: 0 0 clamp(258px, 31%, 340px); scroll-snap-align: start;
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-hairline), var(--shadow-xs);
}
/* Empty, sized placeholder for a real UI close-up (swap in an <img> or a
   background-image on .shot-slot). */
.shot-slot {
  position: relative; aspect-ratio: 16 / 11; background: var(--surface-inset);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.shot-slot::after {
  content: ""; position: absolute; inset: 14px; border-radius: var(--radius-md);
  border: 1px dashed var(--border-default); pointer-events: none;
}
.shot-slot__tag {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint);
}
.shot-slot__cap { font-size: var(--text-sm); color: var(--text-muted); padding: 0 16px; text-align: center; }

/* Drop-in media: when a real <img>/<video> is added to any asset slot, it
   fills the frame (object-fit: cover) and the placeholder chrome (dashed
   frame + tag/caption) disappears automatically. See
   landing/VISUAL_ASSETS_HANDOVER.md. */
.shot-slot > img, .shot-slot > video,
.feature-visual > img, .feature-visual > video,
.sbs-slot > img, .sbs-slot > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.shot-slot:has(img, video) > *:not(img):not(video),
.feature-visual:has(img, video) > *:not(img):not(video),
.sbs-slot:has(img, video) > *:not(img):not(video) { display: none; }
.shot-slot:has(img, video)::after,
.feature-visual:has(img, video)::after,
.sbs-slot:has(img, video)::after { display: none; }

/* Card wave-top: the white body's own top edge is the wave. */
.card-wave { display: block; width: 100%; height: 14px; margin-top: -14px; position: relative; }
.card-wave__fill { fill: var(--surface-card); }
.card-wave__stroke { stroke: var(--accent); stroke-width: 1.4; }   /* teal seam = review step */

.step-card__body { background: var(--surface-card); padding: 4px 24px 26px; }
.step-card__num {
  display: block; font-family: var(--font-display);
  font-size: 30px; font-weight: 500; line-height: 1; letter-spacing: -0.02em;
  color: var(--accent); margin-bottom: 12px;
}
.step-card__body h3 { font-size: var(--text-lg); font-weight: var(--weight-semibold); margin: 0 0 6px; }
.step-card__body p { font-size: var(--text-base); color: var(--text-secondary); line-height: 1.5; margin: 0; }

/* ── Features band ──────────────────────────────────────────────────
   A clean card-surface band (white in light, slate-900 in dark) so it
   reads as a distinct value zone — giving light mode a gray → black →
   white → gray rhythm down the page instead of one flat wash. */
.features { background: var(--surface-card); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
/* Pinned switcher. The outer is a tall scroll runway (height set by JS to
   the feature count); the inner pins so the section doesn't move while you
   scroll through it. Active is driven by even scroll progress. Descriptions
   stay visible (no collapse) so nothing reflows — the active one just
   highlights and the stage swaps. */
.feature-switch { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.feature-sticky {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 72px 0 28px;
}
.feature-switch.is-pinned .feature-sticky {
  position: sticky; top: var(--nav-h, 64px); min-height: calc(100vh - var(--nav-h, 64px)); padding: 0;
}
.features-head .h2 { margin: 12px 0 0; }
.features-intro {
  margin: 18px 0 0; max-width: 40ch;
  font-size: var(--text-md); line-height: 1.6; color: var(--text-secondary);
}

.feature-list { list-style: none; margin: 28px 0 0; padding: 0; }
.feature {
  padding: 14px 0 14px 22px; border-left: 2px solid var(--border-subtle);
  transition: opacity var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}
.feature h3 {
  font-size: var(--text-lg); font-weight: var(--weight-semibold); margin: 0;
  color: var(--text-primary); cursor: pointer;
}
.feature-desc {
  font-size: var(--text-base); color: var(--text-secondary); line-height: 1.5;
  margin: 6px 0 0; max-width: 46ch;
}
/* Dim inactive features only when JS drives the switch (.is-live), so with
   no JS every feature reads at full strength. */
.feature-switch.is-live .feature { opacity: .42; }
.feature-switch.is-live .feature.is-active { opacity: 1; border-left-color: var(--accent); }

/* The stage frame: visuals cross-fade, one shown at a time. */
.feature-stage { align-self: center; }
.feature-frame {
  position: relative; aspect-ratio: 4 / 3;
  background: var(--surface-inset); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden;
}
.feature-visual {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 0 24px; opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-standard);
}
.feature-visual::after {
  content: ""; position: absolute; inset: 18px; border-radius: var(--radius-md);
  border: 1px dashed var(--border-default); pointer-events: none;
}
.feature-visual.is-active { opacity: 1; }
.feature-visual .shot-slot__cap { max-width: 32ch; }

.features-roadmap {
  max-width: 1120px; margin: 0 auto; padding: 4px 32px 64px;
  font-size: var(--text-sm); color: var(--text-muted);
}

/* ── Editorial pull-quote ──────────────────────────────────────────
   A single oversized Newsreader moment — a magazine pull-quote that
   breaks the rhythm and lets the serif do editorial work beyond the
   headlines. A teal tick marks it, the accent's one reserved job. */
.pullquote { max-width: 1120px; margin: 0 auto; padding: 64px 32px 72px; }
.pullquote-in { position: relative; max-width: 760px; margin: 0; padding-top: 22px; }
.pullquote-in::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 44px; height: 2px; background: var(--accent);
}
.pullquote p {
  font-family: var(--font-display);
  font-size: clamp(27px, 3.6vw, 44px); font-weight: 500; line-height: 1.22;
  letter-spacing: -0.02em; margin: 0; text-wrap: pretty;
}
.pullquote cite {
  display: block; margin-top: 22px; font-style: normal;
  font-family: var(--font-mono); font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted);
}

/* ── FAQ ────────────────────────────────────────────────────────────
   Asymmetric editorial layout (sticky header + list), and the two most
   common questions are promoted open so the section doesn't read as six
   identical accordion rows. */
.faq { border-top: 1px solid var(--border-subtle); }
.faq-in {
  max-width: 1120px; margin: 0 auto; padding: 72px 32px;
  display: grid; grid-template-columns: 0.82fr 1.45fr; gap: 32px 72px; align-items: start;
}
.faq-head { position: sticky; top: 96px; }
.faq-head .h2 { margin-top: 12px; }
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-item:first-child { border-top: 1px solid var(--border-subtle); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; cursor: pointer; list-style: none;
  font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--text-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i {
  width: 18px; height: 18px; flex: none; color: var(--text-muted);
  transition: transform var(--dur-base) var(--ease-standard);
}
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item p {
  padding: 0 4px 22px; margin: 0; max-width: 64ch;
  font-size: var(--text-base); color: var(--text-secondary); line-height: 1.6;
}

/* ── Closing CTA ───────────────────────────────────────────────── */
.cta { padding: 24px 32px 96px; }
.cta-in {
  position: relative; overflow: hidden;
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-hairline), var(--shadow-sm);
  padding: 56px 40px;
}
.cta-in > *:not(.wave-bg) { position: relative; z-index: 1; }
.cta .eyebrow { text-align: center; }
.cta-sub { font-size: var(--text-lg); color: var(--text-secondary); margin: 14px auto 0; max-width: 54ch; }
.cta-tags { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-inset); color: var(--text-secondary);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-full);
  padding: 5px 12px; font-size: var(--text-sm); font-weight: var(--weight-medium);
}
.tag i { width: 14px; height: 14px; color: var(--success); }

/* ── Footer ────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--border-subtle); }
.foot-in {
  max-width: 1120px; margin: 0 auto; padding: 28px 32px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.foot-copy { font-size: var(--text-sm); color: var(--text-muted); }
.foot-links { margin-left: auto; display: flex; gap: 22px; }
.foot-links a {
  font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-secondary);
  text-decoration: none; transition: var(--transition-colors);
}
.foot-links a:hover { color: var(--text-primary); }

/* ── Reveal on scroll (progressive enhancement) ────────────────────
   Items in a group cascade in via a per-item --reveal-i index set in
   landing.js, so a row of steps/features arrives in sequence rather than
   all at once. */
.reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ── Scroll "tideline" — a teal progress line that rises as you read.
   Functional (reading progress), in the brand's one accent. ──────── */
.scroll-tide {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  z-index: 40; pointer-events: none; will-change: transform;
}
/* When hosted inside the sticky nav, ride its bottom edge instead of the
   very top of the viewport (clearer against the browser chrome). */
.scroll-tide--nav { position: absolute; top: auto; bottom: -1px; z-index: 5; }
[data-theme="dark"] .scroll-tide { background: var(--tide-bright); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 52px; }
  .shot { order: 2; }
  .showcase-in { grid-template-columns: 1fr; gap: 32px; }
  .showcase-shot { order: 2; }
  .sidebyside { grid-template-columns: 1fr; gap: 16px; }
  .sbs-link { transform: rotate(90deg); margin: 6px 0; }
  /* Unpin on small screens even if the desktop class is present (e.g. after
     a resize): a sticky stage on top, captions scrolling beneath. */
  .feature-switch.is-pinned { height: auto !important; }
  .feature-sticky,
  .feature-switch.is-pinned .feature-sticky {
    position: static; min-height: 0; grid-template-columns: 1fr; gap: 22px; padding: 56px 0 28px;
  }
  .feature-stage { order: -1; position: static; margin-bottom: 8px; }
  .feature-frame { aspect-ratio: 16 / 10; }
  .faq-in { grid-template-columns: 1fr; gap: 24px; }
  .faq-head { position: static; }
}
@media (max-width: 720px) {
  .nav-links, .nav-signin { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .how-head--row { flex-wrap: wrap; }
  .nav-in, .hero, .loop, .how, .pullquote, .showcase-in, .feature-switch, .features-roadmap, .faq-in, .foot-in { padding-left: 20px; padding-right: 20px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .cta-in { padding: 40px 24px; }
  .foot-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── From the blog ──────────────────────────────────────────────── */
.blogtease { max-width: 1120px; margin: 0 auto; padding: 56px 32px; }
.blogtease-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.blogtease-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-text); text-decoration: none; white-space: nowrap; }
.blogtease-all:hover { text-decoration: underline; }
.blogtease-all i { width: 17px; height: 17px; }
.blogtease-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blogtease-card {
  display: flex; flex-direction: column; gap: 8px; padding: 22px;
  background: var(--surface-raised); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); text-decoration: none; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.blogtease-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blogtease-cat {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text);
}
.blogtease-card h3 { font-size: 19px; line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
.blogtease-card p { font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); margin: 0; flex: 1; }
.blogtease-meta { font-size: 13px; color: var(--text-muted); }
@media (max-width: 860px) { .blogtease-grid { grid-template-columns: 1fr; } .blogtease-head { flex-wrap: wrap; } }

/* ── "Editing mode" hover on real hero copy ─────────────────────────
   Pure CSS: the element shows an instant teal selection frame on hover
   and a mini style toolbar (a child, so no JS/coordinate math —
   transform-safe) floats above it, giving visitors a direct feel of
   tidepage's click-to-edit. Selection is an instant frame and the caret
   is plain — both per the signature decisions in brand/BRAND_BRIEF.md. */
.edemo {
  position: relative;
  border-radius: 6px;
  outline: 2px solid transparent; outline-offset: 6px;
  transition: outline-color var(--dur-fast) var(--ease-standard);
  cursor: text;
}
.edemo:hover { outline-color: var(--accent); }
/* The accent words are the click target — clicking cycles the palette
   (wired in initEditDemo). A dotted underline + pointer cursor signal it's
   editable, so the demo is discoverable without depending on the hover
   toolbar (and works on touch). */
.edemo .accent {
  cursor: pointer;
  text-decoration: underline; text-decoration-style: dotted;
  text-decoration-color: color-mix(in srgb, currentColor 38%, transparent);
  text-underline-offset: 8px;
}
.edemo .accent:hover { text-decoration-color: currentColor; }
/* Transparent bridge across the gap to the floating toolbar, so moving the
   cursor up to the swatches doesn't drop the hover before you reach them. */
.edemo-bar::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px;
}
.edemo-bar {
  position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 8px; white-space: nowrap;
  background: var(--surface-raised); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); box-shadow: var(--shadow-pop);
  font-family: var(--font-sans); font-size: 12px; font-weight: 500; line-height: 1;
  letter-spacing: normal; text-transform: none;
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}
.edemo:hover .edemo-bar { opacity: 1; transform: translateY(0); pointer-events: auto; }
/* The swatches are live: clicking one recolors the headline accent, bounded
   to the page's own palette — a hands-on taste of "edit in place, can't break
   the brand". Wired in initEditDemo() (landing.js). */
.edemo-sw {
  width: 15px; height: 15px; border-radius: 4px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--slate-950) 12%, transparent);
  transition: box-shadow var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}
.edemo-sw:hover { transform: translateY(-1px); }
.edemo-sw-1 { background: var(--tide-500); }
.edemo-sw-2 { background: var(--green-500); }
.edemo-sw-3 { background: var(--amber-500); }
.edemo-sw.on { box-shadow: 0 0 0 2px var(--surface-raised), 0 0 0 4px var(--accent); }
.edemo-div { width: 1px; height: 16px; background: var(--border-subtle); }
.edemo-chip { font-weight: 600; color: var(--text-secondary); background: var(--surface-inset); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 3px 7px; }
@media (prefers-reduced-motion: reduce) { .edemo-bar { transition: opacity var(--dur-fast) var(--ease-standard); transform: none; } }

/* ── Hero / showcase product shot (real screenshot of the editor) ───────── */
.shot-img { display: block; width: 100%; height: auto; }
.shot--video { padding: 0; line-height: 0; }
.shot-video { display: block; width: 100%; height: auto; }
