/* ============================================================
   APEX RETIREMENT — GLOBAL DESIGN SYSTEM
   Single stylesheet for all pages: app, landing, pricing,
   how-it-works, about.
   Source: Design_1851 tokens + all per-page inline CSS extracted.
   No <style> blocks needed on any page.
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@300;400;500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&display=swap');

/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
  --void:       #04060f;
  --deep:       #070b18;
  --base:       #0b1020;
  --surface:    #10182a;
  --surface-2:  #141d30;
  --lift:       #1c2840;
  --lift-2:     #263352;

  --line:       rgba(255,255,255,.07);
  --line-2:     rgba(255,255,255,.12);
  --line-3:     rgba(255,255,255,.18);

  --ink:        #eef2ff;
  --ink-2:      #b0bddb;
  --ink-3:      #6b7fa0;
  --ink-4:      #3d5070;

  --gold:       #c9a84c;
  --gold-2:     #e8d08a;
  --gold-3:     #f5e6b0;
  --gold-dim:   rgba(201,168,76,.13);
  --gold-glow:  rgba(201,168,76,.22);

  --cyan:       #38bdf8;
  --emerald:    #34d399;
  --rose:       #fb7185;
  --violet:     #a78bfa;
  --amber:      #fbbf24;

  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow:     0 4px 24px rgba(0,0,0,.5);
  --shadow-lg:  0 16px 64px rgba(0,0,0,.65);
  --glow-gold:  0 0 60px rgba(201,168,76,.15), 0 0 120px rgba(201,168,76,.07);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-ui:      'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --nav-h: 64px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--void);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: var(--nav-h);
}

h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--lift); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--lift-2); }

/* ============================================================
   GLOBAL NAV
============================================================ */
body > nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: var(--nav-h);
  background: rgba(4,6,15,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

/* SVG mark replaces old gradient box — no extra styles needed */
.nav-logo-mark {
  display: none; /* retired — SVG mark is now inline */
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -.01em;
  white-space: nowrap;
  line-height: 1;
}

/* Ensure logo anchor itself doesn't collapse */
a.nav-logo {
  flex-shrink: 0;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-grow: 0;
  flex-shrink: 1;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--line); }
