/* Public lander (/). Dark navy design with the shared blue accent. Colours, header, footer, skip
   link and base elements come from brand.css (loaded first); this file holds lander-only layout,
   scoped to body.lander. The light sections keep their own --l-light-* palette. */

body.lander {
  --l-light-bg: #f6f7f9;
  --l-light-text: #0b1324;
  --l-light-muted: #4a5568;
  --l-light-accent: #1f5fc8;
  font: 400 clamp(1rem, 0.96rem + 0.2vw, 1.0625rem) / 1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body.lander .l-wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
body.lander h1,
body.lander h2,
body.lander h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0; }
body.lander h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); font-weight: 750; }
body.lander h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); font-weight: 700; }
body.lander h3 { font-size: 1.1875rem; font-weight: 650; }
body.lander p,
body.lander li { max-width: 68ch; }
body.lander :focus-visible { outline-offset: 3px; border-radius: 4px; }

/* Buttons (≥ 44px touch targets) */
body.lander .l-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
body.lander .l-btn svg { flex: none; }
body.lander .l-btn-primary { background: var(--accent); color: var(--accent-ink); }
body.lander .l-btn-primary:hover { background: var(--accent-hover); }
body.lander .l-btn-primary:disabled { opacity: 0.7; cursor: progress; }
body.lander .l-btn-ghost { background: transparent; color: var(--text); border-color: var(--control-border); }
body.lander .l-btn-ghost:hover { border-color: var(--accent); color: #fff; }

/* Header and footer: shared markup and styles (brand.css), at the lander's wider page width */
body.lander .site-header .wrap,
body.lander .site-footer .wrap { max-width: 1120px; padding: 0 clamp(16px, 4vw, 32px); }
body.lander .site-footer { margin-top: 0; }
body.lander .header-inner { flex-wrap: nowrap; }
body.lander .brand { min-width: 0; }
body.lander .site-footer p { max-width: none; }

/* Hero */
body.lander .l-hero {
  padding: clamp(40px, 7vw, 88px) 0;
  /* Subtle background: a soft accent glow plus a faint grid, both pure CSS. */
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(76, 141, 255, 0.14), transparent 60%),
    linear-gradient(rgba(154, 167, 189, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(154, 167, 189, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg);
}
body.lander .l-hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
body.lander .l-lede { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); color: var(--muted); margin: 18px 0 0; }
body.lander .l-local-note {
  display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-weight: 600; font-size: 0.9375rem;
}
body.lander .is-hidden { display: none !important; }

/* Cards */
body.lander .l-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
body.lander .l-preview h2 { font-size: 1.3125rem; }
body.lander .l-preview-note { color: var(--muted); font-size: 0.9375rem; margin: 8px 0 16px; }
body.lander .l-form { display: flex; flex-direction: column; gap: 10px; }
body.lander .l-form input {
  min-height: 48px; width: 100%; min-width: 0; font: inherit; padding: 10px 14px;
  border-radius: 10px; border: 1px solid var(--control-border); background: var(--bg); color: var(--text);
}
body.lander .l-form input::placeholder { color: var(--muted); }
body.lander .l-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
body.lander .form-error { color: var(--fail); margin: 12px 0 0; font-weight: 600; }
body.lander .l-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 14px 0 0; }
body.lander .spinner.small { width: 18px; height: 18px; border-width: 2px; }

