/* ==========================================================================
   TokenWise — design system
   A dark, premium, fintech-flavoured theme. No build step; pure CSS.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:        #06080c;
  --bg-2:      #0a0e14;
  --surface:   rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.04);
  --surface-3: #11161f;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);

  /* Text */
  --text:   #eef2f8;
  --muted:  #9aa7bd;
  --faint:  #6b7689;

  /* Brand */
  --accent:    #34d399;   /* emerald = savings */
  --accent-2:  #22d3ee;   /* cyan */
  --violet:    #8b5cf6;
  --gold:      #fbbf24;
  --danger:    #fb7185;

  --grad: linear-gradient(135deg, #34d399 0%, #22d3ee 100%);
  --grad-violet: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
  --grad-text: linear-gradient(120deg, #6ee7b7, #34d399 40%, #22d3ee 75%, #818cf8);

  /* Shape */
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 60px -15px rgba(52, 211, 153, 0.45);

  --maxw: 1140px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', var(--font);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* --- Background decor ----------------------------------------------------- */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.4; }
.orb-1 { width: 540px; height: 540px; background: radial-gradient(circle, #0f7a5a, transparent 70%); top: -160px; left: -120px; animation: float 22s ease-in-out infinite; }
.orb-2 { width: 480px; height: 480px; background: radial-gradient(circle, #0e6b86, transparent 70%); top: 20%; right: -160px; animation: float 26s ease-in-out infinite reverse; }
.orb-3 { width: 420px; height: 420px; background: radial-gradient(circle, #3b2a78, transparent 70%); bottom: -160px; left: 30%; animation: float 30s ease-in-out infinite; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--grad); color: #04130d;
  box-shadow: 0 10px 30px -10px rgba(52, 211, 153, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(52, 211, 153, 0.75); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); }
.btn-light { background: var(--text); color: #06080c; }
.btn-light:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* --- Navbar --------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px); background: rgba(6, 8, 12, 0.6);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(6, 8, 12, 0.85); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad); color: #04130d; font-weight: 700; font-family: var(--display);
  box-shadow: var(--shadow-glow);
}
.brand-name { letter-spacing: -0.02em; }
.nav-menu { display: contents; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 0.94rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* --- Flash messages ------------------------------------------------------- */
.flash-stack { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.flash {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border-2);
  background: var(--surface-3); font-size: 0.95rem; animation: slideDown .35s ease;
}
.flash-success { border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.1); }
.flash-error   { border-color: rgba(251,113,133,.5); background: rgba(251,113,133,.1); }
.flash-info    { border-color: rgba(34,211,238,.5); background: rgba(34,211,238,.1); }
.flash-close { background: none; border: none; color: var(--muted); font-size: 1.4rem; line-height: 1; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* --- Generic section ------------------------------------------------------ */
section { position: relative; }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  padding: 6px 14px; border: 1px solid var(--border-2); border-radius: 999px;
  background: var(--surface-2); margin-bottom: 20px;
}
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.1; font-weight: 700; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --- Hero ----------------------------------------------------------------- */
.hero { padding: 90px 0 70px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 8px 7px 16px;
  border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface-2);
  font-size: 0.85rem; color: var(--muted); margin-bottom: 28px;
}
.hero-badge b { color: var(--text); font-weight: 600; }
.hero-badge .pill { background: var(--grad); color: #04130d; font-weight: 700; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 22px; max-width: 16ch; margin-inline: auto; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 60ch; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 0.88rem; color: var(--faint); }
.hero-note b { color: var(--accent); }

/* Inline hero subscribe form */
.hero-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto 14px; }
.hero-form input {
  flex: 1; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--border-2);
  background: var(--surface-3); color: var(--text); font-size: 0.98rem;
}
.hero-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52,211,153,.18); }

/* Stat row */
.stats { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 56px; }
.stat {
  flex: 1; min-width: 180px; max-width: 240px; padding: 24px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  text-align: center; backdrop-filter: blur(6px);
}
.stat .num { font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--text); }
.stat .num .gradient-text { display: inline; }
.stat .label { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

/* --- Logos / trust strip -------------------------------------------------- */
.trust { padding: 36px 0 10px; text-align: center; }
.trust p { color: var(--faint); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 20px; }
.trust-logos { display: flex; gap: 38px; justify-content: center; flex-wrap: wrap; align-items: center; opacity: 0.8; }
.trust-logos span { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--muted); }

