/* ═══════════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--site-font);
  background: var(--site-bg-0);
  color: var(--site-text-primary);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* Text-selection highlight: the site's own accent green instead of the
   browser's default blue, matching the brand system used everywhere else. */
::selection {
  background: var(--site-accent);
  color: #06251c;
}
::-moz-selection {
  background: var(--site-accent);
  color: #06251c;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: var(--lh-snug); }

/* Visible, consistent focus ring across every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* #main-content only takes tabindex="-1" so the skip link can move real
   keyboard focus into the page (not just scroll). A visible focus style
   here is required: this is the skip link's landing target, and removing
   the outline would leave keyboard users with no confirmation focus moved
   at all. */
#main-content:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px; left: var(--space-4);
  background: var(--site-accent);
  color: #06251c;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--site-radius-sm);
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-standard);
}
.skip-link:focus { top: var(--space-4); }

/* ═══════════════════════════════════════════════════════════════════════
   LAYOUT UTILITIES
   ═══════════════════════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

section { position: relative; }

/* Anchor targets land clear of the sticky nav instead of tucking their
   heading half-behind it. */
section[id] { scroll-margin-top: calc(var(--nav-height) + 14px); }

/* Fluid, cinematic section rhythm: three tiers scaling continuously with
   viewport width (see tokens.css) instead of a fixed value overridden at
   each breakpoint. Major narrative beats get the most room; connective
   sections sit tighter; the closing FAQ tighter still. */
.section-pad { padding-block: var(--pad-section); }
.section-pad-md { padding-block: var(--pad-section-md); }
.section-pad-tight { padding-block: var(--pad-section-tight); }

.kicker {
  font-size: var(--fs-meta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--site-accent);
  margin-bottom: var(--space-3);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(var(--space-7), 5vw, var(--space-9));
}
.section-head h2 {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-4);
}
.section-head p {
  color: var(--site-text-secondary);
  font-size: var(--fs-body-lg);
  line-height: 1.6;
  max-width: var(--measure-narrow);
}
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered p { margin-inline: auto; }

/* Reserved for headings that intentionally sit a size below the section
   display scale (e.g. connective sections, the closing FAQ) so hierarchy
   stays legible: not every heading on the page should compete at the
   same size as the primary narrative beats. Specificity matches/beats
   ".section-head h2" so it actually overrides it rather than losing to
   source order. */
.section-head h2.fs-heading-el,
.fs-heading-el { font-size: var(--fs-heading); line-height: var(--lh-tight); margin-bottom: var(--space-3); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: var(--fs-meta);
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--site-radius-sm);
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              opacity var(--dur-fast) var(--ease-standard);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--site-accent);
  color: #06251c;
}
.btn-primary:hover { background: #23b382; }
.btn-secondary {
  background: transparent;
  color: var(--site-text-primary);
  border-color: var(--site-border-strong);
}
.btn-secondary:hover { border-color: var(--site-accent); background: var(--site-accent-soft); }
/* Ghost: text-first secondary action. Used wherever a secondary CTA sits
   next to a solid primary one, so only one button reads as "boxed" and
   the pair doesn't compete for attention. */
.btn-ghost {
  background: transparent;
  color: var(--site-text-primary);
  border-color: transparent;
  padding-inline: 6px;
}
.btn-ghost::after {
  content: "→";
  transition: transform var(--dur-fast) var(--ease-standard);
}
.btn-ghost:hover { color: var(--site-accent); }
.btn-ghost:hover::after { transform: translateX(3px); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-full { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

/* ── Scroll reveal ──────────────────────────────────────────────────────
   Default hidden, JS adds .is-visible when in view. No-JS / reduced-motion
   fallback keeps content visible. data-reveal="scale" additionally scales
   up from 0.94, used for the handful of dominant product visuals rather
   than every element on the page, per "add motion purposefully." */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-standard),
              transform var(--dur-slow) var(--ease-standard);
}
.reveal[data-reveal="scale"] {
  transform: translateY(12px) scale(0.96);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal,
html:not(.js) .reveal { opacity: 1; transform: none; }

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

/* ═══════════════════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════════════════ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 12, 16, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--site-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  color: var(--site-text-primary);
}
.nav-brand img { width: 24px; height: 24px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--site-text-secondary);
  letter-spacing: 0.01em;
  transition: color var(--dur-fast);
}
.nav-links a:hover { color: var(--site-text-primary); }
.nav-actions { display: flex; align-items: center; gap: var(--space-4); }
.nav-actions .btn { padding: 8px 18px; font-size: 13.5px; }

/* Icon-only, borderless: the GitHub link is a secondary affordance and
   shouldn't visually compete with the one primary action in the bar. */
.nav-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--site-radius-sm);
  color: var(--site-text-muted);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-icon-link:hover { color: var(--site-text-primary); background: var(--site-elevated); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--site-border-strong);
  border-radius: var(--site-radius-sm);
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--site-text-primary);
}
.nav-toggle-icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon-close { display: block; }

