/* ==========================================================================
   GainGerms — Design System (theme.css)
   Shared tokens, base elements, and components used by every screen.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Surfaces */
  --bg: #070b14;
  --bg-soft: #0a1020;
  --surface: #0e1524;
  --surface-2: #131c2e;
  --surface-3: #18223a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #e9eefb;
  --text-dim: #a7b4cc;
  --text-mute: #7386a3;

  /* Brand */
  --brand: #2dd4a7;
  --brand-2: #38bdf8;
  --brand-3: #8b5cf6;
  --brand-grad: linear-gradient(120deg, #2dd4a7 0%, #38bdf8 55%, #6ea8ff 100%);
  --brand-grad-soft: linear-gradient(120deg, rgba(45, 212, 167, .18), rgba(56, 189, 248, .16));

  /* Status */
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --info: #60a5fa;

  /* Shape & motion */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .28);
  --shadow-md: 0 14px 34px rgba(2, 6, 18, .5);
  --shadow-glow: 0 18px 46px rgba(45, 212, 167, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Layout */
  --wrap: 1200px;
  --nav-h: 72px;
  --sidebar-w: 264px;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

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

/* Ambient background wash shared by all pages */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(45, 212, 167, .12), transparent 60%),
    radial-gradient(900px 560px at 92% 4%, rgba(99, 102, 241, .14), transparent 62%),
    radial-gradient(700px 500px at 50% 108%, rgba(56, 189, 248, .10), transparent 60%);
}

img, svg, video { max-width: 100%; display: block; }
a { color: var(--brand-2); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: .3rem 0; }
p { margin: 0 0 1rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.25rem 0; }

h1, h2, h3, h4, h5 {
  margin: 0 0 .6rem;
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 800;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.08rem; font-weight: 700; }

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

::selection { background: rgba(56, 189, 248, .3); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1e2a44; border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2a3a5c; }

/* ---------- 3. Layout helpers ---------- */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 40px, 940px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(36px, 5vw, 64px) 0; }
.center { text-align: center; }
.muted { color: var(--text-dim); }
.small { font-size: .875rem; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 22px; }
/* Grid/flex children must be allowed to shrink below their content width,
   otherwise wide tables and long links push the page sideways on mobile. */
