/* =========================================================================
   Success Muslim — design system
   Regions: fonts › tokens › reset/base › a11y › type › layout › components ›
            sections › legal › motion › responsive › print
   ========================================================================= */

/* ---------------------------------------------------------------------
   FONTS — self-hosted Inter (files are WOFF2, verified via magic bytes).
   Only 400/500/600 shipped — 600 with negative tracking at display sizes
   reads as premium; 700 reads generic. Metric-matched fallback avoids
   layout shift while the real font loads.
   --------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
  size-adjust: 107.4%;
}

/* ---------------------------------------------------------------------
   TOKENS
   --------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* emerald ramp — anchored on the real app icon green (--emerald-700) */
  --emerald-50: #effaf6;
  --emerald-100: #d8f3e8;
  --emerald-200: #b4e4d1;
  --emerald-300: #81cfb1;
  --emerald-400: #38a87d;
  --emerald-500: #1b8d62;
  --emerald-600: #0e8155;
  --emerald-700: #07744a;
  --emerald-800: #065b3c;
  --emerald-900: #06412c;
  --emerald-950: #07271c;

  /* gold ramp — decorative below 700, text-safe at 700+ */
  --gold-50: #fdf9ed;
  --gold-100: #f9efd2;
  --gold-200: #f2dca6;
  --gold-300: #e8c170;
  --gold-400: #e2aa3c;
  --gold-500: #d5911a;
  --gold-600: #b87614;
  --gold-700: #965b13;

  /* warm neutrals */
  --warm-0: #fdfdfb;
  --warm-50: #faf8f5;
  --warm-100: #f4f1ec;
  --warm-200: #e8e5de;
  --warm-300: #d8d3cb;
  --warm-400: #b1aba0;
  --warm-500: #63726b;
  --warm-600: #54645c;
  --warm-700: #3d4d46;
  --warm-800: #27352f;
  --warm-900: #16221e;

  /* semantic aliases */
  --canvas: #fbfaf7;
  --surface: #ffffff;
  --surface-alt: var(--warm-50);
  --surface-tint: var(--emerald-50);
  --border: var(--warm-200);
  --border-strong: var(--warm-300);
  --ink: var(--warm-900);
  --ink-2: var(--warm-800);
  --muted: var(--warm-600);
  --faint: var(--warm-500);
  --brand: var(--emerald-700);
  --brand-hover: var(--emerald-800);
  --brand-soft: var(--emerald-50);
  --accent: var(--gold-500);
  --accent-text: var(--gold-700);

  /* app-mockup-only palette — mirrors the shipping app's own tokens */
  --app-primary: #1b6b4a;
  --app-accent: #c8956c;
  --app-hero-a: #0c6e5d;
  --app-hero-b: #12866f;
  --app-hero-c: #1aa588;
  --p-subuh: #7c9cb5;
  --p-syuruq: #e8c170;
  --p-zohor: #4a9b6e;
  --p-asar: #c8956c;
  --p-maghrib: #b85c3a;
  --p-isyak: #5b6ba8;
  --c-water: #3b82f6;
  --c-quran: #2e9e7b;
  --c-dhikr: #e0654e;

  /* type */
  --font-sans: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  --fs-h1: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --fs-h2: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-h3: 1.25rem;
  --fs-h4: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-eyebrow: 0.75rem;

  /* spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  --space-10: 80px;
  --space-11: 96px;
  --space-12: 128px;
  --space-13: 160px;

  --section-y: clamp(64px, 8vw, 128px);
  --gutter: clamp(20px, 5vw, 40px);
  --container: 1120px;
  --container-narrow: 720px;
  --header-h: 64px;

  /* radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 999px;

  /* shadow — green-tinted, layered */
  --shadow-xs: 0 1px 2px rgba(7, 39, 28, 0.05);
  --shadow-sm: 0 1px 2px rgba(7, 39, 28, 0.04), 0 2px 6px rgba(7, 39, 28, 0.05);
  --shadow-md: 0 2px 4px rgba(7, 39, 28, 0.04), 0 8px 20px -4px rgba(7, 39, 28, 0.08);
  --shadow-lg: 0 4px 8px rgba(7, 39, 28, 0.04), 0 18px 40px -8px rgba(7, 39, 28, 0.12);
  --shadow-brand: 0 4px 14px -2px rgba(7, 116, 74, 0.28);
  --ring-hairline: inset 0 0 0 1px rgba(7, 39, 28, 0.06);

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 420ms;
  --dur-reveal: 640ms;
}

