/* ==================================================================
   site.css --unified marketing stylesheet for minitok.dev
   ONE file for ALL public marketing pages (18 pages):
   /, /pricing, /trial, /docs, /guides/*, /demo, /contact, /support,
   /privacy, /terms, /refund, /case-study-*
   Auth/app/admin/checkout pages keep style.css (separate domain).

   Architecture:
   1. Dark design tokens  (own prefix --s-*, zero collision with style.css)
   2. Shell              (header, nav, footer, buttons, container)
   3. Page primitives    (page-hero, eyebrow, lead, docs, forms, code)
   4. Per-page sections  (pricing, trial, contact, support, legal, demo)
   5. Responsive
   6. Homepage modules   (ported from homepage.css --scope,
      self-contained --m-* tokens, applies ONLY to <body class="marketing-shell">)
   ================================================================== */

/* ===== 1. Design tokens ===== */
:root, *, *::before, *::after { box-sizing: border-box; }
:root {
  --s-bg: #0a0a0b;
  --s-bg-elev: #121215;
  --s-bg-card: #16161a;
  --s-border: #26262c;
  --s-border-strong: #3a3a42;
  --s-text: #f4f4f5;
  --s-text-muted: #a1a1aa;
  --s-text-faint: #6e6e77;
  --s-accent: #4f8cff;
  --s-accent-soft: rgba(79,140,255,.14);
  --s-green: #34d399;
  --s-red: #f87171;
  --s-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --s-max-w: 1120px;
  --s-radius: 8px;
  --s-radius-lg: 12px;
  --s-sp-1: 4px; --s-sp-2: 8px; --s-sp-3: 12px; --s-sp-4: 16px;
  --s-sp-5: 24px; --s-sp-6: 32px; --s-sp-7: 48px; --s-sp-8: 64px; --s-sp-9: 96px;
  color-scheme: dark;
}

body { background: var(--s-bg); color: var(--s-text); font-family: Pretendard, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--s-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== 2. Shell ===== */
.skip-link { position: absolute; top: -100%; left: 16px; background: var(--s-accent); color: #fff; padding: 8px 16px; border-radius: var(--s-radius); z-index: 9999; font-size: .875rem; font-weight: 600; }
.skip-link:focus { top: 16px; }
.container { width: 100%; max-width: var(--s-max-w); margin: 0 auto; padding: 0 24px; }

.header { position: sticky; top: 0; z-index: 100; background: rgba(10,10,11,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--s-border); }
.nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; height: 64px; }
.nav > * { min-width: 0; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.75rem; font-weight: 700; color: var(--s-text); letter-spacing: -.02em; text-decoration: none; }
.logo > span { font-family: Harlekin, Pretendard, system-ui, sans-serif; font-weight: 400; letter-spacing: -.025em; font-size: 1.75rem; line-height: 1; }
.logo:hover { color: var(--s-text); text-decoration: none; }
.logo-icon { flex-shrink: 0; isolation: isolate; shape-rendering: geometricPrecision; display: block; }
@media (forced-colors: active) { .logo-icon { forced-color-adjust: none; } }
/* Whale / Chromium auto-dark mode can repaint external images; inline SVG
   bypasses the image filter pipeline and keeps the brand colour in both modes. */
@media (prefers-color-scheme: light) { .logo-icon path { forced-color-adjust: none; } }
/* Whale / Chromium auto-dark applies a document-level invert filter that
   forced-color-adjust cannot block. Opt the logo out explicitly. */
.logo-icon--brand, .logo-icon--brand * { filter: none !important; -webkit-filter: none !important; }
.nav-links { display: flex; gap: 32px; align-items: center; justify-content: center; min-width: 0; }
.nav-links a { font-size: .9375rem; font-weight: 500; color: var(--s-text-muted); transition: color .15s; }
.nav-links a:hover { color: var(--s-text); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--s-accent); }
.nav-cta { margin-left: 8px; font-weight: 600; }
.nav-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-left: 0; }
/* Desktop: the panel is a layout no-op so the nav lays out inline.
   Mobile: it becomes a real dropdown hidden until .open — with
   `display: contents` it stayed in the header grid even while closed, which
   leaked the auth links into the bar and wrapped the hamburger. */