.nav-mobile-panel {
  display: none;
  position: fixed;
  inset: 0;
  top: 60px;
  background: var(--site-bg-1);
  z-index: 99;
  padding: var(--space-6) var(--space-5);
  overflow-y: auto;
}
.nav-mobile-panel.open { display: block; }
.nav-mobile-panel ul { display: flex; flex-direction: column; gap: var(--space-2); }
.nav-mobile-panel a {
  display: block;
  font-size: 20px;
  font-weight: 600;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--site-border);
}
.nav-mobile-panel .btn { margin-top: var(--space-5); }

/* ═══════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════ */

.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding-block: clamp(var(--space-8), 8vw, var(--space-10)) var(--space-8);
  background:
    radial-gradient(900px 520px at 50% -12%, rgba(29, 158, 117, 0.11), transparent 65%),
    var(--site-bg-0);
}
.hero-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(var(--space-7), 6vw, var(--space-9));
  text-align: center;
}
.hero-copy { max-width: 46rem; display: flex; flex-direction: column; align-items: center; }
.hero-copy h1 {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.hero-copy > p.hero-sub {
  font-size: var(--fs-body-lg);
  color: var(--site-text-secondary);
  max-width: 34ch;
  margin-top: var(--space-5);
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: clamp(var(--space-6), 4vw, var(--space-7));
  flex-wrap: wrap;
  justify-content: center;
}
.hero-trust {
  margin-top: var(--space-5);
  font-size: var(--fs-micro);
  color: var(--site-text-muted);
  letter-spacing: 0.01em;
}

/* ── Hero product stage: a wide "browser window" composition rather than
   a small screenshot in a card. The window chrome + abstract page give
   the popup mock real context and let the whole visual read as large,
   while the popup itself stays at its authentic, undistorted size. ── */
.hero-stage {
  width: 100%;
  max-width: var(--stage-w);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-window {
  width: 100%;
  background: var(--site-elevated);
  border: 1px solid var(--site-border-strong);
  border-radius: var(--site-radius-xl);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.65), 0 15px 40px -20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.hero-window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--site-border);
}
.hero-window-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--site-border-strong);
  flex-shrink: 0;
}
.hero-window-address {
  flex: 1;
  height: 26px;
  max-width: 320px;
  margin-inline: auto;
  border-radius: 999px;
  background: var(--site-bg-0);
  border: 1px solid var(--site-border);
}
.hero-window-ext {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--site-bg-0);
  border: 1px solid var(--site-border);
  flex-shrink: 0;
}
/* Page (left) and popup (right) sit side by side and the row sizes itself
   to whichever is taller. Deliberately not absolute-positioned: the popup
   is the real, full-height DashboardMock (header through footer), and its
   height shouldn't have to be guessed at and hard-coded into a min-height
   the way an overlay treatment would require. */
