/* DaVinci Ghost - public site
   Dark premium, gold accent. No frameworks. */

:root {
  --bg: #0b0b0e;
  --bg-deep: #050506;
  --bg-alt: #08080b;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --gold: #ebd4a0;
  --gold-line: #c8a860;
  --gold-soft: rgba(200, 168, 96, 0.22);
  --gold-glow: rgba(200, 168, 96, 0.14);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.70);
  --text-dim: rgba(255, 255, 255, 0.50);
  --border: rgba(255, 255, 255, 0.09);
  --radius: 14px;
  --radius-sm: 10px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Montserrat', 'Inter', system-ui, sans-serif;
  --header-h: 68px;
  --container: 1120px;
  --gutter: 16px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  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-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* subtle diagonal stripe texture, like the app's gold theme */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 14px),
    radial-gradient(1200px 600px at 80% -10%, rgba(200, 168, 96, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }
.gold { color: var(--gold); }
.dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-line); margin: 0 8px; vertical-align: middle; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: #0b0b0e; padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #f3e2b6 0%, var(--gold) 45%, var(--gold-line) 100%);
  color: #14110a; box-shadow: 0 8px 26px rgba(200, 168, 96, 0.22);
}
.btn-primary:hover { box-shadow: 0 12px 34px rgba(200, 168, 96, 0.32); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--gold-soft); }
.btn-ghost:hover { border-color: var(--gold-line); background: rgba(200, 168, 96, 0.06); }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-xl { padding: 17px 36px; font-size: 1.1rem; }
.btn[aria-disabled="true"] {
  background: var(--surface-2); color: var(--text-dim); box-shadow: none; cursor: not-allowed;
  border-color: var(--border); transform: none;
}
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 14, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--gold-soft); background: rgba(11, 11, 14, 0.92); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-icon { width: 36px; height: 36px; border-radius: 9px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--gold); letter-spacing: 0.01em; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 6px; }
.site-nav a:not(.btn) {
  display: inline-block; padding: 8px 12px; border-radius: 8px; color: var(--text-muted); font-weight: 500; font-size: 0.95rem;
}
.site-nav a:not(.btn):hover, .site-nav a:not(.btn).is-active { color: var(--gold); text-decoration: none; background: rgba(200, 168, 96, 0.07); }
.btn-nav { padding: 9px 18px; font-size: 0.9rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--border); border-radius: 10px;
  background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle-bar { display: block; height: 2px; width: 100%; background: var(--gold); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-line); margin-bottom: 14px;
}
.lead { font-size: 1.12rem; color: var(--text-muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 22px; border-top: 1px solid var(--gold-soft); }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--gold); line-height: 1.1; }
.hero-stats span { font-size: 0.82rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }

/* device-like frame for screenshots */
.device {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid rgba(200, 168, 96, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(235, 212, 160, 0.06), 0 0 70px var(--gold-glow);
}
.device-bar {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  background: linear-gradient(180deg, #16161c, #0f0f13); border-bottom: 1px solid var(--gold-soft);
}
.device-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.device-bar span:first-child { background: var(--gold-line); }
.device-bar em { margin-left: auto; font-style: normal; font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.06em; }
.device img { width: 100%; }
.device figcaption { padding: 10px 14px; font-size: 0.85rem; color: var(--text-muted); border-top: 1px solid var(--border); }
.hero-device { transform: perspective(1400px) rotateY(-4deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: linear-gradient(180deg, rgba(200, 168, 96, 0.04), transparent 30%, transparent 70%, rgba(200, 168, 96, 0.04)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { margin-bottom: 12px; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover { border-color: var(--gold-soft); background: var(--surface-2); transform: translateY(-2px); }
.card p { color: var(--text-muted); margin: 0; font-size: 0.97rem; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(200, 168, 96, 0.10); border: 1px solid var(--gold-soft);
}
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Solutions chips ---------- */
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.chip {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  position: relative; overflow: hidden; transition: border-color .2s ease, background .2s ease;
}
.chip::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--gold-line));
}
.chip:hover { border-color: var(--gold-soft); background: var(--surface-2); }
.chip strong { font-family: var(--font-head); font-weight: 700; color: var(--gold); letter-spacing: 0.04em; font-size: 0.95rem; }
.chip span { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; padding: 28px 24px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 800; color: #14110a;
  background: linear-gradient(180deg, #f3e2b6, var(--gold-line));
}
.step p { color: var(--text-muted); margin: 0; font-size: 0.97rem; }

.token-rule {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  margin-top: 28px; padding: 26px 28px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(200, 168, 96, 0.12), rgba(200, 168, 96, 0.03));
  border: 1px solid var(--gold-soft);
}
.token-rule-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--gold);
  border: 1px solid var(--gold-line); background: rgba(5, 5, 6, 0.6);
}
.token-rule h3 { margin-bottom: 6px; }
.token-rule p { margin: 0; color: var(--text-muted); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; padding: 26px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); position: relative;
  transition: border-color .2s ease, transform .2s ease;
}
.plan:hover { border-color: var(--gold-soft); transform: translateY(-2px); }
.plan-featured { border-color: var(--gold-line); background: linear-gradient(180deg, rgba(200, 168, 96, 0.10), var(--surface)); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 40px var(--gold-glow); }
.plan-featured::after {
  content: "Popular"; position: absolute; top: 14px; right: 14px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #14110a; background: var(--gold); padding: 4px 9px; border-radius: 999px;
}
.plan-name { font-family: var(--font-head); font-weight: 700; color: var(--text); margin-bottom: 10px; }
.plan-name em { font-style: normal; font-size: 0.72rem; color: var(--gold-line); letter-spacing: 0.1em; text-transform: uppercase; margin-left: 6px; }
.plan-tokens { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.plan-tokens strong { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--gold); line-height: 1; }
.plan-tokens span { color: var(--text-dim); font-size: 0.9rem; }
.plan-price { color: var(--text-muted); font-size: 0.95rem; min-height: 1.6em; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.plan-price .price { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--text); }
.plan-list { display: grid; gap: 8px; font-size: 0.92rem; color: var(--text-muted); }
.plan-list li { padding-left: 20px; position: relative; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 6px; border-left: 2px solid var(--gold-line); border-bottom: 2px solid var(--gold-line); transform: rotate(-45deg); }
.pricing-note { text-align: center; color: var(--text-dim); font-size: 0.92rem; max-width: 720px; margin: 28px auto 0; }