/* ---------------------------------------------------------------------
   RESET / BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

::selection { background: var(--emerald-200); color: var(--emerald-950); }

/* ---------------------------------------------------------------------
   ACCESSIBILITY
   --------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  z-index: 100;
  transition: top var(--dur-base) var(--ease-standard);
}
.skip-link:focus { top: var(--space-4); }

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

.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;
}

/* ---------------------------------------------------------------------
   TYPOGRAPHY
   --------------------------------------------------------------------- */
.fs-display { font-size: var(--fs-display); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; }
.fs-h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.03em; }
.fs-h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -0.025em; }
.fs-h3 { font-size: var(--fs-h3); line-height: 1.35; letter-spacing: -0.015em; }
.fs-h4 { font-size: var(--fs-h4); line-height: 1.4; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.6; letter-spacing: -0.005em; color: var(--muted); max-width: 46ch; }
.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------
   LAYOUT PRIMITIVES
   --------------------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-head { max-width: 44rem; margin-bottom: var(--space-9); }
.section-head p { margin-top: var(--space-3); }

.grid { display: grid; gap: var(--space-5); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.stack { display: flex; flex-direction: column; }

/* ---------------------------------------------------------------------
   COMPONENTS
   --------------------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--fs-sm);
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  box-shadow: var(--shadow-brand);
  transition: transform var(--dur-base) var(--ease-standard), background var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); transition: transform 160ms var(--ease-spring); }
.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid transparent; box-shadow: none; padding: 10px 16px; }
.btn-ghost:hover { color: var(--ink); }
.btn-small { padding: 9px 16px; font-size: var(--fs-xs); }
.btn-inverse { background: #fff; color: var(--emerald-900); border-color: #fff; }
.btn-inverse:hover { background: var(--emerald-50); border-color: var(--emerald-50); }
.btn-inverse-outline { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.32); box-shadow: none; }
.btn-inverse-outline:hover { background: rgba(255,255,255,.22); }
.btn-icon { width: 20px; height: 20px; flex: none; }

/* Store buttons (two-line badge) */
.btn-store { text-align: left; padding: 11px 20px; }
.btn-store .store-glyph { width: 22px; height: 22px; flex: none; }
.btn-store .store-copy { display: flex; flex-direction: column; line-height: 1.15; }
.btn-store .store-kicker { font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.btn-store .store-label { font-size: 0.95rem; font-weight: 600; }
[data-pending] { opacity: 0.85; }

/* Badge / chip */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-full);
  background: var(--emerald-50);
  color: var(--emerald-800);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-500); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--warm-100);
  color: var(--warm-700);
  font-size: var(--fs-xs);
  font-weight: 500;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--emerald-200); }
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--muted); font-size: var(--fs-sm); max-width: 44ch; }

.icon-tile {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--emerald-50);
  color: var(--emerald-700);
  margin-bottom: var(--space-4);
  flex: none;
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.gold { background: var(--gold-50); color: var(--gold-700); }
.icon-tile.blue { background: #eaf2fe; color: #2563eb; }
.icon-tile.rose { background: #fdecea; color: #c2410c; }

/* Trust strip */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  padding-block: var(--space-5);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--muted);
}
.trust-item svg { width: 16px; height: 16px; color: var(--emerald-600); flex: none; }