.nav-links a.active { color: var(--gold); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Hamburger menu button ──────────────────────────────── */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.nav-hamburger:hover {
  background: var(--line);
  border-color: var(--line-3);
}
.nav-hamburger svg {
  display: block;
}

/* ============================================================
   GLOBAL BUTTONS
============================================================ */
.btn-ghost {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 8px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
}
.btn-ghost:hover { border-color: var(--line-3); color: var(--ink); background: var(--line); }

.btn-gold {
  font-size: 13px;
  font-weight: 600;
  color: #0c0a05;
  background: linear-gradient(135deg, var(--gold) 0%, #a87830 100%);
  border: none;
  border-radius: var(--radius);
  padding: 8px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 2px 12px rgba(201,168,76,.25);
  display: inline-flex;
  align-items: center;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 100%);
  box-shadow: 0 4px 20px rgba(201,168,76,.4);
  transform: translateY(-1px);
}

.btn-hero {
  font-size: 15px;
  font-weight: 700;
  color: #080600;
  background: linear-gradient(135deg, var(--gold) 0%, #9a7020 100%);
  border: none;
  border-radius: var(--radius-lg);
  padding: 16px 36px;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 24px rgba(201,168,76,.3), var(--glow-gold);
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201,168,76,.45), var(--glow-gold); }

.btn-hero-ghost {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 16px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
}
.btn-hero-ghost:hover { border-color: var(--line-3); color: var(--ink); background: var(--line); }

.btn-primary {
  font-size: 14px;
  font-weight: 700;
  color: #0c0a05;
  background: linear-gradient(135deg, var(--gold) 0%, #9a7020 100%);
  border: none;
  border-radius: var(--radius-lg);
  padding: 13px 28px;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 20px rgba(201,168,76,.3);
  display: inline-flex;
  align-items: center;
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(201,168,76,.45); transform: translateY(-1px); }

.btn-secondary {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 13px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
}
.btn-secondary:hover { border-color: var(--line-3); color: var(--ink); }

.btn-cta-primary {
  font-size: 14px;
  font-weight: 700;
  color: #0c0a05;
  background: linear-gradient(135deg, var(--gold) 0%, #9a7020 100%);
  border: none;
  border-radius: var(--radius-lg);
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 20px rgba(201,168,76,.3);
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
}
.btn-cta-primary:hover { box-shadow: 0 6px 28px rgba(201,168,76,.45); transform: translateY(-1px); }

.btn-cta-ghost {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 14px 28px;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
}
.btn-cta-ghost:hover { border-color: var(--line-3); color: var(--ink); background: var(--line); }

.btn-launch {
  font-size: 14px;
  font-weight: 700;
  color: #0c0a05;
  background: linear-gradient(135deg, var(--gold) 0%, #9a7020 100%);
  border: none;
  border-radius: var(--radius-lg);
  padding: 13px 30px;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 20px rgba(201,168,76,.3);
  display: inline-block;
}
.btn-launch:hover { box-shadow: 0 6px 28px rgba(201,168,76,.45); transform: translateY(-1px); }

/* Plan CTAs (pricing page) */
.plan-cta {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-family: var(--font-ui);
}
.cta-outline { border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); }
.cta-outline:hover { border-color: var(--line-3); background: var(--line); color: var(--ink); }
.cta-gold { background: linear-gradient(135deg, var(--gold) 0%, #9a7020 100%); border: none; color: #0c0a05; box-shadow: 0 4px 20px rgba(201,168,76,.3); }
.cta-gold:hover { box-shadow: 0 6px 28px rgba(201,168,76,.45); transform: translateY(-1px); }
.cta-dark { border: 1px solid rgba(201,168,76,.25); background: var(--gold-dim); color: var(--gold-2); }
.cta-dark:hover { background: rgba(201,168,76,.2); border-color: rgba(201,168,76,.4); }

/* Plan button aliases (landing pricing preview) */
.btn-plan { display: block; width: 100%; padding: 12px; border-radius: var(--radius); font-size: 13px; font-weight: 700; text-align: center; cursor: pointer; text-decoration: none; transition: all .2s; letter-spacing: .04em; font-family: var(--font-ui); }
.btn-plan-outline { border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); }
.btn-plan-outline:hover { border-color: var(--line-3); background: var(--line); color: var(--ink); }
.btn-plan-gold { background: linear-gradient(135deg, var(--gold) 0%, #9a7020 100%); border: none; color: #0c0a05; box-shadow: 0 4px 20px rgba(201,168,76,.3); }
.btn-plan-gold:hover { box-shadow: 0 6px 28px rgba(201,168,76,.45); transform: translateY(-1px); }

/* ============================================================
   AD BANNERS
============================================================ */

/* Wrapper utility around ad banners */

/* ============================================================
   GLOBAL FOOTER
============================================================ */
footer {
  background: var(--void);
  border-top: 1px solid var(--line);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo { font-family: var(--font-display); font-size: 16px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }

.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 12px; color: var(--ink-4); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--ink-2); }

.footer-note { font-size: 11px; color: var(--ink-4); }

/* Extended footer (app.html site-footer variant) */
.site-footer { background: var(--void); border-top: 1px solid var(--line); padding: 40px; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-mark { font-size: 14px; color: var(--gold); opacity: .7; }
.footer-name { font-family: var(--font-display); font-size: 16px; color: var(--ink-3); }
.footer-tagline { font-size: 12px; color: var(--ink-4); margin-left: 4px; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-legal { font-size: 11px; color: var(--ink-4); display: flex; gap: 8px; align-items: center; }
.footer-legal .dot { opacity: .4; }

/* ============================================================
   SHARED MARKETING ATOMS
============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 16px;
}

.page-header {
  padding: 120px 40px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(201,168,76,.07) 0%, transparent 65%);
  pointer-events: none;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.08;
  margin-bottom: 18px;
}
.page-title em { font-style: italic; color: var(--gold-2); }

.page-sub { font-size: 16px; color: var(--ink-3); max-width: 520px; margin: 0 auto; line-height: 1.7; }

.section-title { font-family: var(--font-display); font-size: 36px; font-weight: 400; color: var(--ink); line-height: 1.15; }
.section-title em { font-style: italic; color: var(--gold-2); }
.section-header { margin-bottom: 48px; }

/* Shared FAQ pattern */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: flex-start; cursor: pointer; color: var(--ink);
  font-size: 15px; font-weight: 500; gap: 16px;
  font-family: var(--font-ui); line-height: 1.4;
}
.faq-q .arrow { color: var(--ink-4); transition: transform .2s; flex-shrink: 0; font-size: 20px; margin-top: -2px; }
.faq-item.open .faq-q .arrow { transform: rotate(45deg); color: var(--gold); }
.faq-a { display: none; padding: 0 0 20px; font-size: 14px; color: var(--ink-3); line-height: 1.75; }
.faq-item.open .faq-a { display: block; }
.faq-a a { color: var(--gold); text-decoration: none; }
.faq-a a:hover { color: var(--gold-2); text-decoration: underline; }

/* Shared CTA banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(201,168,76,.08) 0%, var(--surface) 60%);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto 80px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(201,168,76,.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { font-family: var(--font-display); font-size: 36px; font-weight: 400; color: var(--ink); margin-bottom: 12px; position: relative; }
.cta-banner h2 em { font-style: italic; color: var(--gold-2); }
.cta-banner p { font-size: 15px; color: var(--ink-3); margin-bottom: 28px; position: relative; }
.cta-banner-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* CTA strip (about) */
.cta-strip { max-width: 1120px; margin: 0 auto; padding: 56px 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-strip-text h3 { font-family: var(--font-display); font-size: 28px; font-weight: 400; color: var(--ink); }
.cta-strip-text h3 em { font-style: italic; color: var(--gold-2); }
.cta-strip-text p { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.cta-strip-actions { display: flex; gap: 12px; align-items: center; }

/* Inline CTA (how-it-works) */
.inline-cta {
  background: linear-gradient(135deg, rgba(201,168,76,.07) 0%, var(--surface) 60%);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  text-align: center;
  margin-top: 56px;
}
.inline-cta h3 { font-family: var(--font-display); font-size: 28px; font-weight: 400; color: var(--ink); margin-bottom: 10px; }
.inline-cta h3 em { font-style: italic; color: var(--gold-2); }
.inline-cta p { font-size: 14px; color: var(--ink-3); margin-bottom: 24px; }

/* ============================================================
   LANDING PAGE
============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 20%; left: 50%; transform: translate(-50%, -50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(201,168,76,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 99px;
  padding: 6px 16px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  animation: fadeUp .6s ease both;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink);
  max-width: 900px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  animation: fadeUp .6s .1s ease both;
}
.hero-title em { font-style: italic; color: var(--gold-2); }

.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-3);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  animation: fadeUp .6s .2s ease both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: fadeUp .6s .3s ease both;
}

.hero-note {
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 16px;
  position: relative;
  z-index: 1;
  animation: fadeUp .6s .4s ease both;
}

/* Dashboard preview mockup */
.hero-preview { margin-top: 64px; width: 100%; max-width: 1000px; position: relative; z-index: 1; animation: fadeUp .8s .5s ease both; }
.preview-frame { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.04); position: relative; }
.preview-bar { background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 12px 16px; display: flex; align-items: center; gap: 8px; }
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-dot:nth-child(1) { background: #ff5f57; }
.preview-dot:nth-child(2) { background: #febc2e; }
.preview-dot:nth-child(3) { background: #28c840; }
.preview-url { margin-left: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); background: var(--lift); border-radius: 6px; padding: 4px 12px; flex: 1; max-width: 280px; }
.preview-body { display: grid; grid-template-columns: 220px 1fr; height: 340px; }
.preview-sidebar { background: linear-gradient(180deg, #070b18 0%, #090d1c 100%); border-right: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.preview-sidebar-header { font-family: var(--font-display); font-size: 13px; color: var(--gold); margin-bottom: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.preview-input-block { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.preview-label { font-family: var(--font-mono); font-size: 8px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-4); margin-bottom: 8px; }
.preview-input-row { display: flex; gap: 6px; margin-bottom: 5px; }
.preview-input-pill { flex: 1; height: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 5px; }
.preview-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--base); }
.preview-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.preview-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.preview-card-label { font-family: var(--font-mono); font-size: 7px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-4); margin-bottom: 6px; }
.preview-card-val { font-family: var(--font-mono); font-size: 15px; font-weight: 300; color: var(--gold-2); }
.preview-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.preview-chart-box { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px; overflow: hidden; }
.preview-chart-title { font-family: var(--font-mono); font-size: 7px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-4); margin-bottom: 8px; }
.preview-chart-svg { width: 100%; height: 70px; }
.preview-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: linear-gradient(transparent, var(--void)); border-radius: 0 0 var(--radius-xl) var(--radius-xl); }

/* Trust strip */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); padding: 20px 40px; display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.trust-icon { font-size: 18px; opacity: .7; }

/* Features */
.section { padding: 96px 40px; max-width: 1200px; margin: 0 auto; }
.section-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.section-sub { font-size: 16px; color: var(--ink-3); max-width: 540px; line-height: 1.7; margin-bottom: 56px; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: relative; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); opacity: 0; transition: opacity .2s; }
.feature-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { width: 44px; height: 44px; border-radius: var(--radius); background: var(--gold-dim); border: 1px solid rgba(201,168,76,.2); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 18px; }
.feature-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.feature-desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.65; }
.feature-badge { display: inline-block; margin-top: 14px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; border: 1px solid; }
.badge-free { color: var(--emerald); border-color: rgba(52,211,153,.25); background: rgba(52,211,153,.08); }
.badge-pro  { color: var(--gold);    border-color: rgba(201,168,76,.25); background: var(--gold-dim); }

/* How it works */
.how-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 96px 40px; }
.how-inner { max-width: 1200px; margin: 0 auto; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), var(--line-2), transparent); }
.step { padding: 0 20px; text-align: center; position: relative; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--base); border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 18px; font-weight: 300; color: var(--gold); margin: 0 auto 20px; position: relative; z-index: 1; box-shadow: 0 0 24px rgba(201,168,76,.15); }
.step-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.step-desc  { font-size: 13px; color: var(--ink-3); line-height: 1.65; }