/* ---------- Themes ---------- */
.themes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* ---------- Download ---------- */
.download-box, .support-box { text-align: center; max-width: 820px; }
.download-icon { margin: 0 auto 14px; border-radius: 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.download-actions { margin: 26px 0 30px; }
.download-meta { margin: 14px 0 0; color: var(--text-dim); font-size: 0.9rem; }
.requirements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: left; }
.requirements li { padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text-muted); }
.requirements strong { display: block; color: var(--gold-line); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.changelog { margin-top: 24px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; }
.changelog summary { cursor: pointer; font-weight: 600; color: var(--gold); }
.changelog pre { white-space: pre-wrap; font-family: var(--font-body); color: var(--text-muted); font-size: 0.92rem; margin: 12px 0 0; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color .2s ease; }
.faq[open] { border-color: var(--gold-soft); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-body { padding: 0 20px 18px; color: var(--text-muted); }
.faq-body p { margin: 0; }

/* ---------- Support ---------- */
.support-mail {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.15rem, 3vw, 1.6rem);
  padding: 14px 26px; border-radius: 999px; border: 1px solid var(--gold-line); color: var(--gold);
  background: rgba(200, 168, 96, 0.06); word-break: break-all;
}
.support-mail:hover { text-decoration: none; background: rgba(200, 168, 96, 0.12); }
.support-hint { margin-top: 18px; color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 32px; border-top: 1px solid var(--gold-soft); background: var(--bg-deep); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; margin-bottom: 36px; align-items: start; }
.footer-brand p { color: var(--text-dim); font-size: 0.92rem; margin: 12px 0 0; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
.footer-nav a { color: var(--text-muted); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--gold); }
.disclaimer { color: var(--text-dim); font-size: 0.82rem; line-height: 1.65; padding-top: 24px; border-top: 1px solid var(--border); }
.disclaimer strong { color: var(--text-muted); }
.copyright { color: var(--text-dim); font-size: 0.8rem; margin: 14px 0 0; }

/* ---------- Reveal on scroll ---------- */
/* Content is visible by default; site.js adds .js-reveal to <html> only when it can animate,
   so a missing/blocked script or an old browser never leaves sections invisible. */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .chips { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-device { transform: none; }
  .hero-copy { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .requirements { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px var(--gutter) 18px;
    background: var(--bg-alt); border-bottom: 1px solid var(--gold-soft);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a:not(.btn) { display: block; padding: 12px 10px; font-size: 1.02rem; }
  .btn-nav { margin-top: 6px; }
  .themes-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav ul { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .grid-3, .steps, .chips, .plans, .requirements { grid-template-columns: 1fr; }
  .token-rule { grid-template-columns: 1fr; }
  .hero-stats { gap: 12px 20px; }
  .hero-stats li { min-width: 40%; }
  .btn-xl { width: 100%; }
  .plan-featured::after { top: 12px; right: 12px; }
}

/* ---------- brands strip (home) ---------- */
.brand-strip { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.brand-strip a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.04em; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.brand-strip a:hover { border-color: var(--gold-soft); background: var(--surface-2); transform: translateY(-2px); color: var(--text); }
.brand-strip img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.center { text-align: center; margin: 0; }
@media (max-width: 900px) { .brand-strip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .brand-strip { grid-template-columns: repeat(3, 1fr); gap: 10px; } .brand-strip img { width: 44px; height: 44px; } }

/* ---------- supported ECUs page ---------- */
.ecu-search { display: block; max-width: 560px; margin: 0 auto 28px; }
.ecu-search span { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 6px; }
.ecu-search input { width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; }
.ecu-search input:focus { border-color: var(--gold-soft); outline: none; box-shadow: 0 0 0 3px var(--gold-glow); }
.brand-index { list-style: none; margin: 0 0 36px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brand-index a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); font-size: 0.8rem; letter-spacing: 0.03em; }
.brand-index a:hover { border-color: var(--gold-soft); color: var(--text); }
.brand-index img { width: 28px; height: 28px; object-fit: contain; }
.brand-blocks { display: grid; gap: 14px; }
.brand-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; scroll-margin-top: calc(var(--header-h) + 16px); }
.brand-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.brand-head img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.brand-head h2 { margin: 0; font-size: 1.15rem; letter-spacing: 0.03em; }
.brand-head .count { font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; color: var(--text-dim); margin-left: 10px; }
.ecu-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; }
.ecu-list li { font-size: 0.86rem; color: var(--text-muted); padding: 4px 0 4px 14px; position: relative; }
.ecu-list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-line); opacity: .7; }
.ecu-list li mark { background: var(--gold-soft); color: var(--text); border-radius: 3px; padding: 0 2px; }
.brand-block[hidden], .ecu-list li[hidden] { display: none; }
.no-results { text-align: center; color: var(--text-muted); padding: 30px 0; }

.group-title { font-size: 1.4rem; margin: 26px 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--gold-soft); color: var(--gold); }

/* ---------- checkout / success ---------- */
.success-card { padding: 34px 30px; text-align: left; }
.success-card h1 { font-size: 1.7rem; margin-bottom: 8px; }
.pw-form { display: grid; gap: 12px; margin: 22px 0; }
.pw-form label { font-size: 0.95rem; color: var(--text-muted); }
.pw-form input { width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; }
.pw-form input:focus { border-color: var(--gold-soft); outline: none; box-shadow: 0 0 0 3px var(--gold-glow); }
.next-steps { margin: 18px 0 0 18px; color: var(--text-muted); line-height: 1.8; }
.hint { color: var(--text-dim); font-size: 0.85rem; min-height: 1.2em; }
.plan-buy { margin-top: 16px; }
.buy-modal { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: none; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.buy-modal.is-open { display: flex; }
.buy-box { width: 100%; max-width: 440px; background: #111114; border: 1px solid var(--gold-soft); border-radius: var(--radius); padding: 26px; }
.buy-box h3 { margin: 0 0 6px; }
.buy-box p { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 14px; }
.buy-box input { width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; margin-bottom: 12px; }
.buy-actions { display: flex; gap: 10px; justify-content: flex-end; }
.license-cards { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .license-cards { grid-template-columns: 1fr; } }
.plan-price .per { font-size: 0.85rem; color: var(--text-dim); }
.addons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
@media (max-width: 800px) { .addons { grid-template-columns: 1fr; } }
.addon { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 24px 18px; }
.addon h3 { margin: 0 0 8px; font-size: 1.1rem; }
.addon p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; margin: 0 0 12px; }
.addon-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 0.95rem; }
.addon-row strong { color: var(--text); }
.addon-note { font-size: 0.8rem; color: var(--text-dim); }
.plan .plan-buy { width: 100%; margin-top: auto; }
.plan { display: flex; flex-direction: column; }

