/* =============================================
   Tradevent — main.css
   Design tokens, utilities, components
   ============================================= */

/* --- Tokens --- */
:root,
[data-theme="dark"] {
  --bg:        #0a0c10;
  --surface:   #111318;
  --surface-2: #1a1d24;
  --border:    #252830;
  --primary:   #4f8ef7;
  --primary-d: #3a72d4;
  --accent:    #22c77a;
  --accent-d:  #18a862;
  --ink:       #e8eaf0;
  --muted:     #8890a4;
  --subtle:    #3a3f4d;
  --ok:        #22c77a;
  --ok-d:      #18a862;
  --no:        #f25555;
  --no-d:      #d63e3e;
  --gp:        rgba(34,199,122,.08);
  --ga:        rgba(79,142,247,.08);
  --sh:        0 2px 12px rgba(0,0,0,.45);

  color-scheme: dark;
}

[data-theme="light"] {
  --bg:        #f4f5f7;
  --surface:   #ffffff;
  --surface-2: #f0f2f5;
  --border:    #dde1ea;
  --primary:   #2b6de0;
  --primary-d: #1f57c2;
  --accent:    #13a360;
  --accent-d:  #0e8a50;
  --ink:       #111318;
  --muted:     #5a6276;
  --subtle:    #c8cdd8;
  --ok:        #13a360;
  --ok-d:      #0e8a50;
  --no:        #d93030;
  --no-d:      #b82424;
  --gp:        rgba(19,163,96,.07);
  --ga:        rgba(43,109,224,.07);
  --sh:        0 2px 12px rgba(0,0,0,.10);

  color-scheme: light;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Layout containers --- */
.wrap    { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-xs { width: 100%; max-width: 480px;  margin: 0 auto; padding: 0 1rem; }

/* --- Logo --- */
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  text-decoration: none;
}
.logo em {
  font-style: normal;
  color: var(--accent);
}

/* --- Theme toggle --- */
.tog {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .45rem .5rem;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color .18s, border-color .18s;
}
.tog:hover { color: var(--ink); border-color: var(--subtle); }

[data-theme="dark"]  .ic-sun  { display: none; }
[data-theme="dark"]  .ic-moon { display: block; }
[data-theme="light"] .ic-moon { display: none; }
[data-theme="light"] .ic-sun  { display: block; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
  transition: background .15s, border-color .15s, opacity .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--subtle); text-decoration: none; }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-d); border-color: var(--accent-d); }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

.btn-lg {
  padding: .75rem 1.5rem;
  font-size: .9375rem;
  border-radius: 10px;
}

.btn-sm {
  padding: .38rem .85rem;
  font-size: .8125rem;
  border-radius: 6px;
}

.btn[disabled], .btn:disabled { opacity: .5; cursor: not-allowed; }

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .18rem .55rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.up {
  background: var(--gp);
  color: var(--ok);
}
.dn {
  background: rgba(242,85,85,.1);
  color: var(--no);
}
.badge-active {
  background: var(--gp);
  color: var(--ok);
}
.badge-done {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.badge-confirmed {
  background: var(--ga);
  color: var(--primary);
}
.badge-pending {
  background: rgba(255,180,0,.08);
  color: #e0a020;
}

/* --- Forms --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.form-label {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .01em;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: .65rem .875rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: .9375rem;
  line-height: 1.5;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
.input::placeholder { color: var(--subtle); }
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,142,247,.12);
}
.input.err, .select.err { border-color: var(--no); }

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%238890a4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.textarea { resize: vertical; min-height: 100px; }

.form-err {
  font-size: .78rem;
  color: var(--no);
  display: none;
}
.form-err.show { display: block; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .8125rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: .15rem;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Password input wrapper */
.input-wrap {
  position: relative;
}
.input-wrap .input { padding-right: 2.6rem; }
.pw-eye {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  display: flex;
  align-items: center;
}
.pw-eye:hover { color: var(--ink); }

/* Strength bar */
.strength-bar {
  height: 3px;
  border-radius: 4px;
  background: var(--border);
  margin-top: .4rem;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width .25s, background .25s;
}

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

/* --- Dashboard Layout --- */
.db-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.db-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 1.25rem 0;
}

.db-sidebar-logo {
  padding: 0 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .75rem;
}

