/* ==========================================================================
   Ziptastic — light theme
   A single design system for the marketing site, dashboard, and auth pages.
   Light, editorial-SaaS structure (centered hero, alternating detail blocks,
   a single dark rhythm-break band) with shims so legacy Materialize-class
   pages still inherit the look.
   ========================================================================== */

:root {
  /* Palette */
  --bg:            #ffffff;
  --bg-alt:        #f8fafc;
  --surface:       #ffffff;
  --surface-2:     #f1f5f9;
  --border:        #e2e8f0;
  --border-strong: #cbd5e1;

  --text:          #0f172a;
  --text-dim:      #475569;
  --text-faint:    #94a3b8;

  --accent:        #2196f3;   /* brand blue — the one confident accent */
  --accent-hover:  #1976d2;   /* darker, for link/ghost hover — not a fill */
  --accent-strong: #1565c0;   /* solid button fills — white text stays >=4.5:1 */
  --accent-strong-hover: #0d47a1;
  --accent-soft:   #e3f2fd;   /* tint for icon chips / soft backgrounds */
  --accent-ring:   rgba(33, 150, 243, 0.18);

  --dark:          #0b1120;   /* the single dark rhythm-break band */
  --dark-2:        #131b2e;
  --dark-border:   rgba(255, 255, 255, 0.08);
  --dark-text:     #e2e8f0;
  --dark-text-dim: #94a3b8;

  --success:       #059669;
  --danger:        #dc2626;
  --warn:          #d97706;

  /* Legacy alias names kept so untouched pages/components using var(--grad)
     still resolve to something sane under the light theme — a solid accent
     instead of the old three-colour gradient. */
  --grad: var(--accent);
  --grad-soft: var(--accent-soft);

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow:      0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 24px -12px rgba(15, 23, 42, 0.12);
  --shadow-lg:   0 4px 6px rgba(15, 23, 42, 0.03), 0 24px 48px -16px rgba(15, 23, 42, 0.16);
  --shadow-glow: 0 0 0 1px var(--accent-ring), 0 20px 40px -16px rgba(33, 150, 243, 0.25);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-dim);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5, h6 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--text); margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.025em; }
h3 { font-size: 1.3rem; }
p  { color: var(--text-dim); }

::selection { background: var(--accent-ring); color: var(--text); }

/* Keyboard focus must stay visible on every interactive element, including
   the filled pill buttons whose own background hides a default outline. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible, .copy-btn:focus-visible, .tab:focus-visible {
  outline: 2px solid var(--accent-strong-hover);
  outline-offset: 3px;
}
.band-dark :focus-visible, .terminal :focus-visible { outline-color: #fff; }

/* Skip link: reachable by keyboard, out of the way for everyone else. */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--accent-strong); color: #fff; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

img { max-width: 100%; height: auto; }

/* solid-accent emphasis (was a rainbow gradient; one confident colour now) */
.gradient-text,
.ziptastic {
  color: var(--accent);
  font-weight: 800;
}

/* ------------------------------------------------------------------ layout */
.container, .wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

main { flex: 1 0 auto; width: 100%; }

section { padding: 88px 0; }
.section-tight { padding: 48px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.muted { color: var(--text-faint); }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--text-dim); max-width: 60ch; }