/* ---------- account / checkout / terms pages (appended 2026-09-20) ---------- */
[hidden] { display: none !important; }
.btn:disabled { background: var(--surface-2); color: var(--text-dim); box-shadow: none; cursor: not-allowed; border-color: var(--border); transform: none; }
.btn:disabled:hover { transform: none; box-shadow: none; }
.btn-block { width: 100%; }
.page-head { text-align: left; margin: 0 0 28px; max-width: none; }
.page-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 10px; }
.page-head .section-sub { max-width: 64ch; }

/* forms */
.form-card, .order-card, .acct-card, .login-aside { padding: 28px 26px; }
.form-card:hover, .order-card:hover, .acct-card:hover, .login-aside:hover { transform: none; background: var(--surface); border-color: var(--border); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field.span-2 { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.field .req { color: var(--gold-line); }
.field .opt { color: var(--text-dim); font-weight: 400; font-size: 0.82rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; min-width: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-soft); outline: none; box-shadow: 0 0 0 3px var(--gold-glow); }
.field input[aria-invalid="true"] { border-color: rgba(230, 100, 90, 0.7); }
.field-error { color: #f2a59d; font-size: 0.82rem; margin: 0; min-height: 1.1em; line-height: 1.3; }
.phone-row { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.form-section { margin: 22px 0 10px; font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; color: var(--gold); }
.consents { display: grid; gap: 10px; margin-top: 18px; }
.consent {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.87rem; color: var(--text-muted); line-height: 1.5;
}
.consent:hover { border-color: var(--gold-soft); }
.consent.is-invalid { border-color: rgba(230, 100, 90, 0.7); }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--gold-line); }
.consent strong { color: var(--text); }
.consent-note { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; padding: 10px 14px; border-left: 3px solid var(--gold-line); background: rgba(200, 168, 96, 0.06); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0; }
.form-actions { margin-top: 20px; display: grid; gap: 10px; }
.form-switch { text-align: center; font-size: 0.92rem; color: var(--text-muted); margin: 14px 0 0; }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: 0.92rem; color: var(--text-muted); margin: 12px 0 0; line-height: 1.5; }
.notice a { font-weight: 600; }
.notice-error { border-color: rgba(230, 100, 90, 0.5); background: rgba(230, 100, 90, 0.08); color: #f6c1bb; }
.notice-ok { border-color: rgba(90, 200, 130, 0.45); background: rgba(90, 200, 130, 0.08); color: #b8ecc9; }
.notice-info { border-color: var(--gold-soft); background: rgba(200, 168, 96, 0.07); color: var(--text-muted); }

/* checkout */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.order-card { position: sticky; top: calc(var(--header-h) + 16px); }
.order-card h2 { font-size: 1.35rem; margin: 0 0 6px; }
.order-price { display: flex; align-items: baseline; gap: 8px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.order-price .price { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: var(--gold); line-height: 1; }
.order-price .per { color: var(--text-dim); font-size: 0.92rem; }
.order-card .plan-list { margin-bottom: 16px; }
.secure-note { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--text-dim); margin: 0 0 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.secure-note svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--gold-line); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.order-card .hint { margin: 0 0 6px; }
.signed-in { padding: 14px; border: 1px solid var(--gold-soft); border-radius: var(--radius-sm); background: rgba(200, 168, 96, 0.06); margin-bottom: 16px; }
.signed-in p { margin: 0 0 10px; color: var(--text-muted); font-size: 0.93rem; }
.signed-in strong { color: var(--text); word-break: break-all; }

/* account */
.login-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; max-width: 960px; margin: 0 auto; }
.login-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.login-card .section-sub { font-size: 0.97rem; margin-bottom: 18px; }
.login-aside h2 { font-size: 1.15rem; margin-bottom: 12px; }
.login-aside p { color: var(--text-muted); font-size: 0.93rem; margin: 14px 0 0; }
.acct-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.acct-top h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 4px; }
.acct-top .who { color: var(--text-muted); margin: 0; font-size: 0.95rem; word-break: break-all; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.acct-card { scroll-margin-top: calc(var(--header-h) + 16px); }
.acct-card.span-2 { grid-column: 1 / -1; }
.acct-card h2 { font-size: 1.15rem; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acct-card p { color: var(--text-muted); font-size: 0.93rem; margin: 0 0 10px; }
.acct-card h3 { font-size: 0.98rem; margin: 0 0 8px; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-muted); }
.badge-active { background: rgba(90, 200, 130, 0.14); color: #9fe6b7; border-color: rgba(90, 200, 130, 0.4); }
.badge-test { background: rgba(200, 168, 96, 0.14); color: var(--gold); border-color: var(--gold-line); }
.badge-expired, .badge-cancelled { background: rgba(230, 100, 90, 0.12); color: #f6b3ab; border-color: rgba(230, 100, 90, 0.4); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 10px; font-size: 0.93rem; }
.kv dt { color: var(--text-dim); }
.kv dd { margin: 0; color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn-row .btn { flex: 0 1 auto; }
.tokens-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.tokens-head strong { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.tokens-head span { color: var(--text-dim); font-size: 0.9rem; }
.meter { height: 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; margin: 6px 0 10px; }
.meter > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-line), var(--gold)); transition: width .4s ease; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; letter-spacing: 0.08em; font-size: 1.05rem; color: var(--gold); display: inline-block; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bg-deep); border: 1px solid var(--gold-soft); word-break: break-all; }
.mini-steps { list-style: decimal; padding-left: 22px; margin: 0 0 10px; color: var(--text-muted); font-size: 0.93rem; line-height: 1.7; }
.mini-steps strong { color: var(--text); }
.sub-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.inline-form .field { flex: 1 1 220px; }
.inline-form .btn { flex: 0 0 auto; margin-top: 0; }
.req-list { display: grid; gap: 6px; margin: 12px 0 0; font-size: 0.9rem; color: var(--text-muted); }
.req-list li { padding-left: 18px; position: relative; }
.req-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 5px; border-left: 2px solid var(--gold-line); border-bottom: 2px solid var(--gold-line); transform: rotate(-45deg); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data th { text-align: left; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--gold-soft); white-space: nowrap; }
.data td { padding: 10px; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: top; }
.data td:first-child { white-space: nowrap; }
.data .ok { color: #9fe6b7; }
.data .no { color: var(--text-dim); }
.data .file { color: var(--text); word-break: break-all; }
.empty { color: var(--text-dim); font-size: 0.92rem; margin: 0; }
.support-line { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; word-break: break-all; }
.state-loading { color: var(--text-dim); text-align: center; padding: 40px 0; }

/* terms */
.legal { max-width: 820px; margin: 0 auto; }
.legal .legal-meta { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 26px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; }
.legal-toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); font-size: 0.82rem; }
.legal-toc a:hover { border-color: var(--gold-soft); color: var(--text); text-decoration: none; }
.legal h2 { font-size: 1.25rem; margin: 38px 0 12px; padding-top: 18px; border-top: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 16px); }
.legal h2 span { color: var(--gold-line); margin-right: 8px; }
.legal p, .legal li { color: var(--text-muted); font-size: 0.97rem; }
.legal ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; display: grid; gap: 6px; }
.legal strong { color: var(--text); }
.legal .lead-box { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--gold-soft); background: rgba(200, 168, 96, 0.06); }
.legal .lead-box p { margin: 0; }

