/* DrawSight public site — shared design system.
 * Workstream L (2026-05-02) initial. Premium polish 2026-05-02 evening:
 * webfonts wired (Space Grotesk + Inter), hero stat strip, pricing
 * section, "at a glance" legal callouts, refined cards / buttons /
 * dividers / footer.
 *
 * Brand tokens mirror the in-app dark palette (Architectural Ledger
 * design system) so the public site reads as the same product:
 *   --primary       : #8083FF  (primaryContainer, dark mode)
 *   --primary-soft  : #C0C1FF  (primary, dark mode — used for hovers)
 *   --tertiary      : #4FDBC8  (cyan accent, dark mode)
 *   --bg            : #0C1322  (scaffold background)
 *
 * Type system mirrors lib/core/app_typography.dart:
 *   Headings: Space Grotesk (geometric authority)
 *   Body / labels: Inter (field-readable)
 */

:root {
  --primary: #8083FF;
  --primary-soft: #C0C1FF;
  --primary-deep: #494BD6;
  --primary-glow: rgba(128, 131, 255, 0.16);
  --primary-glow-strong: rgba(128, 131, 255, 0.28);
  --tertiary: #4FDBC8;
  --tertiary-glow: rgba(79, 219, 200, 0.18);
  --bg: #0C1322;
  --bg-grad:
    radial-gradient(ellipse 60% 60% at 18% 0%, rgba(128, 131, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 50% at 100% 0%, rgba(79, 219, 200, 0.10), transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(128, 131, 255, 0.06), transparent 60%),
    linear-gradient(180deg, #0E142A 0%, #0C1322 55%, #0A1020 100%);
  --surface: #161C30;
  --surface-high: #1E2540;
  --surface-low: #11172A;
  --surface-glass: rgba(22, 28, 48, 0.72);
  --text: #F2F4F8;
  --text-soft: #A8AEC2;
  --text-muted: #7E839A;
  --outline: rgba(255, 255, 255, 0.08);
  --outline-strong: rgba(255, 255, 255, 0.16);
  --outline-soft: rgba(255, 255, 255, 0.04);
  --warning: #FFB95F;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.18), 0 16px 48px rgba(0, 0, 0, 0.32);
  --shadow-glow: 0 8px 32px var(--primary-glow), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  --font-heading: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}

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

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

body {
  min-height: 100vh;
  background: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--primary-soft); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--text); }
code {
  font-family: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  background: var(--surface-low);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  color: var(--primary-soft);
}

h1, h2, h3, h4, h5 { font-family: var(--font-heading); }

.shell { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 80px; }

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 12px 18px;
  background: var(--surface-glass);
  border: 1px solid var(--outline);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: var(--text);
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.nav-links { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--surface-high); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 40px; text-align: center; position: relative; }
.hero img.hero-logo {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  box-shadow: 0 16px 56px var(--primary-glow-strong), 0 1px 0 rgba(255, 255, 255, 0.10) inset;
  margin-bottom: 28px;
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.4vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
  max-width: 22ch;
  margin: 0 auto 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #C7CCE0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lede {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
  border: none;
  min-height: 48px;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--primary) 100%);
  color: #0D0096;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 8px 28px var(--primary-glow-strong);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.32) inset, 0 12px 36px var(--primary-glow-strong);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--surface-glass);
  color: var(--text);
  border: 1px solid var(--outline-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-secondary:hover { background: var(--surface-high); border-color: rgba(255, 255, 255, 0.24); }

/* ── Hero stat strip ─────────────────────────────────────────────── */
.hero-stats {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin: 48px auto 0;
  padding: 20px 8px;
  background: var(--surface-glass);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-stats .stat {
  text-align: center;
  padding: 4px 16px;
  border-right: 1px solid var(--outline);
}
.hero-stats .stat:last-child { border-right: 0; }
.hero-stats .stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.1;
}
.hero-stats .stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Section heads ─────────────────────────────────────────────── */
.section-head { text-align: center; margin: 72px 0 32px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.018em;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.15;
}
.section-head p { max-width: 54ch; margin: 0 auto; color: var(--text-soft); font-size: 1.02rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-soft);
  margin-bottom: 14px;
  padding: 4px 10px;
  background: var(--primary-glow);
  border-radius: 999px;
}