/* Pricing section (landing preview) */
.pricing-section { padding: 96px 40px; max-width: 1100px; margin: 0 auto; text-align: center; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; text-align: left; }
.pricing-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px 28px; position: relative; transition: border-color .2s, transform .2s; }
.pricing-card.featured { border-color: rgba(201,168,76,.4); background: linear-gradient(160deg, rgba(201,168,76,.06) 0%, var(--surface) 50%); box-shadow: 0 0 40px rgba(201,168,76,.1); }
.pricing-card.featured::before { content: 'MOST POPULAR'; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; color: #0c0a05; background: var(--gold); padding: 5px 16px; border-radius: 0 0 10px 10px; }
.plan-name { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 14px; }
.plan-price { font-family: var(--font-display); font-size: 44px; color: var(--ink); line-height: 1; margin-bottom: 6px; }
.plan-price span { font-family: var(--font-ui); font-size: 14px; color: var(--ink-3); font-weight: 400; }
.plan-desc { font-size: 13px; color: var(--ink-3); margin-bottom: 24px; line-height: 1.6; min-height: 40px; }
.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li { font-size: 13px; color: var(--ink-2); padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.plan-features li::before { content: '✓'; color: var(--emerald); font-size: 12px; flex-shrink: 0; font-weight: 700; }
.plan-features li.dim { color: var(--ink-4); }
.plan-features li.dim::before { content: '—'; color: var(--ink-4); }

/* CTA section (landing) */
.cta-section { background: var(--surface); border-top: 1px solid var(--line); padding: 96px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 600px; height: 400px; background: radial-gradient(ellipse, rgba(201,168,76,.07) 0%, transparent 70%); pointer-events: none; }
.cta-title { font-family: var(--font-display); font-size: clamp(32px, 4vw, 56px); line-height: 1.1; color: var(--ink); margin-bottom: 16px; position: relative; }
.cta-title em { font-style: italic; color: var(--gold-2); }
.cta-sub { font-size: 16px; color: var(--ink-3); margin-bottom: 36px; position: relative; }

/* ============================================================
   PRICING PAGE
============================================================ */
.pricing-wrap { max-width: 1100px; margin: 0 auto; padding: 0 40px 96px; }

/* Full plan cards (pricing.html) */
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 36px 30px; position: relative; transition: border-color .2s, transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.plan-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.plan-card.featured { border-color: rgba(201,168,76,.4); background: linear-gradient(160deg, rgba(201,168,76,.07) 0%, var(--surface) 55%); box-shadow: 0 0 60px rgba(201,168,76,.1); }
.featured-badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; color: #080600; background: var(--gold); padding: 5px 18px; border-radius: 0 0 12px 12px; }
.plan-tier { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 20px; }
.plan-price-row { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 8px; }
.plan-price { font-family: var(--font-display); font-size: 52px; color: var(--ink); line-height: 1; }
.plan-price-meta { font-size: 13px; color: var(--ink-3); padding-bottom: 8px; }
.plan-annual-note { font-family: var(--font-mono); font-size: 10px; color: var(--emerald); background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.2); border-radius: 6px; padding: 4px 10px; display: inline-block; margin-bottom: 16px; letter-spacing: .06em; }
.plan-tagline { font-size: 13.5px; color: var(--ink-3); line-height: 1.65; margin-bottom: 24px; min-height: 44px; }
.plan-divider { height: 1px; background: var(--line); margin-bottom: 22px; }
.features-label { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-4); margin-bottom: 14px; }
.plan-features li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.04); display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.plan-features li::before { display: none; } /* reset landing override */
.plan-features li .check { color: var(--emerald); font-size: 11px; flex-shrink: 0; margin-top: 2px; font-weight: 700; }
.plan-features li .dash  { color: var(--ink-4);   font-size: 11px; flex-shrink: 0; margin-top: 2px; }
.plan-features li.muted  { color: var(--ink-4); }