.hero-window-body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 64px);
  background:
    radial-gradient(60% 100% at 15% 0%, rgba(29, 158, 117, 0.08), transparent 70%),
    var(--site-bg-1);
  padding: clamp(28px, 4vw, 52px);
}

/* Abstract, generic page skeleton: purely decorative geometry suggesting
   "a website is open here." Never a reproduction of any real site. */
.hero-window-page {
  flex: 1 1 260px;
  max-width: 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0.5;
  padding-top: clamp(6px, 2vw, 26px);
}
.hwp-nav {
  width: 46%;
  height: 12px;
  border-radius: 4px;
  background: var(--site-border-strong);
}
.hwp-hero {
  width: 100%;
  height: 88px;
  margin-top: 6px;
  border-radius: var(--site-radius-md);
  background: linear-gradient(135deg, var(--site-elevated), var(--site-surface));
  border: 1px solid var(--site-border);
}
.hwp-line {
  height: 10px;
  border-radius: 4px;
  background: var(--site-border);
}

.hero-window-popup {
  flex: 0 0 auto;
  border-radius: var(--site-radius-lg);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

.hero-stage .dbm-caption { color: var(--site-text-muted); margin-top: var(--space-4); }

/* Mobile: the wide window composition gives way to the popup alone,
   its own intentional layout rather than a shrunk desktop frame. */
@media (max-width: 768px) {
  .hero-window { background: none; border: none; box-shadow: none; border-radius: 0; }
  .hero-window-bar { display: none; }
  .hero-window-body {
    background: none;
    padding: 0;
    justify-content: center;
  }
  .hero-window-page { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SHARED "BROWSER FRAME" MOCK CHROME (walkthrough + themes sections)
   ═══════════════════════════════════════════════════════════════════════ */

.browser-frame {
  background: var(--site-elevated);
  border: 1px solid var(--site-border-strong);
  border-radius: var(--site-radius-lg);
  padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
}
/* Larger presentation used for the two dominant product moments outside
   the hero: still the authentic popup, given more surrounding stage. */
.browser-frame--lg { max-width: 460px; padding: 14px; }
@media (min-width: 1280px) {
  .browser-frame--lg { max-width: 500px; }
}

/* Confirmation pulse: fired once when a theme selection lands, so the
   link between "you clicked this" and "the popup became this" reads as
   one deliberate action rather than an ambient color fade. The ring
   color is set inline per-click to that theme's own accent. */
.browser-frame.theme-pulse {
  animation: theme-confirm-pulse 0.6s var(--ease-standard);
}
@keyframes theme-confirm-pulse {
  0% {
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55), 0 0 0 0 var(--pulse-color, transparent);
  }
  100% {
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55), 0 0 0 10px transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .browser-frame.theme-pulse { animation: none; }
}

.browser-frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 12px;
}
.browser-frame-dots { display: flex; gap: 6px; }
.browser-frame-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--site-border-strong);
}
.browser-frame-address {
  flex: 1;
  height: 22px;
  border-radius: 999px;
  background: var(--site-bg-0);
  border: 1px solid var(--site-border);
}
.browser-frame-toolbar-icon {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--site-bg-0);
  border: 1px solid var(--site-border);
}
.browser-frame-stage {
  display: flex;
  justify-content: center;
  border-radius: var(--site-radius-md);
  overflow: hidden;
}

.dbm-caption {
  font-size: var(--fs-micro);
  color: var(--dbm-caption-color, var(--site-text-muted));
  text-align: center;
  margin-top: 14px;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════════════
   DASHBOARD WALKTHROUGH ("Your time, visualized")
   ═══════════════════════════════════════════════════════════════════════ */

.walkthrough-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "left mock right";
  gap: var(--space-6);
  align-items: start;
}
/* min-width:0 overrides the default "auto" grid-item minimum, which would
   otherwise be the mock's own fixed 340px content width — wider than this
   track at narrow viewports, and enough to push the whole grid past the
   container edge. */
