/* BitMaster Hosting - one stylesheet for the whole site.
   Day theme is the default; night theme follows the device or the toggle (html[data-theme]). */

:root {
  --bg: #f6f7fb;
  --bg-soft: #eef0f8;
  --surface: #ffffff;
  --surface-2: #f9fafe;
  --border: #e1e5f0;
  --border-strong: #c9cfe0;
  --text: #121729;
  --text-muted: #566079;
  --text-faint: #8a93aa;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eceafe;
  --accent-text: #ffffff;
  --cyan: #0891b2;
  --good: #0f8a5f;
  --good-soft: #e3f6ee;
  --warn: #a86400;
  --warn-soft: #fdf1dc;
  --bad: #c42b3c;
  --bad-soft: #fde8ea;
  --info-soft: #e6f3fb;
  --bit-off: #dfe3ef;
  --bit-on: #4f46e5;
  --bit-alt: #06b6d4;
  --shadow: 0 1px 2px rgba(18, 23, 41, 0.05), 0 8px 24px rgba(18, 23, 41, 0.06);
  --shadow-lift: 0 2px 4px rgba(18, 23, 41, 0.06), 0 18px 40px rgba(79, 70, 229, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0e1a;
    --bg-soft: #0f1424;
    --surface: #131a2c;
    --surface-2: #171f34;
    --border: #232c45;
    --border-strong: #33405f;
    --text: #e7eaf6;
    --text-muted: #a2abc4;
    --text-faint: #6f7a96;
    --accent: #8b8cff;
    --accent-hover: #a5a6ff;
    --accent-soft: #23264a;
    --accent-text: #0a0e1a;
    --cyan: #38d6f0;
    --good: #4ad6a0;
    --good-soft: #10291f;
    --warn: #f2b45a;
    --warn-soft: #2d2213;
    --bad: #ff7b8a;
    --bad-soft: #321419;
    --info-soft: #11233a;
    --bit-off: #1b2338;
    --bit-on: #8b8cff;
    --bit-alt: #38d6f0;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 20px 44px rgba(139, 140, 255, 0.16);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0e1a;
  --bg-soft: #0f1424;
  --surface: #131a2c;
  --surface-2: #171f34;
  --border: #232c45;
  --border-strong: #33405f;
  --text: #e7eaf6;
  --text-muted: #a2abc4;
  --text-faint: #6f7a96;
  --accent: #8b8cff;
  --accent-hover: #a5a6ff;
  --accent-soft: #23264a;
  --accent-text: #0a0e1a;
  --cyan: #38d6f0;
  --good: #4ad6a0;
  --good-soft: #10291f;
  --warn: #f2b45a;
  --warn-soft: #2d2213;
  --bad: #ff7b8a;
  --bad-soft: #321419;
  --info-soft: #11233a;
  --bit-off: #1b2338;
  --bit-on: #8b8cff;
  --bit-alt: #38d6f0;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 20px 44px rgba(139, 140, 255, 0.16);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

img, svg { max-width: 100%; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.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: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 0.95rem/1.2 var(--font-body);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 6px 18px -6px var(--accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.btn-quiet { background: transparent; color: var(--text-muted); padding-left: 10px; padding-right: 10px; }
.btn-quiet:hover { color: var(--text); }
.btn-danger { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.02rem; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 0.875rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--text); letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark .b-on { fill: var(--bit-on); }
.brand-mark .b-alt { fill: var(--bit-alt); }
.brand-mark .b-off { fill: var(--bit-off); }
.brand small { font-weight: 500; color: var(--text-muted); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 20px; }
.main-nav a {
  color: var(--text-muted); font-weight: 500; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 8px;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); background: var(--bg-soft); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-actions form { margin: 0; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.nav-toggle { display: none; }
.mobile-nav { display: none; }

@media (max-width: 880px) {
  .main-nav, .header-actions .hide-mobile { display: none; }
  .nav-toggle { display: inline-grid; }
  .mobile-nav {
    display: none; border-top: 1px solid var(--border);
    padding: 12px 20px 20px; background: var(--bg);
  }
  .mobile-nav.open { display: block; }
  .mobile-nav a, .mobile-nav button.link {
    display: block; width: 100%; text-align: left;
    padding: 12px 4px; color: var(--text); font-weight: 500;
    border: 0; border-bottom: 1px solid var(--border); background: none; font-size: 1rem; cursor: pointer;
  }
  .mobile-nav .btn { margin-top: 14px; }
}

/* ------------------------------------------------------------------ hero */

.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--accent), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 1.15rem; color: var(--text-muted); max-width: 34em; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: var(--text-muted); font-size: 0.93rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--good); flex: none; }

.hero-visual { position: relative; }
.bit-field {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 7px;
  padding: 26px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.bit-field span {
  aspect-ratio: 1; border-radius: 4px; background: var(--bit-off);
  transition: background-color 0.6s ease, transform 0.6s ease;
}
.bit-field span.on { background: var(--bit-on); }
.bit-field span.alt { background: var(--bit-alt); }

.terminal {
  position: absolute; left: -36px; bottom: -28px; width: min(340px, 86%);
  border-radius: 14px; overflow: hidden;
  background: #0d1222; color: #d5dbf0; border: 1px solid #262f4b;
  box-shadow: 0 24px 50px -12px rgba(10, 14, 26, 0.45);
  font: 0.8rem/1.7 var(--font-mono);
}
.terminal-bar { display: flex; gap: 6px; padding: 10px 12px; background: #151b30; }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2f3858; }
.terminal-bar i:first-child { background: #ff6b7d; }
.terminal-bar i:nth-child(2) { background: #f6c35b; }
.terminal-bar i:nth-child(3) { background: #4ad6a0; }
.terminal pre { margin: 0; padding: 12px 16px 16px; white-space: pre-wrap; }
.terminal .t-ok { color: #4ad6a0; }
.terminal .t-dim { color: #6f7a96; }
.terminal .t-acc { color: #a5a6ff; }

@media (max-width: 960px) {
  .hero { padding: 44px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 520px; margin: 0 auto 30px; width: 100%; }
  .terminal { left: 12px; bottom: -30px; }
}
@media (max-width: 480px) {
  .bit-field { gap: 5px; padding: 16px; }
  .terminal { font-size: 0.72rem; }
}

/* ------------------------------------------------------------------ sections */

.section { padding: 80px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }
@media (max-width: 640px) { .section { padding: 56px 0; } }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.stat-strip div { background: var(--surface); padding: 22px 20px; }
.stat-strip strong { display: block; font: 700 1.6rem/1.1 var(--font-display); letter-spacing: -0.02em; }
.stat-strip span { color: var(--text-muted); font-size: 0.9rem; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------------ pricing */

.term-switch {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px;
  padding: 5px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  margin: 0 auto 36px;
}
.term-switch-row { text-align: center; }
.term-switch button {
  border: 0; background: transparent; color: var(--text-muted);
  font: 600 0.9rem/1 var(--font-body); padding: 11px 16px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
}
.term-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }
.term-switch .save { font: 600 0.7rem/1 var(--font-mono); padding: 3px 6px; border-radius: 5px; background: var(--good-soft); color: var(--good); }
.term-switch button[aria-pressed="true"] .save { background: rgba(255, 255, 255, 0.22); color: inherit; }

.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1080px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plan-grid { grid-template-columns: 1fr; } }

.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 28px 24px 24px; box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--border-strong); }
.plan.popular { border: 2px solid var(--accent); padding: 27px 23px 23px; }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-text);
  font: 600 0.72rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
}
.plan-name { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.plan-name h3 { margin: 0; font-size: 1.45rem; }
.plan-bits { display: inline-flex; gap: 3px; }
.plan-bits i { width: 7px; height: 7px; border-radius: 2px; background: var(--bit-off); }
.plan-bits i.on { background: var(--accent); }
.plan-tagline { color: var(--text-muted); font-size: 0.92rem; min-height: 3em; margin-bottom: 18px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.plan-price .cur { font: 600 1.2rem/1 var(--font-display); color: var(--text-muted); align-self: flex-start; margin-top: 8px; }
.plan-price .amt { font: 700 3rem/1 var(--font-display); letter-spacing: -0.04em; }
.plan-price .per { color: var(--text-muted); font-size: 0.95rem; }
.plan-billed { font-size: 0.82rem; color: var(--text-faint); min-height: 2.6em; margin-bottom: 18px; }
.plan-billed s { color: var(--text-faint); }
.plan .btn { margin-bottom: 22px; }
.plan-specs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.93rem; }
.plan-specs li { display: flex; gap: 10px; align-items: flex-start; }
.plan-specs svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }
.plan-specs li.no { color: var(--text-faint); }
.plan-specs li.no svg { color: var(--text-faint); }
.plan-specs b { font-weight: 600; }

/* comparison table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.95rem; }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.compare th:first-child, .compare td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); }
.compare thead th { font: 600 1.05rem var(--font-display); background: var(--surface-2); vertical-align: bottom; }
.compare thead th:first-child { background: var(--surface-2); }
.compare thead .price { display: block; font: 500 0.82rem var(--font-mono); color: var(--text-muted); margin-top: 4px; }
.compare td { font-family: var(--font-mono); font-size: 0.88rem; }
.compare td:first-child { font-family: var(--font-body); font-size: 0.95rem; color: var(--text-muted); }
.compare tr:last-child td { border-bottom: 0; }
.compare .col-popular { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.compare .yes { color: var(--good); }
.compare .no { color: var(--text-faint); }

/* ------------------------------------------------------------------ features */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.feature-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

.included { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 24px; list-style: none; padding: 0; margin: 0; }
.included li { display: flex; gap: 10px; align-items: center; font-size: 0.95rem; }
.included svg { width: 18px; height: 18px; color: var(--good); flex: none; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 24px 24px 24px 24px; border-radius: var(--radius); border: 1px dashed var(--border-strong); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font: 700 0.85rem var(--font-mono); color: var(--accent); margin-bottom: 10px;
}
.step p { color: var(--text-muted); margin: 0; }

/* ------------------------------------------------------------------ faq */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 20px;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative;
  font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font: 500 1.4rem/1 var(--font-mono); color: var(--accent); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--text-muted); margin: 0 0 18px; }

/* ------------------------------------------------------------------ cta band */

.cta-band {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 48px; text-align: center;
  background: linear-gradient(120deg, #312e81, #4f46e5 55%, #0891b2);
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.82); max-width: 560px; margin: 0 auto 24px; }
.cta-band .btn-primary { background: #fff; color: #312e81; box-shadow: none; }
.cta-band .btn-primary:hover { background: #eceafe; color: #312e81; }
@media (max-width: 600px) { .cta-band { padding: 36px 22px; } }

/* ------------------------------------------------------------------ footer */

.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: 40px; color: var(--text-muted); font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { font: 600 0.82rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--text); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding-top: 22px; font-size: 0.85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ forms & panels */

.page { padding: 48px 0 24px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 6px; }
.page-head p { color: var(--text-muted); margin: 0; }
.page-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }

.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.25rem; margin-bottom: 16px; }
@media (max-width: 600px) { .panel { padding: 20px; } }

.auth-shell { display: grid; place-items: center; padding: 56px 0 24px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 6px; }
.auth-card .lead { color: var(--text-muted); margin-bottom: 24px; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--text-muted); font-size: 0.95rem; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field .label { font-weight: 600; font-size: 0.9rem; }
.field .hint { font-size: 0.83rem; color: var(--text-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .field-row, .field-row-3 { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  font: 400 1rem/1.4 var(--font-body); color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
input[readonly] { color: var(--text-muted); }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 70px; }
.reveal {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--text-muted); font: 600 0.8rem var(--font-body);
  padding: 8px 10px; cursor: pointer; border-radius: 6px;
}
.reveal:hover { color: var(--accent); }
.domain-input { display: flex; align-items: stretch; }
.domain-input span {
  display: grid; place-items: center; padding: 0 12px; font: 500 0.9rem var(--font-mono); color: var(--text-faint);
  border: 1px solid var(--border-strong); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--bg-soft);
}
.domain-input input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-mono); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; margin-bottom: 18px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }

/* choice cards (term / domain option) */
.choices { display: grid; gap: 10px; }
.choices-4 { grid-template-columns: repeat(4, 1fr); }
.choices-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .choices-4 { grid-template-columns: repeat(2, 1fr); } .choices-3 { grid-template-columns: 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span {
  display: block; height: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface-2);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.choice:hover > span { border-color: var(--accent); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice strong { display: block; font-size: 0.98rem; }
.choice small { display: block; color: var(--text-muted); font-size: 0.82rem; margin-top: 2px; }
.choice .tag { display: inline-block; margin-top: 6px; font: 600 0.7rem var(--font-mono); color: var(--good); }

/* alerts */
.alert { border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; font-size: 0.95rem; border: 1px solid transparent; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.alert-success { background: var(--good-soft); color: var(--good); border-color: color-mix(in srgb, var(--good) 25%, transparent); }
.alert-info { background: var(--info-soft); color: var(--text); border-color: var(--border); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert a { color: inherit; text-decoration: underline; font-weight: 600; }

/* order layout */
.order-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .order-layout { grid-template-columns: 1fr; } }
.summary { position: sticky; top: 92px; }
@media (max-width: 960px) { .summary { position: static; } }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.summary-row:last-of-type { border-bottom: 0; }
.summary-row span:first-child { color: var(--text-muted); }
.summary-row span:last-child { text-align: right; overflow-wrap: anywhere; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; margin-top: 6px; border-top: 2px solid var(--text); }
.summary-total strong { font: 700 1.8rem var(--font-display); letter-spacing: -0.03em; }
.form-step { font: 600 0.78rem var(--font-mono); color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }

/* data lists & tables */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; font-size: 0.95rem; }
.dl dt { color: var(--text-muted); }
.dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 10px; } }

.table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table th { text-align: left; font: 600 0.76rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { font-family: var(--font-mono); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 720px) {
  .table-stack thead { display: none; }
  .table-stack tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .table-stack tr:last-child { border-bottom: 0; }
  .table-stack td { display: flex; justify-content: space-between; gap: 16px; padding: 6px 4px; border: 0; text-align: right; }
  .table-stack td::before { content: attr(data-label); color: var(--text-muted); font-size: 0.85rem; text-align: left; }
}

.status { display: inline-flex; align-items: center; gap: 6px; font: 600 0.78rem var(--font-body); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-P { background: var(--warn-soft); color: var(--warn); }
.status-A { background: var(--info-soft); color: var(--cyan); }
.status-C { background: var(--good-soft); color: var(--good); }
.status-S, .status-X { background: var(--bad-soft); color: var(--bad); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); font-size: 0.88rem; font-weight: 500; background: var(--surface); }
.chip:hover { text-decoration: none; border-color: var(--accent); color: var(--text); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.chip b { font-family: var(--font-mono); margin-left: 4px; }

.empty { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty svg { width: 46px; height: 46px; color: var(--text-faint); margin-bottom: 12px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--text-muted); }

.paypal-box { margin-top: 8px; min-height: 52px; }
.pay-note { font-size: 0.85rem; color: var(--text-faint); margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 560px) {
  .term-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .term-switch button { justify-content: center; }
}
.btn svg { width: 18px; height: 18px; flex: none; }