/* FAQ */
.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.faq-list details {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
}
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-h4);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .chev {
  width: 20px; height: 20px;
  flex: none;
  color: var(--muted);
  transition: transform var(--dur-base) var(--ease-standard);
}
.faq-list details[open] summary .chev { transform: rotate(180deg); }
.faq-list details p {
  color: var(--muted);
  max-width: 62ch;
  margin-top: var(--space-3);
  animation: faq-in var(--dur-slow) var(--ease-out);
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Table wrapper (legal) */
.table-wrap { overflow-x: auto; margin: var(--space-5) 0; }
.table-wrap table { width: 100%; font-size: var(--fs-sm); }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table-wrap td:first-child, .table-wrap th:first-child { white-space: normal; }
.table-wrap th { text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.table-wrap td:first-child { font-weight: 600; color: var(--ink); }

/* Legal callout */
.legal-callout {
  background: var(--warm-100);
  border-radius: var(--r-md);
  padding: 20px 24px;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  margin: var(--space-5) 0;
  color: var(--ink-2);
}

/* Device mockup frame */
.device { --device-w: 300px; }
.device--sm { --device-w: 200px; }
.device-frame {
  width: var(--device-w);
  aspect-ratio: 390 / 844;
  border-radius: calc(var(--device-w) * 0.13);
  padding: calc(var(--device-w) * 0.027);
  background: linear-gradient(160deg, #23302b, #121a16);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.08);
}
.device-screen {
  width: 100%; height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: calc(var(--device-w) * 0.105);
  background: var(--warm-50);
}
.device-screen > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------------------------------------------------------------
   PATTERN MOTIF — used sparingly (4 places), always low opacity + masked
   --------------------------------------------------------------------- */
.pattern-veil { position: relative; isolation: isolate; }
.pattern-veil::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("assets/img/pattern-star8.svg");
  background-size: 72px 72px;
  opacity: 0.045;
}
.pattern-veil--hero::before {
  mask-image: radial-gradient(closest-side at 78% 22%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(closest-side at 78% 22%, #000 0%, transparent 72%);
}
.pattern-veil--band::before {
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  opacity: 0.04;
}
.pattern-veil--dark::before {
  background-image: url("assets/img/pattern-star8-light.svg");
  background-size: 88px 88px;
  opacity: 0.025;
  mask-image: linear-gradient(180deg, #000, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
}
.pattern-veil--legal::before {
  background-size: 56px 56px;
  opacity: 0.03;
}

/* =========================================================================
   SECTIONS
   ========================================================================= */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(251, 250, 247, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(251, 250, 247, 0.92);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--fs-h4); letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.nav { display: flex; align-items: center; gap: var(--space-7); }
.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav-links a { color: var(--muted); font-weight: 500; font-size: var(--fs-sm); transition: color var(--dur-fast) var(--ease-standard); }
.nav-links a:hover { color: var(--ink); }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--r-sm);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-panel {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: var(--space-4) var(--gutter) var(--space-6);
}
.mobile-panel.is-open { display: block; }
.mobile-panel a {
  display: block;
  padding: 14px 4px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.mobile-panel a:last-child { border-bottom: 0; }

/* Hero */
.hero { padding-block: clamp(56px, 7vw, 104px) clamp(72px, 9vw, 144px); position: relative; overflow: hidden; }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-9);
  align-items: center;
}
.hero-copy { max-width: 34rem; }
.hero-copy .badge { margin-bottom: var(--space-5); }
.hero h1 { margin-block: var(--space-4); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-6); }
.hero-checks { display: flex; flex-wrap: wrap; gap: 16px; margin-top: var(--space-6); }
.hero-checks span { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); }
.hero-checks svg { width: 15px; height: 15px; color: var(--emerald-600); }
.hero-origin { margin-top: var(--space-4); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.live-card {
  position: absolute;
  left: -8px;
  bottom: -28px;
  width: 208px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-4);
  z-index: 2;
}
.live-card .live-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--emerald-600); margin-bottom: 6px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-500); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.live-card .live-prayer { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.live-card .live-time { font-size: var(--fs-sm); color: var(--muted); margin-top: 2px; }
.live-card .live-city { font-size: var(--fs-xs); color: var(--faint); margin-top: 8px; }
.live-card .live-locate {
  margin-top: 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Illustrative product mockup — SWAP POINT: delete .mock, insert <img> */
.mock { width: 100%; height: 100%; padding: 22px 16px; color: #fff; background: linear-gradient(165deg, var(--app-hero-a), var(--app-hero-b) 55%, var(--app-hero-c)); }
.mock-status { display: flex; justify-content: space-between; font-size: 11px; opacity: 0.8; margin-bottom: 18px; }
.mock-greeting { font-size: 13px; opacity: 0.85; margin-bottom: 2px; }
.mock-headline { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 16px; }
.mock-next-card { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.mock-next-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }
.mock-next-name { font-size: 22px; font-weight: 600; margin-top: 4px; }
.mock-next-time { font-size: 13px; opacity: 0.85; margin-top: 2px; }
.mock-strip { display: flex; gap: 6px; margin-bottom: 16px; }
.mock-pill { flex: 1; height: 34px; border-radius: 10px; background: rgba(255,255,255,.14); }
.mock-pill.done { background: rgba(255,255,255,.9); }
.mock-pill.active { background: var(--gold-300); }
.mock-card { background: rgba(255,255,255,.96); color: var(--ink); border-radius: 16px; padding: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.mock-ring { width: 46px; height: 46px; flex: none; }
.mock-card-title { font-size: 12px; font-weight: 600; color: var(--warm-700); }
.mock-card-sub { font-size: 11px; color: var(--faint); margin-top: 1px; }
.mock-stats { display: flex; gap: 8px; }
.mock-stat { flex: 1; background: rgba(255,255,255,.14); border-radius: 12px; padding: 10px; text-align: center; }
.mock-stat-value { font-size: 15px; font-weight: 600; }
.mock-stat-label { font-size: 10px; opacity: 0.75; margin-top: 2px; }

/* Trust strip icons already covered above */

/* Features */
.features .section-head { text-align: left; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-5); margin-bottom: var(--space-5); }
.bento-main { grid-column: span 7; }
.bento-side { grid-column: span 5; display: flex; flex-direction: column; gap: var(--space-5); }
.spectrum-bar { display: flex; border-radius: var(--r-full); overflow: hidden; height: 10px; margin: var(--space-5) 0 var(--space-3); }
.spectrum-bar span { flex: 1; }
.spectrum-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); }
.week-strip { display: flex; gap: 6px; margin-top: var(--space-4); }
.week-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--warm-100); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--faint); }
.week-dot.filled { background: var(--emerald-500); color: #fff; }
.progress-bar { height: 8px; border-radius: var(--r-full); background: var(--warm-100); overflow: hidden; margin-top: var(--space-4); }
.progress-bar span { display: block; height: 100%; background: var(--emerald-500); border-radius: var(--r-full); }

.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.detail-grid .card { display: flex; flex-direction: column; }

/* Today strip */
.today-strip .container { display: grid; grid-template-columns: 1fr auto; gap: var(--space-9); align-items: center; }
.life-ring { width: 120px; height: 120px; }

/* Privacy band */
.privacy-band { background: var(--surface-tint); border-radius: var(--r-2xl); margin-inline: var(--gutter); }
.privacy-band .container { max-width: var(--container); }
.privacy-band-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-9); align-items: center; padding-block: var(--space-9); }
.privacy-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.privacy-tile { background: var(--surface); border-radius: var(--r-lg); padding: var(--space-5); box-shadow: var(--shadow-xs); }
.privacy-tile svg { width: 20px; height: 20px; color: var(--emerald-700); margin-bottom: var(--space-3); }
.privacy-tile p { font-size: var(--fs-sm); font-weight: 600; }
.privacy-links { display: flex; flex-direction: column; gap: 10px; margin-top: var(--space-6); }
.privacy-links a { font-weight: 600; color: var(--brand); font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 6px; }
.privacy-links svg { width: 14px; height: 14px; }