.walkthrough-mock { grid-area: mock; min-width: 0; }
.walkthrough-col-left { grid-area: left; display: flex; flex-direction: column; gap: var(--space-7); padding-top: var(--space-8); }
.walkthrough-col-right { grid-area: right; display: flex; flex-direction: column; gap: var(--space-7); padding-top: var(--space-8); }

/* Annotations: a leader line with a dot terminator pointing toward the
   mock, in place of a bordered card. Reads as a diagram callout rather
   than a repeated feature-card template. */
.annotation {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 260px;
}
.walkthrough-col-left .annotation { margin-left: auto; text-align: right; flex-direction: row-reverse; }
.annotation-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 5px; color: var(--site-text-primary); }
.annotation-body p { color: var(--site-text-secondary); font-size: var(--fs-micro); line-height: 1.6; }
.annotation-line {
  flex: 0 0 26px;
  height: 1px;
  background: var(--site-border-strong);
  margin-top: 11px;
  position: relative;
}
.annotation-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--site-accent);
  transform: translateY(-50%);
}
.walkthrough-col-right .annotation-line::after { left: -1px; }
.walkthrough-col-left .annotation-line::after { right: -1px; }

/* Tablet/mobile: the leader-line device only makes sense flanking a
   centered mock, so below 1100px it drops entirely in favor of a plain
   stacked list with hairline dividers, legible at any width, and
   deliberately distinct from a boxed-card grid. */
@media (max-width: 1100px) {
  .walkthrough-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "mock" "left" "right";
  }
  .walkthrough-col-left,
  .walkthrough-col-right {
    flex-direction: column;
    gap: 0;
    padding-top: var(--space-7);
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
  }
  .walkthrough-col-right { padding-top: 0; }
  .annotation {
    max-width: none;
    flex-direction: row !important;
    text-align: left !important;
    margin-left: 0 !important;
    gap: 16px;
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--site-border);
  }
  .walkthrough-col-right .annotation:last-child,
  .walkthrough-col-left .annotation:last-child { border-bottom: none; }
  .annotation-line { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════════════════ */

.pipeline {
  position: relative;
  display: flex;
  gap: var(--space-3);
  list-style: none;
  padding-left: 0;
  padding-top: 34px;
}
.pipeline::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 8.34%;
  right: 8.34%;
  height: 1px;
  background: var(--site-border-strong);
}
.pipeline-step {
  flex: 1;
  position: relative;
  text-align: center;
}
.pipeline-node {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--site-bg-1);
  border: 1.5px solid var(--site-accent);
  color: var(--site-accent);
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.pipeline-step h3 { font-size: 13.5px; margin-bottom: 6px; line-height: 1.3; }
.pipeline-step p { font-size: 12.5px; color: var(--site-text-secondary); line-height: 1.55; }

/* Below 1024px the timeline rotates from a horizontal row to a vertical
   one, same connected-line identity, oriented to fit a narrow column
   instead of being squeezed into ever-smaller side-by-side slices. */