.mobile-menu-panel { display: contents; }
@media (max-width: 700px) {
  /* Anchor the panel to .header (sticky = positioned) rather than the padded
     .nav container, so it spans the full bar width exactly. */
  .nav { position: static; }
  .mobile-menu-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    right: auto;
    width: 100vw;
    transform: translateX(-50%);
    z-index: 60;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: #0a0a0b;
    border-bottom: 1px solid var(--s-border, rgba(255,255,255,.1));
    box-shadow: 0 24px 48px rgba(0,0,0,.6);
  }
  .mobile-menu-panel.open { display: flex; }
  .mobile-menu-panel .nav-links,
  .mobile-menu-panel .nav-actions { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .mobile-menu-panel .nav-links a,
  .mobile-menu-panel .nav-actions .btn { padding: 12px 16px; width: 100%; text-align: center; }
}
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--s-text); padding: 8px; justify-self: end; }
.mobile-menu-toggle:focus-visible { outline: 2px solid var(--s-accent); outline-offset: 2px; border-radius: var(--s-radius); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; font-size: .9375rem; font-weight: 600; border-radius: var(--s-radius); transition: all .2s; cursor: pointer; border: none; white-space: nowrap; text-decoration: none; }
.btn-sm { padding: 8px 20px; font-size: .875rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; font-weight: 700; border-radius: var(--s-radius-lg); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-primary { background: #fff; color: #0a0a0b; }
.btn-primary:hover { background: #e8e8ea; color: #0a0a0b; text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,255,255,.15); }
.btn-secondary { background: transparent; color: var(--s-text); border: 1px solid var(--s-border-strong); }
.btn-secondary:hover { background: var(--s-bg-elev); color: var(--s-text); border-color: var(--s-text-faint); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--s-text-muted); border: 1px solid var(--s-border); padding: 8px 20px; font-size: .875rem; font-weight: 500; }
.btn-ghost:hover { color: var(--s-text); border-color: var(--s-text-faint); background: var(--s-bg-elev); text-decoration: none; }

.footer { border-top: 1px solid var(--s-border); background: var(--s-bg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 64px 0 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; max-width: 280px; }
.footer-tagline { color: var(--s-text-muted); font-size: .875rem; line-height: 1.6; }
.footer-section h4 { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--s-text-faint); margin: 0 0 12px; }
.footer-section a { display: block; color: var(--s-text-muted); font-size: .875rem; padding: 4px 0; }
.footer-section a:hover { color: var(--s-text); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 0 32px; border-top: 1px solid var(--s-border); color: var(--s-text-faint); font-size: .8125rem; flex-wrap: wrap; }

/* ===== 3. Page primitives ===== */
.eyebrow { display: inline-block; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--s-accent); margin: 0 0 14px; }
.lead { color: var(--s-text-muted); font-size: 1.0625rem; line-height: 1.6; }
.page-hero { max-width: 900px; margin: 0 auto; min-width: 0; text-align: left; }
.page-hero > h1 { font-size: clamp(2.125rem, 4.5vw, 2.875rem); line-height: 1.08; letter-spacing: -.04em; font-weight: 700; margin: 0 0 14px; color: var(--s-text); }
.page-hero > .lead { max-width: 640px; margin: 0; }
.page-hero--flush { padding-block: 0 var(--sp-intro-gap); max-width: none; margin: 0; }

.docs-section { max-width: 900px; margin: 0 auto; min-width: 0; }
.docs-section > h1 { letter-spacing: -.045em; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; margin-bottom: 10px; }
.docs-subtitle { color: var(--s-text-muted); font-size: 1.0625rem; max-width: 640px; margin-bottom: 40px; }
.docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; margin-bottom: 24px; }
.docs-card, .docs-card-full { padding: 26px; background: var(--s-bg-card); border: 1px solid var(--s-border); border-radius: var(--s-radius-lg); margin-bottom: 24px; min-width: 0; max-width: 100%; }
.docs-card h3, .docs-card-full h3 { font-size: 1.05rem; line-height: 1.3; margin-bottom: 12px; color: var(--s-text); }
.docs-card p, .docs-card-full p { color: var(--s-text-muted); font-size: .9rem; margin-bottom: 12px; }
.docs-card ul, .docs-card-full ul { padding-left: 20px; font-size: .9rem; color: var(--s-text-muted); }
.docs-card li, .docs-card-full li { margin-bottom: 6px; }
.docs-more { margin-top: 8px; }
.docs-safety-card { border-color: var(--s-accent-soft); }
.docs-toc { background: var(--s-bg-card); border: 1px solid var(--s-border); border-radius: var(--s-radius-lg); padding: 20px 24px; }
.docs-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--s-border); border-radius: var(--s-radius); background: var(--s-bg-elev); padding: 0 16px; }
.docs-table { width: 100%; min-width: 0; table-layout: fixed; font-size: .85rem; border-collapse: collapse; }
.docs-table td { padding: 10px 0; border-bottom: 1px solid var(--s-border); vertical-align: top; overflow-wrap: anywhere; color: var(--s-text-muted); }
.docs-table td:first-child { font-family: var(--s-mono); width: 34%; padding-right: 16px; color: var(--s-text); }
.docs-table tr:last-child td { border-bottom: 0; }

.code-block { position: relative; background: #0d0d10; color: #e2e8f0; padding: 16px 18px; border-radius: var(--s-radius); font-size: .85rem; line-height: 1.6; overflow-x: auto; margin-bottom: 12px; max-width: 100%; border: 1px solid #1e293b; }
.code-block pre { white-space: pre; }
.docs-card, .docs-card-full, .docs-section, .container { min-width: 0; }
.code-block pre, .code-block code { display: block; }
.code-scroll-hint { display: block; margin-top: 8px; color: var(--s-text-faint); font-size: .75rem; }
.copy-btn { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(26,26,30,.9); color: var(--s-text-muted); border: 1px solid var(--s-border); border-radius: var(--s-radius); cursor: pointer; }
.copy-btn:hover { color: var(--s-text); border-color: var(--s-border-strong); }
.copy-btn--light { background: rgba(255,255,255,.08); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 600; color: var(--s-text); }
.form-group input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--s-border); border-radius: var(--s-radius); background: var(--s-bg-elev); color: var(--s-text); }
.form-group input:focus { outline: 0; border-color: var(--s-accent); box-shadow: 0 0 0 4px var(--s-accent-soft); }
.form-hint { color: var(--s-text-faint); font-size: .8125rem; margin-top: 6px; }
.form-error { color: var(--s-red); font-size: .8125rem; margin-top: 6px; }
.info-item { display: flex; gap: 12px; padding: 14px 16px; background: var(--s-bg-card); border: 1px solid var(--s-border); border-radius: var(--s-radius); margin-bottom: 12px; }
.info-icon { flex: none; width: 20px; height: 20px; color: var(--s-accent); margin-top: 2px; }
.info-body h4 { margin: 0 0 4px; font-size: .875rem; color: var(--s-text); }
.info-body p { margin: 0; color: var(--s-text-muted); font-size: .8125rem; line-height: 1.5; }

