/**
 * Droidwatch landing — visual system.
 *
 * Shared by landing.html, landing_es.html and landing_pt.html so the three
 * locales cannot drift apart. Loaded AFTER tokens.css, which it deliberately
 * overrides: the landing runs the green/graphite palette from the design
 * handoff, while the SPA at /app keeps the indigo tokens untouched. They are
 * separate documents, so nothing leaks between them.
 *
 * The class names the landing JS depends on (.demo-box.is-drag, .is-busy,
 * .is-visible, nav.menu-open, .lang-switch a.active, .lm-*, .form-status) are
 * kept exactly as they were — this file restyles them, it does not rename them.
 */

/* Webfonts (IBM Plex Sans/Mono) are declared once in tokens.css, which this
   file already sits on top of — repeating the @font-face blocks here made the
   browser register every face twice. */

/* ── Palette ───────────────────────────────────────────────────────────────
   Overrides tokens.css for this document only. The landing-compat aliases
   (--card, --text, --muted, --green…) are redefined too, so the handful of
   inline style= attributes inherited from the old markup keep working.       */
:root {
  --bg:            #0e1217;
  --bg-deep:       #0a0d11;
  --surface:       #12171e;
  --surface-2:     #12171e;
  --surface-3:     #171d25;

  --border:        #1d232b;
  --border-strong: #2a323c;
  --border-hover:  #3a4450;

  --text-primary:  #e8ebee;
  --text-secondary:#98a1ab;
  --text-tertiary: #7d8791;
  --text-muted:    #5c6670;
  --text-faint:    #333c46;

  --accent:        #46d99a;
  --accent-hover:  #5ce3a8;
  --accent-ink:    #0e1217;   /* text on top of the accent fill */
  --accent-bg:     #12271e;
  --accent-border: #1f4634;

  --danger:        #e05252;
  --danger-text:   #ff8a7a;
  --danger-bg:     #2a1613;
  --danger-border: #4a251f;
  --warning:       #e0a852;
  --warning-bg:    #2a2113;
  --warning-border:#4a3a1f;

  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --pad:  32px;

  /* Landing-compat aliases used by leftover inline styles */
  --card:   var(--surface);
  --text:   var(--text-primary);
  --muted:  var(--text-secondary);
  --green:  var(--accent);
  --red:    var(--danger);
  --yellow: var(--warning);
  --nav-backdrop: rgba(14, 18, 23, .92);
}

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

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text-primary); text-decoration: none; }
a:hover { color: var(--accent); }

code, pre, .mono { font-family: var(--font-mono); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.rule { border-top: 1px solid var(--border); }

/* Section scaffolding */
section { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--pad); }
.eyebrow {
  font: 500 11px var(--font-mono);
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.section-title, h2.section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.section-sub { font-size: 15px; color: var(--text-secondary); margin-bottom: 44px; }

/* ── Buttons ───────────────────────────────────────────────────────────────*/
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-outline { background: var(--surface); color: var(--text-primary); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--border-hover); color: var(--text-primary); }
.btn-lg { font-size: 15px; padding: 13px 24px; border-radius: 7px; }

/* ── Language banner (soft locale suggestion) ──────────────────────────────*/
.lang-banner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 20px;
  background: var(--accent-bg);
  border-bottom: 1px solid var(--accent-border);
  font-size: 13.5px;
  color: var(--text-secondary);
}
.lang-banner.is-visible { display: flex; }
.lang-banner a { color: var(--accent); font-weight: 600; }
.lang-banner a:hover { color: var(--accent-hover); }
.lang-banner button {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 16px; line-height: 1; padding: 2px 4px;
}
.lang-banner button:hover { color: var(--text-primary); }

/* ── Nav ───────────────────────────────────────────────────────────────────*/
/* The sticky bar spans the full width so its bottom border does; the row inside
   is what gets centred. The mobile dropdown is absolutely positioned against
   <nav>, which is why the max-width lives on .nav-inner and not on <nav>. */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-backdrop);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 16px var(--pad);
}

