/* ==========================================================================
   JibonOS — "Safe" design system
   Plain CSS implementation of DESIGN.md (no framework, no inline styles).
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Surfaces */
  --surface: #f8f9ff;
  --surface-lowest: #ffffff;
  --surface-low: #eff4ff;
  --surface-container: #e5eeff;
  --surface-high: #dce9ff;
  --surface-highest: #d3e4fe;
  --surface-tint: #565e74;

  /* Content */
  --on-surface: #0b1c30;
  --on-surface-variant: #45464d;
  --outline: #76777d;
  --outline-variant: #c6c6cd;
  --hairline: #e2e8f0;

  /* Brand */
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --on-primary: #ffffff;
  --inverse-surface: #213145;
  --inverse-on-surface: #eaf1ff;
  --inverse-primary: #bec6e0;

  --secondary: #006c4a;
  --on-secondary: #ffffff;
  --secondary-container: #82f5c1;
  --on-secondary-container: #00714e;
  --secondary-fixed: #85f8c4;
  --secondary-fixed-dim: #68dba9;
  --on-secondary-fixed: #002114;
  --on-secondary-fixed-variant: #005137;

  --error: #ba1a1a;
  --on-error: #ffffff;
  --error-container: #ffdad6;
  --on-error-container: #93000a;

  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;

  /* Spacing (8px rhythm) */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --gutter: 1.5rem;
  --margin: 1.5rem;

  /* Radii */
  --r-sm: 0.25rem;
  --r: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-full: 9999px;

  /* Elevation */
  --shadow-1: 0 1px 3px 0 rgba(15, 23, 42, 0.03), 0 1px 2px -1px rgba(15, 23, 42, 0.02);
  --shadow-2: 0 4px 12px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-3: 0 20px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-phone: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);

  /* Theme-aware helpers */
  --ink: #0f172a;              /* deep "feature" cards (stay dark in both themes) */
  --raised: #ffffff;           /* active tab / raised control */
  --header-bg: rgba(248, 249, 255, 0.85);
  --mobile-nav-bg: rgba(248, 249, 255, 0.97);
  --glass: rgba(255, 255, 255, 0.9);
  --glow-a: rgba(133, 248, 196, 0.3);
  --glow-b: rgba(211, 228, 254, 0.6);
  --success-soft: rgba(0, 108, 74, 0.1);
  --success-tint: rgba(133, 248, 196, 0.5);
  --success-tint-fg: #002114;
  --error-soft: rgba(186, 26, 26, 0.1);
  --passport-bg: rgba(133, 248, 196, 0.2);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

