/* =========================================================================
   Dynasty Manager — marketing site
   Aesthetic: editorial / cinematic. Restrained palette, one accent (gold).
   Spacious vertical rhythm, oversized display type, serif italic accent
   words, subtle grain + dual radial glows, bento-style feature grid,
   scroll-reveal motion. Mobile-first, no framework.
   ========================================================================= */

:root {
  /* Palette — single accent, deep cool neutrals. */
  --bg:         hsl(225, 22%, 5%);
  --bg-2:       hsl(225, 20%, 7%);
  --panel:      hsla(225, 18%, 11%, 0.55);
  --panel-2:    hsla(225, 18%, 14%, 0.65);
  --border:     hsla(40, 14%, 80%, 0.08);
  --border-2:   hsla(40, 14%, 80%, 0.16);
  --hairline:   hsla(43, 96%, 60%, 0.35);

  --text:       hsl(40, 18%, 96%);
  --text-soft:  hsl(40, 12%, 84%);
  --muted:      hsl(40, 8%, 62%);
  --muted-2:    hsl(40, 6%, 46%);

  --gold:       hsl(43, 96%, 60%);
  --gold-2:     hsl(36, 92%, 52%);
  --gold-soft:  hsla(43, 96%, 60%, 0.12);
  --cool:       hsl(215, 70%, 65%);

  /* Type scale */
  --display:    "Fraunces", "Times New Roman", Georgia, serif;
  --heading:    "Oswald", system-ui, sans-serif;
  --body:       "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Rhythm */
  --r-1: 8px;
  --r-2: 16px;
  --r-3: 24px;
  --r-4: 40px;
  --r-5: 64px;
  --r-6: 96px;
  --r-7: 128px;
  --r-8: 160px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
*::selection { background: var(--gold); color: hsl(225, 22%, 5%); }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Atmospheric backdrop: dual radial glows + 1px grain overlay. */
body {
  position: relative;
  background:
    radial-gradient(60% 50% at 8% -5%,  hsla(43, 96%, 60%, 0.10), transparent 60%),
    radial-gradient(55% 45% at 100% 100%, hsla(215, 80%, 60%, 0.07), transparent 60%),
    radial-gradient(40% 30% at 50% 40%, hsla(43, 96%, 60%, 0.03), transparent 70%),
    var(--bg);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
body > * { position: relative; z-index: 1; }

a {
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--border-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
a:hover { color: var(--gold); border-bottom-color: var(--hairline); }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--r-3);
}
.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--r-3);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsla(225, 22%, 5%, 0.6);
  backdrop-filter: saturate(1.2) blur(18px);
  -webkit-backdrop-filter: saturate(1.2) blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: none;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-block;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px hsla(43, 96%, 60%, 0.35));
}

nav.site-nav { display: flex; align-items: center; gap: 28px; }
nav.site-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: none;
}
nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] { color: var(--text); }

@media (max-width: 600px) {
  nav.site-nav { gap: 18px; }
  nav.site-nav a { font-size: 12px; }
  .brand { font-size: 13px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(80px, 14vw, 160px) 0 clamp(72px, 10vw, 120px);
  text-align: left;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: var(--r-4);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

h1.hero-title {
  font-family: var(--heading);
  font-weight: 600;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: none;
  margin: 0 0 var(--r-4);
  color: var(--text);
}
h1.hero-title .accent {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold) 0%, hsl(38, 100%, 75%) 60%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-feature-settings: "ss01" on;
}

.hero-lead {
  max-width: 56ch;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0 0 var(--r-5);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: var(--r-3);
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: hsl(225, 22%, 5%);
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border-bottom: none;
  box-shadow:
    0 0 0 1px hsla(43, 96%, 60%, 0.4),
    0 12px 36px hsla(43, 96%, 60%, 0.22);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary:hover {
  color: hsl(225, 22%, 5%);
  border-bottom: none;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px hsla(43, 96%, 60%, 0.6),
    0 16px 44px hsla(43, 96%, 60%, 0.34);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 4px;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid var(--border-2);
}
.btn-ghost:hover { color: var(--gold); border-bottom-color: var(--gold); }
.btn-ghost .arrow {
  transition: transform 0.25s var(--ease);
}
.btn-ghost:hover .arrow { transform: translateX(4px); }

.hero-trust {
  margin-top: var(--r-5);
  display: flex;
  align-items: center;
  gap: var(--r-3);
  flex-wrap: wrap;
  font-family: var(--heading);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted-2);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 12px; }
.hero-trust .sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--muted-2);
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--border);
  padding: var(--r-3) 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: var(--r-5);
  width: max-content;
  animation: scroll 38s linear infinite;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; gap: var(--r-5); }