/* The wordmark has to sit in ONE flex item. With "Droid" as a bare text node
   and "watch" in its own <span>, the gap here lands between them too and the
   brand reads as two words. */
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--text-primary); }
.nav-logo:hover { color: var(--text-primary); }
.nav-logo__text > span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 26px; margin-right: auto; font-size: 13.5px; color: var(--text-secondary); }
.nav-links a { color: var(--text-secondary); }
.nav-links a:hover { color: var(--accent); }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; font: 500 11.5px var(--font-mono); color: var(--text-muted); }
.lang-switch a { color: var(--text-muted); padding: 0 4px; }
.lang-switch a:hover { color: var(--text-secondary); }
.lang-switch a.active { color: var(--text-primary); font-weight: 600; }
.lang-switch span { color: var(--text-faint); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta a.plain { font-size: 13.5px; color: var(--text-secondary); }
.nav-cta a.plain:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border-strong); border-radius: 6px;
  padding: 6px 8px; cursor: pointer; color: var(--text-primary); line-height: 0;
}

/* ── Hero ──────────────────────────────────────────────────────────────────*/
.hero {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 460px; gap: 56px;
  padding: 76px var(--pad) 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-bg); border: 1px solid var(--accent-border);
  padding: 6px 12px; border-radius: 99px; margin-bottom: 24px;
}
.hero-badge::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.hero h1 {
  font-size: 48px; line-height: 1.1; letter-spacing: -.025em; font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero > div > p {
  font-size: 17px; line-height: 1.6; color: var(--text-secondary);
  max-width: 52ch; margin-bottom: 32px; text-wrap: pretty;
}
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-signals { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 36px; font-size: 13px; color: var(--text-tertiary); }

/* ML quality badge — sits under the hero signals, filled in from /api/ml/metrics */
#ml-metrics-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 24px; padding: 8px 14px;
  font: 400 12px var(--font-mono);
  color: var(--text-secondary);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px;
  cursor: help;
}
#ml-metrics-badge strong { color: var(--accent); font-weight: 600; }

/* ── Hero panel: report preview + working drop zone ───────────────────────*/
.hero-panel {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: 0 24px 48px -24px rgba(0,0,0,.6);
}
.hero-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
}
.hero-panel__file { font: 500 11px var(--font-mono); color: var(--text-muted); letter-spacing: .05em; }
.hero-panel__verdict {
  font: 600 11px var(--font-mono);
  color: var(--danger-text); background: var(--danger-bg); border: 1px solid var(--danger-border);
  padding: 4px 10px; border-radius: 5px; white-space: nowrap;
}
.hero-panel__rows { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.hero-panel__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hero-panel__row span:first-child { font-size: 13.5px; font-weight: 500; }
.hero-panel__row span:last-child { font: 500 11px var(--font-mono); color: var(--text-tertiary); white-space: nowrap; }
.hero-panel__sep { height: 1px; background: var(--border); }

/* Working drop zone. Keeps every class the JS toggles. */
.demo-box {
  margin: 0 20px 18px;
  border: 1.5px dashed var(--border-strong); border-radius: 8px;
  padding: 16px; text-align: center; background: var(--bg);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.demo-box:hover { border-color: var(--accent); }
.demo-box.is-drag { border-color: var(--accent); background: var(--accent-bg); }
.demo-box.is-busy { cursor: progress; pointer-events: none; }
.demo-box svg { display: none; }              /* the panel frames it now */
.demo-box h3 { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; overflow-wrap: anywhere; }
.demo-box p { font-size: 12px; color: var(--text-muted); }
.demo-box p a { color: var(--accent); }
.demo-box .demo-fineprint { font-size: 11px; color: var(--text-faint); margin-top: 10px; line-height: 1.5; }
.demo-box .demo-fineprint a { color: var(--text-muted); text-decoration: underline; }
.demo-box .demo-progress {
  display: none; margin: 12px auto 0; max-width: 280px; height: 5px;
  background: var(--border); border-radius: 3px; overflow: hidden;
}
.demo-box .demo-progress.is-visible { display: block; }
.demo-box .demo-progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.demo-box .demo-error { color: var(--danger-text); font-size: 12px; margin-top: 8px; min-height: 1.2em; }
.demo-box .demo-error a { color: var(--accent); font-weight: 600; }

.verdicts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.verdict-pill { font: 500 10px var(--font-mono); padding: 3px 8px; border-radius: 4px; letter-spacing: .04em; }

.app-cta { padding: 0 20px 18px; text-align: center; }
.app-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--accent);
}
.app-cta-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.app-cta-note { display: block; margin-top: 6px; font-size: 11.5px; color: var(--text-muted); }