/* Subtle hairline divider with center glyph between sections */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 56px auto 0;
  max-width: 320px;
  color: var(--text-muted);
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--outline-strong), transparent);
}
.section-divider span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Cards / grid ───────────────────────────────────────────────── */
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--outline-strong);
  box-shadow: var(--shadow-md);
}
.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--primary-glow);
  color: var(--primary-soft);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 16px;
  border: 1px solid var(--outline-strong);
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.card p { color: var(--text-soft); font-size: 0.95rem; line-height: 1.55; }

/* ── Feature grid (richer card with inline SVG icon) ──────────────── */
.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  margin: 0 auto;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.feature:hover {
  transform: translateY(-2px);
  border-color: var(--outline-strong);
  box-shadow: var(--shadow-md);
}
.feature .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-glow) 0%, var(--tertiary-glow) 100%);
  color: var(--primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid var(--outline-strong);
}
.feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.feature p { color: var(--text-soft); font-size: 0.94rem; line-height: 1.55; }

/* ── Privacy callout ────────────────────────────────────────────── */
.callout {
  background: linear-gradient(135deg, rgba(128, 131, 255, 0.14), rgba(79, 219, 200, 0.06));
  border: 1px solid var(--outline-strong);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  margin: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(192, 193, 255, 0.4), transparent 50%, rgba(79, 219, 200, 0.3));
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.callout h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin-bottom: 16px;
  letter-spacing: -0.018em;
  line-height: 1.2;
  background: linear-gradient(180deg, #FFFFFF 0%, #C7CCE0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.callout p { max-width: 56ch; margin: 0 auto; color: var(--text-soft); }
.callout p + p { margin-top: 12px; }

/* ── Trust bullets (legacy — retained for compatibility) ─────────── */
.trust-list { list-style: none; padding: 0; max-width: 60ch; margin: 0 auto; }
.trust-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--outline);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--text-soft);
}
.trust-list li:last-child { border-bottom: 0; }
.trust-list li::before {
  content: "✓";
  color: var(--tertiary);
  font-weight: 700;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--tertiary-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* ── Pricing ────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.price-card:hover { transform: translateY(-2px); border-color: var(--outline-strong); box-shadow: var(--shadow-md); }
.price-card.featured {
  border-color: rgba(128, 131, 255, 0.42);
  background: linear-gradient(180deg, rgba(128, 131, 255, 0.08), var(--surface) 80%);
  box-shadow: 0 8px 32px var(--primary-glow);
  position: relative;
}
.price-card.featured::after {
  content: "Most field-ready";
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: #0D0096;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-card .tier-name {
  font-family: var(--font-heading);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 10px;
}
.price-card .price {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.price-card .price small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}
.price-card .tier-blurb {
  color: var(--text-soft);
  font-size: 0.96rem;
  margin-bottom: 18px;
  line-height: 1.5;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.price-card ul li {
  padding: 10px 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--outline-soft);
}
.price-card ul li:last-child { border-bottom: 0; }
.price-card ul li::before {
  content: "✓";
  color: var(--tertiary);
  font-weight: 700;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
}
.price-card .btn { width: 100%; }
.price-note {
  text-align: center;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ── FAQ accordion (no JS — uses <details>) ─────────────────────── */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 0;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: var(--outline-strong); }
.faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  letter-spacing: -0.005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.15s ease;
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; color: var(--primary-soft); }
.faq details p { padding: 0 22px 20px; color: var(--text-soft); font-size: 0.95rem; line-height: 1.6; }
.faq details a { color: var(--primary-soft); }

/* ── Closing CTA strip (above footer) ────────────────────────────── */
.cta-strip {
  margin-top: 72px;
  padding: 36px;
  text-align: center;
  background: linear-gradient(135deg, rgba(128, 131, 255, 0.10), rgba(79, 219, 200, 0.05));
  border: 1px solid var(--outline-strong);
  border-radius: var(--radius-xl);
}
.cta-strip h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  letter-spacing: -0.018em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.cta-strip p { color: var(--text-soft); margin-bottom: 22px; max-width: 50ch; margin-left: auto; margin-right: auto; }