@media (max-width: 1024px) {
  .pipeline {
    flex-direction: column;
    gap: 0;
    padding-top: 0;
  }
  .pipeline::before { display: none; }
  .pipeline-step {
    text-align: left;
    padding-left: 40px;
    padding-block: var(--space-4);
  }
  .pipeline-step::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--site-border-strong);
  }
  .pipeline-step:first-child::before { top: 13px; }
  .pipeline-step:last-child::before { bottom: auto; height: 13px; }
  .pipeline-node { top: 0; left: 0; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   THEMES SHOWCASE ("Make it yours")
   ═══════════════════════════════════════════════════════════════════════ */

.themes-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.themes-picker-col { min-width: 0; }
.theme-picker-label {
  font-size: var(--fs-micro);
  color: var(--site-text-muted);
  margin-bottom: var(--space-4);
}

/* A slim row of plain color dots, not a grid of nine bordered cards:
   the palette itself carries the visual weight, the controls stay quiet. */
.theme-picker-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-5);
}
.theme-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  background: none;
  border: none;
  padding: 2px;
  text-align: center;
  color: var(--site-text-muted);
  font-family: inherit;
}
.theme-card-swatch {
  width: 34px; height: 34px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast);
}
.theme-card:hover .theme-card-swatch { transform: translateY(-2px) scale(1.06); }
.theme-card[aria-pressed="true"] { color: var(--site-text-primary); }
.theme-card[aria-pressed="true"] .theme-card-swatch {
  /* A ring drawn entirely outside the circle (two stacked box-shadows: a
     background-colored buffer, then the accent ring) so selecting a theme
     never changes the swatch's own size or fill — only adds a halo around
     it. Unselected swatches stay plain, unadorned circles. */
  box-shadow: 0 0 0 3px var(--site-bg-0), 0 0 0 5px var(--site-accent);
}
.theme-card-label { font-size: 11px; font-weight: 600; min-width: 0; max-width: 64px; overflow-wrap: break-word; line-height: 1.25; }

/* Live palette detail card: shows the selected theme's real token values,
   updating on every selection. Fills the picker column with genuine,
   accurate content instead of the mock dictating the section's height
   on its own. */
.theme-palette-card {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--site-border);
}
.theme-palette-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: var(--space-4);
}
.theme-palette-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--site-text-muted);
}
.theme-palette-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--site-text-primary);
}
.theme-palette-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3) var(--space-2);
}
.palette-swatch {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.palette-swatch-color {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--site-radius-sm);
  border: 1px solid var(--site-border-strong);
}
.palette-swatch-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--site-text-secondary);
}
.palette-swatch-hex {
  font-family: var(--site-font-mono);
  font-size: 10.5px;
  color: var(--site-text-muted);
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .theme-palette-swatches { grid-template-columns: repeat(2, 1fr); }
}

/* Same fix as .walkthrough-mock above: without min-width:0 this grid item
   would inherit the mock's fixed 340px content width as its automatic
   minimum, overflowing the track at narrow viewports. */
.themes-stage {
  display: flex;
  justify-content: center;
  min-width: 0;
}