/* ── Live activity strip ───────────────────────────────────────────────────*/
.live-stats {
  display: none; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap;
  max-width: var(--wrap); margin: 0 auto; padding: 12px var(--pad);
  font: 400 11.5px var(--font-mono); color: var(--text-muted);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.live-stats.is-visible { display: flex; }
.live-stats strong { color: var(--text-secondary); font-weight: 600; }
.live-stats .pulse {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; vertical-align: middle;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ── Stat band ─────────────────────────────────────────────────────────────*/
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--wrap); margin: 0 auto;
}
.stat { padding: 22px var(--pad); border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-val { font: 600 20px var(--font-mono); color: var(--accent); }
.stat-label { font-size: 12.5px; color: var(--text-tertiary); margin-top: 2px; }

/* ── Feature grid ──────────────────────────────────────────────────────────*/
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.feature { background: var(--bg); padding: 26px 28px; }
.feature-tag { font: 500 10.5px var(--font-mono); color: var(--accent); letter-spacing: .1em; margin-bottom: 12px; }
.feature h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: 13px; line-height: 1.6; color: var(--text-tertiary); text-wrap: pretty; }

/* ── Platform cards ────────────────────────────────────────────────────────*/
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.platform { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; padding: 28px 30px; }
.platform__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.platform__name { font-size: 17px; font-weight: 600; }
.platform__name span { font: 400 13px var(--font-mono); color: var(--text-muted); }
.platform__chip { font: 600 10.5px var(--font-mono); padding: 4px 10px; border-radius: 5px; white-space: nowrap; }
.platform__chip.is-ga { color: var(--accent); background: var(--accent-bg); border: 1px solid var(--accent-border); }
.platform__chip.is-static { color: var(--warning); background: var(--warning-bg); border: 1px solid var(--warning-border); }
.platform p { font-size: 13.5px; line-height: 1.65; color: var(--text-secondary); text-wrap: pretty; }
.platform p strong { color: var(--text-primary); font-weight: 600; }

/* ── CI/CD ─────────────────────────────────────────────────────────────────*/
.ci-grid { display: grid; grid-template-columns: 1fr 480px; gap: 56px; align-items: start; }
.ci-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ci-tile {
  border: 1px solid var(--border-strong); border-radius: 8px; padding: 14px 16px;
  font-size: 13.5px; font-weight: 500; background: var(--surface);
}
.ci-tile .ga { font: 500 10px var(--font-mono); color: var(--accent); }
.ci-tile .links { display: block; margin-top: 6px; font-size: 11.5px; color: var(--text-muted); font-weight: 400; }
.ci-tile .links a { color: var(--text-muted); }
.ci-tile .links a:hover { color: var(--accent); }
.ci-code { background: var(--bg-deep); border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; }
.ci-code__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  font: 500 11px var(--font-mono); color: var(--text-muted);
}
.ci-code pre {
  margin: 0; padding: 18px 20px; overflow-x: auto;
  font: 400 12.5px/1.7 var(--font-mono); color: var(--text-secondary);
}
.ci-code .c { color: var(--text-muted); }
.ci-code .k { color: var(--accent); }
.ci-code .s { color: var(--warning); }

/* ── Trust ─────────────────────────────────────────────────────────────────*/
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 40px; }
.trust-item h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }
.trust-item p { font-size: 13px; line-height: 1.6; color: var(--text-tertiary); text-wrap: pretty; }
.trust-item p a { color: var(--accent); }