/* ===== 4. Per-page sections ===== */
/* pricing.html */
.pricing-card-grid { display: grid; grid-template-columns: minmax(0, 420px); justify-content: center; gap: var(--s-sp-4); }
.pricing-card { position: relative; background: var(--s-bg-card); border: 1px solid var(--s-border); border-radius: var(--s-radius-lg); padding: var(--s-sp-7) var(--s-sp-6) var(--s-sp-6); text-align: center; }
.pricing-recommended { position: absolute; top: 0; left: 50%; transform: translate(-50%,-50%); background: var(--s-accent); color: #fff; border-radius: 99px; padding: 5px 14px; font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.pricing-plan-label { font-size: .9375rem; font-weight: 600; color: var(--s-text-muted); margin-bottom: 8px; }
.pricing-price { color: var(--s-text); }
.pricing-amount { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--s-text); }
.pricing-period { color: var(--s-text-faint); font-size: .875rem; }
.pricing-fit { min-height: 48px; color: var(--s-text-muted); font-size: .875rem; line-height: 1.5; margin: var(--s-sp-3) 0; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 var(--s-sp-5); text-align: left; display: grid; gap: 10px; }
.pricing-features li { display: flex; gap: 10px; align-items: flex-start; color: var(--s-text-muted); font-size: .9rem; }
.pricing-features li::before { content: "\2713"; color: var(--s-green); font-weight: 700; font-size: .8125rem; flex: none; }
.pricing-note { text-align: center; color: var(--s-text-faint); font-size: .8125rem; margin-top: var(--s-sp-5); }
.pricing-note a { color: var(--s-accent); }
.pricing-trial-copy { color: var(--s-text-muted); font-size: .875rem; margin-top: var(--s-sp-3); }

/* trial.html + support.html shared */
.auth-card { max-width: 440px; margin: 0 auto; padding: var(--s-sp-7) var(--s-sp-6); background: var(--s-bg-card); border: 1px solid var(--s-border); border-radius: var(--s-radius-lg); }
.trial-page { padding: 72px 24px 96px; }
.support-header, .support-page .support-header { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.support-intro { font-size: 1.0625rem; color: var(--s-text-muted); }

/* contact.html */
.contact-section { max-width: 760px; margin: 0 auto; }
.contact-section h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 12px; }
.contact-section > p { font-size: 1.0625rem; line-height: 1.7; color: var(--s-text-muted); margin-bottom: var(--sp-prose-gap); }
.contact-methods { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 24px; }
.contact-card { padding: 30px; border-radius: var(--s-radius-lg); background: var(--s-bg-card); border: 1px solid var(--s-border); }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--s-text); }
.contact-card p { line-height: 1.65; color: var(--s-text-muted); margin-bottom: 22px; }
.response-time { text-align: center; padding: 18px 20px; border: 1px solid var(--s-border); background: var(--s-accent-soft); border-radius: var(--s-radius-lg); color: var(--s-text-muted); }

/* legal pages: privacy, terms, refund */
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -.04em; margin-bottom: 14px; }
.legal-page .lead { margin-bottom: var(--sp-prose-gap); }
.legal-page h2 { font-size: 1.25rem; font-weight: 700; margin: var(--sp-prose-gap) 0 var(--m-sp-3); color: var(--s-text); }
.legal-page p, .legal-page li { color: var(--s-text-muted); line-height: 1.7; font-size: .9375rem; }

/* ===== 5. Responsive ===== */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .docs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  /* logo | actions | toggle must stay on one row: the hidden nav-links still
     occupied a column, which pushed the hamburger onto a second line. */
  .nav { grid-template-columns: auto 1fr auto; align-items: center; }
  .nav-links { display: flex; }
  .nav-actions { min-width: 0; }
  .nav-actions .btn { white-space: nowrap; padding-left: 12px; padding-right: 12px; }
  .mobile-menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-card-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-methods { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .pricing-amount { font-size: 2.5rem; }
  .pricing-card { padding: var(--s-sp-6) var(--s-sp-4) var(--s-sp-5); }
  .btn { white-space: normal; }
  .docs-card-full .btn { width: 100%; }
}

/* ===== 6. Homepage modules (scope) ===== */
/* Ported verbatim from homepage.css. The scope means these
   rules apply ONLY to <body class="marketing-shell"> (the homepage), never
   to other marketing pages that load site.css. Token set --m-* is fully
   self-contained so it cannot collide with the --s-* system above. */
/* homepage design tokens */
.home-page, body:has(> main > section.hero) {
  --m-bg: #0a0a0b; --m-bg-elev: #111113; --m-bg-card: #141416;
  --m-border: #26262a; --m-border-strong: #3a3a40;
  --m-text: #f5f5f7; --m-text-muted: #9a9aa2; --m-text-faint: #6e6e76;
  --m-accent: #4f8cff; --m-accent-hover: #6b9fff; --m-accent-ink: #0a1a33;
  --m-green: #34d399;
  --m-radius: 10px; --m-radius-lg: 16px; --m-radius-xl: 24px;
  --m-sp-1: 4px; --m-sp-2: 8px; --m-sp-3: 12px; --m-sp-4: 16px;
  --m-sp-5: 24px; --m-sp-6: 32px; --m-sp-7: 48px; --m-sp-8: 64px; --m-sp-9: 96px;

  /* ---- Layout rhythm (shared by every page) ----
     Sections, page shells and intros all read from these, so one change
     re-flows the whole site instead of a single hand-tuned page. */
  --sp-section-y: 64px;        /* standard section top+bottom */
  --sp-section-y-hero: 96px;   /* opening hero: clears the 65px sticky header */
  --sp-page-y: 64px;           /* standalone page shell (docs, legal, ...) */
  --sp-page-y-bottom: 96px;
  --sp-page-gutter: 24px;      /* horizontal gutter for page shells */
  --sp-intro-gap: 48px;        /* section intro -> its content */
  --sp-prose-gap: 40px;        /* prose block separation (legal, docs) */
}

/* These must resolve on every page, not only on pages carrying .home-page,
   so :root declares the same set. Duplicated deliberately: the block above is
   the homepage-local override, this one is the site-wide floor. */
:root {
  --m-bg: #0a0a0b; --m-bg-elev: #111113; --m-bg-card: #141416;
  --m-border: #26262a; --m-border-strong: #3a3a40;
  --m-text: #f5f5f7; --m-text-muted: #9a9aa2; --m-text-faint: #6e6e76;
  --m-accent: #4f8cff; --m-accent-hover: #6b9fff; --m-accent-ink: #0a1a33;
  --m-green: #34d399;
  --m-radius: 10px; --m-radius-lg: 16px; --m-radius-xl: 24px;
  --m-sp-1: 4px; --m-sp-2: 8px; --m-sp-3: 12px; --m-sp-4: 16px;
  --m-sp-5: 24px; --m-sp-6: 32px; --m-sp-7: 48px; --m-sp-8: 64px; --m-sp-9: 96px;
  --sp-section-y: 64px; --sp-section-y-hero: 96px;
  --sp-page-y: 64px; --sp-page-y-bottom: 96px; --sp-page-gutter: 24px;
  --sp-intro-gap: 48px; --sp-prose-gap: 40px;
}