/* Billing toggle */
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 36px auto 0; }
.toggle-label { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.toggle-switch { position: relative; width: 44px; height: 24px; background: var(--lift); border-radius: 99px; border: 1px solid var(--line-2); cursor: pointer; transition: background .2s; }
.toggle-switch.active { background: var(--gold); }
.toggle-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: white; transition: transform .2s; }
.toggle-switch.active::after { transform: translateX(20px); }
.save-badge { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--emerald); background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.25); border-radius: 99px; padding: 3px 10px; }

/* Comparison table */
.compare-wrap { max-width: 960px; margin: 0 auto; padding: 0 40px 96px; }
.compare-title { font-family: var(--font-display); font-size: 36px; font-weight: 400; color: var(--ink); margin-bottom: 36px; text-align: center; }
.compare-title em { font-style: italic; color: var(--gold-2); }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table thead tr { background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
.compare-table th { padding: 16px 20px; text-align: left; font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-4); font-weight: 500; }
.compare-table th:not(:first-child) { text-align: center; }
.compare-table th.col-pro { color: var(--gold); }
.compare-table td { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 13px; color: var(--ink-2); vertical-align: middle; }
.compare-table td:not(:first-child) { text-align: center; }
.compare-table .section-row td { background: var(--surface-2); font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-4); padding: 10px 20px; }
.compare-table tr:hover td { background: rgba(201,168,76,.03); }
.chk { color: var(--emerald); font-size: 16px; }
.dash-cell { color: var(--ink-4); font-size: 16px; }
.coming { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; color: var(--amber); background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.2); border-radius: 99px; padding: 2px 8px; }

/* Pricing page FAQ */
.faq-wrap { max-width: 720px; margin: 0 auto; padding: 0 40px 96px; }
.faq-title { font-family: var(--font-display); font-size: 36px; font-weight: 400; color: var(--ink); margin-bottom: 40px; text-align: center; }
.faq-title em { font-style: italic; color: var(--gold-2); }

/* ============================================================
   HOW IT WORKS PAGE
============================================================ */
.toc { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.toc-link { font-size: 12px; font-weight: 500; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 6px 16px; text-decoration: none; transition: all .15s; }
.toc-link:hover { border-color: var(--line-2); color: var(--gold); background: var(--gold-dim); }

.content-wrap { max-width: 1120px; margin: 0 auto; padding: 56px 40px 96px; display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }

.side-nav { position: sticky; top: calc(var(--nav-h) + 24px); }
.side-nav-title { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-4); margin-bottom: 14px; }
.side-nav ul { list-style: none; }
.side-nav li { margin-bottom: 2px; }
.side-nav a { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); text-decoration: none; padding: 7px 10px; border-radius: var(--radius); border-left: 2px solid transparent; transition: all .15s; }
.side-nav a:hover { color: var(--ink); background: var(--surface); border-left-color: var(--line-2); }
.side-nav a.current { color: var(--gold); background: var(--gold-dim); border-left-color: var(--gold); }
.side-nav .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; flex-shrink: 0; }

.doc-content { min-width: 0; }
.doc-section { margin-bottom: 72px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.doc-section:last-child { margin-bottom: 0; }
.section-number { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px; }
.section-heading { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 400; color: var(--ink); line-height: 1.15; margin-bottom: 16px; }
.section-heading em { font-style: italic; color: var(--gold-2); }
.section-lead { font-size: 15px; color: var(--ink-2); line-height: 1.75; margin-bottom: 32px; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 32px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; }
.info-card-icon  { font-size: 22px; margin-bottom: 12px; }
.info-card-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.info-card-text  { font-size: 13px; color: var(--ink-3); line-height: 1.65; }

.field-list { display: flex; flex-direction: column; gap: 1px; }
.field-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s; }
.field-item:hover { border-color: var(--line-2); }
.field-header { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; }
.field-name   { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--gold-2); min-width: 180px; }
.field-short  { font-size: 12px; color: var(--ink-3); flex: 1; }
.field-toggle { font-size: 16px; color: var(--ink-4); transition: transform .15s; flex-shrink: 0; }
.field-item.open .field-toggle { transform: rotate(45deg); color: var(--gold); }
.field-body { display: none; padding: 14px 18px 16px; font-size: 13px; color: var(--ink-3); line-height: 1.7; border-top: 1px solid var(--line); }
.field-item.open .field-body { display: block; }