/* --- Cards / grids -------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .25s ease, border-color .25s ease, background .25s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px; background: var(--surface-3); border: 1px solid var(--border);
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* feature card accent line */
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.feature-card:hover::before { transform: scaleX(1); }

/* --- How it works steps --------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); position: relative; }
.step .step-num {
  font-family: var(--display); font-weight: 700; font-size: 1rem; width: 40px; height: 40px;
  border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #04130d; margin-bottom: 18px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* --- Tip cards ------------------------------------------------------------ */
.tip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tip-card {
  display: flex; flex-direction: column; gap: 14px; padding: 24px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: transform .22s ease, border-color .22s ease; height: 100%;
}
.tip-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.tip-top { display: flex; align-items: center; justify-content: space-between; }
.tip-cat { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.tip-cat .ico { font-size: 1.1rem; }
.tip-save { font-size: 0.74rem; font-weight: 700; color: var(--accent); background: rgba(52,211,153,.12); padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(52,211,153,.25); white-space: nowrap; }
.tip-card h3 { font-size: 1.1rem; line-height: 1.3; }
.tip-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.tip-meta { display: flex; gap: 14px; align-items: center; font-size: 0.8rem; color: var(--faint); border-top: 1px solid var(--border); padding-top: 14px; }
.badge-diff { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border-2); font-weight: 600; font-size: 0.72rem; }
.diff-Beginner { color: #6ee7b7; }
.diff-Intermediate { color: #fcd34d; }
.diff-Advanced { color: #f0abfc; }
.tip-link { margin-left: auto; color: var(--accent); font-weight: 600; }

/* --- Calculator ----------------------------------------------------------- */
.calc {
  border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 36px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); position: relative; overflow: hidden;
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.calc label { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.calc .field { margin-bottom: 26px; }
.calc input[type=range] { width: 100%; accent-color: var(--accent); height: 6px; }
.calc .val { font-family: var(--display); font-weight: 700; color: var(--text); }
.calc .money-input { display: flex; align-items: center; gap: 8px; background: var(--surface-3); border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: 12px 16px; }
.calc .money-input span { color: var(--muted); font-size: 1.1rem; }
.calc .money-input input { background: none; border: none; color: var(--text); font-size: 1.3rem; font-family: var(--display); font-weight: 600; width: 100%; }
.calc .money-input input:focus { outline: none; }
.calc-result { text-align: center; padding: 30px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); }
.calc-result .save-num { font-family: var(--display); font-size: 3rem; font-weight: 700; line-height: 1; }
.calc-result .save-label { color: var(--muted); margin: 10px 0 18px; }
.calc-result .roi { font-size: 0.9rem; color: var(--accent); }

/* --- Pricing -------------------------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 0 auto; }
.price-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; background: var(--surface);
  display: flex; flex-direction: column; position: relative;
}
.price-card.featured { border-color: var(--accent); background: linear-gradient(170deg, rgba(52,211,153,.08), var(--surface)); box-shadow: var(--shadow-glow); }
.price-card .plan-name { font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.price-card .plan-sub { color: var(--muted); font-size: 0.92rem; margin: 6px 0 22px; min-height: 40px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.price-amount .amt { font-family: var(--display); font-size: 3rem; font-weight: 700; }
.price-amount .per { color: var(--muted); font-size: 1rem; }
.price-cadence { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 600; color: var(--accent); margin-bottom: 24px; }
.price-features { display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; flex: 1; }
.price-features li { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); font-size: 0.95rem; }
.price-features .check { color: var(--accent); flex-shrink: 0; font-weight: 700; margin-top: 1px; }
.price-features li.muted { opacity: 0.45; }
.popular-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #04130d; font-weight: 700; font-size: 0.78rem;
  padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}

/* --- Testimonials --------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.quote p { font-size: 1rem; margin-bottom: 20px; color: var(--text); }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-violet); display: grid; place-items: center; font-weight: 700; color: #fff; font-family: var(--display); }
.quote .who b { display: block; font-size: 0.92rem; }
.quote .who span { font-size: 0.82rem; color: var(--faint); }
.stars { color: var(--gold); margin-bottom: 14px; letter-spacing: 2px; }

/* --- FAQ ------------------------------------------------------------------ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); padding: 20px 24px; font-size: 1.02rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--display); }
.faq-q .icon { transition: transform .3s; color: var(--accent); font-size: 1.4rem; flex-shrink: 0; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--muted); font-size: 0.97rem; }

/* --- CTA band ------------------------------------------------------------- */
.cta-band { text-align: center; border-radius: var(--radius-lg); padding: 64px 32px; border: 1px solid var(--border-2);
  background: radial-gradient(ellipse 100% 140% at 50% 0%, rgba(52,211,153,.12), transparent 60%), var(--surface-2); }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.cta-band p { color: var(--muted); font-size: 1.1rem; max-width: 50ch; margin: 0 auto 28px; }

/* --- Forms / auth pages --------------------------------------------------- */
.panel { max-width: 520px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.panel.wide { max-width: 720px; }
.panel h1 { font-size: 1.9rem; margin-bottom: 10px; }
.panel .sub { color: var(--muted); margin-bottom: 28px; }
.form-field { margin-bottom: 18px; text-align: left; }
.form-field label { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.form-field input {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-2);
  background: var(--surface-3); color: var(--text); font-size: 1rem;
}
.form-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52,211,153,.18); }

.plan-toggle { display: flex; gap: 10px; margin-bottom: 24px; }
.plan-toggle label {
  flex: 1; border: 1px solid var(--border-2); border-radius: var(--radius); padding: 16px; cursor: pointer;
  transition: .2s; position: relative;
}
.plan-toggle input { position: absolute; opacity: 0; }
.plan-toggle label:has(input:checked) { border-color: var(--accent); background: rgba(52,211,153,.08); }
.plan-toggle .pt-name { font-weight: 700; font-family: var(--display); }
.plan-toggle .pt-desc { font-size: 0.82rem; color: var(--muted); }

/* --- Single tip page ------------------------------------------------------ */
.tip-hero { padding: 60px 0 30px; }
.tip-hero .crumbs { font-size: 0.85rem; color: var(--faint); margin-bottom: 18px; }
.tip-hero .crumbs a { color: var(--muted); }
.tip-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; max-width: 22ch; }
.tip-hero .tip-tags { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.article {
  max-width: 760px; margin: 0 auto; font-size: 1.08rem; line-height: 1.8; color: #d6deea;
}
.article h3 { font-family: var(--display); color: var(--text); margin: 32px 0 12px; font-size: 1.3rem; }
.article p { margin-bottom: 18px; }
.article ul { list-style: none; margin: 0 0 20px; padding: 0; }
.article ul li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.article ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.article strong { color: var(--text); }
.article blockquote {
  border-left: 3px solid var(--accent); background: var(--surface-2); padding: 14px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 18px; color: var(--muted); font-style: italic;
}
.article code { background: var(--surface-3); padding: 2px 7px; border-radius: 6px; font-size: 0.9em; color: var(--accent-2); }
.tip-paywall {
  margin: 40px auto 0; max-width: 760px; text-align: center; padding: 40px;
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, transparent, rgba(52,211,153,.06)); position: relative;
}
.tip-paywall.locked { background: radial-gradient(ellipse 90% 130% at 50% 0%, rgba(52,211,153,.1), transparent 60%), var(--surface-2); margin-top: 0; }
.lock-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(251,191,36,.3); background: rgba(251,191,36,.08); padding: 6px 14px; border-radius: 999px; }
.locked-article { max-width: 760px; margin: 0 auto; position: relative; }
.locked-fade { height: 120px; margin-top: -40px; background: linear-gradient(180deg, transparent, var(--bg)); position: relative; }
/* lock indicator on tip cards */
.tip-card.is-locked { position: relative; }
.tip-lock { font-size: 0.74rem; font-weight: 700; color: var(--gold); background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.28); padding: 4px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }

/* --- Tables / chips ------------------------------------------------------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { font-size: 0.82rem; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--muted); background: var(--surface-2); transition: .2s; }
a.chip:hover, .chip.active { border-color: var(--accent); color: var(--text); }

.tool-tag { font-size: 0.75rem; padding: 3px 9px; border-radius: 6px; background: var(--surface-3); color: var(--muted); border: 1px solid var(--border); }

/* --- Account / dashboard -------------------------------------------------- */
.acct-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.plan-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; }
.plan-badge.pro { background: var(--grad); color: #04130d; }
.plan-badge.free { background: var(--surface-3); color: var(--muted); border: 1px solid var(--border-2); }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.kv .item { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-align: center; }
.kv .item .v { font-family: var(--display); font-size: 1.8rem; font-weight: 700; }
.kv .item .k { color: var(--muted); font-size: 0.85rem; }

/* --- Misc ----------------------------------------------------------------- */
.center { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.muted { color: var(--muted); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.divider { height: 1px; background: var(--border); margin: 0; }

/* --- Accessibility --------------------------------------------------------- */
a:focus-visible, button:focus-visible, .btn:focus-visible, .chip:focus-visible,
.faq-q:focus-visible, .nav-links a:focus-visible, .plan-toggle label:focus-within {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px;
}
.calc .money-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52,211,153,.18); }

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

/* --- Footer --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 56px 0 28px; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.012)); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 48px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-tag { color: var(--muted); font-size: 0.95rem; margin-bottom: 8px; max-width: 30ch; }
.footer-mini { color: var(--faint); font-size: 0.84rem; margin-bottom: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-col h4 { font-family: var(--display); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--faint); font-size: 0.82rem;
}
.footer-mode {
  font-size: 0.74rem; color: var(--gold); border: 1px solid rgba(251,191,36,.3);
  background: rgba(251,191,36,.08); padding: 4px 12px; border-radius: 999px; font-weight: 600;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .grid-3, .steps, .tip-grid, .quotes { grid-template-columns: 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 16px;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 22px 24px 26px; box-shadow: var(--shadow);
  }
  .nav-menu.open .nav-links { flex-direction: column; gap: 16px; }
  .nav-menu.open .nav-cta { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
  .nav-menu.open .nav-cta .btn { width: 100%; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-2, .steps, .tip-grid, .quotes, .pricing-grid, .kv { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .hero-form { flex-direction: column; }
  .hero-form .btn { width: 100%; }
  .section { padding: 60px 0; }
  .panel { padding: 28px 22px; }
}

/* --- Share row ------------------------------------------------------------ */
.share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-label { font-size: .85rem; color: var(--muted); margin-right: 2px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px; gap: 6px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface, #0f1620); color: var(--text, #e7ecf3);
  font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-copy { font-size: .82rem; }
.share-btn.copied { border-color: var(--accent); color: var(--accent); }

/* --- Legal pages ---------------------------------------------------------- */
.article.legal { max-width: 760px; margin: 0 auto; }
.article.legal h2 {
  font-family: var(--display); font-size: 1.25rem;
  margin: 32px 0 10px; color: var(--text, #fff);
}
.article.legal ul { margin: 0 0 16px; padding-left: 22px; }
.article.legal li { margin-bottom: 7px; }
.article.legal p { margin: 0 0 14px; }
