/* ==========================================================================
   OnChainMedia — global styles
   No framework. Dark theme, purple accent, mobile-first.
   ========================================================================== */

:root {
  --bg: #0a0910;
  --bg-elev: #12101b;
  --bg-card: #161322;
  --bg-card-hover: #1c1830;
  --border: #2a2540;
  --border-strong: #3b3459;
  --text: #f4f2fa;
  --text-muted: #a9a3c0;
  --text-dim: #7a7494;
  --accent: #8b5cf6;
  --accent-strong: #7c3aed;
  --accent-soft: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.35);
  --accent-tint: rgba(139, 92, 246, 0.12);
  --success: #34d399;
  --danger: #f87171;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --container: 1160px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: #c4b5fd; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.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: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff; box-shadow: 0 6px 24px var(--accent-glow);
}
.btn-primary:hover { color: #fff; box-shadow: 0 8px 32px rgba(139, 92, 246, .55); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent-soft); background: var(--accent-tint); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 9, 16, 0.78);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 32px; height: 32px; }
.brand span b { color: var(--accent-soft); font-weight: 700; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-links a { color: var(--text-muted); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border);
  background: transparent; color: var(--text); cursor: pointer;
}
.mobile-menu {
  display: none; border-top: 1px solid var(--border); background: var(--bg-elev);
  padding: 12px 20px 20px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a { display: block; padding: 12px 4px; color: var(--text); border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-menu .btn { margin-top: 16px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle, .mobile-menu, .mobile-menu.is-open { display: none; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; position: relative; }
@media (max-width: 640px) { section { padding: 64px 0; } }
.section-alt { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent-soft); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { color: var(--text-muted); font-size: 17px; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 720px; z-index: -1;
  background:
    radial-gradient(600px 360px at 20% 20%, rgba(139, 92, 246, .28), transparent 70%),
    radial-gradient(520px 320px at 85% 10%, rgba(124, 58, 237, .18), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(22, 19, 34, .7);
  color: var(--text-muted); font-size: 13px; font-weight: 500; margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); }
.hero h1 { font-size: clamp(36px, 5.6vw, 62px); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .grad {
  background: linear-gradient(120deg, #c4b5fd 0%, var(--accent) 55%, #6d28d9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: clamp(17px, 2vw, 19px); color: var(--text-muted); max-width: 560px; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: var(--text-muted); font-size: 14px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { color: var(--accent-soft); flex: none; }

/* Hero visual: stylised editor/phone mock */
.hero-visual { position: relative; max-width: 480px; margin: 0 auto; width: 100%; }
.mock-window {
  background: linear-gradient(180deg, #1a1628, #120f1c);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow), 0 0 80px rgba(139, 92, 246, .15);
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b3459; display: block; }
.mock-bar span { margin-left: auto; font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.mock-stream {
  aspect-ratio: 16 / 9; border-radius: 12px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 40%, rgba(139,92,246,.45), transparent 55%),
              radial-gradient(circle at 75% 70%, rgba(56,189,248,.18), transparent 50%), #0e0c16;
  border: 1px solid var(--border);
}
.mock-live {
  position: absolute; top: 10px; left: 10px; background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: .05em;
}
.mock-play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  display: grid; place-items: center; backdrop-filter: blur(6px);
}
.mock-timeline { display: grid; gap: 8px; }
.mock-track { height: 26px; border-radius: 6px; background: #0e0c16; border: 1px solid var(--border); position: relative; overflow: hidden; }
.mock-track b { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }
.mock-track.alt b { background: linear-gradient(90deg, #4c1d95, #6d28d9); }
.mock-clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-clip {
  aspect-ratio: 9 / 16; border-radius: 10px; border: 1px solid var(--border);
  background: linear-gradient(170deg, #241d3a 0%, #0f0c18 100%); position: relative; overflow: hidden;
}
.mock-clip::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 10%; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.18); box-shadow: 0 -12px 0 rgba(255,255,255,.1);
}
.mock-clip span {
  position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700; color: #fff;
  background: rgba(0,0,0,.45); padding: 2px 6px; border-radius: 4px;
}
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(22, 19, 34, .92); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 10px 14px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow);
}
.float-chip small { display: block; color: var(--text-dim); font-weight: 500; font-size: 11px; }
.float-chip .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-soft); }
.float-chip.one { left: -24px; bottom: 90px; }
.float-chip.two { right: -18px; top: 70px; }
@media (max-width: 560px) { .float-chip { display: none; } }

/* ---------- How it works (flow) ---------- */
.flow { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .flow { grid-template-columns: repeat(5, 1fr); } }
.flow-step {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px; counter-increment: step;
  transition: border-color .2s ease, transform .2s ease;
}
.flow-step:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.flow-step::before {
  content: "0" counter(step); position: absolute; top: 18px; right: 18px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
}
.flow-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent-soft); margin-bottom: 16px;
  border: 1px solid rgba(139, 92, 246, .25);
}
.flow-step h3 { font-size: 18px; margin-bottom: 6px; }
.flow-step p { color: var(--text-muted); font-size: 14.5px; margin: 0; }
@media (min-width: 1000px) {
  .flow-step:not(:last-child)::after {
    content: ""; position: absolute; top: 46px; right: -13px; width: 10px; height: 10px;
    border-top: 2px solid var(--accent); border-right: 2px solid var(--accent);
    transform: rotate(45deg); opacity: .7; z-index: 1;
  }
}
.flow-step.is-final { background: linear-gradient(160deg, rgba(139,92,246,.18), var(--bg-card) 70%); border-color: rgba(139,92,246,.45); }

/* ---------- Why edits ---------- */
.why-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.why-copy h2 { font-size: clamp(28px, 4vw, 40px); }
.why-copy p { color: var(--text-muted); font-size: 17px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.check-list svg { flex: none; margin-top: 3px; color: var(--accent-soft); }
.stat-cards { display: grid; gap: 16px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 6px;
}
.stat-card .stat { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.stat-card .stat em { font-style: normal; color: var(--accent-soft); }
.stat-card p { color: var(--text-muted); margin: 0; font-size: 15px; }
.stat-card .source { font-size: 12px; color: var(--text-dim); }
.stat-card .source a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.stat-card .source a:hover { color: var(--accent-soft); }

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-card);
  border: 1px solid var(--border); margin: 0 auto 40px; position: relative;
}
.billing-toggle button {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text-muted); background: transparent;
  border: 0; padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: color .2s, background .2s;
}
.billing-toggle button[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: 0 4px 16px var(--accent-glow); }
.pricing-center { text-align: center; }
.pricing-grid { display: grid; gap: 24px; max-width: 900px; margin: 0 auto; }
@media (min-width: 780px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
.price-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px; display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.price-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.price-card.is-featured {
  border-color: rgba(139, 92, 246, .6);
  background: linear-gradient(180deg, rgba(139, 92, 246, .14) 0%, var(--bg-card) 45%);
  box-shadow: 0 20px 60px rgba(124, 58, 237, .18);
}
.price-tag {
  position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .03em;
}
.price-card h3 { font-size: 22px; margin-bottom: 4px; }
.price-card .tagline { color: var(--text-muted); font-size: 15px; margin-bottom: 22px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price .amount { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price .cur { font-size: 24px; font-weight: 700; align-self: flex-start; margin-top: 6px; }
.price .per { color: var(--text-muted); font-size: 15px; }
.price-note { color: var(--text-dim); font-size: 13px; margin-bottom: 24px; min-height: 20px; }
.price-volume { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.price-volume div { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.price-volume b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.price-volume span { font-size: 13px; color: var(--text-muted); }
.feature-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; flex: 1; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.feature-list svg { flex: none; margin-top: 3px; color: var(--success); }
.pricing-foot { text-align: center; margin-top: 32px; color: var(--text-dim); font-size: 14px; }
.pricing-foot a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.secure-row { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Comparison ---------- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); -webkit-overflow-scrolling: touch;
}
.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14.5px; }
.compare th, .compare td { padding: 16px 14px; text-align: center; border-bottom: 1px solid var(--border); }
.compare thead th { font-size: 13px; font-weight: 600; color: var(--text-muted); background: rgba(255,255,255,.02); vertical-align: bottom; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--text); white-space: nowrap; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare .us { background: var(--accent-tint); }
.compare thead .us { color: #fff; font-weight: 700; font-size: 14px; border-top: 2px solid var(--accent); }
.compare .yes { color: var(--success); }
.compare .no { color: var(--text-dim); }
.compare .vary { color: var(--text-muted); font-size: 13px; }
.compare svg { display: inline-block; vertical-align: middle; }
.compare-note { color: var(--text-dim); font-size: 13px; margin-top: 16px; max-width: 860px; }
.scroll-hint { display: none; color: var(--text-dim); font-size: 13px; margin-bottom: 10px; }
@media (max-width: 800px) { .scroll-hint { display: block; } }

/* ---------- Ecosystem ---------- */
.eco-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .eco-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .eco-grid { grid-template-columns: repeat(4, 1fr); } }
.eco-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.eco-card h3 { font-size: 18px; margin-bottom: 8px; }
.eco-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }
.eco-cta {
  margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(120deg, rgba(139,92,246,.16), rgba(139,92,246,.04));
  border: 1px solid rgba(139,92,246,.35); border-radius: var(--radius-lg); padding: 28px;
}
.eco-cta h3 { margin: 0 0 4px; font-size: 20px; }
.eco-cta p { margin: 0; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; font-size: 16.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 10px; height: 10px; flex: none; margin-right: 4px;
  border-right: 2px solid var(--accent-soft); border-bottom: 2px solid var(--accent-soft);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq .answer { padding: 0 22px 20px; color: var(--text-muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 48px; } }
.contact-channels { display: grid; gap: 14px; }
.channel {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  transition: border-color .2s ease, background .2s ease;
}
.channel:hover { color: var(--text); border-color: var(--border-strong); background: var(--bg-card-hover); }
.channel .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-soft); flex: none; }
.channel small { display: block; color: var(--text-dim); font-size: 13px; }
.channel b { font-weight: 600; }
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: #0e0c16; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
.field select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.form-hint { font-size: 13px; color: var(--text-dim); margin: 4px 0 0; }
.form-status { margin-top: 14px; font-size: 14px; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: #08070d; }
.footer-grid { display: grid; gap: 32px; margin-bottom: 40px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-muted); font-size: 15px; }
.footer-grid a:hover { color: var(--text); }
.footer-about p { color: var(--text-muted); font-size: 15px; max-width: 340px; margin-top: 14px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; color: var(--text-dim); font-size: 14px;
}
.footer-bottom p { margin: 0; }

/* ---------- Checkout modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 300; display: none; align-items: flex-end; justify-content: center;
  padding: 0;
}
.modal.is-open { display: flex; }
@media (min-width: 640px) { .modal { align-items: center; padding: 24px; } }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 4, 10, .72); backdrop-filter: blur(4px); animation: fade .2s ease; }
.modal-dialog {
  position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow);
  animation: rise .25s ease;
}
@media (min-width: 640px) { .modal-dialog { border-radius: var(--radius-lg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 0; }
.modal-head h2 { font-size: 22px; margin: 0; }
.modal-head p { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; }
.modal-close {
  flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); cursor: pointer; display: grid; place-items: center;
}
.modal-close:hover { color: var(--text); border-color: var(--border-strong); }
.modal-body { padding: 20px 24px 24px; }
.choice-group { display: grid; gap: 10px; margin-bottom: 18px; }
.choice-group.cols { grid-template-columns: 1fr 1fr; }
.choice-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 8px; display: block; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-card); cursor: pointer; transition: border-color .2s, background .2s;
}
.choice span b { display: block; font-size: 15px; }
.choice span small { color: var(--text-muted); font-size: 13px; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.order-summary {
  background: #0e0c16; border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin: 6px 0 18px;
  display: grid; gap: 8px; font-size: 14.5px;
}
.order-summary .line { display: flex; justify-content: space-between; gap: 12px; color: var(--text-muted); }
.order-summary .line.total { color: var(--text); font-weight: 700; font-size: 16px; padding-top: 8px; border-top: 1px dashed var(--border); }
.check-field { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-muted); margin-bottom: 18px; }
.check-field input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--text-dim); text-align: center; }
.modal-success { text-align: center; padding: 12px 0 4px; }
.modal-success .ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(52,211,153,.12); color: var(--success); }
.modal-success p { color: var(--text-muted); }
body.modal-open { overflow: hidden; }

/* ---------- Legal / simple pages ---------- */
.page-hero { padding: 72px 0 32px; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(32px, 5vw, 46px); }
.page-hero p { color: var(--text-muted); margin: 0; }
.legal { padding: 48px 0 88px; }
.legal-body { max-width: 780px; }
.legal-body h2 { font-size: 22px; margin-top: 40px; }
.legal-body h3 { font-size: 17px; margin-top: 24px; }
.legal-body p, .legal-body li { color: var(--text-muted); }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--text); }
.legal-toc { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.legal-toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 24px; }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }
.legal-toc a { color: var(--text-muted); font-size: 14.5px; }
.status-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.status-page .ic { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(52,211,153,.12); color: var(--success); }
.status-page p { color: var(--text-muted); max-width: 520px; margin: 0 auto 24px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