/* ---------- 1b. Dark theme ----------
   Applied when the OS prefers dark (unless the visitor chose light),
   or when the visitor explicitly chose dark via the header toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #0a101d; --surface-lowest: #101828; --surface-low: #152034;
    --surface-container: #1a2740; --surface-high: #22314d; --surface-highest: #2a3a58;
    --surface-tint: #bec6e0;
    --on-surface: #e6edf9; --on-surface-variant: #a9b4c8;
    --outline: #8a94a8; --outline-variant: #3a4760; --hairline: rgba(255, 255, 255, 0.08);
    --primary: #e6edf9; --primary-hover: #ffffff; --on-primary: #0b1220;
    --inverse-surface: #16233a;
    --secondary: #68dba9; --on-secondary: #003826;
    --secondary-container: #005137; --on-secondary-container: #85f8c4;
    --error: #ffb4ab; --on-error: #690005; --error-container: #4a1215; --on-error-container: #ffdad6;
    --amber-50: #251c0b; --amber-100: #3a2b0c; --amber-600: #fbbf24;
    --amber-700: #fcd34d; --amber-800: #fde68a; --amber-900: #fef3c7;
    --shadow-1: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 4px 12px -2px rgba(0, 0, 0, 0.5);
    --shadow-3: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-phone: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 50px rgba(0, 0, 0, 0.55);
    --shadow-xl: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --ink: #16213a; --raised: #22314d;
    --header-bg: rgba(10, 16, 29, 0.85); --mobile-nav-bg: rgba(10, 16, 29, 0.97);
    --glass: rgba(21, 32, 52, 0.9);
    --glow-a: rgba(104, 219, 169, 0.12); --glow-b: rgba(59, 90, 150, 0.25);
    --success-soft: rgba(104, 219, 169, 0.12); --success-tint: rgba(104, 219, 169, 0.16); --success-tint-fg: #85f8c4;
    --error-soft: rgba(255, 180, 171, 0.12);
    --passport-bg: rgba(104, 219, 169, 0.1);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #0a101d; --surface-lowest: #101828; --surface-low: #152034;
  --surface-container: #1a2740; --surface-high: #22314d; --surface-highest: #2a3a58;
  --surface-tint: #bec6e0;
  --on-surface: #e6edf9; --on-surface-variant: #a9b4c8;
  --outline: #8a94a8; --outline-variant: #3a4760; --hairline: rgba(255, 255, 255, 0.08);
  --primary: #e6edf9; --primary-hover: #ffffff; --on-primary: #0b1220;
  --inverse-surface: #16233a;
  --secondary: #68dba9; --on-secondary: #003826;
  --secondary-container: #005137; --on-secondary-container: #85f8c4;
  --error: #ffb4ab; --on-error: #690005; --error-container: #4a1215; --on-error-container: #ffdad6;
  --amber-50: #251c0b; --amber-100: #3a2b0c; --amber-600: #fbbf24;
  --amber-700: #fcd34d; --amber-800: #fde68a; --amber-900: #fef3c7;
  --shadow-1: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 4px 12px -2px rgba(0, 0, 0, 0.5);
  --shadow-3: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-phone: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 50px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --ink: #16213a; --raised: #22314d;
  --header-bg: rgba(10, 16, 29, 0.85); --mobile-nav-bg: rgba(10, 16, 29, 0.97);
  --glass: rgba(21, 32, 52, 0.9);
  --glow-a: rgba(104, 219, 169, 0.12); --glow-b: rgba(59, 90, 150, 0.25);
  --success-soft: rgba(104, 219, 169, 0.12); --success-tint: rgba(104, 219, 169, 0.16); --success-tint-fg: #85f8c4;
  --error-soft: rgba(255, 180, 171, 0.12);
  --passport-bg: rgba(104, 219, 169, 0.1);
}

/* ---------- 2. Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }

::selection { background: var(--secondary-fixed); color: var(--on-secondary-fixed); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--r);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.75rem 1rem; border-radius: var(--r);
  background: var(--primary); color: var(--on-primary); font-weight: 600;
  transition: top 0.15s;
}
.skip-link:focus { top: 1rem; }

/* Material Symbols (icon font) */
.i {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  flex-shrink: 0;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  user-select: none;
}
.i--fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.i-14 { font-size: 14px; } .i-16 { font-size: 16px; } .i-18 { font-size: 18px; }
.i-22 { font-size: 22px; } .i-24 { font-size: 24px; } .i-26 { font-size: 26px; }
.i-28 { font-size: 28px; } .i-32 { font-size: 32px; } .i-36 { font-size: 36px; }
.i-38 { font-size: 38px; } .i-54 { font-size: 54px; }

/* ---------- 3. Typography scale ---------- */
.t-display { font-size: 2.25rem; line-height: 2.75rem; font-weight: 700; letter-spacing: -0.025em; }
.t-h-lg    { font-size: 1.75rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.015em; }
.t-h-md    { font-size: 1.5rem;  line-height: 2rem;    font-weight: 600; letter-spacing: -0.015em; }
.t-h-sm    { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em; }
.t-body-lg { font-size: 1.125rem; line-height: 1.75rem; letter-spacing: -0.005em; }
.t-body    { font-size: 1rem;     line-height: 1.5rem; }
.t-body-sm { font-size: 0.875rem; line-height: 1.25rem; }
.t-label   { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; letter-spacing: 0.005em; }
.t-label-sm{ font-size: 0.75rem;  line-height: 1rem;    font-weight: 600; letter-spacing: 0.02em; }
.t-num {
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums slashed-zero;
  font-feature-settings: "tnum" 1, "cv05" 1, "zero" 1;
}
.fs-10 { font-size: 10px; line-height: 0.875rem; }
.fs-11 { font-size: 11px; line-height: 1rem; }
.fs-12 { font-size: 12px; line-height: 1rem; }

@media (min-width: 768px) {
  .t-display { font-size: 3rem; line-height: 3.5rem; }
  .t-h-lg    { font-size: 2rem; line-height: 2.5rem; letter-spacing: -0.02em; }
}

.fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.upper { text-transform: uppercase; letter-spacing: 0.06em; }
.lh-relaxed { line-height: 1.65; }
.lh-none { line-height: 1; }
.ta-right { text-align: right; }
.ta-center { text-align: center; width: 100%; }
dl, dd { margin: 0; }