.grid > *, .post-grid > *, .contact-grid > *, .wp-layout > *,
.cols-2 > *, .cols-2-wide > *, .cols-3-app > *,
.stat-grid > *, .action-grid > *, .footer-grid > *, .hero-grid > *, .split > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.gradient-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .78rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--text);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease),
              background .22s var(--ease), border-color .22s var(--ease), opacity .2s;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .26); color: var(--text); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--brand-grad);
  border-color: transparent;
  color: #04121c;
  box-shadow: 0 10px 26px rgba(45, 212, 167, .26);
}
.btn-primary:hover { box-shadow: 0 16px 34px rgba(45, 212, 167, .34); color: #04121c; }

.btn-blue {
  background: linear-gradient(120deg, #3b82f6, #2563eb);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 26px rgba(59, 130, 246, .3);
}
.btn-blue:hover { color: #fff; box-shadow: 0 16px 34px rgba(59, 130, 246, .38); }

.btn-ghost { background: rgba(255, 255, 255, .04); }
.btn-quiet { background: transparent; border-color: var(--line); }
.btn-sm { padding: .5rem .95rem; font-size: .84rem; }
.btn-lg { padding: .95rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-danger { background: rgba(248, 113, 113, .14); border-color: rgba(248, 113, 113, .32); color: #fecaca; }

/* ---------- 5. Cards & surfaces ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(10, 16, 32, .92) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.card-hover:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.card-flat { background: var(--surface); box-shadow: none; }
.card-pad-lg { padding: clamp(26px, 4vw, 42px); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
}
.panel-head h3 { margin: 0; font-size: 1.12rem; }
.panel-body { padding: 22px; }

.tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.tile:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.tile-icon {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-grad-soft);
  border: 1px solid var(--line);
  color: var(--brand);
}
.tile-value { font-size: 1.55rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.tile-label { font-size: .8rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- 6. Badges, pills & chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .32rem .7rem;
  border-radius: var(--r-pill);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .05);
  color: var(--text-dim);
}
.badge-ok { color: #a7f3d0; background: rgba(52, 211, 153, .14); border-color: rgba(52, 211, 153, .3); }
.badge-warn { color: #fde68a; background: rgba(251, 191, 36, .14); border-color: rgba(251, 191, 36, .3); }
.badge-info { color: #bfdbfe; background: rgba(96, 165, 250, .14); border-color: rgba(96, 165, 250, .3); }
.badge-danger { color: #fecaca; background: rgba(248, 113, 113, .14); border-color: rgba(248, 113, 113, .3); }
.badge-muted { color: var(--text-mute); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem 1rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-strong);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand);
}

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block;
  padding: .34rem .78rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  font-size: .85rem;
  color: var(--text-dim);
}
a.chip:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, .07); }

/* ---------- 7. Section headers ---------- */
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--text-dim); margin: .6rem 0 0; font-size: 1.05rem; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head-left { text-align: left; margin-inline: 0; }

/* ---------- 8. Forms ---------- */
.field { margin-bottom: 16px; }
.label {
  display: block;
  margin-bottom: .45rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dim);
}
.label .req { color: var(--warn); }
.input, .select, .textarea {
  width: 100%;
  padding: .82rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  color: var(--text);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-mute); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, .6);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .14);
  background: var(--surface);
}
.textarea { min-height: 150px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237386a3' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.hint { font-size: .82rem; color: var(--text-mute); margin-top: .4rem; }
.error-text { font-size: .82rem; color: var(--danger); margin-top: .35rem; display: none; }
.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea { border-color: rgba(248, 113, 113, .65); }
.field.is-invalid .error-text { display: block; }

.check { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; }
.check input[type="checkbox"] {
  flex: none;
  appearance: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg-soft);
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.check input[type="checkbox"]:checked {
  background: var(--brand-grad) center/cover;
  border-color: transparent;
}
.check input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  width: 5px; height: 10px;
  margin: 3px auto;
  border: solid #04121c;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.check span { font-size: .92rem; color: var(--text-dim); }

.form-note {
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: rgba(56, 189, 248, .08);
  border: 1px solid rgba(56, 189, 248, .22);
  font-size: .88rem;
  color: var(--text-dim);
}
.form-status { margin-top: 14px; font-size: .9rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }

/* ---------- 9. Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
.table th {
  text-align: left;
  padding: 13px 16px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: rgba(255, 255, 255, .028);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--text-dim); }
.table tbody tr { transition: background .16s var(--ease); }
.table tbody tr:hover { background: rgba(255, 255, 255, .022); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td strong, .table td b { color: var(--text); font-weight: 700; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-empty { padding: 34px 16px; text-align: center; color: var(--text-mute); }

/* ---------- 10. Avatars & lists ---------- */
.avatar {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: .95rem;
  color: #04121c;
  background: var(--brand-grad);
}
.avatar-lg { width: 54px; height: 54px; font-size: 1.15rem; }
.avatar-a { background: linear-gradient(135deg, #f59e0b, #f97316); }
.avatar-b { background: linear-gradient(135deg, #22d3ee, #0ea5e9); }
.avatar-c { background: linear-gradient(135deg, #a78bfa, #6366f1); }
.avatar-d { background: linear-gradient(135deg, #34d399, #10b981); }
.avatar-e { background: linear-gradient(135deg, #fb7185, #e11d48); }

.media-list { display: flex; flex-direction: column; gap: 10px; }
.media {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.media:hover { transform: translateX(3px); border-color: var(--line-strong); }
.media-title { font-weight: 700; font-size: .95rem; }
.media-sub { font-size: .82rem; color: var(--text-mute); }

/* ---------- 11. Progress ---------- */
.progress {
  position: relative;
  height: 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-grad);
  transition: width .8s var(--ease);
}
.progress-thin { height: 6px; }

/* ---------- 12. Public site navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(7, 11, 20, .74);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--brand-grad);
  color: #04121c;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(45, 212, 167, .32);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: .55rem .9rem;
  border-radius: var(--r-pill);
  color: var(--text-dim);
  font-weight: 600;
  font-size: .95rem;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-links a.active { color: var(--text); background: rgba(255, 255, 255, .08); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  cursor: pointer;
  place-items: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Sub-page top bar with back button (about / legal / white paper) */
.subnav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(7, 11, 20, .78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.subnav-inner { display: flex; align-items: center; gap: 16px; width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.subnav-title { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.05rem; }

/* ---------- 13. Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 16, 32, .4), rgba(7, 11, 20, .9));
  padding: 56px 0 32px;
  margin-top: 40px;
}
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: var(--text-dim); font-size: .93rem; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  font-size: .88rem; color: var(--text-mute);
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: transform .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.socials a:hover { transform: translateY(-3px); color: var(--brand); border-color: var(--line-strong); }

/* ---------- 14. Legal / long-form document pages ---------- */
.doc-hero {
  padding: clamp(34px, 5vw, 56px);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(45, 212, 167, .1), rgba(12, 18, 34, .9) 46%);
  border: 1px solid var(--line);
  margin-bottom: 28px;
}
.doc-hero h1 { margin-bottom: .35rem; }
.doc-meta { color: var(--text-mute); font-size: .92rem; margin-bottom: 20px; }
.doc-callout {
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: .95rem;
}
.doc-toc {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  font-size: .93rem;
}
.doc-toc strong { display: block; margin-bottom: 8px; color: var(--text); }
.doc-body { padding: clamp(24px, 4vw, 44px); }
.doc-body section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.doc-body section:first-of-type { padding-top: 6px; }
.doc-body section:last-of-type { border-bottom: 0; padding-bottom: 6px; }
.doc-body h2 { font-size: clamp(1.35rem, 2.3vw, 1.75rem); margin-bottom: 1rem; }
.doc-body h3 { font-size: 1.08rem; margin: 1.4rem 0 .5rem; color: var(--text); }
.doc-body p, .doc-body li { color: var(--text-dim); }
.doc-body strong { color: var(--text); }

.clause { display: grid; grid-template-columns: 42px 1fr; gap: 6px 12px; margin-bottom: 1rem; }
.clause-no { font-weight: 800; color: var(--brand-2); font-variant-numeric: tabular-nums; }
.clause p { margin: 0; }

.note {
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-2);
  background: rgba(56, 189, 248, .07);
  color: var(--text-dim);
  margin: 1rem 0;
}
.note-danger { border-left-color: var(--danger); background: rgba(248, 113, 113, .08); }
.note-warn { border-left-color: var(--warn); background: rgba(251, 191, 36, .08); }
.note strong { color: var(--text); }

.steps { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 10px; }
.steps li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-dim);
  margin: 0;
}
.step-no {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(45, 212, 167, .16);
  border: 1px solid rgba(45, 212, 167, .34);
  color: var(--brand);
  font-size: .8rem; font-weight: 800;
}

/* ---------- 15. Accordion (FAQ) ---------- */
.accordion { display: grid; gap: 10px; }
.acc {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.acc[open] { border-color: rgba(56, 189, 248, .3); background: var(--surface-2); }
.acc summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  color: var(--text);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-mute);
  transition: transform .22s var(--ease), color .22s var(--ease);
  line-height: 1;
}
.acc[open] summary::after { transform: rotate(45deg); color: var(--brand); }
.acc summary:hover { color: var(--brand-2); }
.acc-body { padding: 0 20px 18px; color: var(--text-dim); font-size: .95rem; }
.acc-body p:last-child { margin-bottom: 0; }

/* ---------- 16. Timeline ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(180deg, var(--brand), rgba(56, 189, 248, .16));
  border-radius: 2px;
}
.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-item::before {
  content: ""; position: absolute; left: -25px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .16);
}
.timeline-item h4 { margin-bottom: .25rem; }
.timeline-item p { margin: 0; color: var(--text-dim); }

/* ---------- 17. Utility ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 34px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }
.divider { height: 1px; background: var(--line); margin: 34px 0; }
.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;
}

/* ---------- 18. Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse-ring { 0% { transform: scale(.9); opacity: .8; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 20px;
    background: rgba(8, 12, 22, .98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-actions .btn { padding: .6rem 1rem; font-size: .88rem; }
}
@media (max-width: 560px) {
  /* Auth buttons move inside the collapsed menu so the bar never overflows */
  .nav-actions .btn { display: none; }
  .nav-cta { display: flex; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
  .nav-cta .btn { flex: 1; }
}
.nav-cta { display: none; }
@media (max-width: 640px) {
  .wrap, .wrap-narrow { width: calc(100% - 32px); }
  .card { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .clause { grid-template-columns: 34px 1fr; }
}