/* ── Pricing ───────────────────────────────────────────────────────────────*/
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; padding: 26px 24px; position: relative; }
.plan.featured { border-color: var(--accent); }
.plan-badge {
  position: absolute; top: -11px; left: 24px;
  font: 600 10px var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); padding: 4px 10px; border-radius: 99px;
}
.plan-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.plan-price { margin: 10px 0 4px; font: 600 30px var(--font-mono); }
.plan-price span { font-family: var(--font-sans); font-size: 13px; font-weight: 400; color: var(--text-tertiary); }
.plan-desc { font-size: 12.5px; color: var(--text-tertiary); margin-bottom: 18px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; font-size: 13px; color: var(--text-secondary); }
.plan-features li { display: flex; align-items: flex-start; gap: 8px; }
.plan-features li::before { content: "+"; color: var(--accent); font-family: var(--font-mono); flex-shrink: 0; }
.plan-features li.no { color: var(--text-muted); }
.plan-features li.no::before { content: "\2013"; color: var(--text-faint); }
.plan-features li strong { color: var(--text-primary); font-weight: 600; }
.plan .btn { display: block; width: 100%; text-align: center; padding: 11px 0; }

/* ── FAQ ───────────────────────────────────────────────────────────────────*/
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; align-items: start; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; font-size: 15px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font: 400 18px var(--font-mono); color: var(--text-muted); flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { padding: 0 0 18px; font-size: 13.5px; line-height: 1.65; color: var(--text-secondary); text-wrap: pretty; }
.faq-item p strong { color: var(--text-primary); }

/* ── Enterprise ────────────────────────────────────────────────────────────*/
#enterprise { max-width: none; padding: 0; background: var(--surface); border-top: 1px solid var(--border); }
.enterprise-inner { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--pad); }
.enterprise-grid { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: start; }
.enterprise-info h2 { font-size: 32px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; }
.enterprise-info > p { font-size: 15px; line-height: 1.65; color: var(--text-secondary); margin-bottom: 26px; text-wrap: pretty; }
.enterprise-info ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.enterprise-info ul li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-tertiary); }
.enterprise-info ul li::before { content: "+"; color: var(--accent); font-family: var(--font-mono); flex-shrink: 0; }

.contact-form { background: var(--bg); border: 1px solid var(--border-strong); border-radius: 12px; padding: 28px 30px; }
.contact-form h3 { font-size: 16px; font-weight: 600; margin-bottom: 18px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font: 500 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 7px;
  padding: 11px 14px; color: var(--text-primary); font-family: inherit; font-size: 13px;
  outline: none; transition: border-color .15s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 84px; }
.checkboxes-label { display: block; font: 500 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.checkbox-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-secondary); cursor: pointer; }
.checkbox-item input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; }
.form-status { font-size: 12.5px; margin-top: 10px; min-height: 1.2em; }
.form-status.success { color: var(--accent); }
.form-status.error { color: var(--danger-text); }

/* Success panel. Replaces the form once an inquiry is accepted: the only sign
   it had worked was .form-status going green, one line of 12.5px text directly
   under the button, where the form's own helper text lives — something that
   happens should be the thing on screen, not a footnote to the thing that
   caused it. Same failure as a close button with no X in it. */
.form-success { text-align: center; padding: 30px 4px 12px; }
.form-success-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent-subtle); border: 1px solid var(--accent-border);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.form-success-icon svg { width: 22px; height: 22px; }
.form-success h4 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.form-success p { font-size: 13px; line-height: 1.6; color: var(--text-secondary); margin: 0 auto; max-width: 36ch; }
.form-success .fs-note {
  margin-top: 16px; font: 500 10.5px var(--font-mono); letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted); max-width: none;
  /* A long address in a monospace face offers no break opportunity of its own,
     and the card is ~334px wide inside its padding on a phone. */
  overflow-wrap: anywhere;
}
.form-success .fs-note b { color: var(--text-secondary); font-weight: 600; text-transform: none; }