.marquee-track .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}
.marquee-track .em {
  color: var(--text);
  font-style: italic;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Section scaffold ---------- */
section.block {
  padding: clamp(80px, 12vw, 160px) 0;
}
.section-meta {
  display: flex;
  align-items: baseline;
  gap: var(--r-3);
  margin-bottom: var(--r-4);
  font-family: var(--heading);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-meta .num {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.section-meta::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: var(--r-2);
}

h2.section-title {
  font-family: var(--heading);
  font-weight: 600;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 0 0 var(--r-3);
  max-width: 22ch;
}
h2.section-title .accent {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.section-lead {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 var(--r-5);
  font-size: clamp(16px, 1.4vw, 19px);
}

/* ---------- Bento feature grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: var(--r-2);
}
.bento .card {
  position: relative;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: var(--r-4);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bento .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, hsla(43, 96%, 60%, 0.25), transparent 40%, transparent 60%, hsla(215, 80%, 60%, 0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.bento .card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.bento .card:hover::before { opacity: 1; }

.bento .card .num {
  position: absolute;
  top: var(--r-3);
  right: var(--r-3);
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
.bento .card h3 {
  font-family: var(--heading);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 var(--r-2);
  color: var(--text);
  max-width: 18ch;
}
.bento .card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  max-width: 38ch;
}
.bento .card .icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid hsla(43, 96%, 60%, 0.35);
  color: var(--gold);
  margin-bottom: var(--r-3);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.bento .card:hover .icon {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.bento .card .icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Bento sizing — asymmetric, editorial. */
.bento .card.wide   { grid-column: span 4; }
.bento .card.tall   { grid-column: span 2; grid-row: span 2; }
.bento .card.half   { grid-column: span 3; }
.bento .card.third  { grid-column: span 2; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .card.wide, .bento .card.tall, .bento .card.half, .bento .card.third {
    grid-column: span 2;
    grid-row: auto;
  }
}

/* ---------- Value strip (post-hero) ---------- */
.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 800px) {
  .value-strip { grid-template-columns: 1fr; }
  .value-strip .value { border-right: none !important; border-bottom: 1px solid var(--border); }
  .value-strip .value:last-child { border-bottom: none; }
}
.value-strip .value {
  padding: var(--r-4) var(--r-3);
  border-right: 1px solid var(--border);
}
.value-strip .value:last-child { border-right: none; }
.value-strip .value .tag {
  display: block;
  font-family: var(--heading);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.value-strip .value h3 {
  font-family: var(--heading);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
  line-height: 1.1;
}
.value-strip .value p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
  max-width: 32ch;
}

/* ---------- Showcase flipped (image left, copy right) ---------- */
.showcase.flip .copy { order: 2; }
.showcase.flip .screenshot { order: 1; }
@media (max-width: 900px) {
  .showcase.flip .copy { order: 1; }
  .showcase.flip .screenshot { order: 2; }
}

/* ---------- App Store callout (closer) ---------- */
.appstore-card {
  display: inline-flex;
  align-items: center;
  gap: var(--r-2);
  padding: var(--r-2) var(--r-3);
  margin-top: var(--r-3);
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-family: var(--heading);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.appstore-card strong {
  color: var(--text);
  font-weight: 600;
}
.appstore-card .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2.4s var(--ease) infinite;
}

/* ---------- Gallery (real screenshots) ---------- */
.gallery {
  position: relative;
  margin: var(--r-5) calc(var(--r-3) * -1) 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.gallery-track {
  display: flex;
  gap: var(--r-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--r-3);
  scroll-padding: var(--r-3);
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { height: 6px; }
.gallery-track::-webkit-scrollbar-thumb {
  background: hsla(43, 96%, 60%, 0.4);
  border-radius: 999px;
}
.gallery-track::-webkit-scrollbar-thumb:hover { background: var(--gold); }
.gallery-track::-webkit-scrollbar-track { background: transparent; }
.gallery-card {
  flex: 0 0 auto;
  width: min(260px, 70vw);
  scroll-snap-align: center;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.gallery-card:hover {
  transform: translateY(-8px);
  border-color: hsla(43, 96%, 60%, 0.4);
  box-shadow: 0 30px 60px -20px hsla(43, 96%, 60%, 0.18);
}
.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Showcase (real screenshot) ---------- */
.screenshot {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  isolation: isolate;
}
.screenshot::before {
  content: "";
  position: absolute;
  inset: -12% -22%;
  background:
    radial-gradient(60% 55% at 50% 30%, hsla(43, 96%, 60%, 0.22), transparent 65%),
    radial-gradient(40% 40% at 30% 80%, hsla(215, 80%, 60%, 0.12), transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(8px);
}
.screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow:
    0 0 0 1px hsla(40, 14%, 80%, 0.06),
    0 80px 120px -50px hsla(43, 96%, 60%, 0.28),
    0 40px 80px -20px hsla(0, 0%, 0%, 0.55);
}

/* ---------- Showcase (device — legacy CSS mockup, kept for fallback) ---------- */
.showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--r-6);
  align-items: center;
}
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; gap: var(--r-5); }
}
.showcase .copy h2 { max-width: 16ch; }

/* Pure-CSS phone mockup. */
.device {
  position: relative;
  width: min(320px, 88%);
  margin: 0 auto;
  aspect-ratio: 320 / 660;
  border-radius: 48px;
  background:
    linear-gradient(180deg, hsl(225, 18%, 14%), hsl(225, 18%, 9%));
  padding: 14px;
  box-shadow:
    0 0 0 1px hsla(40, 14%, 80%, 0.06),
    0 60px 120px -40px hsla(43, 96%, 60%, 0.25),
    0 30px 60px -20px hsla(0, 0%, 0%, 0.6);
}
.device::before {
  content: "";
  position: absolute;
  top: 22px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 26px;
  background: hsl(225, 22%, 5%);
  border-radius: 999px;
  z-index: 2;
}
.device .screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 0%, hsla(43, 96%, 60%, 0.18), transparent 60%),
    linear-gradient(180deg, hsl(225, 22%, 8%), hsl(225, 24%, 5%));
  display: flex;
  flex-direction: column;
  padding: 56px 20px 20px;
  gap: 14px;
}
.device .screen .badge {
  align-self: flex-start;
  font-family: var(--heading);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid hsla(43, 96%, 60%, 0.3);
  padding: 4px 8px;
  border-radius: 999px;
}
.device .screen h4 {
  font-family: var(--heading);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.05;
}
.device .screen .sub {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 6px;
}
.device .screen .row {
  background: hsla(225, 18%, 14%, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.device .screen .row .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  display: grid; place-items: center;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 11px;
  color: hsl(225, 22%, 5%);
}
.device .screen .row .name {
  flex: 1;
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}
.device .screen .row .rating {
  font-family: var(--heading);
  font-size: 14px;
  color: var(--gold);
}
.device .screen .stat-line {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 4px;
}
.device .screen .pill {
  font-size: 10px;
  font-family: var(--heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: hsla(225, 18%, 18%, 0.7);
  color: var(--muted);
  border: 1px solid var(--border);
}
.device .screen .pill.hot { color: var(--gold); border-color: hsla(43, 96%, 60%, 0.3); }

/* ---------- Systems grid (depth showcase) ---------- */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .systems-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .systems-grid { grid-template-columns: 1fr; }
}
.system-tile {
  background: var(--bg);
  padding: var(--r-3);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.4s var(--ease);
}
.system-tile:hover { background: var(--bg-2); }
.system-tile .num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
.system-tile h4 {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.005em;
  margin: 0;
  color: var(--text);
}
.system-tile p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Principles (anti-features) ---------- */
.principles {
  border-top: 1px solid var(--border);
}
.principle {
  display: grid;
  grid-template-columns: 110px 1fr 1.1fr;
  align-items: center;
  gap: var(--r-4);
  padding: var(--r-4) 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.4s var(--ease), background 0.4s var(--ease);
}
.principle:hover {
  padding-left: var(--r-3);
  background: linear-gradient(90deg, hsla(43, 96%, 60%, 0.04), transparent);
}
.principle .strike {
  font-family: var(--heading);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.principle .label {
  font-family: var(--heading);
  font-weight: 600;
  font-size: clamp(28px, 4.5vw, 60px);
  letter-spacing: -0.018em;
  color: var(--text);
  line-height: 1;
  text-decoration: line-through;
  text-decoration-color: hsla(43, 96%, 60%, 0.55);
  text-decoration-thickness: 2px;
  text-underline-offset: 0;
}
.principle .reason {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 38ch;
}
@media (max-width: 800px) {
  .principle {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: var(--r-3) 0;
  }
}

/* ---------- FAQ teaser on home ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

/* ---------- Stats (oversized typography) ---------- */
.stats-block { padding-top: 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
@media (max-width: 800px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.stats-grid .stat {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: var(--r-4) var(--r-3);
  position: relative;
}
.stats-grid .stat:nth-child(4n) { border-right: none; }
@media (max-width: 800px) {
  .stats-grid .stat:nth-child(n) { border-right: 1px solid var(--border); }
  .stats-grid .stat:nth-child(2n) { border-right: none; }
}
.stats-grid .stat .label {
  display: block;
  font-family: var(--heading);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--r-3);
}
.stats-grid .stat .value {
  font-family: var(--heading);
  font-weight: 600;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-block;
}
.stats-grid .stat .value .em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.stats-grid .stat .caption {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: var(--r-2);
  max-width: 24ch;
}

/* ---------- Closing CTA ---------- */
.closer {
  text-align: center;
  padding: clamp(96px, 14vw, 200px) 0;
  position: relative;
}
.closer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 50% at 50% 60%, hsla(43, 96%, 60%, 0.08), transparent 70%);
  pointer-events: none;
}
.closer h2 {
  text-align: center;
  margin-inline: auto;
  max-width: 18ch;
}
.closer .section-lead {
  margin-inline: auto;
  text-align: center;
}

/* ---------- Doc pages (privacy / support) ---------- */
.page-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--r-3);
  margin: var(--r-6) 0 var(--r-4);
}
.page-header h1 {
  font-family: var(--heading);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.015em;
  margin: 0 0 var(--r-1);
}
.page-header .meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