@media (max-width: 1024px) {
  .themes-layout { grid-template-columns: 1fr; gap: var(--space-7); }
  .themes-stage { order: -1; }
}
@media (max-width: 640px) {
  .theme-picker-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: var(--space-2);
    margin-inline: calc(var(--space-4) * -1);
    padding-inline: var(--space-4);
  }
  .theme-card { flex: 0 0 auto; scroll-snap-align: start; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SITE BLOCKING
   ═══════════════════════════════════════════════════════════════════════ */

.blocking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding-left: 0;
}
.flow-step {
  display: flex;
  gap: var(--space-4);
  position: relative;
  padding-bottom: var(--space-6);
}
.flow-step:last-child { padding-bottom: 0; }
.flow-step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.flow-step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--site-surface);
  border: 1px solid var(--site-border-strong);
  color: var(--site-accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.flow-step-line {
  width: 1px;
  flex: 1;
  background: var(--site-border-strong);
  margin-top: 4px;
}
.flow-step:last-child .flow-step-line { display: none; }
.flow-step-body h3 { font-size: 15.5px; margin-bottom: 4px; }
.flow-step-body p { color: var(--site-text-secondary); font-size: 14px; line-height: 1.6; }

.blocked-mock {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 3;
  border-radius: var(--site-radius-lg);
  background: #0a0a0a;
  border: 1px solid var(--site-border-strong);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}
.blocked-badge {
  display: inline-block;
  background: var(--site-danger); color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  padding: 4px 14px; border-radius: 3px;
  margin-bottom: 24px;
}
.blocked-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--site-danger);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.blocked-domain { font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.blocked-divider { width: 28px; height: 2px; background: #222; margin: 0 auto 14px; border-radius: 2px; }
.blocked-msg { font-size: 11px; color: var(--site-danger); letter-spacing: 1px; text-transform: uppercase; }

.nudge-stack {
  display: flex; flex-direction: column; gap: var(--space-4);
  width: 100%; max-width: 340px;
}
.nudge-card {
  position: relative;
  padding: 14px 16px;
  background: #161b22; color: #e6edf3;
  border: 1px solid var(--site-border-strong);
  border-radius: 10px;
  box-shadow: 0 14px 32px -14px rgba(0, 0, 0, 0.55);
  font: 13px/1.4 system-ui, "Segoe UI", sans-serif;
}
.nudge-title { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 4px; }
.nudge-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.nudge-dot-warn { background: #BA7517; }
.nudge-dot-focus { background: #378ADD; }
.nudge-body { color: #c9d1d9; }
.nudge-brand { margin-top: 8px; font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: #8b949e; }

.callout-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-md);
  padding: var(--space-4);
  margin-top: var(--space-5);
  font-size: var(--fs-micro);
  color: var(--site-text-secondary);
  line-height: 1.6;
}
.callout-note svg { flex-shrink: 0; margin-top: 2px; color: var(--site-text-muted); }

@media (max-width: 1024px) {
  .blocking-layout { grid-template-columns: 1fr; }
  .blocking-layout .blocked-mock { margin-inline: auto; }
}

/* ═══════════════════════════════════════════════════════════════════════
   PRIVACY
   ═══════════════════════════════════════════════════════════════════════ */

.privacy-diagrams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}
.diagram-card {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-lg);
  padding: var(--space-5);
}
.diagram-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--site-text-muted);
  margin-bottom: var(--space-4);
}
.diagram-card.is-product .diagram-card-label { color: var(--site-accent); }
.diagram-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding-block: var(--space-4);
}
.diagram-node {
  background: var(--site-elevated);
  border: 1px solid var(--site-border-strong);
  border-radius: var(--site-radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.diagram-card.is-product .diagram-node.is-endpoint {
  border-color: var(--site-accent);
  background: var(--site-accent-soft);
  color: var(--site-accent-text);
}
.diagram-arrow { color: var(--site-text-muted); flex-shrink: 0; }

.privacy-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}
.privacy-fact {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--site-text-secondary);
}
.privacy-fact svg { color: var(--site-accent); flex-shrink: 0; margin-top: 2px; }

/* Progressive disclosure: the full permission-by-permission table is real,
   useful content, but a confident "Private by design" section shouldn't
   default to a wall of table rows. Native <details> keeps it a single
   keyboard- and screen-reader-friendly control, zero JS required. */
.permissions-disclosure {
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-lg);
  background: var(--site-surface);
  overflow: hidden;
}
.permissions-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-size: 14px;
  font-weight: 600;
  color: var(--site-text-primary);
  cursor: pointer;
  list-style: none;
}
.permissions-disclosure summary::-webkit-details-marker { display: none; }
.permissions-disclosure-icon { color: var(--site-text-muted); flex-shrink: 0; transition: transform var(--dur-base) var(--ease-standard); }
.permissions-disclosure[open] .permissions-disclosure-icon { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .permissions-disclosure-icon { transition: none; }
}

