/* =====================================================================
   Steady — "The budget app for people whose paycheck isn't."
   Design language: calm, confident, modern. Financial peace of mind.
   Deep teal + warm gold on clean whites. A deep breath in CSS form.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --teal-950: #072E2C;
  --teal-900: #0B3B38;
  --teal-800: #0E4F4B;
  --teal-700: #11605A;
  --teal-600: #15736C;
  --teal-500: #1D8A7F;
  --teal-200: #A9D4CE;
  --teal-100: #D8ECE9;
  --teal-50:  #EEF6F5;

  --gold-700: #9C7117;
  --gold-600: #B8860B;
  --gold-500: #C9992B;
  --gold-300: #E3C878;
  --gold-100: #F7EDD3;
  --gold-50:  #FCF7E9;

  --cream: #FAF8F3;
  --white: #FFFFFF;
  --ink: #22302D;
  --ink-soft: #4B5D59;
  --ink-faint: #7B8C88;
  --line: #E5EAE8;
  --line-soft: #EFF3F1;

  --good: #2E7D4F;
  --good-bg: #E6F4EB;
  --warn: #B07608;
  --warn-bg: #FCF2DC;
  --bad: #B23A3A;
  --bad-bg: #F9E7E7;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(7, 46, 44, .06), 0 2px 8px rgba(7, 46, 44, .06);
  --shadow-md: 0 2px 4px rgba(7, 46, 44, .06), 0 8px 24px rgba(7, 46, 44, .10);
  --shadow-lg: 0 4px 8px rgba(7, 46, 44, .08), 0 20px 48px rgba(7, 46, 44, .16);

  --maxw: 1120px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--teal-700); }
button { font-family: inherit; }
::selection { background: var(--gold-100); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-700); margin-bottom: 12px;
}
.section-title { font-size: clamp(28px, 4vw, 44px); color: var(--teal-950); }
.section-sub { color: var(--ink-soft); max-width: 640px; font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-600));
  color: #fff; box-shadow: 0 6px 18px rgba(17, 96, 90, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(17, 96, 90, .38); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--teal-950); box-shadow: 0 6px 18px rgba(201, 153, 43, .34);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201, 153, 43, .4); }
.btn-ghost {
  background: transparent; color: var(--teal-800);
  border: 2px solid var(--teal-200);
}
.btn-ghost:hover { border-color: var(--teal-600); background: var(--teal-50); }
.btn-white { background: #fff; color: var(--teal-900); box-shadow: var(--shadow-sm); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Views ---------- */
.view { display: none; animation: viewIn .38s var(--ease); }
.view.active { display: block; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Top navigation (app) ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topnav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; color: inherit; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-800), var(--teal-600));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); flex: none;
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--teal-950); }
.nav-links { display: none; margin-left: auto; gap: 4px; }
.nav-links button {
  background: none; border: none; cursor: pointer; padding: 9px 15px;
  border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--ink-soft);
  transition: all .18s;
}
.nav-links button:hover { background: var(--teal-50); color: var(--teal-800); }
.nav-links button.current { background: var(--teal-800); color: #fff; }
.nav-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-links + .nav-actions { margin-left: 0; }
}

/* Mobile bottom nav */
.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--line);
  display: flex; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(7, 46, 44, .08);
}
.bottomnav button {
  flex: 1; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px; border-radius: 12px; color: var(--ink-faint);
  font-size: 10.5px; font-weight: 600; transition: all .18s;
}
.bottomnav button .ico { font-size: 20px; line-height: 1; }
.bottomnav button.current { color: var(--teal-800); background: var(--teal-50); }
body.has-bottomnav { padding-bottom: 76px; }
@media (min-width: 860px) {
  .bottomnav { display: none; }
  body.has-bottomnav { padding-bottom: 0; }
}