/* ── Legal-page layout (privacy/terms/delete) ───────────────────── */
.legal-page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 16px; }
.legal-toc {
  position: sticky;
  top: 24px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 20px;
}
.legal-toc .eyebrow { margin-bottom: 14px; }
.legal-toc ul { list-style: none; padding: 0; }
.legal-toc li { padding: 2px 0; }
.legal-toc a {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.4;
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 2px solid transparent;
}
.legal-toc a:hover { color: var(--text); background: var(--surface-high); border-left-color: var(--primary-soft); }

.legal-body { max-width: 70ch; }
.legal-body h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -0.022em;
  margin-bottom: 16px;
  line-height: 1.12;
  background: linear-gradient(180deg, #FFFFFF 0%, #C7CCE0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.legal-body .effective {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--outline-strong);
  color: var(--text-soft);
  font-size: 0.86rem;
  margin-bottom: 28px;
}
.legal-body .effective::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--tertiary);
  box-shadow: 0 0 8px var(--tertiary-glow);
}
.legal-body h2 {
  font-family: var(--font-heading);
  font-size: 1.36rem;
  font-weight: 600;
  margin: 40px 0 14px;
  letter-spacing: -0.008em;
  scroll-margin-top: 24px;
  color: var(--text);
  padding-top: 16px;
  border-top: 1px solid var(--outline);
  position: relative;
}
.legal-body h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--primary-soft);
}
.legal-body h2:first-of-type::before { display: none; }
.legal-body p, .legal-body li { color: var(--text-soft); font-size: 1rem; line-height: 1.72; }
.legal-body p { margin-bottom: 14px; }
.legal-body ul, .legal-body ol { padding-left: 24px; margin-bottom: 14px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--primary-soft); border-bottom: 1px solid var(--outline-strong); }
.legal-body a:hover { color: var(--text); border-color: var(--text); }

/* "At a glance" highlights — premium summary card under legal H1.
 * Pure presentation: lets readers see the load-bearing commitments
 * at a glance without skipping the legally-binding body below. */
.legal-glance {
  background: linear-gradient(135deg, rgba(128, 131, 255, 0.08), rgba(79, 219, 200, 0.04));
  border: 1px solid var(--outline-strong);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 0 0 32px;
}
.legal-glance .eyebrow { margin-bottom: 12px; }
.legal-glance h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 6px;
}
.legal-glance p {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
}
.legal-glance .glance-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.legal-glance .glance-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.legal-glance .glance-item .check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--tertiary-glow);
  color: var(--tertiary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 2px;
  border: 1px solid rgba(79, 219, 200, 0.32);
}
.legal-glance .glance-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--outline);
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--outline);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col a { display: block; color: var(--text-soft); font-size: 0.94rem; padding: 5px 0; }
.footer-col a:hover { color: var(--text); }
.footer-col p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-brand img { width: 28px; height: 28px; border-radius: 6px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--outline);
  color: var(--text-muted);
  font-size: 0.84rem;
  text-align: center;
}
.footer-bottom .dot {
  display: inline-block;
  margin: 0 10px;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-page { grid-template-columns: 1fr; gap: 28px; }
  .legal-toc { position: static; }
  .footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .shell { width: min(1100px, calc(100% - 24px)); padding: 20px 0 60px; }
  .nav { padding: 10px 14px; }
  .hero { padding: 36px 0 24px; }
  .hero img.hero-logo { width: 84px; height: 84px; border-radius: 22px; margin-bottom: 22px; }
  .grid-3, .grid-2, .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .callout { padding: 28px 22px; }
  .cta-strip { padding: 28px 22px; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .hero-stats .stat { border-right: 0; border-bottom: 1px solid var(--outline); padding-bottom: 12px; }
  .hero-stats .stat:last-child { border-bottom: 0; padding-bottom: 4px; }
  .legal-glance .glance-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
}