/* Colour helpers */
.c-on    { color: var(--on-surface); }
.c-muted { color: var(--on-surface-variant); }
.c-outline { color: var(--outline); }
.c-sec   { color: var(--secondary); }
.c-err   { color: var(--error); }
.c-amber { color: var(--amber-600); }
.c-amber-500 { color: var(--amber-500); }
.c-inv-primary { color: var(--inverse-primary); }
.c-sec-fixed { color: var(--secondary-fixed); }

/* ---------- 4. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .container { padding-inline: var(--margin); } }

.section { padding-block: 4rem; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }
.section--white { background: var(--surface-lowest); }

.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.row-start { display: flex; align-items: flex-start; }
.col { display: flex; flex-direction: column; }
.gap-1 { gap: 0.25rem; } .gap-1-5 { gap: 0.375rem; } .gap-2 { gap: 0.5rem; }
.gap-2-5 { gap: 0.625rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; }
.min-w-0 { min-width: 0; }

.eyebrow-text {
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--secondary);
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.875rem 1.5rem; border-radius: var(--r-md);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 500;
  transition: background-color 0.15s var(--ease), box-shadow 0.15s, transform 0.15s;
}
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-2); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--primary:hover .i { transform: scale(1.1); }
.btn--primary .i { transition: transform 0.15s; }
.btn--secondary { background: var(--surface-container); color: var(--on-surface); box-shadow: var(--shadow-1); }
.btn--secondary:hover { background: var(--surface-high); }
/* Used on deep "ink" cards, so it stays light in both themes */
.btn--light { background: #ffffff; color: #0b1c30; padding: 0.625rem 1.25rem; font-weight: 600; }
.btn--light:hover { background: #e5eeff; }
.btn--sm {
  min-height: 0; padding: 0.25rem 0.75rem; border-radius: var(--r);
  background: var(--surface-container); font-size: 0.75rem; font-weight: 600;
}
.btn--sm:hover { background: var(--surface-high); }

/* Store buttons */
.store-btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 1.5rem; border-radius: var(--r-md);
  background: #ffffff; color: #0b1c30;
  box-shadow: var(--shadow-2); transition: background-color 0.15s;
}
.store-btn:hover { background: #e5eeff; }
.store-btn__small { font-size: 10px; line-height: 1; font-weight: 700; text-transform: uppercase; color: #45464d; }
.store-btn__big { font-size: 0.875rem; line-height: 1.25rem; font-weight: 700; }
.store-btn--compact { padding: 0.5rem 0.75rem; border-radius: var(--r); gap: 0.25rem; background: var(--surface-low); color: var(--on-surface); box-shadow: none; }
.store-btn--compact:hover { background: var(--surface-container); }
.store-btn--compact .store-btn__small { color: var(--on-surface-variant); }
.store-btn--compact .store-btn__small { text-transform: none; font-weight: 400; }
.store-btn--compact .store-btn__big { font-weight: 600; }

/* ---------- 6. Pills, tiles, insets ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.25rem 0.75rem; border-radius: var(--r-full);
  font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.02em;
  width: max-content; max-width: 100%;
}
.pill--xs { padding: 0.125rem 0.5rem; font-size: 10px; font-weight: 700; gap: 0.25rem; }
.pill--sm { padding: 0.125rem 0.5rem; font-size: 11px; font-weight: 600; }
.pill--sec   { background: var(--success-soft); color: var(--secondary); }
.pill--sec-f { background: var(--success-tint); color: var(--success-tint-fg); }
.pill--sec-f40 { background: var(--success-tint); color: var(--success-tint-fg); }
.pill--sec-c { background: var(--secondary-container); color: var(--on-secondary-container); }
.pill--err   { background: var(--error-soft); color: var(--error); }
.pill--amber { background: var(--amber-100); color: var(--amber-800); }
.pill--neutral { background: var(--surface-container); color: var(--on-surface); }
.pill--high  { background: var(--surface-high); color: var(--on-surface); font-weight: 500; }
.pill--on-dark { background: rgba(255, 255, 255, 0.1); color: #ffffff; }
.pill--on-dark-sec { background: rgba(133, 248, 196, 0.2); color: var(--secondary-fixed); }
.pill--solid-sec { background: var(--secondary); color: var(--on-secondary); padding: 0.25rem 0.875rem; }
.tag { padding: 0.125rem 0.5rem; border-radius: 0.375rem; background: var(--surface-container); font-size: 10px; line-height: 0.875rem; font-weight: 600; }

.dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: var(--r-full); background: var(--secondary); flex-shrink: 0; }
.dot--sm { width: 0.375rem; height: 0.375rem; }
.dot--muted { background: var(--outline-variant); }
.pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }

.tile {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 2.5rem; height: 2.5rem; border-radius: var(--r-md);
}
.tile--sm { width: 2rem; height: 2rem; border-radius: var(--r); }
.tile--md { width: 2.25rem; height: 2.25rem; border-radius: var(--r); }
.tile--lg { width: 3rem; height: 3rem; border-radius: var(--r-md); }
.tile--round { border-radius: var(--r-full); }
.tile--neutral { background: var(--surface-container); color: var(--on-surface); }
.tile--sec-soft { background: var(--success-soft); color: var(--secondary); }
.tile--sec { background: var(--secondary); color: var(--on-secondary); box-shadow: var(--shadow-1); }
.tile--err-soft { background: var(--error-soft); color: var(--error); }
.tile--err { background: var(--error); color: var(--on-error); }
.tile--amber-soft { background: rgba(245, 158, 11, 0.1); color: var(--amber-600); }
.tile--amber { background: var(--amber-100); color: var(--amber-700); }
.tile--primary { background: var(--primary); color: var(--on-primary); }

.inset {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.875rem; border-radius: var(--r-md); background: var(--surface-low);
}
.inset--container { background: var(--surface-container); }
.inset--white { background: var(--surface-lowest); box-shadow: var(--shadow-2); }
.inset--high { background: var(--surface-high); border-radius: var(--r-lg); }
.inset--sm { padding: 0.75rem; }
.inset--stack { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0.5rem; padding: 1rem; border-radius: var(--r-lg); }

.kv {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.5rem; border-radius: var(--r); background: var(--surface-low);
  font-size: 0.875rem; line-height: 1.25rem;
}
.kv dt { color: var(--on-surface-variant); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- 7. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hairline), 0 1px 8px rgba(0, 0, 0, 0.04);
}
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 1024px) { .header-actions { gap: 1.5rem; } }

.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.brand__logo { width: 3.25rem; height: 3.25rem; margin-inline: -0.375rem -0.125rem; object-fit: contain; transition: transform 0.2s var(--ease); }
.brand:hover .brand__logo { transform: scale(1.05); }
.brand__name { font-size: 1.25rem; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.brand__tag { display: block; margin-top: 0.125rem; font-size: 0.75rem; line-height: 1rem; font-weight: 500; letter-spacing: 0.02em; color: var(--on-surface-variant); }

.nav { display: none; align-items: center; gap: 1.5rem; }
.nav a {
  padding-block: 0.25rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500;
  color: var(--on-surface-variant); transition: color 0.15s;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--on-surface); }
.nav a[aria-current="true"] { font-weight: 600; }

.nav-toggle,
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: var(--r);
  background: var(--surface-container); color: var(--on-surface);
  transition: background-color 0.15s;
}
.nav-toggle:hover,
.theme-toggle:hover { background: var(--surface-high); }

.mobile-nav {
  position: fixed; top: var(--header-h); inset-inline: 0; z-index: 49;
  padding: 0.5rem 1rem 1.25rem;
  background: var(--mobile-nav-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-3);
}
.mobile-nav a {
  display: block; padding: 0.875rem 0.5rem; border-bottom: 1px solid var(--hairline);
  font-weight: 500; color: var(--on-surface);
}
.mobile-nav a:last-child { border-bottom: 0; }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* ---------- 8. Hero ---------- */
main { padding-top: var(--header-h); }

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 3rem 0 6rem; background: var(--surface-lowest);
}
.hero__glow {
  position: absolute; z-index: -1; pointer-events: none; border-radius: var(--r-full);
}
.hero__glow--a {
  top: -8rem; left: 50%; transform: translateX(-50%);
  width: 720px; height: 480px; background: var(--glow-a); filter: blur(120px);
}
.hero__glow--b {
  top: 33%; right: -12rem; width: 420px; height: 420px;
  background: var(--glow-b); filter: blur(100px);
}

.hero__eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem;
  width: max-content; max-width: 100%; margin: 0 auto 1rem;
  padding: 0.375rem 1rem; border-radius: var(--r-full);
  background: var(--surface-container); box-shadow: var(--shadow-1);
  text-align: center;
}
.hero__head { max-width: 56rem; margin: 0 auto 2.5rem; text-align: center; }
.hero__title { margin-bottom: 1rem; }
.hero__lead { max-width: 42rem; margin-inline: auto; color: var(--on-surface-variant); line-height: 1.65; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.5rem; }

.trust {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.75rem 2rem; margin-top: 1.5rem; padding-top: 1rem; color: var(--on-surface-variant);
}
.trust__item { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; justify-content: center; }
.trust__sep { display: none; width: 0.375rem; height: 0.375rem; border-radius: var(--r-full); background: var(--outline-variant); }
.stars { display: flex; color: var(--amber-500); }
@media (min-width: 640px) { .trust__sep { display: inline-block; } }

/* Device showcase */
.showcase { position: relative; max-width: 64rem; margin: 1.5rem auto 0; }
.showcase__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }

.float-badge {
  display: none; position: absolute; z-index: 20; align-items: center; gap: 0.75rem;
  padding: 0.875rem; border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xl); transition: transform 0.3s var(--ease);
}
.float-badge:hover { transform: translateY(-4px); }
.float-badge--a { left: -2.5rem; top: 4rem; }
.float-badge--b { right: -2rem; top: 8rem; }
.float-badge--c { left: -1.5rem; bottom: 3.5rem; }

.phone {
  overflow: hidden; background: var(--surface-lowest);
  border-radius: 32px; box-shadow: var(--shadow-xl);
  transition: transform 0.5s var(--ease);
}
.phone--side { display: none; }
.phone--center { position: relative; z-index: 10; border-radius: 38px; box-shadow: var(--shadow-phone); max-width: 26rem; margin-inline: auto; width: 100%; }
.phone__bar { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.875rem 1.25rem; }
.phone__bar--dark { background: var(--ink); color: #ffffff; }
.phone__bar--sec { background: var(--secondary); color: var(--on-secondary); }
.phone__body { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; }

.passport {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  height: 11rem; padding: 1rem; border-radius: var(--r-lg); overflow: hidden;
  background: var(--passport-bg); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.app-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem 0.75rem; }
.avatar {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 2.75rem; height: 2.75rem; border-radius: var(--r-full);
  background: var(--primary); color: var(--on-primary); font-size: 0.875rem; font-weight: 700;
}
.avatar__status {
  position: absolute; right: 0; bottom: 0; width: 0.75rem; height: 0.75rem; border-radius: var(--r-full);
  background: var(--secondary); box-shadow: 0 0 0 2px var(--surface-lowest);
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 2.25rem; height: 2.25rem; border-radius: var(--r-full);
  background: var(--surface-container); color: var(--on-surface);
}
.icon-btn--sm { width: 2rem; height: 2rem; }
.icon-btn--sec { background: var(--secondary); color: var(--on-secondary); }
.icon-btn--sec-f { background: var(--secondary-fixed); color: var(--on-secondary-fixed); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.625rem; padding: 0.75rem 1.25rem; }
.stat { display: flex; flex-direction: column; padding: 0.75rem; border-radius: var(--r-lg); background: var(--surface-container); min-width: 0; }
.stat--amber { background: var(--amber-50); }
.stat__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.25rem; }
.stat__label { font-size: 10px; line-height: 0.875rem; font-weight: 700; text-transform: uppercase; color: var(--on-surface-variant); }