/* ---------- Landing ---------- */
.landing-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(201, 153, 43, .18), transparent 60%),
    radial-gradient(1000px 560px at 8% 10%, rgba(29, 138, 127, .16), transparent 60%),
    linear-gradient(180deg, #FBFAF6 0%, var(--cream) 100%);
  padding: 84px 0 72px;
}
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); color: var(--teal-950); margin-bottom: 18px; }
.hero h1 .accent { color: var(--teal-600); font-style: italic; }
.hero p.lede { font-size: 19px; color: var(--ink-soft); max-width: 520px; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-note { font-size: 13.5px; color: var(--ink-faint); }

/* Animated "calm" phone mock — safe-to-spend card */
.phone {
  background: #fff; border-radius: 34px; box-shadow: var(--shadow-lg);
  padding: 26px 22px; max-width: 340px; margin: 0 auto; position: relative;
  border: 1px solid var(--line-soft);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.phone::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px; background: var(--cream); border-radius: 999px;
}
.phone .sts-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 18px; }
.phone .sts-number { font-family: var(--font-display); font-size: 52px; color: var(--teal-900); font-weight: 700; }
.phone .sts-caption { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
.phone .mini-bars { display: flex; gap: 6px; align-items: flex-end; height: 64px; margin-bottom: 16px; }
.phone .mini-bars i {
  flex: 1; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--teal-500), var(--teal-700));
  animation: barGrow 1.1s var(--ease) backwards;
}
.phone .mini-bars i:nth-child(odd) { background: linear-gradient(180deg, var(--gold-300), var(--gold-600)); }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.phone .mini-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--teal-50); border-radius: 12px; padding: 10px 14px; font-size: 13.5px;
}
.phone .mini-row + .mini-row { margin-top: 8px; }
.phone .mini-row b { color: var(--teal-900); }
.orbit-dot {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold-500); box-shadow: 0 0 0 6px rgba(201,153,43,.18);
  animation: orbit 9s linear infinite; z-index: -1;
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(150px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

/* Logos / trust strip */
.trust-strip { padding: 26px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: #fff; }
.trust-strip .wrap { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; color: var(--ink-faint); font-size: 14px; font-weight: 600; }
.trust-strip span::before { content: "✓ "; color: var(--teal-600); }

/* Problem agitation */
.agitation { background: var(--teal-950); color: #EAF3F1; }
.agitation .section-title { color: #fff; }
.agitation .section-sub { color: #B9CFCB; }
.agitation-grid { display: grid; gap: 18px; margin-top: 40px; }
@media (min-width: 800px) { .agitation-grid { grid-template-columns: repeat(3, 1fr); } }
.agitation-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg); padding: 28px; transition: transform .2s var(--ease), background .2s;
}
.agitation-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.08); }
.agitation-card .emoji { font-size: 34px; margin-bottom: 14px; display: block; }
.agitation-card h3 { color: #fff; font-size: 20px; }
.agitation-card p { color: #B9CFCB; font-size: 15px; margin: 0; }

/* How it works */
.steps { display: grid; gap: 20px; margin-top: 44px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: #fff; border-radius: var(--r-lg); padding: 32px 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft); position: relative; overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-card::before {
  content: counter(step, decimal-leading-zero); counter-increment: step;
  position: absolute; top: 6px; right: 18px; font-family: var(--font-display);
  font-size: 76px; font-weight: 700; color: var(--teal-50); line-height: 1;
}
.step-card h3 { color: var(--teal-900); font-size: 21px; margin-top: 8px; }
.step-card p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: var(--teal-950);
  font-weight: 800; font-size: 18px; box-shadow: 0 4px 12px rgba(201,153,43,.35);
}

/* Feature highlights */
.features-grid { display: grid; gap: 18px; margin-top: 44px; }
@media (min-width: 700px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--teal-50); font-size: 26px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 19px; color: var(--teal-950); }
.feature-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* Comparison table */
.compare-wrap { overflow-x: auto; margin-top: 40px; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
table.compare { width: 100%; border-collapse: collapse; background: #fff; min-width: 640px; font-size: 14.5px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.compare thead th { background: var(--teal-900); color: #fff; font-family: var(--font-display); font-size: 16px; }
.compare thead th.steady-col { background: var(--teal-700); }
.compare tbody th { font-weight: 600; color: var(--ink); }
.compare td { color: var(--ink-soft); }
.compare td.steady-col { background: var(--teal-50); font-weight: 600; color: var(--teal-900); }
.compare .yes { color: var(--good); font-weight: 700; }
.compare .no { color: var(--ink-faint); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }

/* Pricing */
.pricing-grid { display: grid; gap: 22px; margin-top: 44px; max-width: 860px; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
.price-card {
  background: #fff; border-radius: var(--r-xl); padding: 40px 36px; border: 2px solid var(--line-soft);
  position: relative; transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.price-card.featured {
  border-color: var(--gold-500); box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, var(--gold-50), #fff 40%);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold-500); color: var(--teal-950); font-size: 12px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 24px; color: var(--teal-950); }
.price-amount { font-family: var(--font-display); font-size: 52px; color: var(--teal-900); font-weight: 700; line-height: 1; }
.price-amount small { font-size: 16px; font-family: var(--font-body); font-weight: 500; color: var(--ink-faint); }
.price-tagline { color: var(--ink-soft); font-size: 15px; margin-bottom: 20px; }
.price-features { list-style: none; margin: 0 0 28px; padding: 0; }
.price-features li { padding: 8px 0 8px 30px; position: relative; font-size: 14.5px; color: var(--ink-soft); }
.price-features li::before {
  content: "✓"; position: absolute; left: 4px; color: var(--teal-600); font-weight: 800;
}
.billing-toggle { display: flex; justify-content: center; gap: 10px; margin-top: 26px; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.billing-toggle .switch { position: relative; width: 52px; height: 28px; }
.billing-toggle input { opacity: 0; width: 0; height: 0; }
.billing-toggle .slider {
  position: absolute; inset: 0; background: var(--teal-100); border-radius: 999px; cursor: pointer; transition: .2s;
}
.billing-toggle .slider::before {
  content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s; box-shadow: var(--shadow-sm);
}
.billing-toggle input:checked + .slider { background: var(--teal-600); }
.billing-toggle input:checked + .slider::before { transform: translateX(24px); }

/* Testimonials */
.testi-grid { display: grid; gap: 18px; margin-top: 44px; }
@media (min-width: 800px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi {
  background: #fff; border-radius: var(--r-lg); padding: 30px 28px; border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px;
  transition: transform .2s var(--ease);
}
.testi:hover { transform: translateY(-4px); }
.testi .stars { color: var(--gold-500); letter-spacing: 2px; }
.testi blockquote { margin: 0; font-size: 15.5px; color: var(--ink); font-style: italic; flex: 1; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 17px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-800));
}
.testi .who b { display: block; font-size: 14.5px; color: var(--teal-950); }
.testi .who span { font-size: 12.5px; color: var(--ink-faint); }

/* FAQ */
.faq-list { max-width: 760px; margin: 36px auto 0; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-md); overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  padding: 18px 22px; font-size: 16px; font-weight: 700; color: var(--teal-950);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q .chev { transition: transform .25s var(--ease); color: var(--teal-600); flex: none; font-size: 20px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a p { padding: 0 22px 20px; margin: 0; color: var(--ink-soft); font-size: 15px; }

/* CTA band + footer */
.cta-band {
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  border-radius: var(--r-xl); padding: 56px 40px; text-align: center; color: #fff;
  position: relative; overflow: hidden; margin: 20px 0 0;
}
.cta-band::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,153,43,.28), transparent 70%);
  top: -160px; right: -120px;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); position: relative; }
.cta-band p { color: #CFE4E0; position: relative; }
.cta-band .btn { position: relative; }
.site-footer { background: var(--teal-950); color: #9FBDB8; padding: 52px 0 34px; margin-top: 72px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; font-family: var(--font-body); font-weight: 700; }
.site-footer a { color: #9FBDB8; text-decoration: none; font-size: 14px; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--gold-300); }
.footer-bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px;
}
.rwp-badge {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold-300);
  letter-spacing: .06em; text-transform: uppercase; font-size: 12px;
}
.rwp-badge::before {
  content: ""; width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
}

/* =====================================================================
   App screens: onboarding, dashboard, lists, forms, modals, learn
   ===================================================================== */

/* ---------- Onboarding ---------- */
.onboard { max-width: 720px; margin: 0 auto; padding: 40px 20px 90px; }
.onboard-progress { display: flex; gap: 8px; margin-bottom: 36px; }
.onboard-progress i { flex: 1; height: 6px; border-radius: 999px; background: var(--line); transition: background .3s; }
.onboard-progress i.done { background: var(--teal-600); }
.onboard-progress i.now {
  background: linear-gradient(90deg, var(--teal-600), var(--gold-500));
  animation: progressPulse 1.6s ease-in-out infinite;
}
@keyframes progressPulse { 50% { opacity: .55; } }
.onboard h1 { font-size: clamp(28px, 4.4vw, 42px); color: var(--teal-950); }
.onboard .lede { color: var(--ink-soft); font-size: 17px; margin-bottom: 28px; }
.profile-grid { display: grid; gap: 14px; margin-bottom: 30px; }
@media (min-width: 600px) { .profile-grid { grid-template-columns: 1fr 1fr; } }
.profile-card {
  background: #fff; border: 2px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 24px 22px; cursor: pointer; text-align: left; transition: all .2s var(--ease);
  font-size: 15px; width: 100%;
}
.profile-card:hover { border-color: var(--teal-200); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.profile-card.selected {
  border-color: var(--teal-600); background: var(--teal-50);
  box-shadow: 0 0 0 4px rgba(29,138,127,.12);
}
.profile-card .pico { font-size: 32px; display: block; margin-bottom: 10px; }
.profile-card b { display: block; font-size: 17px; color: var(--teal-950); margin-bottom: 4px; }
.profile-card span { color: var(--ink-soft); font-size: 13.5px; }
.onboard-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 8px; }
.onboard-nav .spacer { flex: 1; }

/* Nut reveal */
.nut-reveal {
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  color: #fff; border-radius: var(--r-xl); padding: 44px 36px; text-align: center;
  margin-bottom: 30px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.nut-reveal::after {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,153,43,.3), transparent 70%);
  bottom: -120px; left: -80px;
}
.nut-reveal .lbl { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); font-weight: 700; }
.nut-reveal .amt { font-family: var(--font-display); font-size: clamp(52px, 8vw, 80px); font-weight: 700; margin: 8px 0; }
.nut-reveal .cap { color: #CFE4E0; font-size: 15px; margin: 0; position: relative; z-index: 1; }

/* ---------- Dashboard ---------- */
.dash { max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 40px; }
.dash-greet { margin-bottom: 22px; }
.dash-greet h1 { font-size: clamp(24px, 3.4vw, 34px); color: var(--teal-950); margin-bottom: 2px; }
.dash-greet p { color: var(--ink-soft); margin: 0; font-size: 15px; }
.dash-grid { display: grid; gap: 18px; }
@media (min-width: 900px) {
  .dash-grid { grid-template-columns: 1.35fr 1fr; }
  .dash-grid .span-2 { grid-column: 1 / -1; }
}
.card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card.hoverable:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; }
.card-head h2 { font-size: 19px; color: var(--teal-950); margin: 0; }
.card-head .link { font-size: 13.5px; font-weight: 700; color: var(--teal-700); background: none; border: none; cursor: pointer; padding: 4px; }
.hero-note .link { background: none; border: none; cursor: pointer; padding: 0; font: inherit;
  color: var(--teal-700); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.card-head .link:hover { text-decoration: underline; }

/* Safe-to-spend hero card */
.sts-card {
  background: linear-gradient(140deg, var(--teal-900) 0%, var(--teal-700) 60%, var(--teal-600) 100%);
  color: #fff; border: none; position: relative; overflow: hidden; box-shadow: var(--shadow-md);
}
.sts-card::before {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,153,43,.25), transparent 70%);
  top: -140px; right: -110px; pointer-events: none;
}
.sts-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.sts-label { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); display: flex; align-items: center; gap: 6px; }
.sts-amount { font-family: var(--font-display); font-size: clamp(54px, 9vw, 88px); font-weight: 700; line-height: 1.05; margin: 10px 0 4px; position: relative; transition: color .3s; }
.sts-amount.counting { font-variant-numeric: tabular-nums; }
.sts-cap { color: #CFE4E0; font-size: 14px; margin: 0 0 20px; position: relative; }
.sts-math { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.sts-math .term {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-sm); padding: 8px 14px; font-size: 13px; font-weight: 600;
}
.sts-math .term.minus { color: #F5C6C6; }
.sts-math .term.plus { color: #BDEBD2; }
.sts-math .term b { color: #fff; }
.sts-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; position: relative; }

/* Tooltip */
.tip { position: relative; display: inline-flex; cursor: help; }
.tip .dot {
  width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; background: rgba(255,255,255,.18); color: #fff; font-style: normal;
}
.card .tip .dot { background: var(--teal-100); color: var(--teal-800); }
.tip .bubble {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 230px; background: var(--teal-950); color: #EAF3F1; font-size: 13px; font-weight: 500;
  padding: 12px 14px; border-radius: 12px; line-height: 1.5; opacity: 0; pointer-events: none;
  transition: all .2s var(--ease); z-index: 20; box-shadow: var(--shadow-md);
}
.tip:hover .bubble, .tip:focus-within .bubble { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Income-vs-baseline bar */
.vs-bar { margin-top: 6px; }
.vs-track {
  height: 26px; background: var(--line-soft); border-radius: 999px; position: relative; overflow: hidden;
}
.vs-baseline { position: absolute; top: 0; bottom: 0; left: 0; background: var(--teal-100); border-radius: 999px; transition: width .8s var(--ease); }
.vs-income {
  position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-500)); transition: width .8s var(--ease);
}
.vs-marker {
  position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--gold-600);
  border-radius: 2px; transition: left .8s var(--ease);
}
.vs-legend { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); }
.vs-legend b { color: var(--teal-950); }
.vs-legend .gold-dot::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--gold-600); margin-right: 6px; }
.vs-status { margin-top: 14px; font-size: 14px; border-radius: var(--r-sm); padding: 12px 16px; }
.vs-status.surplus { background: var(--good-bg); color: var(--good); font-weight: 600; }
.vs-status.deficit { background: var(--warn-bg); color: var(--warn); font-weight: 600; }