.tip-box { background: var(--gold-dim); border: 1px solid rgba(201,168,76,.2); border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 24px; display: flex; gap: 14px; }
.tip-icon  { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.tip-title { font-size: 13px; font-weight: 600; color: var(--gold-2); margin-bottom: 6px; }
.tip-text  { font-size: 13px; color: var(--ink-2); line-height: 1.65; }

.warn-box { background: rgba(251,113,133,.07); border: 1px solid rgba(251,113,133,.2); border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 24px; display: flex; gap: 14px; }
.warn-box .tip-title { color: #fda4af; }

.chart-explain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 14px; display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }
.chart-icon { width: 56px; height: 56px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.chart-icon.gold    { background: var(--gold-dim); }
.chart-icon.cyan    { background: rgba(56,189,248,.1); }
.chart-icon.violet  { background: rgba(167,139,250,.1); }
.chart-icon.emerald { background: rgba(52,211,153,.1); }
.chart-title  { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.chart-desc   { font-size: 13px; color: var(--ink-3); line-height: 1.65; }
.chart-markers { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.marker  { font-family: var(--font-mono); font-size: 10px; padding: 3px 10px; border-radius: 99px; border: 1px solid; }
.m-black  { color: var(--ink-2);   border-color: var(--line-2);               background: var(--lift); }
.m-green  { color: var(--emerald); border-color: rgba(52,211,153,.25);         background: rgba(52,211,153,.08); }
.m-amber  { color: var(--amber);   border-color: rgba(251,191,36,.25);          background: rgba(251,191,36,.08); }
.m-red    { color: var(--rose);    border-color: rgba(251,113,133,.25);         background: rgba(251,113,133,.08); }
.m-violet { color: var(--violet);  border-color: rgba(167,139,250,.25);         background: rgba(167,139,250,.08); }

.assumption-table { width: 100%; border-collapse: collapse; }
.assumption-table th { padding: 10px 16px; background: var(--surface-2); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-4); text-align: left; border-bottom: 1px solid var(--line-2); }
.assumption-table td { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 13px; color: var(--ink-2); vertical-align: top; }
.assumption-table td:first-child { color: var(--gold-2); font-family: var(--font-mono); font-size: 12px; min-width: 200px; }
.assumption-table tr:hover td { background: rgba(201,168,76,.03); }

/* ============================================================
   ABOUT PAGE
============================================================ */
.page-hero { padding: 128px 40px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; max-width: 1120px; margin: 0 auto; position: relative; }
.page-hero::before { content: ''; position: absolute; top: 30%; left: 0; width: 500px; height: 500px; background: radial-gradient(ellipse, rgba(201,168,76,.06) 0%, transparent 65%); pointer-events: none; }
.hero-left  { position: relative; z-index: 1; }
.hero-right { position: relative; z-index: 1; }
/* About page reuses .hero-title — scoped to non-landing context */
.page-hero .hero-title { font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 60px); font-weight: 400; color: var(--ink); line-height: 1.08; margin-bottom: 20px; animation: none; }
.hero-body { font-size: 15px; color: var(--ink-2); line-height: 1.8; margin-bottom: 28px; }
.hero-body + .hero-body { margin-top: -12px; }

.mission-card { background: linear-gradient(135deg, rgba(201,168,76,.06) 0%, var(--surface) 60%); border: 1px solid rgba(201,168,76,.2); border-radius: var(--radius-xl); padding: 32px; }
.mission-label { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); margin-bottom: 16px; }
.mission-text  { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--ink); line-height: 1.5; margin-bottom: 20px; }
.mission-sub   { font-size: 13px; color: var(--ink-3); line-height: 1.7; }

.privacy-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 40px; }
.privacy-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.privacy-title { font-family: var(--font-display); font-size: 36px; font-weight: 400; color: var(--ink); line-height: 1.15; margin-bottom: 16px; }
.privacy-title em { font-style: italic; color: var(--gold-2); }
.privacy-body { font-size: 14px; color: var(--ink-2); line-height: 1.8; margin-bottom: 14px; }
.privacy-facts { display: flex; flex-direction: column; gap: 12px; }
.privacy-fact { background: var(--base); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; display: flex; align-items: flex-start; gap: 14px; }
.pf-icon  { font-size: 20px; flex-shrink: 0; }
.pf-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.pf-text  { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

.values-section { max-width: 1120px; margin: 0 auto; padding: 72px 40px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.value-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; transition: border-color .2s, transform .2s; }
.value-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.value-num   { font-family: var(--font-mono); font-size: 28px; font-weight: 300; color: var(--gold); opacity: .4; margin-bottom: 14px; line-height: 1; }
.value-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.value-text  { font-size: 13px; color: var(--ink-3); line-height: 1.65; }

/* About FAQ */
.faq-section { max-width: 800px; margin: 0 auto; padding: 0 40px 80px; }
.faq-cats { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.faq-cat { font-size: 12px; font-weight: 500; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 6px 16px; cursor: pointer; transition: all .15s; }
.faq-cat:hover, .faq-cat.active { color: var(--gold); border-color: rgba(201,168,76,.3); background: var(--gold-dim); }
.faq-group { display: none; }
.faq-group.visible { display: block; }

.contact-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 40px; }
.contact-inner  { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-title  { font-family: var(--font-display); font-size: 32px; font-weight: 400; color: var(--ink); margin-bottom: 14px; }
.contact-title em { font-style: italic; color: var(--gold-2); }
.contact-body   { font-size: 14px; color: var(--ink-2); line-height: 1.8; margin-bottom: 24px; }
.contact-links  { display: flex; flex-direction: column; gap: 10px; }
.contact-link   { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--base); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink-2); font-size: 13px; font-weight: 500; transition: all .15s; }
.contact-link:hover { border-color: var(--line-2); color: var(--ink); background: var(--lift); }
.contact-link-icon { font-size: 18px; flex-shrink: 0; }