main.doc { padding-bottom: var(--r-6); }
main.doc h2 {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.005em;
  margin: var(--r-5) 0 var(--r-2);
}
main.doc p, main.doc li { color: var(--text-soft); font-size: 16px; }
main.doc ul { padding-left: 22px; }
main.doc li { margin-bottom: var(--r-1); }

.callout {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: var(--r-3);
  margin: var(--r-3) 0;
}
.callout p { margin: 0; }
code {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: "SF Mono", "Menlo", "Monaco", monospace;
}

details.faq {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color 0.2s var(--ease);
}
details.faq[open] { border-color: var(--border-2); }
details.faq summary {
  font-family: var(--heading);
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--gold);
  line-height: 1;
  transition: transform 0.25s var(--ease);
}
details.faq[open] summary::after { content: "−"; }
details.faq p { color: var(--muted); margin: 14px 0 0; font-size: 15px; }

/* Legacy class kept for support.html / privacy.html compatibility */
.eyebrow {
  display: inline-block;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid hsla(43, 96%, 60%, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: var(--r-3);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.feature-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--gold-soft);
  border: 1px solid hsla(43, 96%, 60%, 0.22);
  border-radius: 12px;
  font-size: 20px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-family: var(--heading);
  font-size: 20px;
  margin: 0 0 8px;
}
.feature-card p { color: var(--muted); font-size: 15px; margin: 0; }
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 24px 0 0;
}
.stat-value {
  font-family: var(--heading);
  font-size: 32px;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: hsl(225, 22%, 5%);
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  border-bottom: none;
  box-shadow: 0 4px 24px hsla(43, 96%, 60%, 0.3);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.hero-cta:hover {
  color: hsl(225, 22%, 5%);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px hsla(43, 96%, 60%, 0.4);
  border-bottom: none;
}

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  margin-top: var(--r-6);
  padding: var(--r-5) 0;
  color: var(--muted);
  font-size: 13px;
  position: relative;
}
footer.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--r-5);
  align-items: start;
}
@media (max-width: 800px) {
  footer.site-footer .container {
    grid-template-columns: 1fr 1fr;
    gap: var(--r-4);
  }
}
.footer-col h5 {
  font-family: var(--heading);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted-2);
  margin: 0 0 var(--r-2);
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  color: var(--text-soft);
  border-bottom: none;
  font-size: 14px;
}
.footer-col a:hover { color: var(--gold); }
.footer-brand p {
  color: var(--muted);
  font-size: 13px;
  margin: var(--r-2) 0 0;
  max-width: 30ch;
}
.footer-base {
  border-top: 1px solid var(--border);
  margin-top: var(--r-4);
  padding-top: var(--r-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--r-3);
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 12px;
  font-family: var(--heading);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