/* Buffer ring */
.buffer-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring .ring-bg { stroke: var(--line-soft); }
.ring .ring-fg { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-center b { font-family: var(--font-display); font-size: 26px; color: var(--teal-950); line-height: 1; }
.ring-center span { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.buffer-info p { margin: 0 0 8px; font-size: 14.5px; color: var(--ink-soft); }
.buffer-info b { color: var(--teal-950); }

/* Bills list */
.bill-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 4px;
  border-bottom: 1px solid var(--line-soft); font-size: 14.5px;
}
.bill-row:last-child { border-bottom: none; }
.bill-day {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--teal-50); color: var(--teal-800); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.bill-day.soon { background: var(--warn-bg); color: var(--warn); }
.bill-day.overdue { background: var(--bad-bg); color: var(--bad); }
.bill-name { flex: 1; min-width: 0; }
.bill-name b { display: block; color: var(--ink); font-size: 14.5px; }
.bill-name span { font-size: 12.5px; color: var(--ink-faint); }
.bill-amt { font-weight: 700; color: var(--teal-950); font-variant-numeric: tabular-nums; }
.bill-check {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line);
  background: #fff; cursor: pointer; font-size: 14px; color: transparent;
  transition: all .18s; flex: none; display: flex; align-items: center; justify-content: center;
}
.bill-check:hover { border-color: var(--teal-500); }
.bill-check.paid { background: var(--good); border-color: var(--good); color: #fff; }
.bill-row.paid .bill-name b { text-decoration: line-through; color: var(--ink-faint); }
.bill-row.paid .bill-amt { color: var(--ink-faint); }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 14px; color: var(--teal-950); margin-bottom: 8px; }
.field .hint { font-weight: 400; color: var(--ink-faint); font-size: 13px; display: block; margin-top: 5px; }
input[type="text"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; padding: 13px 16px; border: 2px solid var(--line); border-radius: var(--r-sm);
  font-size: 16px; font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(29,138,127,.12);
}
input[type="number"] { font-variant-numeric: tabular-nums; }
.form-row { display: grid; gap: 14px; }
@media (min-width: 600px) { .form-row.two { grid-template-columns: 1fr 1fr; } .form-row.three { grid-template-columns: 1fr 1fr 1fr; } }
.field-error { color: var(--bad); font-size: 13px; font-weight: 600; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--bad); }
.field.invalid .field-error { display: block; }