/* ------------------------------------------------------------------ navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.brand:hover { color: var(--text); }
/* Wordmark image: height-driven so the 4:1 artwork keeps its ratio. */
.brand-logo { display: block; height: 30px; width: auto; }
.brand .dot {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--accent);
  display: inline-grid;
  place-items: center;
  font-size: 15px;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-links a:not(.btn) {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  font-size: .95rem;
  font-weight: 500;
}
.nav-links a:not(.btn):hover { color: var(--text); background: var(--surface-2); }
.nav-links a:not(.btn).active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.nav-toggle { display: none; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(21, 101, 192, 0.55);
}
.btn-primary:hover { color: #fff; background: var(--accent-strong-hover); box-shadow: 0 10px 24px -8px rgba(21, 101, 192, 0.65); }
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; border-radius: var(--radius-sm); }
.btn-sm { padding: 7px 15px; font-size: .85rem; }
.btn-danger { background: #fef2f2; border-color: #fecaca; color: var(--danger); }
.btn-danger:hover { background: #fee2e2; color: #b91c1c; }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card-glow { box-shadow: var(--shadow-glow); border-color: transparent; }

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

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.feature .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { font-size: .95rem; margin: 0; }

/* badges / pills */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.badge.live { color: var(--success); border-color: #a7f3d0; background: #ecfdf5; }
.badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, .6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(5, 150, 105, .5); }
  70%  { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

/* ------------------------------------------------------------------ hero */
.hero { padding: 96px 0 0; text-align: center; }
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.25rem; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; }
.hero-stats { display: flex; gap: 48px; margin-top: 56px; flex-wrap: wrap; justify-content: center; }
.hero-stats .stat .num { font-size: 1.9rem; font-weight: 800; color: var(--text); }
.hero-stats .stat .lbl { font-size: .85rem; color: var(--text-faint); margin-top: 2px; }

/* the framed product/demo visual beneath the hero copy */
.hero-frame { margin-top: 56px; }
.browser-chrome {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}
.browser-chrome-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.browser-chrome-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.browser-chrome-bar .dot.r { background: #ff5f57; }
.browser-chrome-bar .dot.y { background: #febc2e; }
.browser-chrome-bar .dot.g { background: #28c840; }
.browser-chrome-bar .url {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-faint);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  flex: 1 1 auto;
  max-width: 420px;
}
.browser-chrome-body { padding: 32px; }

/* ------------------------------------------------------------------ dark band */
.band-dark {
  background: var(--dark);
  color: var(--dark-text);
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark p { color: var(--dark-text-dim); }
.band-dark .eyebrow { color: #a5b4fc; }

/* ------------------------------------------------------------------ code / terminal */
pre, code, kbd, samp { font-family: var(--font-mono); }
code {
  font-size: .88em;
  background: var(--surface-2);
  padding: .15em .4em;
  border-radius: 6px;
  color: var(--accent);
}
pre {
  background: #f8f9fc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.65;
  color: #1e2338;
}
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

.terminal {
  background: #0f1224;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.terminal-bar .dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-bar .dot.r { background: #ff5f57; }
.terminal-bar .dot.y { background: #febc2e; }
.terminal-bar .dot.g { background: #28c840; }
.terminal-bar .title { margin-left: 8px; font-family: var(--font-mono); font-size: .8rem; color: #8890b5; }
.terminal pre { border: 0; border-radius: 0; margin: 0; background: transparent; color: #dbe0ff; }
.terminal .json-key { color: #93c5fd; }
.terminal .json-str { color: #86efac; }
.terminal .json-num { color: #fcd34d; }

/* tabs */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.tab {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: .85rem; font-weight: 600;
  cursor: pointer;
  color: var(--text-dim);
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-sans);
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); background: var(--accent-soft); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Stacked panels: every panel occupies the same grid cell, so the container
   is sized by the tallest one and the card's height never changes as tabs are
   switched. `visibility` rather than `display` keeps that reserved height
   while still removing hidden panels from the tab order and screen readers. */
.tab-panels { display: grid; }
.tab-panels > .tab-panel {
  grid-area: 1 / 1;
  display: block;
  visibility: hidden;
  min-width: 0; /* let a wide <pre> scroll instead of stretching the cell */
}
.tab-panels > .tab-panel.active { visibility: visible; }
/* Shorter samples fill the reserved height so the surplus reads as an editor
   pane rather than an empty gap under the card. Scoped to the tabbed card —
   code blocks elsewhere still size to their content. */
.tab-panels > .tab-panel,
.tab-panels > .tab-panel > .code-wrap { height: 100%; }
.tab-panels > .tab-panel > .code-wrap > pre {
  height: 100%;
  box-sizing: border-box;
  margin: 0;
}

/* ------------------------------------------------------------------ live demo widget */
.demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.demo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.demo-head .req-line { font-family: var(--font-mono); font-size: .82rem; color: var(--text-faint); }
.demo-form { display: flex; gap: 10px; flex-wrap: wrap; }
.demo-form .field { flex: 1 1 120px; }
.demo-out { margin-top: 18px; }

.field label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: 6px;
}

/* ------------------------------------------------------------------ forms */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], select, textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .95rem;
  font-family: var(--font-sans);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
input::placeholder { color: var(--text-faint); }
select option { background: var(--bg); color: var(--text); }
label { color: var(--text-dim); font-size: .92rem; }

.form-narrow { max-width: 440px; margin: 0 auto; }
.form-row { margin-bottom: 16px; }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { color: var(--text-faint); font-weight: 600; font-size: .8rem; }
td { color: var(--text-dim); }
tbody tr:hover { background: var(--bg-alt); }

/* progress */
progress {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border: 0; border-radius: 999px;
  background: var(--surface-2); overflow: hidden;
}
progress::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }

/* details */
details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  background: var(--surface);
}
details summary { cursor: pointer; font-weight: 600; color: var(--text); }
details[open] summary { margin-bottom: 10px; }

/* definition lists (FAQ) */
dl dt { font-weight: 700; color: var(--text); margin-top: 24px; font-size: 1.05rem; }
dl dd { margin: 8px 0 0; color: var(--text-dim); }

/* copy button */
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  font-size: .72rem; padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-dim); cursor: pointer;
  font-family: var(--font-sans);
}
.copy-btn:hover { color: var(--text); background: var(--surface-2); }
.code-wrap { position: relative; }

/* ------------------------------------------------------------------ footer */
.footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 56px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}
.footer h4 { font-size: .85rem; color: var(--text); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--text-dim); font-size: .92rem; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--text-faint); font-size: .85rem;
}

/* messages / alerts */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); margin-bottom: 16px; font-size: .92rem;
}
.alert-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alert-info  { background: var(--accent-soft); border-color: #bbdefb; color: var(--accent-hover); }
.alert-field-text { color: var(--danger); font-size: .85rem; margin: 4px 0 8px; }

/* page header band */
.page-head { padding: 64px 0 8px; }
.page-head h1 { margin-bottom: 10px; }
/* Long-form pages set the same measure on the heading and the body copy so
   the two share a left edge instead of drifting apart. */
.container.narrow { max-width: 780px; }
/* Demo pages centre a single card, so the heading centres over it. */
.page-head.center .container { text-align: center; }
.page-head.center .lead { margin-left: auto; margin-right: auto; }

/* coverage chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono);
  font-size: .8rem;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* source badges (trust row) */
.source-band { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.source-band .label { text-align: center; color: var(--text-faint); font-size: .9rem; margin-bottom: 24px; }
.source-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; align-items: center; }
.source-row .src { font-weight: 700; color: var(--text-faint); font-size: 1.05rem; letter-spacing: -.01em; }

/* alternating detail rows */
.detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.detail-row.reverse .detail-copy { order: 2; }
.detail-row.reverse .detail-visual { order: 1; }
.detail-copy .eyebrow { margin-bottom: 12px; }
.detail-copy ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.detail-copy ul li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); }
.detail-copy ul li .check {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  margin-top: 2px;
}

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* The landing page shows the three entry plans; the rest live on signup. */
.pricing-more {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap; margin-top: 32px;
}
.pricing-more p { margin: 0; color: var(--text-dim); }

/* The no-account on-ramp: quieter than the plan cards, but its own object. */
.pricing-free {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  max-width: 780px; margin: 40px auto 0;
  padding: 24px 28px;
  background: var(--accent-soft);
  border: 1px solid #bbdefb;
  border-radius: var(--radius);
}
.pricing-free strong { display: block; color: var(--text); font-size: 1.05rem; }
.pricing-free p { margin: 6px 0 0; color: var(--text-dim); max-width: 52ch; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  position: relative;
}
.price-card .plan-name { font-weight: 700; color: var(--text); font-size: 1.05rem; }
.price-card .plan-price { margin: 14px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.price-card .plan-price .amount { font-size: 2.1rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.price-card .plan-price .period { color: var(--text-faint); font-size: .9rem; }
.price-card .plan-quota { color: var(--text-faint); font-size: .88rem; margin-bottom: 20px; }
.price-card .btn { margin-top: auto; }
.price-card .featured-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent-strong); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 4px 14px; border-radius: var(--radius-pill);
}
.pricing-note { text-align: center; margin-top: 32px; color: var(--text-faint); font-size: .95rem; }

/* ==========================================================================
   Legacy Materialize-class shims — so not-yet-rewritten pages stay on-theme.
   ========================================================================== */
.row { display: block; margin-bottom: 0; }
.row::after { content: ""; display: table; clear: both; }
[class*="col s"], [class*="col m"], [class*="col l"] { width: 100%; padding: 0; }
.flow-text { font-size: 1.05rem; color: var(--text-dim); }
.collection { list-style: none; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.collection-item { padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.collection-item:last-child { border-bottom: 0; }
.input-field { margin-bottom: 16px; }
.input-field label { display: block; margin-bottom: 6px; }
.btn-large {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: var(--radius-pill); font-weight: 600;
  background: var(--accent-strong); color: #fff; cursor: pointer; border: 0;
}
.btn-large:hover { color: #fff; background: var(--accent-strong-hover); }
.center-image { display: block; margin: 0 auto; }
.documentation-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 40px; }
.documentation-nav li { color: var(--text-faint); }
.documentation-nav .chip { display: inline-block; font-family: var(--font-sans); font-weight: 500; }
.documentation-nav .chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .grid-3, .grid-4, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-row { grid-template-columns: 1fr; gap: 32px; }
  .detail-row.reverse .detail-copy { order: 1; }
  .detail-row.reverse .detail-visual { order: 2; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px; gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle {
    display: inline-grid; place-items: center; margin-left: auto;
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text); cursor: pointer; font-size: 20px;
  }
  .grid-2, .grid-3, .grid-4, .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .browser-chrome-body { padding: 20px; }
  section { padding: 56px 0; }
}