.disclaimer-card { background: rgba(251,113,133,.06); border: 1px solid rgba(251,113,133,.15); border-radius: var(--radius-xl); padding: 28px; }
.disclaimer-label { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .18em; color: #fda4af; margin-bottom: 14px; }
.disclaimer-text { font-size: 13px; color: var(--ink-3); line-height: 1.75; }
.disclaimer-text p { margin-bottom: 12px; }
.disclaimer-text p:last-child { margin-bottom: 0; }

/* ============================================================
   CALCULATOR DASHBOARD (app.html / index.html)
============================================================ */
/* site-shell: legacy class, offset now handled by body padding-top */
.site-shell { padding-top: 0; }

.app {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: calc(100vh - var(--nav-h));
}

/* Subtle grid texture on main panel */
.main {
  padding: 24px 24px 32px;
  position: relative;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-attachment: local;
}

/* Sidebar toggle (mobile collapsible) */
.sidebar-toggle {
  display: none;
}

/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, var(--deep) 0%, #090e1c 100%);
  border-right: 1px solid var(--line-2);
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  z-index: 10;
  box-shadow: inset -1px 0 0 rgba(201,168,76,.06), 2px 0 20px rgba(0,0,0,.4);
}

.sidebar h1 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--gold);
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar h1::before { content: '◆'; font-size: 10px; color: var(--gold); opacity: .8; }

.sidebar h1::after {
  content: 'PLANNING DASHBOARD';
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--ink-4);
  font-weight: 400;
  margin-left: auto;
  text-transform: uppercase;
}

.sidebar-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
  padding: 12px 14px 14px;
  margin: 8px 12px;
  transition: border-color .16s, background .16s;
}
.sidebar-section:hover { border-color: var(--line-2); background: rgba(255,255,255,.035); }

.sidebar-section h2 {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ink-4);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-section h2::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); opacity: .6; flex-shrink: 0; }

/* Tax-bucket groups inside Assets section */
.bucket-group {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line, rgba(255,255,255,0.07));
}
.bucket-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
h3.bucket-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  margin: 0 0 3px 0;
}
.bucket-group .note {
  display: block;
  margin-bottom: 8px;
}

/* ── Withdrawal Order Ranked List ─────────────────────────── */
.withdrawal-order-list {
  margin: 0 0 6px 0;
  padding: 8px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--ink-2, rgba(255,255,255,0.06));
  border-radius: var(--radius);
  background: var(--void, #0a0a0a);
}

.withdrawal-order-list.locked {
  opacity: 0.6;
  pointer-events: none;
  cursor: default;
}

.withdrawal-order-list .rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--surface, #1a1a1a);
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-6, #999);
}

.rank-item .rank-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--gold, #c9a84c);
  min-width: 16px;
  text-align: center;
}

.rank-item .lock-icon {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.4;
}

.withdrawal-order-footnote {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-4, #555);
  letter-spacing: 0.06em;
  margin: 4px 0 14px 0;
}

/* Validation error banner */
#validation-errors:not(:empty) {
  margin: 12px 16px 0;
  padding: 10px 14px;
  background: rgba(239,68,68,0.12);
  border: 1px solid var(--red, #ef4444);
  border-radius: var(--radius, 10px);
  color: var(--red, #ef4444);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  white-space: pre-line;
}

/* Input grid */
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; align-items: start; }

label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: .02em; }
.note { font-size: 10px; color: var(--ink-4); font-weight: 400; }

/* Sidebar inputs */
.input-green,
.sidebar input[type="number"],
.sidebar input[type="text"],
.sidebar select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  background: rgba(255,255,255,.05);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.input-green:hover,
.sidebar input[type="number"]:hover,
.sidebar select:hover { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.07); }
.input-green:focus,
.sidebar input[type="number"]:focus,
.sidebar input[type="text"]:focus,
.sidebar select:focus {
  border-color: rgba(201,168,76,.5);
  box-shadow: 0 0 0 2px var(--void), 0 0 0 4px rgba(201,168,76,.4);
  background: rgba(255,255,255,.08);
}

.sidebar select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%234d607a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}

.checkbox-row { flex-direction: row; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-2); cursor: pointer; padding: 2px 0; }
input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--gold); cursor: pointer; flex-shrink: 0; }