/* FAQ section */
.faq .section-head { text-align: center; margin-inline: auto; }

/* CTA band */
.cta-band { background: var(--emerald-900); color: #fff; border-radius: var(--r-2xl); margin-inline: var(--gutter); text-align: center; }
.cta-band .container { padding-block: var(--space-11); max-width: 640px; }
.cta-band .brand-mark { width: 56px; height: 56px; border-radius: 16px; margin-inline: auto var(--space-6); }
.cta-band h2 { color: #fff; margin-bottom: var(--space-3); }
.cta-band p { color: var(--emerald-200); margin-bottom: var(--space-7); }
.cta-band .hero-cta { justify-content: center; }

/* Footer */
.site-footer { padding-block: var(--space-11) var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); padding-bottom: var(--space-9); border-bottom: 1px solid var(--border); }
.footer-brand .brand { margin-bottom: var(--space-3); }
.footer-brand p { color: var(--muted); font-size: var(--fs-sm); max-width: 28ch; }
.footer-brand .faint { display: block; margin-top: var(--space-4); }
.footer-col h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: var(--space-4); }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--muted); font-size: var(--fs-sm); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: var(--space-6); font-size: var(--fs-xs); color: var(--faint); }

/* =========================================================================
   LEGAL TEMPLATE
   ========================================================================= */