.db-sidebar-nav {
  flex: 1;
  padding: 0 .75rem;
}

.db-section-label {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  padding: .75rem .5rem .35rem;
}

.db-nav-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .75rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 450;
  cursor: pointer;
  text-decoration: none;
  transition: background .13s, color .13s;
  margin-bottom: .1rem;
}
.db-nav-item:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.db-nav-item.active {
  background: var(--ga);
  color: var(--primary);
  font-weight: 500;
}
.db-nav-item svg { flex-shrink: 0; opacity: .8; }
.db-nav-item.active svg { opacity: 1; }

.db-sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.db-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Space Grotesk', sans-serif;
}
.db-avatar-name {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.db-avatar-email {
  font-size: .7rem;
  color: var(--muted);
}

/* --- Main content area --- */
.db-main {
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

.db-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 1rem;
}
.db-topbar-left h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.db-topbar-left span {
  font-size: .8rem;
  color: var(--muted);
}
.db-topbar-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.db-content { padding: 1.75rem 2rem 3rem; }

/* --- Stat blocks --- */
.db-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1100px) { .db-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .db-grid { grid-template-columns: 1fr; } }

.db-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}
.db-stat-label {
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}
.db-stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: .4rem;
}
.db-stat-sub {
  font-size: .775rem;
  color: var(--muted);
}
.db-stat-change {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-size: .775rem;
  font-weight: 600;
}
.db-stat-change.up { color: var(--ok); }
.db-stat-change.dn { color: var(--no); }

/* --- Tables --- */
.db-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.db-table thead th {
  text-align: left;
  padding: .6rem .9rem;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.db-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.db-table tbody tr:last-child { border-bottom: none; }
.db-table tbody tr:hover { background: var(--surface-2); }
.db-table tbody td {
  padding: .75rem .9rem;
  color: var(--ink);
  vertical-align: middle;
}
.db-table .td-muted { color: var(--muted); font-size: .8125rem; }

/* --- Section headings inside dashboard --- */
.db-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .9rem;
}
.db-section-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

/* --- Market prices panel --- */
.market-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
}
.market-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem .9rem;
  background: var(--surface-2);
  border-radius: 8px;
  gap: 1rem;
}
.market-sym {
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink);
}
.market-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: .8125rem;
  color: var(--ink);
}

/* --- Divider --- */
.divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--muted);
  font-size: .8rem;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --- Notification bell --- */
.bell-btn {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .5rem;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s;
}
.bell-btn:hover { color: var(--ink); }
.bell-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--no);
  border: 1.5px solid var(--bg);
}

/* --- Utilities --- */
.font-mono    { font-family: 'JetBrains Mono', monospace; }
.font-display { font-family: 'Space Grotesk', sans-serif; }
.text-muted   { color: var(--muted); }
.text-ok      { color: var(--ok); }
.text-no      { color: var(--no); }
.mt-xs  { margin-top: .5rem; }
.mt-sm  { margin-top: .85rem; }
.mt-md  { margin-top: 1.25rem; }
.mt-lg  { margin-top: 2rem; }
.mb-md  { margin-bottom: 1.25rem; }
.gap-sm { gap: .6rem; }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; }
.space-y > * + * { margin-top: .75rem; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--subtle); }

/* --- Responsive sidebar collapse --- */
@media (max-width: 900px) {
  .db-layout { grid-template-columns: 1fr; }
  .db-sidebar { display: none; }
  .db-topbar  { padding: 1rem; }
  .db-content { padding: 1rem; }
}

/* ===========================================
   SHARED PAGE COMPONENTS
   =========================================== */

/* --- Additional containers --- */
.wrap-sm { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 1.5rem; }

/* --- Navbar --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-i {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: .25rem;
  flex: 1;
}
.nav-links a {
  display: block;
  padding: .45rem .75rem;
  font-size: .875rem;
  font-weight: 450;
  color: var(--muted);
  border-radius: 6px;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.nav-links a:hover  { color: var(--ink); background: var(--surface-2); }
.nav-links a.active { color: var(--ink); font-weight: 500; }
.nav-r {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.nav-mob {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .45rem .55rem;
  cursor: pointer;
  color: var(--muted);
}
.nav-mob svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; }
.ic-sun, .ic-moon {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round;
}

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 300;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.25,1,.5,1);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-top { display: flex; justify-content: space-between; align-items: center; }
.nav-drawer-links { display: flex; flex-direction: column; gap: .25rem; }
.nav-drawer-links a {
  display: block;
  padding: .75rem .5rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.nav-drawer-links a:hover { color: var(--ink); }

/* --- Section layout --- */
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.s-head {
  max-width: 640px;
  margin-bottom: 3.5rem;
}
.s-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
  color: var(--ink);
}
.s-head p { color: var(--muted); line-height: 1.65; font-size: 1.0625rem; }