.app-block { padding: 0.5rem 1.25rem; }
.app-block--list { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem 1.25rem; }
.app-block--last { padding: 0.25rem 1.25rem 1.25rem; }
.stack { display: flex; }
.stack > * { margin-left: -0.5rem; }
.stack > :first-child { margin-left: 0; }
.mini-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; border-radius: var(--r-full);
  font-size: 10px; font-weight: 700; box-shadow: 0 0 0 2px var(--surface-container);
}
.mini-avatar--1 { background: var(--primary); color: var(--on-primary); }
.mini-avatar--2 { background: var(--secondary); color: var(--on-secondary); }
.mini-avatar--3 { background: var(--surface-tint); color: var(--on-primary); }
.mini-avatar--4 { background: var(--surface-highest); color: var(--on-surface); }

.sos-preview {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 1rem; border-radius: var(--r-lg);
  background: var(--error-container); color: var(--on-error-container); box-shadow: var(--shadow-1);
}

@media (min-width: 768px) {
  .showcase__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .phone--side { display: block; }
  .phone--left { transform: rotate(-3deg) translateY(1.5rem); }
  .phone--right { transform: rotate(3deg) translateY(1.5rem); }
  .phone--side:hover { transform: rotate(0) translateY(1.5rem); }
  .phone--center { transform: scale(1.05); max-width: none; }
}
@media (min-width: 1024px) {
  .float-badge { display: flex; }
}