/* ===== 2. Dark shell override (page-level) ===== */
body{ background: var(--m-bg); color: var(--m-text); }
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,11,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--m-border);
}
.header.scrolled { border-bottom-color: var(--m-border-strong); }
.logo-wordmark { color: var(--m-text); letter-spacing: -.02em; }
.nav-links a { color: var(--m-text-muted); transition: color .18s ease; }
.nav-links a:hover { color: var(--m-text); }
.skip-link { background: var(--m-bg-elev); color: var(--m-text); border-color: var(--m-border-strong); }

/* Header CTA buttons on dark */
.btn-ghost { background: transparent; color: var(--m-text-muted); border-color: transparent; }
.btn-ghost:hover { color: var(--m-text); }
.btn-ghost.btn-sm { padding: 8px 14px; }

/* ===== 3. Buttons (cline-style) ===== */
.btn { border-radius: 8px; font-weight: 600; transition: all .18s ease; }
.btn-primary {
  background: #fff; color: #0a0a0b; border: 1px solid #fff;
}
.btn-primary:hover { background: #d4d4d8; border-color: #d4d4d8; transform: translateY(-1px); }
.btn-primary.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-secondary {
  background: transparent; color: var(--m-text);
  border: 1px solid var(--m-border-strong);
}
.btn-secondary:hover { background: var(--m-bg-elev); border-color: #55555c; }

/* ===== 4. Hero (cline-style: centered, oversized type, terminal below) ===== */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(79,140,255,.13), transparent 70%),
    var(--m-bg);
  text-align: center;
  overflow: hidden;
}
/* ===== hero brand mark: special-character art with pointer wave ===== */
/* Animated special-character background canvas behind hero content */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-wordmark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  margin: 0;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-wordmark-text {
  font-family: Harlekin, Pretendard, system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(4.5rem, 14vw, 12rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--m-accent);
  opacity: 0;
  filter: blur(12px);
  animation: wordmarkReveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) .2s both;
  white-space: nowrap;
}
@keyframes wordmarkReveal {
  from { opacity: 0; filter: blur(12px); transform: translateY(24px); }
  to   { opacity: .55; filter: blur(0); transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-wordmark-text { animation: none; opacity: .55; filter: none; }
  .hero-bg { display: none; }
}
.hero-grid { position: relative; z-index: 1; }
.hero-grid { display: block; max-width: 880px; margin: 0 auto; }
.hero-copy { text-align: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--m-accent); background: rgba(79,140,255,.08);
  border: 1px solid rgba(79,140,255,.25); border-radius: 999px;
  padding: 6px 14px; font-size: .8125rem; font-weight: 600; letter-spacing: .02em;
  margin-bottom: var(--m-sp-5); text-transform: none;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
  line-height: 1.06; letter-spacing: -.035em;
  color: #fff; margin: 0 0 var(--m-sp-4); font-weight: 700;
  max-width: 17ch; margin-left: auto; margin-right: auto;
}
.hero h1 .hero-accent, .hero h1 em {
  background: linear-gradient(92deg, var(--m-accent), #a5c4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-subtitle {
  color: var(--m-text-muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55; max-width: 62ch; margin: 0 auto var(--m-sp-6); font-weight: 400;
}
.hero-actions { justify-content: center; gap: var(--m-sp-3); margin-bottom: var(--m-sp-5); }
.hero-actions--stacked { flex-direction: column; align-items: center; }
.hero-secondary-actions { justify-content: center; gap: var(--m-sp-3); }

/* Install chip — pill-style terminal command */
.install-chip {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--m-bg-card); border: 1px solid var(--m-border);
  border-radius: 999px; padding: 8px 8px 8px 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.install-chip code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .875rem; color: var(--m-text); background: transparent; border: 0; padding: 0;
}
.install-chip .copy-btn {
  position: static;
  flex: none;
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--m-bg-elev); color: var(--m-text-muted);
  border: 1px solid var(--m-border); border-radius: 999px; cursor: pointer;
  transition: all .18s ease;
}
.install-chip .copy-btn:hover { color: #fff; border-color: var(--m-border-strong); background: #1a1a1d; }

/* Hero facts — inline pill row */
.hero-facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--m-sp-2) var(--m-sp-4);
  list-style: none; padding: 0; margin: 0;
}
.hero-fact {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--m-text-muted); font-size: .875rem;
}
.hero-fact::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--m-green); flex: 0 0 5px;
}
.hero-fact code { color: var(--m-text); font-size: .8125rem; border: 0; background: transparent; padding: 0; }

/* Hero visual — centered terminal mock under the copy */
.hero-visual { overflow: hidden; }

/* hv-stage: compact single-line pipeline (Task > Code > Verify > Done) */
.hv-stage {
  display: inline-flex; align-items: center; gap: var(--m-sp-5);
  background: var(--m-bg-card); border: 1px solid var(--m-border);
  border-radius: var(--m-radius-lg); padding: var(--m-sp-4) var(--m-sp-5);
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.hv-code { display: none; }
.hv-pipeline { display: flex; align-items: center; gap: var(--m-sp-2); }
.hv-node {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; color: var(--m-text-faint);
  background: var(--m-bg-elev); border: 1px solid var(--m-border);
  transition: all .3s ease;
}
.hv-node.is-active {
  color: var(--m-accent); border-color: rgba(79,140,255,.4);
  background: rgba(79,140,255,.08);
}
.hv-node.is-done {
  color: var(--m-green); border-color: rgba(52,211,153,.35);
  background: rgba(52,211,153,.07);
}
.hv-connector { position: relative; width: 20px; height: 2px; background: var(--m-border); border-radius: 1px; overflow: hidden; }
.hv-flow { position: absolute; inset: 0; width: 0; background: var(--m-accent); animation: mflow 2.4s ease-in-out infinite; }
@keyframes mflow { 0%,100% { width: 0 } 50% { width: 100% } }
.hv-labels { display: none; }
.hv-caption { color: var(--m-text-faint); font-size: .8125rem; margin-top: var(--m-sp-3); }
.hv-caption a { color: var(--m-accent); text-decoration: none; }
.hv-caption a:hover { text-decoration: underline; }

/* ===== 5. Section scaffolding (cline-style rhythm) ===== */
main section { background: transparent; }
.section-intro { text-align: center; max-width: 720px; margin: 0 0 var(--m-sp-7); }
.section-intro .eyebrow {
  color: var(--m-accent); font-size: .8125rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--m-sp-3);
}
.section-intro h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em;
  color: #fff; margin: 0 0 var(--m-sp-3); font-weight: 700;
}
.section-subtitle { color: var(--m-text-muted); font-size: 1.0625rem; line-height: 1.6; margin: 0; }