/* ---------- Income page ---------- */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding: 16px 4px 0; }
.chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.chart .bar-track { width: 100%; max-width: 54px; height: 130px; display: flex; align-items: flex-end; background: var(--line-soft); border-radius: 10px; overflow: hidden; }
.chart .bar {
  width: 100%; border-radius: 10px; min-height: 6px;
  background: linear-gradient(180deg, var(--teal-500), var(--teal-700));
  transition: height .7s var(--ease);
}
.chart .bar-col.current .bar { background: linear-gradient(180deg, var(--gold-300), var(--gold-600)); }
.chart .bar-lbl { font-size: 11px; font-weight: 700; color: var(--ink-faint); }
.chart .bar-val { font-size: 11px; font-weight: 700; color: var(--teal-950); font-variant-numeric: tabular-nums; }
.insight-row { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 640px) { .insight-row { grid-template-columns: repeat(3, 1fr); } }
.insight {
  background: var(--teal-50); border-radius: var(--r-md); padding: 16px 18px; font-size: 13.5px; color: var(--ink-soft);
}
.insight b { display: block; color: var(--teal-950); font-size: 15px; margin-bottom: 2px; }
.insight .big { font-family: var(--font-display); font-size: 24px; color: var(--teal-800); }

.entry-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft); font-size: 14.5px;
}
.entry-row:last-child { border-bottom: none; }
.entry-ico {
  width: 42px; height: 42px; border-radius: 14px; flex: none;
  background: var(--good-bg); color: var(--good); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.entry-main { flex: 1; min-width: 0; }
.entry-main b { display: block; color: var(--ink); }
.entry-main span { font-size: 12.5px; color: var(--ink-faint); }
.entry-amt { font-weight: 800; color: var(--good); font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center;
  transition: all .16s; color: var(--ink-soft);
}
.icon-btn:hover { border-color: var(--teal-500); color: var(--teal-800); background: var(--teal-50); }
.icon-btn.danger:hover { border-color: var(--bad); color: var(--bad); background: var(--bad-bg); }

/* ---------- Empty states ---------- */
.empty {
  text-align: center; padding: 44px 20px; color: var(--ink-faint);
}
.empty .empty-art {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 28px;
  background: linear-gradient(135deg, var(--teal-100), var(--gold-100));
  display: flex; align-items: center; justify-content: center; font-size: 38px;
  animation: float 6s ease-in-out infinite;
}
.empty h3 { color: var(--teal-950); font-size: 19px; margin-bottom: 6px; }
.empty p { font-size: 14px; max-width: 340px; margin: 0 auto 18px; }

/* ---------- Afford verdict ---------- */
.afford-hero { max-width: 640px; margin: 0 auto; padding: 36px 20px 80px; }
.verdict {
  border-radius: var(--r-xl); padding: 40px 34px; text-align: center; margin-top: 26px;
  box-shadow: var(--shadow-md); animation: viewIn .4s var(--ease);
  display: none;
}
.verdict.show { display: block; }
.verdict.yes { background: linear-gradient(140deg, #1F5C3D, #2E7D4F); color: #fff; }
.verdict.tight { background: linear-gradient(140deg, #8A5F08, #B07608); color: #fff; }
.verdict.no { background: linear-gradient(140deg, #7E2E2E, #B23A3A); color: #fff; }
.verdict .v-emoji { font-size: 54px; display: block; margin-bottom: 10px; animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(.4); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.verdict h2 { color: #fff; font-size: 30px; margin-bottom: 6px; }
.verdict .v-sub { color: rgba(255,255,255,.85); margin-bottom: 20px; }
.verdict .math {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-md); padding: 18px 20px; text-align: left; font-size: 14.5px; line-height: 2;
}
.verdict .math b { font-variant-numeric: tabular-nums; }

/* ---------- Learn ---------- */
.learn { max-width: 860px; margin: 0 auto; padding: 36px 20px 80px; }
.tabs { display: flex; gap: 8px; margin: 26px 0; flex-wrap: wrap; }
.tab-btn {
  border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 22px;
  font-weight: 700; font-size: 14.5px; color: var(--ink-soft); cursor: pointer; transition: all .18s;
}
.tab-btn:hover { border-color: var(--teal-200); }
.tab-btn.current { background: var(--teal-800); border-color: var(--teal-800); color: #fff; }
.tab-panel { display: none; animation: viewIn .35s var(--ease); }
.tab-panel.current { display: block; }
.tip-card, .mistake-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 26px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.tip-card .tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-700); background: var(--teal-100); border-radius: 999px; padding: 4px 12px; margin-bottom: 10px;
}
.tip-card h3 { color: var(--teal-950); font-size: 19px; }
.tip-card p, .mistake-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.mistake-card { border-left: 5px solid var(--warn); }
.mistake-card h3 { color: var(--teal-950); font-size: 19px; }
.mistake-card .fix { margin-top: 12px; background: var(--good-bg); border-radius: var(--r-sm); padding: 12px 16px; font-size: 14px; color: var(--good); }
.mistake-card .fix b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.gloss-term {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: 20px 22px; margin-bottom: 12px; display: grid; grid-template-columns: 150px 1fr; gap: 16px;
  align-items: start;
}
.gloss-term dt { font-weight: 800; color: var(--teal-800); font-size: 15px; }
.gloss-term dd { margin: 0; color: var(--ink-soft); font-size: 14px; }
@media (max-width: 560px) { .gloss-term { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Modal ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(7, 46, 44, .5); backdrop-filter: blur(4px);
  z-index: 100; display: none; align-items: flex-end; justify-content: center;
}
.modal-back.open { display: flex; animation: fadeIn .22s; }
#confirmModal { z-index: 150; } /* confirm dialogs must sit above any other open modal */
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  background: #fff; width: 100%; max-width: 480px; border-radius: 24px 24px 0 0;
  padding: 28px 26px calc(30px + env(safe-area-inset-bottom));
  animation: sheetUp .32s var(--ease); max-height: 92vh; overflow-y: auto;
}
@keyframes sheetUp { from { transform: translateY(60px); opacity: .6; } }
@media (min-width: 640px) {
  .modal-back { align-items: center; padding: 24px; }
  .modal { border-radius: var(--r-xl); animation: viewIn .3s var(--ease); }
}
.modal h2 { color: var(--teal-950); font-size: 22px; margin-bottom: 4px; }
.modal .m-sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .btn { flex: 1; }

/* ---------- Toast ---------- */
.toast-zone { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 10px; width: min(420px, calc(100vw - 40px)); pointer-events: none; }
@media (min-width: 860px) { .toast-zone { bottom: 28px; } }
.toast {
  background: var(--teal-950); color: #fff; border-radius: 14px; padding: 14px 18px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .3s var(--ease);
}
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
.toast .t-ico { font-size: 18px; }

/* ---------- Bills & baseline page ---------- */
.page { max-width: 860px; margin: 0 auto; padding: 28px 20px 80px; }
.page h1 { font-size: clamp(26px, 3.6vw, 36px); color: var(--teal-950); }
.page .lede { color: var(--ink-soft); margin-bottom: 24px; }
.nut-box {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.nut-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--ink-soft); }
.nut-line:last-of-type { border-bottom: none; }
.nut-line.total { font-size: 19px; font-weight: 800; color: var(--teal-950); }
.nut-line.total .val { color: var(--teal-700); font-family: var(--font-display); font-size: 26px; }
.nut-line .val { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.slider-row { display: flex; align-items: center; gap: 16px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-600) var(--fill, 50%), var(--line-soft) var(--fill, 50%));
  outline: none; padding: 0; border: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid var(--teal-600); box-shadow: var(--shadow-sm); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 3px solid var(--teal-600); box-shadow: var(--shadow-sm); cursor: pointer;
}
.months-pick { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.months-pick button {
  border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 20px;
  font-weight: 800; font-size: 15px; color: var(--ink-soft); cursor: pointer; transition: all .16s;
}
.months-pick button.current { border-color: var(--gold-500); background: var(--gold-50); color: var(--gold-700); }

/* ---------- Utility ---------- */
.muted { color: var(--ink-faint); }
.small { font-size: 13px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.center { text-align: center; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 6px; }
.gold-text { color: var(--gold-600); }
.skeleton { background: linear-gradient(90deg, var(--line-soft), var(--line), var(--line-soft)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Print ---------- */
@media print {
  .topnav, .bottomnav, .toast-zone, .modal-back, .hero-ctas, .btn, .cta-band, .site-footer,
  .nav-actions, .icon-btn, .bill-check, .onboard-nav, .billing-toggle { display: none !important; }
  body { background: #fff; padding: 0; font-size: 12pt; }
  .view { display: none !important; }
  .view.active { display: block !important; animation: none; }
  .card, .nut-box { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .sts-card { background: #fff !important; color: #000; border: 2px solid #000; }
  .sts-card * { color: #000 !important; }
  .sts-amount { font-size: 48pt; }
}

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

/* ---------- Afford scenarios ---------- */
.scenario-wrap { margin-top: 56px; text-align: left; }
.scenario-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 24px; }
.scenario-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.scenario-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.sc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sc-head h3 { margin: 0; font-size: 17px; color: var(--teal-950); }
.sc-persona { font-size: 12.5px !important; color: var(--ink-faint) !important; font-weight: 600; letter-spacing: .02em; }
.sc-chip { flex: none; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.sc-chip.yes { background: var(--good-bg); color: var(--good); }
.sc-chip.no { background: var(--bad-bg); color: var(--bad); }
.sc-chip.cond { background: var(--warn-bg); color: var(--warn); }
.sc-math { background: var(--teal-50); border-radius: var(--r-sm); padding: 10px 14px; font-size: 13.5px !important; color: var(--teal-950) !important; font-variant-numeric: tabular-nums; }
.sc-action { background: var(--gold-50); border-radius: var(--r-sm); padding: 10px 14px; }
.scenario-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Settings sample profiles ---------- */
.sample-pick { display: grid; gap: 8px; }
.sample-pick .btn { justify-content: flex-start; }

/* ---------- Accessibility: skip link ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 9999; background: var(--teal-900); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 0; }

/* ---------- Accessibility: focus-visible ---------- */
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--teal-600);
  outline-offset: 2px;
}
.sts-card :focus-visible, .verdict :focus-visible, .nut-reveal :focus-visible,
.agitation :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible {
  outline-color: var(--gold-300);
}
.billing-toggle input:focus-visible + .slider {
  outline: 3px solid var(--teal-600);
  outline-offset: 2px;
}

/* ================= Freemium paywall ================= */
.plus-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--teal-950);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  border-radius: 999px;
  padding: 3px 9px;
  vertical-align: middle;
  white-space: nowrap;
}
.plus-badge-lg { font-size: 12px; padding: 5px 14px; }
.card-head .plus-badge { margin-left: auto; }
.feature-card h3 .plus-badge { margin-left: 2px; }

.checks-note {
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--gold-50);
  border: 1px solid var(--gold-100);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 14px 0 4px;
  text-align: center;
}
.checks-note .link {
  background: none; border: none; padding: 0;
  color: var(--gold-700); font-weight: 700; font-size: 14px;
  cursor: pointer; text-decoration: underline;
}

/* Locked insight cards (income page teasers) */
.insight-locked {
  position: relative;
  cursor: pointer;
  border: 1.5px dashed var(--gold-500);
  background: var(--gold-50);
  overflow: hidden;
}
.insight-locked .plus-badge { position: absolute; top: 10px; right: 10px; }
.locked-blur { filter: blur(5px); user-select: none; pointer-events: none; opacity: .75; }
.unlock-link {
  display: block; margin-top: 10px;
  font-weight: 700; font-size: 13.5px; color: var(--gold-700);
}
.insight-locked:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

/* Afford upgrade gate panel */
.gate-panel { text-align: center; padding: 34px 26px; }
.gate-panel .plus-badge { margin-bottom: 6px; }
.gate-art { font-size: 52px; margin: 6px 0 4px; }
.gate-panel h2 { margin: 8px 0 10px; color: var(--teal-950); }
.gate-panel p { color: var(--ink-soft); max-width: 440px; margin: 0 auto 16px; }
.gate-list {
  list-style: none; margin: 0 auto 20px; padding: 0;
  max-width: 380px; text-align: left;
}
.gate-list li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.gate-list li:last-child { border-bottom: none; }

/* Plus upgrade modal */
.plus-modal { text-align: center; }
.plus-features {
  list-style: none; margin: 18px 0; padding: 0; text-align: left;
}
.plus-features li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.plus-features li:last-child { border-bottom: none; }
.plus-pricing {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 17px; margin: 6px 0 18px;
}
.plus-pricing b { font-size: 24px; color: var(--teal-950); }

/* Settings Plus section */
.switch-row input[type="checkbox"] { flex-shrink: 0; }