.permissions-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--site-border);
}
.permissions-table th, .permissions-table td {
  text-align: left;
  padding: 14px var(--space-5);
  border-bottom: 1px solid var(--site-border);
  font-size: 14px;
  vertical-align: top;
}
.permissions-table th { color: var(--site-text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.permissions-table tr:last-child td { border-bottom: none; }
.permissions-table code {
  font-family: var(--site-font-mono);
  font-size: 13px;
  background: var(--site-bg-1);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--site-accent-text);
}
.permissions-table td.perm-purpose { color: var(--site-text-secondary); }

@media (max-width: 1024px) {
  .privacy-diagrams { grid-template-columns: 1fr; }
  .privacy-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .privacy-facts { grid-template-columns: 1fr; }
  .permissions-table { display: block; overflow-x: auto; }
}

/* ═══════════════════════════════════════════════════════════════════════
   INSTALLATION
   ═══════════════════════════════════════════════════════════════════════ */

.install-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: stretch;
}
.install-card {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}
.install-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-2);
}
.install-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--site-radius-sm);
  background: var(--site-elevated);
  border: 1px solid var(--site-border-strong);
  display: flex; align-items: center; justify-content: center;
}
.install-card-head h3 { font-size: 19px; }
.install-card-sub { color: var(--site-text-muted); font-size: 13.5px; margin-bottom: var(--space-5); }
.install-card .btn { margin-bottom: var(--space-5); }

.install-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--site-border);
}
.install-steps li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  color: var(--site-text-secondary);
  line-height: 1.5;
}
.install-steps .step-index {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--site-elevated);
  color: var(--site-text-primary);
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.install-card-note {
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: 13px;
  color: var(--site-text-muted);
  display: flex;
  gap: 8px;
}
.install-card-note svg { flex-shrink: 0; margin-top: 2px; }

@media (max-width: 1024px) {
  .install-cards { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════════════ */

.faq-list {
  border-top: 1px solid var(--site-border);
}
.faq-item {
  border-bottom: 1px solid var(--site-border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: none;
  border: none;
  color: var(--site-text-primary);
  text-align: left;
  padding: var(--space-5) 0;
  font-size: 16px;
  font-weight: 600;
}
.faq-question-icon {
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-standard);
  color: var(--site-text-muted);
}
.faq-question[aria-expanded="true"] .faq-question-icon { transform: rotate(45deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-standard);
}
.faq-answer-inner { overflow: hidden; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer p {
  color: var(--site-text-secondary);
  font-size: 15px;
  line-height: 1.7;
  padding-bottom: var(--space-5);
  max-width: 68ch;
}
@media (prefers-reduced-motion: reduce) {
  .faq-answer, .faq-question-icon { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════════════════════════════════ */

.final-cta {
  text-align: center;
  padding-block: var(--pad-section-md);
  background:
    radial-gradient(560px 340px at 50% 0%, rgba(29, 158, 117, 0.13), transparent 70%),
    var(--site-bg-1);
  border-top: 1px solid var(--site-border);
}
.final-cta h2 {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-4);
}
.final-cta p {
  color: var(--site-text-secondary);
  font-size: var(--fs-body-lg);
  margin-bottom: var(--space-7);
}
.final-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */

.site-footer {
  border-top: 1px solid var(--site-border);
  padding-block: var(--space-7);
  background: var(--site-bg-0);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-5);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
}
.footer-brand img { width: 20px; height: 20px; }
.footer-meta { color: var(--site-text-muted); font-size: 13px; }
.footer-links { display: flex; gap: var(--space-5); }
.footer-links a { font-size: 13.5px; color: var(--site-text-secondary); }
.footer-links a:hover { color: var(--site-text-primary); }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE: NAV, GLOBAL
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .nav-icon-link { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .container { padding-inline: var(--space-4); }

  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .hero-copy h1 { max-width: none; }

  .final-cta-actions { flex-direction: column; align-items: stretch; }
  .final-cta-actions .btn { width: 100%; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Nav wordmark competes for space with the CTA + menu button below
   ~420px: drop to icon-only rather than letting the name wrap to a
   second line and inflate the bar's height. */
@media (max-width: 420px) {
  .nav-brand-text { display: none; }
}

/* Note: deliberately no blanket `overflow-x: hidden` on html/body here.
   Setting overflow on either of those breaks `position: sticky` in
   Chromium (it turns body into a scroll container, and the sticky nav
   stops sticking). Horizontal overflow is prevented at the source
   instead -- see the min-width:0 fixes on grid items above -- and
   verified with no overflow at every breakpoint without this guard. */