/* ===== 6. Capabilities — clean 2x2 grid (replaces bento) ===== */
.feature-grid.feature-grid--bento {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--m-sp-4);
  max-width: 960px; margin: 0 auto;
}
.feature-card {
  background: var(--m-bg-card); border: 1px solid var(--m-border);
  border-radius: var(--m-radius-lg); padding: var(--m-sp-6);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.feature-card:hover{transform:translateY(-2px)}
.feature-card:hover { border-color: var(--m-border-strong); background: #17171a; }
.feature-card--compact, .feature-grid--bento .feature-card--compact { grid-column: auto; grid-row: auto; align-self: stretch; padding: var(--m-sp-6); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(79,140,255,.1); border: 1px solid rgba(79,140,255,.2); color: var(--m-accent);
  margin-bottom: var(--m-sp-4);
}
.feature-card h3 { color: #fff; font-size: 1.0625rem; font-weight: 600; margin: 0 0 var(--m-sp-2); letter-spacing: -.01em; }
.feature-card p { color: var(--m-text-muted); font-size: .9375rem; line-height: 1.6; margin: 0; }
.steps-row-links { text-align: center; margin-top: var(--m-sp-6); }

/* ===== 7. How it works — numbered horizontal steps ===== */
.how-it-works { padding: var(--m-sp-8) 0; }
.steps-row, .workflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--m-sp-4); max-width: 1040px; margin: 0 auto; }
.step {
  position: relative; padding: var(--m-sp-5) var(--m-sp-4);
  background: var(--m-bg-card); border: 1px solid var(--m-border); border-radius: var(--m-radius-lg);
  transform:translateY(6px); opacity: 0; transition: opacity .5s ease, transform .5s ease, border-color .2s ease;
}
.step.is-revealed,
/* A `data-motion="stagger"` container reveals itself and clears the pending
   state on its children; without this the step cards stayed at opacity:0 and
   the whole workflow section rendered blank. */
[data-motion="stagger"].is-visible > .step,
[data-motion="stagger"].is-revealed > .step { opacity: 1; transform: translateY(0); }
.step:hover { border-color: var(--m-border-strong); }
.step-num,
.steps-row-num {
  width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(79,140,255,.12); color: var(--m-accent); font-size: .8125rem; font-weight: 700;
  margin-bottom: var(--m-sp-3);
}
.step h3 { color: #fff; font-size: 1rem; font-weight: 600; margin: 0 0 var(--m-sp-2); }
.step p { color: var(--m-text-muted); font-size: .875rem; line-height: 1.55; margin: 0; }

/* ===== 8. Proof / product-view — centered screenshot tabs ===== */
/* NOTE: section names here must match templates/index.html markup.
   markup uses: .proof (product-view), .code-section, .pricing */
.proof, .pv-frame {
  background: var(--m-bg-card); border: 1px solid var(--m-border); border-radius: var(--m-radius-lg);
  overflow-x: auto; padding: 0; margin: 0 auto var(--m-sp-4); max-width: 960px;
}
.pv-img { display: block; max-width: 100%; height: auto; border-radius: var(--m-radius-lg) var(--m-radius-lg) 0 0; }
.pv-note { color: var(--m-text-faint); font-size: .8125rem; line-height: 1.6; text-align: center; max-width: 68ch; margin: 0 auto var(--m-sp-5); }
.pv-hint { text-align: center; color: var(--m-text-faint); font-size: .75rem; margin: 0; }
.pv-tabs { display: flex; justify-content: center; gap: var(--m-sp-2); margin: 0 auto var(--m-sp-5); flex-wrap: wrap; }
.pv-tab {
  cursor: pointer; padding: 8px 16px; border-radius: 999px;
  color: var(--m-text-muted); background: var(--m-bg-card); border: 1px solid var(--m-border);
  font-size: .875rem; font-weight: 500; transition: all .18s ease; margin-bottom: var(--m-sp-3);
}
.pv-tab:hover { color: var(--m-text); border-color: var(--m-border-strong); }
input.pv-switch:checked + .pv-tabs .pv-tab[for="product-view-run"],
input.pv-switch:has(+ .pv-tabs .pv-tab[for="product-view-run"]) { color: #fff; border-color: var(--m-border-strong); background: #1c1c20; }
.pv-panel { display: none; margin: 0; }
.pv-panel.is-active { display: block; }

/* ===== 9. Case study — split layout ===== */
.case-study { padding: var(--m-sp-8) 0; }
.case-study-layout {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--m-sp-6);
  max-width: 1040px; margin: 0 auto; align-items: start;
}
.case-study-sticky { position: sticky; top: 96px; }
.case-study-sticky h3, .case-of-works h3 { color: #fff; font-size: 1.25rem; font-weight: 600; margin: 0 0 var(--m-sp-3); letter-spacing: -.02em; }
.case-study-sticky p { color: var(--m-text-muted); font-size: .9375rem; line-height: 1.65; margin: 0 0 var(--m-sp-4); }
.case-study-narrative { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--m-sp-3); }
.case-study-metric {
  background: var(--m-bg-card); border: 1px solid var(--m-border); border-radius: var(--m-radius);
  padding: var(--m-sp-4);
}
.case-study-metric-value { display: block; font-size: 1.75rem; font-weight: 700; color: var(--m-accent); letter-spacing: -.03em; margin-bottom: 2px; }
.case-study-metric-label { color: var(--m-text-muted); font-size: .8125rem; line-height: 1.45; display: block; }
.case-study-note { grid-column: 1 / -1; color: var(--m-text-faint); font-size: .8125rem; line-height: 1.6; margin: 0; }

/* ===== 10. Terminal — the centerpiece (cline-style dark terminal) ===== */
.terminal-window-section h2 {
  text-align: center; color: #fff; font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  letter-spacing: -.025em; font-weight: 700; margin: 0 0 var(--m-sp-6); line-height: 1.15;
}
.terminal-window {
  max-width: 880px; margin: 0 auto;
  background: #0d0d0f; border: 1px solid var(--m-border-strong); border-radius: var(--m-radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,.5); overflow: hidden;
}
.terminal-window-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: #131316; border-bottom: 1px solid var(--m-border);
}
.terminal-window-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-window-dot--blue { background: #ff5f57; }
.terminal-window-dot--blue-light { background: #febc2e; }
.terminal-window-dot--blue-dark { background: #28c840; }
.terminal-window-title { margin-left: auto; color: var(--m-text-faint); font-size: .75rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-window-body { padding: var(--m-sp-5) var(--m-sp-6); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8125rem; line-height: 1.75; color: var(--m-text-muted); }
.terminal-window-line { white-space: pre-wrap; overflow-wrap: anywhere; }
.t-prompt { color: var(--m-text-faint); user-select: none; }
.t-cmd { color: #fff; font-weight: 600; }
.t-ok, .t-check { color: var(--m-green); }
.t-dim { color: var(--m-text-faint); }
.t-str { color: #c792ea; }
.terminal-window--wide { max-width: 880px; }

/* ===== 11. Pricing — single centered card ===== */
.pricing-card-grid { display: grid; grid-template-columns: minmax(0, 420px); justify-content: center; gap: var(--m-sp-4); }
.pricing-card {
  position: relative; background: var(--m-bg-card); border: 1px solid var(--m-border-strong);
  border-radius: var(--m-radius-xl); padding: var(--m-sp-7) var(--m-sp-6) var(--m-sp-6);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.pricing-preview-badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background: var(--m-accent); color: var(--m-accent-ink);
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.pricing-plan-label { display: block; color: var(--m-text-muted); font-size: .875rem; font-weight: 600; margin-bottom: var(--m-sp-2); text-align: center; }
.pricing-price { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: var(--m-sp-4); }
.pricing-amount { color: #fff; font-size: 3rem; font-weight: 700; letter-spacing: -.04em; }
.pricing-period { color: var(--m-text-muted); font-size: .9375rem; }
.pricing-fit { color: var(--m-text-muted); text-align: center; font-size: .9375rem; line-height: 1.6; margin: 0 0 var(--m-sp-5); }
.pricing-features { list-style: none; padding: 0; margin: 0 0 var(--m-sp-5); display: grid; gap: var(--m-sp-3); }
.pricing-features li { display: flex; gap: 10px; color: var(--m-text-muted); font-size: .875rem; line-height: 1.5; align-items: flex-start; }
.pricing-features li::before {
  content: "\2713"; color: var(--m-green); font-weight: 700; flex: 0 0 auto; line-height: 1.5;
}
.pricing-note { color: var(--m-text-faint); font-size: .75rem; line-height: 1.6; text-align: center; max-width: 72ch; margin: var(--m-sp-5) auto 0; }
.pricing-note a { color: var(--m-accent); }
.btn-block { display: block; width: 100%; text-align: center; margin-bottom: var(--m-sp-2); }

/* ===== 12. FAQ — bordered accordion list ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: var(--m-sp-2); }
.faq-item {
  background: var(--m-bg-card); border: 1px solid var(--m-border); border-radius: var(--m-radius);
  overflow: hidden; transition: border-color .2s ease;
}
.faq-item[open] { border-color: var(--m-border-strong); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--m-sp-4);
  padding: var(--m-sp-4) var(--m-sp-5); cursor: pointer; list-style: none;
  color: #fff; font-size: .9375rem; font-weight: 600; letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; width: 12px; height: 12px; flex: 0 0 12px; box-sizing: content-box;
  border-right: 2px solid var(--m-text-faint); border-bottom: 2px solid var(--m-text-faint);
  transform: rotate(45deg); transition: transform .2s ease; margin-top: -6px;
}
.faq-item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq-item summary p { margin: 0; }
.faq-item p { color: var(--m-text-muted); font-size: .9375rem; line-height: 1.65; }
.faq-item[open] summary + p { padding: 0 var(--m-sp-5) var(--m-sp-4); }
/* closed details: remove the answer from layout entirely — prevents the
   90px-tall <p> from overflowing the collapsed item and colliding with
   the next faq-item (root cause of the reported visual overlap) */
.faq-item:not([open]) > summary ~ * { display: none; }

/* ===== 13. Final CTA — gradient wash ===== */
.final-cta{position:relative;overflow:hidden}
.final-cta {
  /* Sections run on --m-sp-8 (64px). A closing CTA gets one extra step, not double. */
  padding: var(--m-sp-8) 0; text-align: center;
  background: radial-gradient(ellipse 70% 90% at 50% 110%, rgba(79,140,255,.16), transparent 70%), var(--m-bg);
}
.final-cta h2 {
  color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.1; margin: 0 0 var(--m-sp-4);
}
.final-cta-accent { background: linear-gradient(92deg, var(--m-accent), #a5c4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final-cta p { color: var(--m-text-muted); font-size: 1.0625rem; margin: 0 0 var(--m-sp-6); }

/* ===== 14. Footer on dark ===== */
.footer { background: var(--m-bg); border-top: 1px solid var(--m-border); padding: var(--m-sp-7) 0 var(--m-sp-5); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--m-sp-6); align-items: start; }
.footer-brand .logo-wordmark { color: #fff; }
.footer-tagline { color: var(--m-text-faint); font-size: .875rem; margin: var(--m-sp-3) 0 0; }
.footer-section h3 { color: #fff; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; margin: 0 0 var(--m-sp-3); }
.footer-section a { display: block; color: var(--m-text-muted); font-size: .875rem; text-decoration: none; padding: 5px 0; transition: color .15s ease; }
.footer-section a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--m-border); margin-top: var(--m-sp-6); padding-top: var(--m-sp-5); }
.footer-bottom p { color: var(--m-text-faint); font-size: .75rem; margin: 0; }

/* ===== 15. Motion primitives (test contract) ===== */
[data-parallax]{will-change:transform}

/* ===== 16. Responsive ===== */
@media (max-width: 960px) {
  .feature-grid.feature-grid--bento { grid-template-columns: 1fr; max-width: 560px; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .case-study-layout { grid-template-columns: 1fr; }
  .case-study-sticky { position: static; }
  .case-study-narrative { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-block: var(--sp-section-y) var(--m-sp-7); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-secondary-actions { flex-direction: column; }
  .install-chip { padding: 6px 6px 6px 16px; }
  .install-chip code { font-size: .75rem; }
  .steps-row, .workflow { grid-template-columns: 1fr; }
  .hv-stage { padding: var(--m-sp-3); max-width: 100%; }
  .hv-stage .hv-pipeline { flex-wrap: wrap; justify-content: center; }
  .hero-visual { max-width: 100%; }
  .case-study-narrative { grid-template-columns: 1fr; }
  .terminal-window-body { padding: var(--m-sp-4); font-size: .75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--m-sp-5); }
  .pricing-card { padding: var(--m-sp-6) var(--m-sp-5) var(--m-sp-5); }
}

/* ===== Site-wide layout rhythm =====
   Every vertical band in the site is expressed through the --sp-* tokens.
   Nothing below may reintroduce a bare px value for section/page padding;
   that was what let the homepage drift away from the other pages. */
.hero, .page-hero { padding: var(--sp-section-y-hero) 0 var(--sp-section-y); }
.page-hero { padding-inline: var(--sp-page-gutter); }
.page-hero--flush { padding-block: var(--sp-section-y); }

/* Section bands: one shared rule, many names. The page markup spells these
   differently (.proof vs .product-view-section), and when the two lists drift
   a section silently loses its padding -- so both spellings are listed here. */
.features, .capabilities,
.faq, .faq-section,
.pricing, .pricing-preview,
.terminal-section, .code-section,
.proof, .product-view-section,
.docs-section, .legal-page, .support-page, .contact-section,
.final-cta {
  padding-block: var(--sp-section-y);
}

/* Sections separated by a surface change also carry a hairline. */
.capabilities, .proof, .product-view-section,
.terminal-section, .code-section, .faq, .faq-section {
  background: var(--m-bg-elev);
  border-top: 1px solid var(--m-border);
  border-bottom: 1px solid var(--m-border);
}

/* Horizontal gutter + measure for standalone page shells. */
.docs-section, .legal-page, .support-page, .contact-section {
  padding-inline: var(--sp-page-gutter);
}

/* A page shell runs a little deeper at the bottom than between sections. */
.docs-section, .legal-page, .support-page, .contact-section {
  padding-bottom: var(--sp-page-y-bottom);
}

/* Section intro -> its content, site-wide. */
.section-intro { margin-bottom: var(--sp-intro-gap); }
.section-intro h2 { color: #fff; font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -.025em; margin: 0 0 var(--m-sp-3); line-height: 1.15; }
.section-subtitle { color: var(--m-text-muted); font-size: 1.0625rem; line-height: 1.6; margin: 0; }
.eyebrow { display: inline-block; font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--m-accent); margin-bottom: var(--m-sp-3); }

/* Feature grid (cline-style 2x2) */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--m-sp-4); max-width: 960px; margin: 0 auto; }
.feature-card { padding: var(--m-sp-6); background: var(--m-bg-card); border: 1px solid var(--m-border); border-radius: var(--m-radius-lg); transition: border-color .2s ease, transform .2s ease; }
.feature-card:hover { border-color: var(--m-border-strong); transform: translateY(-2px); }
.feature-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(79,140,255,.1); color: var(--m-accent); margin-bottom: var(--m-sp-4); }
.feature-card h3 { color: #fff; font-size: 1.0625rem; font-weight: 600; margin: 0 0 var(--m-sp-2); letter-spacing: -.01em; }
.feature-card p { color: var(--m-text-muted); font-size: .9375rem; line-height: 1.6; margin: 0; }

/* Steps row (cline-style horizontal numbered steps) — grid rules live in section 7 + breakpoints */
.step { position: relative; padding: var(--m-sp-5) var(--m-sp-4); background: var(--m-bg-card); border: 1px solid var(--m-border); border-radius: var(--m-radius-lg); transition: border-color .2s ease; }
.step:hover { border-color: var(--m-border-strong); }
.step-num { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(79,140,255,.12); color: var(--m-accent); font-size: .8125rem; font-weight: 700; margin-bottom: var(--m-sp-3); }
.step h3 { color: #fff; font-size: 1rem; font-weight: 600; margin: 0 0 var(--m-sp-2); }
.step p { color: var(--m-text-muted); font-size: .875rem; line-height: 1.55; margin: 0; }

/* PV tabs (button-based, replaces radio input pattern) */
.pv-tabs { display: flex; justify-content: center; gap: var(--m-sp-2); margin: 0 auto var(--m-sp-5); flex-wrap: wrap; }
.pv-tab { cursor: pointer; padding: 8px 16px; border-radius: 999px; color: var(--m-text-muted); background: var(--m-bg-card); border: 1px solid var(--m-border); font-size: .875rem; font-weight: 500; transition: all .18s ease; }
.pv-tab:hover { color: var(--m-text); border-color: var(--m-border-strong); }
.pv-tab.is-active { color: #fff; border-color: var(--m-border-strong); background: #1c1c20; }
.pv-panel { display: none; margin: 0 auto; max-width: 960px; }
.pv-panel.is-active { display: block; }

/* ===== product view: real console panels (replaces screenshots) ===== */
.pv-console {
  background: #08090d;
  border: 1px solid var(--m-border-strong);
  border-radius: var(--m-radius-lg);
  overflow: hidden;
  font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
}
.pv-console-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--m-border);
  background: #0c0e14;
}
.pv-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.pv-dot--red { background: #ff5f57; }
.pv-dot--yellow { background: #febc2e; }
.pv-dot--green { background: #28c840; }
.pv-console-title { margin-left: 10px; color: #7b8bb0; font-size: .8125rem; }
.pv-console-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--m-sp-4);
  padding: 18px 20px;
  border-bottom: 1px solid var(--m-border);
}
.pv-console-brand { color: #6f9dff; font-size: 1.375rem; font-weight: 700; letter-spacing: .01em; }
.pv-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  color: #a8e05f;
}
.pv-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #a8e05f; flex: none; }
.pv-console-body {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--m-sp-4);
  padding: 20px;
}
.pv-card {
  border: 1px solid #232838;
  border-radius: 10px;
  padding: 18px 20px;
  background: #0b0d13;
}
.pv-card--ok { border-color: #33561f; background: #0b100a; }
.pv-card-label {
  margin: 0 0 var(--m-sp-3);
  font-size: .75rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase;
  color: #6f9dff; font-family: inherit;
}
.pv-card-title { margin: 0 0 var(--m-sp-4); font-size: .9375rem; color: #dbe3f4; line-height: 1.5; font-family: inherit; }
.pv-card-title code { color: #9ec5ff; }
.pv-checks { list-style: none; margin: 0; padding: 0; }
.pv-checks li {
  position: relative; padding-left: 26px; margin-bottom: 13px;
  font-size: .875rem; color: #b9c4da; line-height: 1.4;
}
.pv-checks li:last-child { margin-bottom: 0; }
.pv-checks li::before {
  content: "\2713"; position: absolute; left: 0; top: -1px;
  color: #a8e05f; font-weight: 700;
}
.pv-verdict { margin: 0 0 var(--m-sp-4); font-size: 1.25rem; color: #a8e05f; font-weight: 500; font-family: inherit; }
.pv-metric { margin: 0 0 var(--m-sp-4); font-size: 1.25rem; color: #a8e05f; font-weight: 500; font-family: inherit; }
.pv-rows { margin: 0; }
.pv-rows > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--m-sp-4);
  margin-bottom: 13px;
}
.pv-rows > div:last-child { margin-bottom: 0; }
.pv-rows dt { color: #8b97b3; font-size: .875rem; }
.pv-rows dd { margin: 0; color: #e6ecf8; font-size: .875rem; text-align: right; }
.pv-rows code { color: #e6ecf8; font-family: inherit; }
.pv-flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  list-style: none; margin: 0; padding: 0 20px 22px;
}
.pv-flow li {
  padding: 5px 13px; border-radius: 999px;
  border: 1px solid #2b3448;
  background: #10141d; color: #8fb6ff;
  font-size: .8125rem;
}
.pv-flow li + li::before {
  content: "\2192"; color: #55617a; margin-right: 8px;
}
.pv-footnote { margin: 0; padding: 0 20px 22px; color: #8b97b3; font-size: .8125rem; line-height: 1.7; }
.pv-tag {
  display: inline-block; margin-right: 6px; padding: 4px 11px; border-radius: 999px;
  border: 1px solid #2b3448; color: #8fb6ff; font-size: .75rem;
}
@media (max-width: 860px) {
  .pv-console-body { grid-template-columns: minmax(0, 1fr); }
  .pv-console-head { flex-wrap: wrap; gap: var(--m-sp-2); }
  .pv-rows > div { flex-wrap: wrap; gap: 2px var(--m-sp-3); }
  .pv-rows dd { text-align: left; }
}

.pv-panel picture { display: block; }
.pv-panel img { display: block; max-width: 100%; height: auto; border-radius: var(--m-radius-lg); border: 1px solid var(--m-border); }

/* Terminal window (cline-style) */
.terminal-window { max-width: 880px; margin: 0 auto; background: #0d0d0f; border: 1px solid var(--m-border-strong); border-radius: var(--m-radius-lg); box-shadow: 0 24px 80px rgba(0,0,0,.5); overflow: hidden; }
.terminal-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #131316; border-bottom: 1px solid var(--m-border); }
.terminal-title { margin-left: auto; color: var(--m-text-faint); font-size: .75rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
/* <pre> keeps a UA margin of ~13px; reset it so the window edge is flush. */
.terminal-body { margin: 0; padding: var(--m-sp-5) var(--m-sp-6); background: #0d0d0f; color: var(--m-text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8125rem; line-height: 1.75; overflow-x: auto; }
.terminal-body code { font: inherit; }
.terminal-dot--red { background: #ff5f57; }
.terminal-dot--yellow { background: #febc2e; }
.terminal-dot--green { background: #28c840; }

/* ASCII art logo — brand blue on dark, monospace block */

/* Hero extras */
.hero-grid { display: flex; flex-direction: column; align-items: center; }
.hero-copy { text-align: center; max-width: 720px; width: 100%; }
/* The pipeline sits under the copy as one centred stack. As a flex row it
   escaped its container and drifted across the headline. */
.hero-visual { width: 100%; max-width: 880px; margin: var(--m-sp-7) auto 0; text-align: center; }
.hv-caption { color: var(--m-text-muted); font-size: .8125rem; margin: var(--m-sp-3) 0 0; }
.hero-facts { display: flex; justify-content: center; gap: var(--m-sp-5); flex-wrap: wrap; list-style: none; padding: 0; margin: var(--m-sp-6) 0 0; }
.hero-fact { display: flex; align-items: center; gap: 6px; color: var(--m-text-muted); font-size: .875rem; }
.hero-fact .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--m-green); flex-shrink: 0; }

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .hero-facts { flex-direction: column; align-items: center; gap: var(--m-sp-2); }
}