/* ---------- 9. Value pillars ---------- */
.section-head { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.section-head__title { max-width: 36rem; }
.section-head__lead { max-width: 28rem; }
@media (min-width: 768px) { .section-head { flex-direction: row; align-items: flex-end; } }

.pillars { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pillar--wide { grid-column: span 2; }
}

.pillar {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.5rem; border-radius: var(--r-lg);
  background: var(--surface-lowest); box-shadow: var(--shadow-1);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.pillar:hover { box-shadow: var(--shadow-2); }
.pillar .tile { margin-bottom: 1rem; }
.pillar__title { margin-bottom: 0.5rem; }
.pillar__foot {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--surface-container);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
}

.pillar--dark { background: var(--ink); color: #ffffff; }
.pillar--dark:hover { box-shadow: var(--shadow-3); }
.pillar--dark .pill { margin-bottom: 1rem; }
.pillar__stats { display: flex; align-items: center; gap: 1.5rem; }
.pillar__divider { width: 1px; height: 2rem; background: rgba(255, 255, 255, 0.2); }
.pillar__dark-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

/* ---------- 10. Module tabs ---------- */
.center-head { max-width: 48rem; margin: 0 auto 2.5rem; text-align: center; }

.tablist {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  width: max-content; max-width: 100%; margin: 2rem auto 0; padding: 0.375rem;
  border-radius: var(--r-lg); background: var(--surface-low);
}
.tab {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: var(--r-md);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 500;
  color: var(--on-surface-variant); transition: color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.tab:hover { color: var(--on-surface); }
.tab[aria-selected="true"] { background: var(--raised); color: var(--on-surface); font-weight: 600; box-shadow: var(--shadow-1); }

.panel {
  display: grid; grid-template-columns: 1fr; align-items: center; gap: 2.5rem;
  margin-top: 2rem; padding: 1.5rem; border-radius: var(--r-xl);
  background: var(--surface-low); box-shadow: var(--shadow-1);
  animation: fadeIn 0.3s var(--ease);
}
@media (min-width: 640px) { .panel { padding: 2rem; } }
@media (min-width: 1024px) { .panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel__copy { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.check-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.check-list .i { margin-top: 0.125rem; color: var(--secondary); }

.mock {
  display: flex; flex-direction: column; gap: 1rem; min-width: 0;
  padding: 1.5rem; border-radius: var(--r-lg);
  background: var(--surface-lowest); box-shadow: var(--shadow-2);
}
.mock__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--surface-container); }
.mock__list { display: flex; flex-direction: column; gap: 0.625rem; }

.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 0.5rem; }
.metric { padding: 1rem; border-radius: var(--r-md); background: var(--surface-lowest); box-shadow: var(--shadow-1); }
.metric__value { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.chip { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: var(--r-md); background: var(--surface-lowest); box-shadow: var(--shadow-1); }

.arabic {
  padding: 1rem; border-radius: var(--r-md); background: var(--surface-container);
  font-family: "Amiri", "Traditional Arabic", "Scheherazade New", serif;
  font-size: 1.25rem; line-height: 2.2; text-align: right;
}
.player { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding: 0.75rem; border-radius: var(--r-md); background: var(--surface); }
.sos-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding: 0.875rem; border-radius: var(--r-md); background: var(--error); color: var(--on-error); }
.badge-num { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: var(--r); background: var(--secondary); color: var(--on-secondary); font-weight: 700; flex-shrink: 0; }

/* ---------- 11. Security deep dive ---------- */
.vault {
  position: relative; overflow: hidden;
  padding: 2rem 1.25rem; border-radius: var(--r-xl);
  background: var(--inverse-surface); color: var(--inverse-on-surface); box-shadow: var(--shadow-3);
}
.vault::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 16px 16px;
}
.vault__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.vault__copy { display: flex; flex-direction: column; gap: 1rem; }
.vault__features { display: grid; grid-template-columns: 1fr; gap: 1rem; padding-top: 1rem; }
.vault-feature {
  display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem; border-radius: var(--r-md);
  background: rgba(33, 49, 69, 0.8); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}
.vault__visual {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem; border-radius: var(--r-lg); background: rgba(220, 233, 255, 0.1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.lock-orb { position: relative; display: flex; align-items: center; justify-content: center; width: 11rem; height: 11rem; margin-bottom: 1.5rem; border-radius: var(--r-full); background: rgba(133, 248, 196, 0.1); }
.lock-orb__mid { display: flex; align-items: center; justify-content: center; width: 8rem; height: 8rem; border-radius: var(--r-full); background: rgba(133, 248, 196, 0.2); }
.lock-orb__core { display: flex; align-items: center; justify-content: center; width: 5rem; height: 5rem; border-radius: var(--r-full); background: var(--secondary-fixed); color: var(--on-secondary-fixed); box-shadow: var(--shadow-3); }
.lock-orb__label {
  position: absolute; top: -0.5rem; padding: 0.25rem 0.75rem; border-radius: var(--r-full);
  background: var(--inverse-surface); color: var(--secondary-fixed); box-shadow: var(--shadow-2);
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.cipher {
  margin-top: 0.25rem; padding: 0.75rem; border-radius: var(--r);
  background: rgba(33, 49, 69, 0.9); color: var(--inverse-on-surface);
  font-size: 12px; line-height: 1rem; word-break: break-all;
  font-variant-numeric: tabular-nums slashed-zero;
}
@media (min-width: 640px) {
  .vault { padding: 2.5rem; }
  .vault__features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .vault { padding: 3.5rem; }
  .vault__grid { grid-template-columns: 7fr 5fr; }
}

/* ---------- 12. Download CTA ---------- */
.section--cta { padding-block: 5rem; }
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2.5rem;
  padding: 2rem 1.25rem; border-radius: var(--r-xl);
  background: var(--ink); color: #ffffff; box-shadow: var(--shadow-xl);
}
.cta__glow { position: absolute; z-index: -1; right: -6rem; bottom: -6rem; width: 24rem; height: 24rem; border-radius: var(--r-full); background: rgba(0, 108, 74, 0.3); filter: blur(64px); pointer-events: none; }
.cta__copy { max-width: 36rem; }
.cta__copy .pill { margin-bottom: 1rem; }
.cta__title { font-size: 2rem; line-height: 2.5rem; font-weight: 700; letter-spacing: -0.02em; }
.cta__stores { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.cta__checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.5rem; padding-top: 1rem; color: var(--inverse-primary); font-size: 0.75rem; font-weight: 600; }
.cta__checks li { display: flex; align-items: center; gap: 0.375rem; }
.qr-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 100%; max-width: 20rem; padding: 1.5rem; border-radius: var(--r-lg);
  background: #ffffff; color: #0b1c30; box-shadow: var(--shadow-3);
}
/* QR stays dark-on-light in both themes so it remains scannable */
.qr { width: 10rem; height: 10rem; margin-bottom: 0.75rem; padding: 0.75rem; border-radius: var(--r-md); background: #eff4ff; color: #0b1c30; }
.qr-card .c-muted { color: #45464d; }
@media (min-width: 640px) { .cta { padding: 2.5rem; } }
@media (min-width: 1024px) {
  .cta { flex-direction: row; padding: 4rem; }
  .cta__title { font-size: 3rem; line-height: 3.5rem; letter-spacing: -0.025em; }
}

/* ---------- 13. Video modal ---------- */
.modal {
  width: min(42rem, calc(100% - 2rem)); max-height: calc(100% - 2rem);
  padding: 1.5rem; border: 0; border-radius: var(--r-xl);
  background: var(--surface-lowest); color: var(--on-surface); box-shadow: var(--shadow-xl);
}
.modal::backdrop { background: rgba(0, 0, 0, 0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: fadeIn 0.2s var(--ease); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--surface-container); }
.modal__body { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding-top: 1.5rem; text-align: center; }
.modal__screen {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; aspect-ratio: 16 / 9; padding: 1.5rem; border-radius: var(--r-lg);
  background: var(--ink); color: #ffffff;
}
.bounce { animation: bounce 1s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

/* ---------- 14. Footer ---------- */
.site-footer { background: var(--surface-lowest); box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.03); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem 0; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer__brand .brand { margin-bottom: 1rem; }
.footer__about { max-width: 24rem; margin-bottom: 1.5rem; color: var(--on-surface-variant); line-height: 1.65; }
.footer__badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.footer__stores { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.footer__col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__heading { margin-bottom: 0.25rem; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.footer__col a, .footer__legal a { font-size: 0.875rem; line-height: 1.25rem; color: var(--on-surface-variant); transition: color 0.15s; }
.footer__col a:hover, .footer__legal a:hover { color: var(--on-surface); }
.footer__legal a[aria-current="page"] { color: var(--on-surface); font-weight: 600; }
.footer__bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--surface-container); text-align: center; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.5rem; }
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__bottom { flex-direction: row; text-align: left; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__brand { grid-column: span 2; }
}

/* ---------- 14b. Legal pages (privacy / terms) ---------- */
.legal-hero {
  padding: 3rem 0 2.5rem;
  background: var(--surface-lowest);
  border-bottom: 1px solid var(--hairline);
}
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; margin-bottom: 1rem; font-size: 0.875rem; color: var(--on-surface-variant); }
.breadcrumb a { color: var(--on-surface-variant); }
.breadcrumb a:hover { color: var(--on-surface); text-decoration: underline; }
.legal-hero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.legal-hero__lead { max-width: 46rem; margin-top: 0.75rem; color: var(--on-surface-variant); line-height: 1.65; }

.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 2.5rem 5rem; }
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 16rem minmax(0, 1fr); gap: 3.5rem; padding-block: 3.5rem 6rem; }
}

.toc {
  align-self: start; padding: 1.25rem; border-radius: var(--r-lg);
  background: var(--surface-lowest); box-shadow: var(--shadow-1);
}
.toc__title { margin-bottom: 0.75rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-surface-variant); }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.125rem; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 0.5rem; padding: 0.375rem 0.5rem; border-radius: var(--r);
  font-size: 0.875rem; line-height: 1.25rem; color: var(--on-surface-variant);
  transition: background-color 0.15s, color 0.15s;
}
.toc a::before { content: counter(toc) "."; min-width: 1.25rem; font-variant-numeric: tabular-nums; color: var(--outline); }
.toc a:hover { background: var(--surface-low); color: var(--on-surface); }
.toc a[aria-current="true"] { background: var(--surface-container); color: var(--on-surface); font-weight: 600; }
@media (min-width: 1024px) {
  .toc { position: sticky; top: calc(var(--header-h) + 1.5rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; }
}

.prose { max-width: 46rem; color: var(--on-surface); line-height: 1.7; }
.prose > section { scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose > section + section { margin-top: 2.75rem; padding-top: 2.75rem; border-top: 1px solid var(--hairline); }
.prose h2 { margin-bottom: 1rem; font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.015em; }
.prose h3 { margin: 1.75rem 0 0.5rem; font-size: 1.0625rem; line-height: 1.5rem; font-weight: 600; }
.prose p { margin: 0 0 1rem; color: var(--on-surface-variant); }
.prose p strong, .prose li strong { color: var(--on-surface); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.25rem; color: var(--on-surface-variant); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.prose li::marker { color: var(--outline); }
.prose a { color: var(--secondary); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose .caps { text-transform: uppercase; font-size: 0.9375rem; letter-spacing: 0.01em; }

.callout {
  display: flex; gap: 0.875rem; margin: 0 0 1.5rem; padding: 1.25rem; border-radius: var(--r-lg);
  background: var(--surface-low); border: 1px solid var(--hairline);
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout__title { margin-bottom: 0.5rem; font-weight: 600; color: var(--on-surface); }
.callout .i { color: var(--secondary); margin-top: 0.125rem; }
.callout--warn .i { color: var(--amber-600); }
.callout--warn { background: var(--amber-50); }

.table-wrap { margin: 0 0 1.25rem; overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--hairline); }
.prose table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: 0.875rem; line-height: 1.4; }
.prose th, .prose td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.prose th { background: var(--surface-low); font-weight: 600; color: var(--on-surface); }
.prose td { color: var(--on-surface-variant); }
.prose tr:last-child td { border-bottom: 0; }

/* Placeholder that must be completed before publishing */
mark.ph {
  padding: 0 0.3em; border-radius: var(--r-sm);
  background: var(--amber-100); color: var(--amber-800); font-weight: 600;
}

.contact-card {
  display: grid; gap: 0.75rem; margin-top: 0.5rem; padding: 1.25rem; border-radius: var(--r-lg);
  background: var(--surface-lowest); box-shadow: var(--shadow-1);
}
.contact-card div { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.contact-card dt { min-width: 9rem; font-weight: 600; color: var(--on-surface); }
.contact-card dd { color: var(--on-surface-variant); }

/* ---------- 15. Reveal-on-scroll (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 16. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