@media (max-width: 900px) {
  .checkout-grid, .login-wrap, .acct-grid { grid-template-columns: 1fr; }
  .order-card { position: static; order: -1; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card, .order-card, .acct-card, .login-aside { padding: 22px 18px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
  .btn-row .btn, .form-actions .btn, .inline-form .btn { width: 100%; }
  .acct-top .btn { width: 100%; }
}
.btn-small { padding: 7px 14px; font-size: 0.85rem; }
.form-section { margin: 24px 0 12px; }
.form-section:first-child { margin-top: 0; }
.data .actions { white-space: nowrap; }
.data .actions .btn + .btn { margin-left: 6px; }
.form-intro { font-size: 0.95rem; }
.hint-center { text-align: center; margin-top: 10px; }
/* footer: with the legal links the nav must wrap before it squeezes the brand column */
.footer-nav { max-width: 680px; }
.footer-brand { min-width: 240px; }
.footer-brand .brand-name { white-space: nowrap; }

/* add-on rows: stack on narrow screens */
@media (max-width: 560px) {
  .addon-row { flex-wrap: wrap; }
  .addon-row > span { flex: 1 1 100%; }
  .addon-row .btn { flex: 1 1 100%; text-align: center; }
  .addon { padding: 20px 18px 14px; }
}
.addon-row .btn { white-space: nowrap; }