/* --- Typography heading classes --- */
.h-hero {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.75rem, 1.5rem + 4vw, 5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--ink);
}
.h-xl {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 1.25rem + 2.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
}
.h-lg {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
}
.h-md {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.375rem, 1rem + 1.25vw, 2rem);
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ink);
}
.h-sm {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.1rem, .9rem + .75vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}

/* --- Page hero --- */
.page-hero {
  padding: 7rem 0 4rem;
  border-bottom: 1px solid var(--border);
}
.page-hero-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem;
  color: var(--accent);
  letter-spacing: .04em;
  margin-bottom: 1rem;
  display: block;
}
.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.25rem, 1.25rem + 3vw, 4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--ink);
  max-width: 18ch;
}
.page-hero-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 54ch;
  margin-bottom: 2rem;
}

/* --- Ticker --- */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: .6rem 0;
}
.ticker-t {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: tick 36s linear infinite;
}
.ticker:hover .ticker-t { animation-play-state: paused; }
.t-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem;
  color: var(--ink);
  white-space: nowrap;
}
.t-item b { color: var(--muted); font-weight: 500; }
.t-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
@keyframes tick {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Trust bar --- */
.trust {
  border-bottom: 1px solid var(--border);
  padding: .875rem 0;
  background: var(--surface);
}
.trust-i {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  color: var(--muted);
  font-weight: 500;
}
.trust-item svg { stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; flex-shrink: 0; }
.t-vr {
  width: 1px;
  height: 14px;
  background: var(--border);
  flex-shrink: 0;
}

/* --- Steps (How It Works) --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.step { position: relative; padding-top: 1.25rem; }
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .5rem;
}
.step p { font-size: .9375rem; color: var(--muted); line-height: 1.65; }

/* --- Plans grid --- */
.plans-g {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.plan.feat {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
  position: relative;
}
.plan.feat::before {
  content: 'Most Popular';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .75rem;
  border-radius: 100px;
}
.p-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}
.p-range {
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem;
  color: var(--muted);
  margin-top: .1rem;
}
.p-roi {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--ok);
  letter-spacing: -.02em;
  line-height: 1;
}
.p-roi-l {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .35rem;
}
.p-feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.p-feats li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.4;
}
.p-feats li::before {
  content: '✓';
  color: var(--ok);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}
.p-btn {
  display: block;
  text-align: center;
  padding: .65rem;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.p-btn:hover { opacity: .85; text-decoration: none; }
.p-btn.fill { background: var(--accent); color: #fff; }
.p-btn.out  { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

/* --- Accordion --- */
.accordion { display: flex; flex-direction: column; }
.acc-item { border-top: 1px solid var(--border); }
.acc-item:last-child { border-bottom: 1px solid var(--border); }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  transition: color .15s;
}
.acc-btn:hover { color: var(--primary); }
.acc-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s;
  color: var(--muted);
}
.acc-icon svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.acc-item.open .acc-icon svg { transform: rotate(180deg); }
.acc-body { height: 0; overflow: hidden; transition: height .3s cubic-bezier(.25,1,.5,1); }
.acc-body-inner { padding: 0 0 1.25rem; color: var(--muted); line-height: 1.7; font-size: .9375rem; }

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s;
}
.blog-card:hover { border-color: var(--primary); }
.blog-thumb {
  background: var(--surface-2);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-thumb svg { width: 100%; height: 100%; }
.blog-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.blog-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: .04em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 500;
}
.blog-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  flex: 1;
}
.blog-excerpt { font-size: .875rem; color: var(--muted); line-height: 1.55; }
.blog-meta { font-size: .78rem; color: var(--subtle); margin-top: auto; }