/* Export toolbar — sits above Inputs heading */
.sidebar-export {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  gap: 10px;
}
.sidebar-export__label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
  flex-shrink: 0;
}
.sidebar-export__btns {
  display: flex;
  gap: 6px;
}
.export-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.export-btn--pdf {
  background: linear-gradient(135deg, var(--gold) 0%, #a8843a 100%);
  border-color: var(--gold);
  color: #0c0c0c;
  box-shadow: 0 2px 10px rgba(201,168,76,.2);
}
.export-btn--pdf:hover  { background: linear-gradient(135deg, #d4af52 0%, #b8923f 100%); box-shadow: 0 4px 16px rgba(201,168,76,.35); transform: translateY(-1px); }
.export-btn--pdf:active { transform: translateY(0); }
.export-btn--excel {
  background: linear-gradient(135deg, var(--gold) 0%, #a8843a 100%);
  border-color: var(--gold);
  color: #0c0c0c;
  box-shadow: 0 2px 10px rgba(201,168,76,.2);
}
.export-btn--excel:hover  { background: linear-gradient(135deg, #d4af52 0%, #b8923f 100%); box-shadow: 0 4px 16px rgba(201,168,76,.35); transform: translateY(-1px); }
.export-btn--excel:active { transform: translateY(0); }

.export-btn--locked {
  position: relative;
  background: linear-gradient(135deg, rgba(201,168,76,.12) 0%, rgba(201,168,76,.06) 100%) !important;
  border-color: rgba(201,168,76,.2) !important;
  color: var(--ink-4) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  opacity: .7;
}
.export-btn--locked:hover {
  opacity: .9;
  transform: none !important;
  box-shadow: none !important;
  background: linear-gradient(135deg, rgba(201,168,76,.18) 0%, rgba(201,168,76,.1) 100%) !important;
}
.export-btn--locked .lock-svg {
  opacity: .5;
  margin-left: -2px;
}
.pro-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .12em;
  background: linear-gradient(135deg, var(--gold) 0%, #a8843a 100%);
  color: #0c0c0c;
  line-height: 1.4;
  margin-left: 2px;
}

/* Tax brackets */
.tax-brackets { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-4); font-family: var(--font-mono); }
.tax-brackets h4 { font-size: 9px; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-4); margin-bottom: 8px; }
.tax-brackets p { margin: 6px 0 4px; color: var(--ink-3); font-weight: 500; }
.tax-brackets ul { margin: 0 0 8px 14px; padding: 0; list-style: none; }
.tax-brackets li { padding: 2px 0; color: var(--ink-4); }

/* Accordion */
.sidebar-section > h2.accordion-header { cursor: pointer; user-select: none; justify-content: space-between; margin-bottom: 12px; padding: 0; }
.sidebar-section > h2.accordion-header::after { content: '▾'; font-size: 11px; color: var(--ink-4); transition: transform .16s; margin-left: auto; font-family: var(--font-ui); font-weight: 400; }
.sidebar-section.collapsed > h2.accordion-header::after { transform: rotate(-90deg); }
.sidebar-section.collapsed > :not(h2) { display: none; }
.sidebar-section > h2.accordion-header:hover { color: var(--ink-2); }
.sidebar-section > h2.accordion-header:focus { outline: none; }

/* Topbar */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); background: transparent; }
.topbar h2 { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--ink); font-style: italic; }
.topbar-title { display: flex; flex-direction: column; gap: 3px; }
.topbar-sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; color: var(--ink-4); text-transform: uppercase; }
.topbar-badges { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* Summary cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; position: relative; overflow: hidden; transition: border-color .16s, box-shadow .16s, transform .16s; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold) 0%, transparent 100%); opacity: 0; transition: opacity .16s; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.card:hover::before { opacity: 1; }
.card h3 { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-4); margin-bottom: 10px; font-weight: 500; }
.card p  { font-family: var(--font-mono); font-size: 22px; font-weight: 300; color: var(--ink); letter-spacing: -.01em; line-height: 1; }

/* Panels */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 16px 14px; position: relative; overflow: hidden; min-height: 360px; transition: border-color .16s; }
.panel:hover { border-color: var(--line-2); }
.panel h3 { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-4); font-weight: 500; margin-bottom: 4px; display: flex; flex-direction: column; gap: 4px; }
.panel h3::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .7; flex-shrink: 0; align-self: flex-start; margin-top: 4px; }
.panel-sub { font-family: var(--font-ui); font-size: 10px; color: var(--ink-4); text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .8; margin-bottom: 8px; }

/* Charts */
canvas { display: block; width: 100% !important; height: 280px !important; }
.panel canvas, .resizable canvas { height: 290px !important; max-height: 340px; }

/* Chart toggle */
.chart-toggle { grid-column: span 2; display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.chart-toggle button { padding: 7px 14px; border-radius: 6px; border: 1px solid transparent; background: transparent; color: var(--ink-3); font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: .04em; cursor: pointer; transition: all .16s; }
.chart-toggle button:hover { background: rgba(255,255,255,.05); color: var(--ink-2); border-color: var(--line); }
.chart-toggle button.active { background: var(--gold-dim); border-color: rgba(201,168,76,.3); color: var(--gold-2); }

/* Table */
.table-panel { grid-column: span 2; min-height: 420px; display: flex; flex-direction: column; }
.table-panel .table-scroll { overflow-x: auto; overflow-y: auto; flex: 1; max-height: 420px; -webkit-overflow-scrolling: touch; }
.table-panel .table-scroll::-webkit-scrollbar { height: 5px; width: 5px; }
.table-panel .table-scroll::-webkit-scrollbar-track { background: var(--surface); }
.table-panel .table-scroll::-webkit-scrollbar-thumb { background: rgba(201,168,76,.25); border-radius: 3px; }
table { width: 100%; border-collapse: collapse; }
thead { position: sticky; top: 0; z-index: 2; }
thead tr { background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
thead th { padding: 10px 14px; font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-4); font-weight: 500; text-align: right; white-space: nowrap; }
thead th:first-child, thead th:nth-child(2) { text-align: left; }
tbody tr { border-bottom: 1px solid rgba(255,255,255,.03); transition: background 80ms; }
tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }
tbody tr:hover { background: rgba(201,168,76,.06); }
tbody td { padding: 9px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); text-align: right; white-space: nowrap; }
tbody td:first-child  { color: var(--ink-3); font-size: 11px; }
tbody td:nth-child(2) { color: var(--ink-3); text-align: left; }
.resizable { resize: vertical; overflow: auto; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1280px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1180px) {
  .grid { grid-template-columns: 1fr; }
  .chart-toggle { grid-column: span 1; }
  .table-panel { grid-column: span 1; }
}

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 56px auto 0; }
  .compare-wrap { overflow-x: auto; }
  body > nav { padding: 0 24px; }
}

@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; top: 0; border-right: none; border-bottom: 1px solid var(--line-2); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps-grid::before { display: none; }

  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
  }
  .sidebar-toggle__label {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--gold);
  }
  .sidebar-toggle__chevron {
    color: var(--gold);
    transition: transform 0.25s ease;
  }
  .sidebar.collapsed .sidebar-toggle__chevron {
    transform: rotate(-90deg);
  }
  .sidebar.collapsed .sidebar-content {
    display: none;
  }
}