/* ── Closing CTA ───────────────────────────────────────────────────────────*/
.closing { text-align: center; padding: 64px var(--pad); max-width: var(--wrap); margin: 0 auto; }
.closing h2 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
.closing p { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; }

/* ── Sample report figure ──────────────────────────────────────────────────*/
.sample { max-width: var(--wrap); margin: 0 auto; padding: 64px var(--pad); text-align: center; }
.sample img { width: 100%; height: auto; border: 1px solid var(--border-strong); border-radius: 10px; }
.sample figcaption { margin-top: 12px; font: 400 11.5px var(--font-mono); color: var(--text-muted); }

/* ── Footer ────────────────────────────────────────────────────────────────*/
footer { border-top: 1px solid var(--border); }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 32px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-muted);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }
.footer-note { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad) 28px; font-size: 12px; color: var(--text-faint); }
.footer-note a { color: var(--text-muted); }
footer .social { display: flex; gap: 10px; }
footer .social a {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border: 1px solid var(--border); border-radius: 7px; color: var(--text-muted);
  transition: color .15s ease, border-color .15s ease;
}
footer .social a:hover { color: var(--accent); border-color: var(--accent-border); }
footer .social svg { width: 15px; height: 15px; fill: currentColor; }

/* ── Recoverable-upload dialog ─────────────────────────────────────────────*/
.lm-backdrop {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  background: rgba(10, 13, 17, .78);
}
.lm-backdrop[hidden] { display: none; }
.lm {
  width: 100%; max-width: 460px; text-align: left;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
.lm-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 6px; }
.lm-head h2 { font-size: 15px; font-weight: 600; margin: 0; }
.lm-x { margin-left: auto; padding: 4px; line-height: 0; background: none; border: none; color: var(--text-muted); cursor: pointer; }
.lm-x:hover { color: var(--text-primary); }
.lm-x svg { width: 17px; height: 17px; }
.lm-body { padding: 8px 20px 20px; }
.lm-file {
  font: 400 11.5px var(--font-mono); color: var(--text-secondary);
  background: var(--warning-bg); border: 1px solid var(--warning-border);
  border-radius: 6px; padding: 9px 11px; margin-bottom: 14px;
  word-break: break-all; line-height: 1.45;
}
.lm-body p { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.55; }
.lm-body p strong { color: var(--text-primary); }
.lm-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ── Responsive ────────────────────────────────────────────────────────────*/
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .ci-grid { grid-template-columns: 1fr; gap: 36px; }
  .enterprise-grid { grid-template-columns: 1fr; gap: 36px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; order: 3; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--nav-backdrop); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border); padding: 4px 24px 12px;
  }
  nav.menu-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 2px; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { margin-left: auto; }
}

/* Below ~560px the logo, the language switch, the sign-up button and the
   hamburger stop fitting on one line and push the page into a horizontal
   scroll. Wrapping the bar onto two rows keeps every control reachable —
   hiding the CTA or the locale switch would cost more than the extra row.
   The dropdown is anchored at top:100% so it follows the taller bar. */
@media (max-width: 560px) {
  .nav-inner { flex-wrap: wrap; row-gap: 10px; gap: 12px; }
  .nav-logo { margin-right: auto; }
  .nav-toggle { order: 2; }
  .nav-cta { order: 3; width: 100%; justify-content: space-between; }
  .nav-cta .btn { font-size: 13px; padding: 8px 14px; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; }
  .hero { padding: 48px var(--pad) 40px; }
  .hero h1 { font-size: 34px; }
  .hero > div > p { font-size: 15px; }
  .section-title, h2.section-title, .enterprise-info h2, .closing h2 { font-size: 24px; }
  section, .enterprise-inner { padding: 48px var(--pad); }
  .features, .platforms, .trust, .pricing, .faq, .ci-tiles, .enterprise-info ul, .checkbox-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--border); }
  .stat:nth-child(2n) { border-right: none; }
  .nav-cta .btn-outline { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
