/* Bahtara — site styles. Tokens mirror app/lib/core/theme/tokens.dart */

@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/PlusJakartaSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/PlusJakartaSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --void: #02010a;
  --base: #090812;
  --raised: #121020;
  --deep-purple: #1a0f2a;
  --deep-teal: #0b1b22;
  --surface: #211b32;
  --glass: rgba(33, 27, 50, 0.55);
  --border: #3a2f4a;
  --border-soft: rgba(185, 138, 242, 0.18);
  --magenta: #f25bc4;
  --violet: #b98af2;
  --cyan: #4fe3ec;
  --gold: #f4d58a;
  --gold-light: #fff1ca;
  --ivory: #fff9f0;
  --text: #f7f2fa;
  --text-2: #bdb3cb;
  --text-3: #8f859d;
  --on-accent: #090812;
  --warning: #f3c777;

  --font-display: "Jakarta", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --gutter: 24px;
  --maxw: 1160px;
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --action: linear-gradient(105deg, var(--magenta) 0%, var(--violet) 52%, var(--cyan) 100%);
  --gold-shimmer: linear-gradient(100deg, var(--gold) 0%, var(--gold-light) 45%, var(--gold) 100%);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--void);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "lnum", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Cosmic atmosphere: nebula glows + two star layers (pure CSS, no images) */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
body::before {
  background:
    radial-gradient(60vmax 45vmax at 12% -8%, rgba(26, 15, 42, 0.95), transparent 70%),
    radial-gradient(50vmax 40vmax at 100% 20%, rgba(242, 91, 196, 0.10), transparent 70%),
    radial-gradient(55vmax 45vmax at 85% 110%, rgba(11, 27, 34, 0.95), transparent 70%),
    radial-gradient(40vmax 30vmax at 0% 90%, rgba(79, 227, 236, 0.06), transparent 70%),
    var(--void);
}
body::after {
  opacity: 0.75;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255, 249, 240, 0.9), transparent 60%),
    radial-gradient(1px 1px at 140px 90px, rgba(255, 249, 240, 0.6), transparent 60%),
    radial-gradient(1.4px 1.4px at 260px 170px, rgba(244, 213, 138, 0.9), transparent 60%),
    radial-gradient(1px 1px at 80px 220px, rgba(79, 227, 236, 0.75), transparent 60%),
    radial-gradient(1px 1px at 330px 40px, rgba(255, 249, 240, 0.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 200px 300px, rgba(255, 249, 240, 0.7), transparent 60%),
    radial-gradient(1px 1px at 370px 260px, rgba(185, 138, 242, 0.7), transparent 60%),
    radial-gradient(1px 1px at 50px 360px, rgba(255, 249, 240, 0.5), transparent 60%);
  background-size: 400px 400px;
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--gold-light); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--gold);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -0.025em; }
h3 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }

.overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.overline::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.gold-text {
  background: var(--gold-shimmer);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 1, 10, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(58, 47, 74, 0.5);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
}
.brand:hover { color: var(--text); }
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(244, 213, 138, 0.18), 0 6px 18px rgba(79, 227, 236, 0.10);
}
.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.site-nav a:hover { color: var(--text); background: rgba(185, 138, 242, 0.08); }
.site-nav a[aria-current="page"] { color: var(--gold); }
.nav-hide-sm { display: list-item; }

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.12s var(--ease-enter), box-shadow 0.22s, filter 0.22s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--action);
  color: var(--on-accent);
  box-shadow: 0 10px 30px -8px rgba(242, 91, 196, 0.45), 0 6px 22px -10px rgba(79, 227, 236, 0.5);
}
.btn-primary:hover { color: var(--on-accent); filter: brightness(1.07); }
.btn-ghost {
  background: rgba(33, 27, 50, 0.5);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn-ghost:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--violet); }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  min-width: 190px;
  padding: 8px 20px 8px 16px;
  border-radius: 14px;
  background: rgba(9, 8, 18, 0.85);
  box-shadow: inset 0 0 0 1px rgba(244, 213, 138, 0.35);
  color: var(--text);
  text-decoration: none;
  cursor: default;
}
.store-badge svg { width: 26px; height: 26px; flex: none; color: var(--gold); }
.store-badge small {
  display: block;
  font-size: 0.7rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-2);
}
.store-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  background: rgba(33, 27, 50, 0.6);
  box-shadow: inset 0 0 0 1px var(--border);
}
.pill b { color: var(--gold); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px);
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero-copy > * + * { margin-top: 24px; }
.hero-copy h1 { margin-top: 18px; }
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 34em;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-actions { margin-top: 32px; }

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1.02;
  width: 100%;
  max-width: 560px;
  justify-self: center;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% 6% 14%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(244, 213, 138, 0.22), transparent 70%),
    radial-gradient(closest-side at 30% 40%, rgba(79, 227, 236, 0.16), transparent 75%),
    radial-gradient(closest-side at 70% 30%, rgba(242, 91, 196, 0.14), transparent 75%);
  filter: blur(10px);
}
.hero-cup {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 78%;
  transform: translateX(-50%);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(244, 213, 138, 0.12));
}
.constellation {
  position: absolute;
  inset: 0 0 34% 0;
  width: 100%;
  height: 66%;
  overflow: visible;
}
.constellation .line {
  fill: none;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-dasharray: 4 6;
  opacity: 0.6;
}
.constellation .star { transform-box: fill-box; transform-origin: center; }
.twinkle { animation: twinkle 6s ease-in-out infinite; }
.twinkle.d2 { animation-delay: -2s; }
.twinkle.d3 { animation-delay: -4s; }
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.7); }
}
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(18, 16, 32, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--border-soft), 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
  animation: drift 9s ease-in-out infinite;
}
.float-chip i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.float-chip b { color: var(--gold); font-weight: 600; }
.float-chip.c1 { left: 0; top: 12%; }
.float-chip.c2 { right: 0; top: 4%; animation-delay: -3s; }
.float-chip.c2 i { background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.float-chip.c3 { right: 4%; top: 40%; animation-delay: -6s; }
.float-chip.c3 i { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 6.5vw, 88px) 0; }
.section + .section { padding-top: clamp(16px, 2.5vw, 32px); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--text-2); font-size: 1.08rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .overline { justify-content: center; }
.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, rgba(185, 138, 242, 0.35), transparent);
}

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(33, 27, 50, 0.72), rgba(18, 16, 32, 0.6));
  box-shadow: inset 0 0 0 1px rgba(58, 47, 74, 0.8), 0 24px 50px -30px rgba(0, 0, 0, 0.8);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(244, 213, 138, 0.45);
  background: radial-gradient(circle at 30% 30%, rgba(244, 213, 138, 0.18), transparent 70%);
}
.steps h3 { margin-top: 22px; }
.steps p { margin-top: 10px; color: var(--text-2); }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(9, 8, 18, 0.7);
  box-shadow: inset 0 0 0 1px var(--border);
}
.feature .icon svg { width: 26px; height: 26px; }
.feature .big {
  display: block;
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}
.feature h3 { margin-top: 22px; }
.feature .big + h3 { margin-top: 10px; }
.feature p { margin-top: 10px; color: var(--text-2); }
.feature.accent-cyan .icon svg { color: var(--cyan); }
.feature.accent-gold .icon svg { color: var(--gold); }
.feature.accent-magenta .icon svg { color: var(--magenta); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  background: rgba(9, 8, 18, 0.6);
  box-shadow: inset 0 0 0 1px var(--border);
}

.trust {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
}
.trust .icon {
  width: 72px; height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: radial-gradient(circle at 30% 30%, rgba(79, 227, 236, 0.22), rgba(9, 8, 18, 0.8));
  box-shadow: inset 0 0 0 1px rgba(79, 227, 236, 0.35);
  color: var(--cyan);
}
.trust .icon svg { width: 34px; height: 34px; }
.trust h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.trust p { margin-top: 10px; color: var(--text-2); max-width: 46em; }
.trust a { font-weight: 600; }

.cta {
  text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -40% 10% auto;
  height: 120%;
  background: radial-gradient(closest-side, rgba(244, 213, 138, 0.14), transparent 70%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta .emblem {
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(244, 213, 138, 0.25), 0 20px 50px -12px rgba(79, 227, 236, 0.3);
}
.cta p { margin: 14px auto 0; max-width: 34em; color: var(--text-2); }
.cta .badges { justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  padding: 48px 0 40px;
  border-top: 1px solid rgba(58, 47, 74, 0.6);
  background: rgba(2, 1, 10, 0.6);
  font-size: 0.92rem;
  color: var(--text-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-grid p { margin-top: 14px; max-width: 30em; color: var(--text-3); }
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-2);
  text-decoration: none;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(58, 47, 74, 0.4);
  color: var(--text-3);
  font-size: 0.84rem;
}

/* ---------- Document pages (legal, support, deletion) ---------- */
.doc {
  padding: clamp(40px, 6vw, 80px) 0 40px;
}
.doc .container { max-width: 820px; }
.doc-head h1 {
  margin-top: 16px;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
}
.doc-lead {
  margin-top: 20px;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-2);
}
.doc-updated {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-3);
}
.doc-body { margin-top: 36px; }
.doc-body > * + * { margin-top: 16px; }
.doc-body h2 {
  margin-top: 44px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.doc-body h2 + * { margin-top: 14px; }
.doc-body p,
.doc-body li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-2);
}
.doc-body strong { color: var(--text); font-weight: 600; }
.doc-body ul,
.doc-body ol { padding-left: 1.3em; }
.doc-body li + li { margin-top: 8px; }
.doc-body ul li::marker { color: var(--gold); }
.doc-body ol li::marker { color: var(--gold); font-weight: 600; }