/* --- Timeline --- */
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}
.tl-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 1rem;
  padding-bottom: 2rem;
  position: relative;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
  margin-top: .35rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.tl-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: .04em;
  margin-bottom: .25rem;
}
.tl-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .3rem;
}
.tl-desc { font-size: .875rem; color: var(--muted); line-height: 1.6; }

/* --- Testimonials --- */
.testi-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.testi-scroll::-webkit-scrollbar { display: none; }
.tc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  min-width: 300px;
  max-width: 340px;
  flex-shrink: 0;
}
.tc-auth { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.tc-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .875rem;
  color: #fff;
  flex-shrink: 0;
}
.tc-name { font-size: .875rem; font-weight: 600; color: var(--ink); }
.tc-role { font-size: .78rem; color: var(--muted); }

/* --- ROI Calculator --- */
.calc-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}
.calc-result {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.calc-result-lbl { font-size: .875rem; color: var(--muted); margin-bottom: .375rem; }
.calc-result-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--ok);
  letter-spacing: -.02em;
}
.range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  outline: none;
  margin: .5rem 0;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}
.range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid var(--bg);
}

/* --- Security check marks --- */
.chk {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9375rem;
  color: var(--ink);
  padding: .35rem 0;
}
.chk::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gp);
  border: 1.5px solid var(--ok);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5 3.5-4' fill='none' stroke='%2322c77a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* --- Prose (legal pages) --- */
.prose {
  color: var(--ink);
  line-height: 1.8;
  font-size: .9375rem;
}
.prose h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2.5rem 0 .75rem;
  letter-spacing: -.02em;
}
.prose h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.75rem 0 .5rem;
}
.prose p { margin-bottom: 1rem; color: var(--muted); }
.prose ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; color: var(--muted); }
.prose a { color: var(--primary); }
.prose strong { color: var(--ink); font-weight: 600; }

/* --- Footer --- */
.foot {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  background: var(--surface);
}
.foot-g {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.foot-brand p {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.7;
  margin-top: .875rem;
  max-width: 32ch;
}
.foot-payments { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.pay-b {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  padding: .2rem .6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
}
.foot-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--subtle);
  margin-bottom: 1rem;
}
.foot-col a {
  display: block;
  font-size: .875rem;
  color: var(--muted);
  padding: .25rem 0;
  text-decoration: none;
  transition: color .15s;
}
.foot-col a:hover { color: var(--ink); }
.foot-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.foot-legal {
  font-size: .78rem;
  color: var(--subtle);
  line-height: 1.6;
  max-width: 70ch;
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.fu  { opacity: 0; animation: fadeUp .6s cubic-bezier(.25,1,.5,1) forwards; }
.fu1 { animation-delay: .1s; }
.fu2 { animation-delay: .2s; }
.fu3 { animation-delay: .3s; }
.fu4 { animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .fu  { opacity: 1; animation: none; }
  .ticker-t { animation: none; }
}

/* --- Responsive shared --- */
@media (max-width: 900px) {
  .nav-links     { display: none; }
  .nav-mob       { display: flex; }
  /* Hide auth buttons from topbar — they live in the drawer on mobile */
  .nav-r .btn    { display: none; }
  .plans-g       { grid-template-columns: repeat(2, 1fr); }
  .steps         { grid-template-columns: 1fr; gap: 2rem; }
  .blog-grid     { grid-template-columns: repeat(2, 1fr); }
  .foot-g        { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .page-hero     { padding: 5.5rem 0 3rem; }
}
@media (max-width: 540px) {
  .plans-g   { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .foot-g    { grid-template-columns: 1fr; }
  .testi-scroll { flex-direction: column; }
  .tc { min-width: unset; max-width: unset; }
  .calc-wrap { padding: 1.5rem; }
  .trust-i   { gap: 1rem; }
  .t-vr      { display: none; }
}

/* --- Badge extras --- */
.pr { background: var(--ga); color: var(--primary); border-radius: 100px; padding: .18rem .55rem; font-size: .75rem; font-weight: 600; }
.ac { background: var(--gp); color: var(--ok); border-radius: 100px; padding: .18rem .55rem; font-size: .75rem; font-weight: 600; }
.wa { background: rgba(255,180,0,.1); color: #e0a020; border-radius: 100px; padding: .18rem .55rem; font-size: .75rem; font-weight: 600; }