/* Preview result (same IDs and behaviour as before) */
body.lander .preview-result { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
body.lander .preview-head { display: flex; gap: 14px; align-items: center; }
body.lander .preview-head .grade { width: 60px; height: 60px; font-size: 30px; border-radius: 14px; flex: none; }
body.lander .summary-domain { margin: 0; font-weight: 650; word-break: break-all; }
body.lander .preview-limited { margin: 2px 0 0; color: var(--muted); font-size: 0.875rem; }
body.lander .preview-items { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
body.lander .preview-items li { display: flex; gap: 10px; align-items: center; }
body.lander .preview-cta { margin: 0; padding-top: 14px; border-top: 1px solid var(--border); font-weight: 600; }

/* Sections */
body.lander .l-section { padding: clamp(48px, 8vw, 96px) 0; }
body.lander .l-section-lede { color: var(--muted); margin: 10px 0 28px; }
body.lander .l-cards { display: grid; gap: 18px; }
body.lander .l-icon { color: var(--accent); display: block; margin-bottom: 14px; }
body.lander .l-icon-inline { color: var(--accent); flex: none; }
body.lander .l-list { margin: 12px 0 0; padding-left: 20px; color: var(--text); }
body.lander .l-list li { margin: 6px 0; }
body.lander .l-suite { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; color: var(--muted); }

/* Light sections */
body.lander .l-light { background: var(--l-light-bg); color: var(--l-light-text); }
body.lander .l-light .l-section-lede,
body.lander .l-light p { color: var(--l-light-muted); }
body.lander .l-light .l-icon-inline { color: var(--l-light-accent); }
body.lander .l-light :focus-visible { outline-color: var(--l-light-accent); }

/* How it works */
body.lander .l-steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
body.lander .l-steps li { counter-increment: step; background: #fff; border: 1px solid #dfe3ea; border-radius: var(--radius); padding: 22px; max-width: none; }
body.lander .l-steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px;
  border-radius: 50%; background: var(--l-light-accent); color: #fff; font-weight: 750;
}
body.lander .l-steps h3 { color: var(--l-light-text); }
body.lander .l-steps p { margin: 8px 0 0; }

/* What you get + sample report mock (not interactive) */
body.lander .l-sample-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
body.lander .l-get-list { list-style: none; padding: 0; }
body.lander .l-get-list li { display: flex; gap: 10px; align-items: center; }
body.lander .l-sample { margin: 0; }
body.lander .l-sample figcaption { color: var(--muted); font-size: 0.875rem; font-weight: 600; margin-bottom: 10px; }
body.lander .l-mock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; pointer-events: none; user-select: none; }
body.lander .l-mock-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
body.lander .l-mock-grade { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; font-weight: 800; background: var(--grade-c); color: var(--grade-ink); flex: none; }
body.lander .l-mock-title { display: flex; flex-direction: column; min-width: 0; }
body.lander .l-mock-tool { font-weight: 650; }
body.lander .l-mock-domain { color: var(--muted); font-size: 0.875rem; }
body.lander .l-mock-chip { margin-left: auto; font-size: 0.8125rem; font-weight: 600; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); white-space: nowrap; }
body.lander .l-mock-rows { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.9375rem; }
body.lander .l-mock-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); max-width: none; }
body.lander .l-mock-fix { flex-basis: 100%; display: grid; gap: 6px; margin-top: 4px; padding: 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); }
body.lander .l-mock-fix-title { font-size: 0.8125rem; font-weight: 650; color: var(--accent); }
body.lander .l-mock-fix code { font: 0.8125rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
body.lander .l-mock-fix-note { font-size: 0.8125rem; color: var(--muted); }

/* Standards */
body.lander .l-standards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
body.lander .l-standards li { display: flex; gap: 10px; align-items: flex-start; color: var(--l-light-text); }
body.lander .l-standards li svg { margin-top: 3px; }

/* CTA band */
body.lander .l-cta { padding: clamp(40px, 6vw, 72px) 0; background: linear-gradient(135deg, #12224a, #0b1324); border-top: 1px solid var(--border); }
body.lander .l-cta-inner { display: grid; gap: 22px; }
body.lander .l-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Larger screens */
@media (min-width: 640px) {
  body.lander .l-form { flex-direction: row; }
  body.lander .l-form button { flex: none; }
  body.lander .l-cards { grid-template-columns: repeat(2, 1fr); }
  body.lander .l-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  body.lander .l-hero-grid { grid-template-columns: 1.1fr 1fr; }
  body.lander .l-cards { grid-template-columns: repeat(3, 1fr); }
  body.lander .l-sample-grid { grid-template-columns: 1fr 1.1fr; }
  body.lander .l-cta-inner { grid-template-columns: 1fr auto; align-items: center; }
}
@media (max-width: 420px) {
  body.lander .l-btn { padding: 10px 14px; }
}


/* Legal pages (/terms, /privacy): the text between the LEGAL TEXT markers, generated by scripts/sync-legal.js */
body.lander .legal { max-width: 820px; padding-top: clamp(32px, 6vw, 64px); padding-bottom: clamp(40px, 8vw, 80px); }
body.lander .legal h1 { margin-bottom: 10px; }
body.lander .legal h2 { font-size: 1.25rem; margin: 32px 0 8px; }
body.lander .legal p, body.lander .legal li { color: var(--text); }
body.lander .legal ul { padding-left: 22px; }
body.lander .legal li { margin: 6px 0; }
body.lander .legal .legal-updated { margin: 4px 0 14px; color: var(--muted); font-size: 0.9375rem; }
body.lander .legal .legal-note { margin: 0 0 8px; padding: 10px 14px; border-left: 4px solid var(--warn); border-radius: 8px; background: var(--warn-bg); }
body.lander .legal code { font-size: 0.9em; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); }
body.lander .preview-disclaimer .results-disclaimer { margin: 0 0 14px; }