.page-header-band { background: var(--surface-alt); border-bottom: 1px solid var(--border); padding-block: var(--space-9) var(--space-8); position: relative; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--faint); margin-bottom: var(--space-5); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.meta-chips { display: flex; gap: 8px; margin-top: var(--space-5); flex-wrap: wrap; }

.legal-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-9); padding-block: var(--space-9) var(--space-12); }
.legal { max-width: var(--container-narrow); margin: 0 auto; width: 100%; }
.legal h2 {
  font-size: var(--fs-h3);
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal p, .legal li { color: var(--warm-700); font-size: 1.0625rem; line-height: 1.75; max-width: 72ch; }
.legal ul { padding-left: 1.2em; list-style: disc; margin: var(--space-4) 0; }
.legal li { margin-bottom: 8px; }
.legal p { margin-bottom: var(--space-4); }
.legal a { color: var(--brand); font-weight: 600; }
.legal a:hover { text-decoration: underline; }

.toc { display: none; }
@media (min-width: 1080px) {
  .legal-layout { grid-template-columns: 200px 1fr; align-items: start; }
  .toc { display: block; position: sticky; top: 96px; }
  .toc-title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: var(--space-3); }
  .toc ul { display: flex; flex-direction: column; gap: 10px; }
  .toc a { font-size: var(--fs-xs); color: var(--muted); }
  .toc a:hover { color: var(--brand); }
}

.closing-callout {
  margin-top: var(--space-9);
  background: var(--surface-tint);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  text-align: center;
}
.closing-callout p { color: var(--ink-2); margin-bottom: var(--space-4); max-width: none; }

/* Support / delete-account page bits */
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); margin: var(--space-6) 0 var(--space-9); }
.help-card h3 { font-size: var(--fs-h4); margin-bottom: 6px; }
.help-card p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 10px; }
.help-card a { font-size: var(--fs-xs); font-weight: 600; color: var(--brand); }
.contact-card { background: var(--emerald-900); color: #fff; border-radius: var(--r-xl); padding: var(--space-8); text-align: center; margin: var(--space-6) 0 var(--space-9); }
.contact-card p { color: var(--emerald-200); margin-bottom: var(--space-5); }
.contact-card .btn { margin-bottom: var(--space-4); }
.contact-card code { font-size: var(--fs-sm); color: #fff; opacity: .85; }
.checklist { list-style: none; padding: 0; margin: var(--space-4) 0; }
.checklist li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 1.0625rem; color: var(--warm-700); }
.checklist li:last-child { border-bottom: 0; }
.checklist svg { width: 18px; height: 18px; color: var(--emerald-600); flex: none; margin-top: 3px; }
.timeline-permanence { display: flex; gap: 12px; align-items: flex-start; background: var(--warm-100); border-radius: var(--r-md); padding: var(--space-5); margin: var(--space-6) 0; }
.timeline-permanence svg { width: 22px; height: 22px; color: var(--gold-700); flex: none; }

/* 404 */
.error-page { padding-block: var(--space-13) var(--space-12); text-align: center; }
.error-page .eyebrow { justify-content: center; margin-bottom: var(--space-4); }
.error-page .hero-cta { justify-content: center; margin-top: var(--space-7); }

/* =========================================================================
   MOTION / SCROLL REVEAL
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

/* =========================================================================
   RESPONSIVE — mobile-first
   ========================================================================= */
.nav-links { display: none; }
.nav-toggle { display: flex; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-panel { display: none !important; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .detail-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (max-width: 1023px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: var(--space-6); }
  .privacy-band-inner { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-main, .bento-side { grid-column: span 1; }
  .today-strip .container { grid-template-columns: 1fr; text-align: center; }
  .today-strip .life-ring { margin-inline: auto; }
}

@media (max-width: 767px) {
  .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .footer-brand { grid-column: span 2; }
  .privacy-tiles { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; }
}

@media (max-width: 559px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .cta-band .hero-cta, .hero-cta { flex-direction: column; align-items: stretch; }
}

/* =========================================================================
   PRINT (legal pages)
   ========================================================================= */
@media print {
  .site-header, .site-footer, .toc, .skip-link, .mobile-panel { display: none !important; }
  body { background: #fff; color: #000; }
  .legal a { color: #000; text-decoration: underline; }
  a[href^="http"]::after, a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