.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: rgba(244, 213, 138, 0.06);
  box-shadow: inset 0 0 0 1px rgba(244, 213, 138, 0.28);
}
.callout svg { width: 22px; height: 22px; margin-top: 3px; color: var(--gold); }
.callout p { color: var(--text); }
.callout.draft {
  background: rgba(243, 199, 119, 0.08);
  box-shadow: inset 0 0 0 1px rgba(243, 199, 119, 0.45);
}
.callout.draft svg { color: var(--warning); }
.callout.draft p { font-size: 0.92rem; color: var(--gold-light); }
.callout.info {
  background: rgba(79, 227, 236, 0.06);
  box-shadow: inset 0 0 0 1px rgba(79, 227, 236, 0.3);
}
.callout.info svg { color: var(--cyan); }

.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--r-md);
  background: rgba(33, 27, 50, 0.55);
  box-shadow: inset 0 0 0 1px var(--border);
  transition: box-shadow 0.2s;
}
.faq details[open] { box-shadow: inset 0 0 0 1px rgba(244, 213, 138, 0.4); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(244, 213, 138, 0.35);
  transition: transform 0.25s var(--ease-enter);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; }

.mail-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(33, 27, 50, 0.8), rgba(11, 27, 34, 0.7));
  box-shadow: inset 0 0 0 1px rgba(244, 213, 138, 0.3);
}
.mail-card .label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.mail-card .addr {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  color: var(--gold);
  word-break: break-all;
}

.path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.doc-body .path { padding-left: 0; }
.doc-body .path li { margin: 0; }
.path li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}
.path li span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(9, 8, 18, 0.7);
  box-shadow: inset 0 0 0 1px rgba(244, 213, 138, 0.35);
}
.path li + li::before {
  content: "→";
  color: var(--gold);
}

.template {
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: rgba(9, 8, 18, 0.75);
  box-shadow: inset 0 0 0 1px var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.kv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.kv .card { padding: 22px; }
.kv h3 { font-size: 1.05rem; }
.kv ul { margin-top: 12px; }

.related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 48px;
}
.related a {
  display: block;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: rgba(33, 27, 50, 0.45);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: box-shadow 0.2s;
}
.related a:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--text); }
.related small { display: block; margin-top: 4px; font-weight: 400; color: var(--text-3); }

/* ---------- Share / 404 ---------- */
.center-page {
  min-height: calc(100vh - 68px - 220px);
  display: grid;
  place-items: center;
  padding: 64px 0;
  text-align: center;
}
.center-page .emblem {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  border-radius: 32px;
  box-shadow: 0 0 0 1px rgba(244, 213, 138, 0.25), 0 24px 60px -14px rgba(79, 227, 236, 0.35);
}
.center-page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.center-page p { margin: 16px auto 0; max-width: 32em; color: var(--text-2); font-size: 1.08rem; }
.center-page .badges,
.center-page .actions { justify-content: center; margin-top: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.big404 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

/* ---------- Motion ---------- */
.reveal { animation: rise 0.7s var(--ease-enter) both; }
.reveal.r2 { animation-delay: 0.09s; }
.reveal.r3 { animation-delay: 0.18s; }
.reveal.r4 { animation-delay: 0.27s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .overline,
  .hero-meta,
  .badges { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-art { max-width: 460px; }
  .steps, .features { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .related { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .nav-hide-sm { display: none; }
  .site-nav a { padding: 0 10px; font-size: 0.9rem; }
  .brand span { font-size: 0.95rem; letter-spacing: 0.18em; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; text-align: left; }
  .kv { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .float-chip { font-size: 0.74rem; padding: 6px 11px; }
  .store-badge { min-width: 0; flex: 1 1 170px; justify-content: center; }
  .mail-card .btn { width: 100%; }
}
@media (max-width: 340px) {
  .site-header .brand span { display: none; }
}

/* ---------- Utilities ---------- */
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.center-page p.note-sm { font-size: 0.88rem; color: var(--text-3); }