/* Desktop: sidebar-content always visible regardless of collapsed class */
@media (min-width: 981px) {
  .sidebar-content {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 960px) {
  .content-wrap { grid-template-columns: 1fr; }
  .side-nav { display: none; }
  .page-hero, .privacy-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body > nav { padding: 0 20px; flex-wrap: wrap; }
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-hamburger { display: flex; }

  /* ── Mobile dropdown when nav-open ─────────────────────── */
  nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    order: 10;
    width: 100%;
    padding: 12px 0;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  nav.nav-open .nav-links li { width: 100%; }
  nav.nav-open .nav-links a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 0;
  }

  /* Append CTA buttons inside the dropdown */
  nav.nav-open .nav-cta {
    display: flex;
    flex-direction: column;
    order: 11;
    width: 100%;
    padding: 8px 20px 16px;
    gap: 8px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  nav.nav-open .nav-cta a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .page-hero { padding: 96px 20px 48px; }

  .section, .how-section .how-inner, .pricing-section,
  .pricing-wrap, .faq-wrap, .page-header, .content-wrap,
  .privacy-section, .values-section, .faq-section,
  .contact-section { padding-left: 20px; padding-right: 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .chart-explain { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
  .cta-banner { margin: 0 20px 60px; }
  footer, .site-footer { flex-direction: column; align-items: flex-start; padding: 32px 20px; }

}

@media (max-width: 640px) {
  .input-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .panel canvas, .resizable canvas, canvas { height: 240px !important; }
  .main { padding: 16px; }
  .hero-preview .preview-body { grid-template-columns: 1fr; }
  .hero-preview .preview-sidebar { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}


/* ── Email Capture (Brevo embed) ─────────────────────────── */
.email-capture {
  padding: 48px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--void, #0a0a0a) 0%, rgba(201,168,76,0.03) 100%);
  border-top: 1px solid var(--line, rgba(255,255,255,0.04));
  border-bottom: 1px solid var(--line, rgba(255,255,255,0.04));
}

.email-capture-inner {
  max-width: 540px;
  margin: 0 auto;
}

/* Override Brevo widget to match site design system */
.sib-form,
.sib-form * {
  font-family: var(--font-ui) !important;
  box-sizing: border-box;
}

#sib-container.sib-container--large.sib-container--vertical {
  max-width: 540px;
  background: var(--surface, #161b2a) !important;
  border: 1px solid rgba(201,168,76,0.18) !important;
  border-radius: var(--radius, 10px) !important;
  padding: 32px 28px !important;
}

#sib-container .sib-form-block.apex-title p {
  font-family: var(--font-display) !important;
  font-size: 22px !important;
  color: var(--ink-9, #eee) !important;
  margin-bottom: 6px !important;
}

#sib-container .sib-text-form-block p {
  font-size: 13px !important;
  color: var(--ink-5, #888) !important;
  line-height: 1.5 !important;
}

#sib-container .entry__label {
  font-size: 11px !important;
  font-family: var(--font-mono) !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: var(--ink-6, #aaa) !important;
}

#sib-container input.input {
  border-radius: 10px !important;
  border: 1px solid var(--line, rgba(255,255,255,0.08)) !important;
  background: rgba(255,255,255,.04) !important;
  color: var(--ink-9, #eee) !important;
  font-size: 13px !important;
  padding: 10px 14px !important;
}

#sib-container input.input:focus {
  outline: none !important;
  border-color: rgba(201,168,76,.55) !important;
  box-shadow: 0 0 0 2px var(--void, #0a0c12), 0 0 0 4px rgba(201,168,76,.35) !important;
}

#sib-container button.sib-form-block__button {
  background: linear-gradient(135deg, var(--gold, #c9a84c) 0%, #9a7020 100%) !important;
  color: #0c0a05 !important;
  font-family: var(--font-mono) !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 11px 24px !important;
  cursor: pointer !important;
  transition: opacity .15s !important;
}

#sib-container button.sib-form-block__button:hover {
  opacity: 0.88 !important;
}

.sib-form-message-panel {
  border-radius: 10px !important;
  font-size: 12px !important;
}

#error-message .sib-form-message-panel__inner-text,
#success-message .sib-form-message-panel__inner-text {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  letter-spacing: .04em !important;
}

/* ── Modal overlay & card ────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 11, 24, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: 90%;
  max-width: 400px;
  padding: 36px 32px 28px;
  border-radius: 16px;
  border: 1px solid rgba(201,168,76,.12);
  background: linear-gradient(180deg, #111b30 0%, #0d1525 100%);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.03) inset,
    0 32px 80px rgba(0,0,0,.55),
    0 0 0 1px rgba(0,0,0,.3);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  color: var(--ink-3);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: background .15s, border-color .15s, color .15s;
}
.modal-close:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.1);
  color: var(--ink-2);
}

.modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: rgba(201,168,76,.06);
  border: 1px solid rgba(201,168,76,.1);
}

.modal-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--gold);
  font-weight: 400;
}

.modal-body {
  margin: 0 0 24px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.modal-btn-primary {
  display: block;
  width: 100%;
  padding: 12px 0;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold), #b8943e);
  color: #0c0c0c;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.modal-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201,168,76,.3);
}
.modal-btn-primary:active {
  transform: translateY(0);
}
.modal-btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.modal-btn-secondary {
  display: block;
  width: 100%;
  padding: 10px 0;
  margin-top: 8px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .15s;
}
.modal-btn-secondary:hover {
  color: var(--ink-2);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-input {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.3);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.modal-input:focus {
  border-color: rgba(201,168,76,.4);
  box-shadow: 0 0 0 3px rgba(201,168,76,.08);
}
.modal-input.input-error {
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.modal-input-error {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--rose);
}

.modal-fine-print {
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  letter-spacing: .02em;
  line-height: 1.4;
}
