@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Nunito+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* ── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --bg:          #f4f6ff;
  --bg-card:     #ffffff;
  --bg-surface:  #eef0ff;
  --bg-input:    #ffffff;
  --border:      #e0e4f8;
  --border-soft: #f0f2fa;
  --text:        #1c1e3a;
  --text-2:      #6b7297;
  --text-3:      #9ba3c4;
  --accent:      #5b67f8;
  --accent-bg:   #eef0ff;
  --accent-dark: #4451d4;
  --ok:          #22c55e;
  --ok-bg:       #eefbf3;
  --ok-text:     #166534;
  --warn:        #d97706;
  --warn-bg:     #fff8e8;
  --warn-text:   #92400e;
  --bad:         #ef4444;
  --bad-bg:      #fef2f2;
  --bad-text:    #dc2626;
  --shadow:      0 2px 20px rgba(91,103,248,0.10);
  --shadow-md:   0 8px 40px rgba(91,103,248,0.14);
  --radius:      16px;
  --radius-sm:   10px;
  --radius-pill: 100px;
  --nav-h:       60px;
  --transition:  0.22s ease;
}

[data-theme="dark"] {
  --bg:          #0f1021;
  --bg-card:     #181a2e;
  --bg-surface:  #1e2140;
  --bg-input:    #1e2140;
  --border:      #2a2f52;
  --border-soft: #232644;
  --text:        #e8eaf8;
  --text-2:      #8b90b8;
  --text-3:      #565a7a;
  --accent:      #6e7dff;
  --accent-bg:   #1a1f42;
  --accent-dark: #5566ee;
  --ok:          #22c55e;
  --ok-bg:       #0d2a1a;
  --ok-text:     #4ade80;
  --warn:        #fbbf24;
  --warn-bg:     #2a1f00;
  --warn-text:   #fcd34d;
  --bad:         #f87171;
  --bad-bg:      #2a0a0a;
  --bad-text:    #fca5a5;
  --shadow:      0 2px 20px rgba(0,0,0,0.4);
  --shadow-md:   0 8px 40px rgba(0,0,0,0.5);
}

/* ── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
.font-display { font-family: 'Nunito', sans-serif; }
h1,h2,h3,h4 { font-family: 'Nunito', sans-serif; font-weight: 900; line-height: 1.15; letter-spacing: -0.5px; color: var(--text); }
h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; font-weight: 800; }
h4 { font-size: 1rem; font-weight: 800; }
p { color: var(--text-2); line-height: 1.7; }

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  transition: background var(--transition), border-color var(--transition);
  backdrop-filter: blur(12px);
}
.nav-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.nav-logo-pill {
  width: 32px; height: 32px; background: var(--accent); border-radius: 9px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo-text { font-family: 'Nunito', sans-serif; font-size: 18px; font-weight: 900; color: var(--text); }
.nav-logo-text span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 13px; font-weight: 600; color: var(--text-2); transition: color var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* Dark mode toggle */
.theme-toggle {
  width: 40px; height: 22px; background: var(--border); border: none; border-radius: 100px;
  cursor: pointer; position: relative; transition: background var(--transition); flex-shrink: 0;
}
.theme-toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; background: #fff; border-radius: 50%;
  transition: transform 0.25s ease, background 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
[data-theme="dark"] .theme-toggle { background: var(--accent); }
[data-theme="dark"] .theme-toggle::after { transform: translateX(18px); }
.theme-toggle-wrap { display: flex; align-items: center; gap: 7px; }
.theme-icon { font-size: 13px; color: var(--text-3); }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 14px;
  padding: 11px 24px; border-radius: var(--radius-pill); border: none; cursor: pointer;
  transition: all 0.18s ease; text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 16px rgba(91,103,248,0.3);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(91,103,248,0.4); text-decoration: none; color:#fff; }
.btn-ghost {
  background: var(--bg-card); color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); text-decoration: none; }
.btn-sm { font-size: 12px; padding: 8px 18px; }
.btn-danger { background: var(--bad-bg); color: var(--bad-text); border: 1px solid var(--bad); }

/* ── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: background var(--transition), border-color var(--transition);
}
.card-sm { border-radius: var(--radius-sm); padding: 14px 16px; }

/* ── BADGES ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 100px; letter-spacing: 0.2px;
}
.badge-ok   { background: var(--ok-bg);   color: var(--ok-text); }
.badge-warn { background: var(--warn-bg); color: var(--warn-text); }
.badge-bad  { background: var(--bad-bg);  color: var(--bad-text); }
.badge-info { background: var(--accent-bg); color: var(--accent); }

/* ── FORM ELEMENTS ──────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; font-weight: 700; color: var(--text-2); }
.field input, .field select {
  background: var(--bg-input); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 14px; color: var(--text); font-family: 'Nunito Sans', sans-serif;
  outline: none; transition: border-color var(--transition), background var(--transition);
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.field .hint { font-size: 11px; color: var(--text-3); }
.field input.prefilled { background: var(--accent-bg); border-color: var(--border); color: var(--accent); font-weight: 600; }
.prefilled-badge { font-size: 9px; color: var(--accent); font-weight: 700; letter-spacing: 0.5px; margin-left: 4px; }
.field select option { background: var(--bg-card); color: var(--text); }

/* ── LAYOUT HELPERS ─────────────────────────────────────── */
.container { max-width: 760px; margin: 0 auto; padding: 0 28px; }
.page-body { padding: 32px 0 80px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.divider { border: none; border-top: 1px solid var(--border-soft); margin: 16px 0; }

/* ── SECTION BLOCKS ─────────────────────────────────────── */
.sec { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; transition: background var(--transition), border-color var(--transition); }
.sec-head { padding: 16px 20px 0; display: flex; align-items: center; justify-content: space-between; }
.sec-body { padding: 14px 20px 18px; }
.sec-title { font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 800; color: var(--text); }

/* ── METRIC CARDS ───────────────────────────────────────── */
.metric { background: var(--bg-surface); border-radius: var(--radius-sm); padding: 12px 14px; transition: background var(--transition); }
.metric-label { font-size: 11px; color: var(--text-2); font-weight: 600; margin-bottom: 3px; }
.metric-val { font-family: 'Nunito', sans-serif; font-size: 18px; font-weight: 900; color: var(--text); }
.metric-val.ok  { color: var(--ok); }
.metric-val.warn { color: var(--warn); }
.metric-val.bad  { color: var(--bad); }
.metric-sub { font-size: 10px; color: var(--text-3); margin-top: 1px; }

/* ── TOGGLE (pay period) ────────────────────────────────── */
.toggle-wrap { display: inline-flex; background: var(--bg-surface); border-radius: 100px; padding: 3px; margin-bottom: 14px; }
.toggle-btn { font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 700; padding: 6px 18px; border-radius: 100px; border: none; cursor: pointer; background: transparent; color: var(--text-3); transition: all 0.18s; }
.toggle-btn.active { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(91,103,248,0.3); }

/* ── PAY ROWS ───────────────────────────────────────────── */
.pay-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.pay-row:last-child { border-bottom: none; font-weight: 700; font-size: 14px; }
.pay-label { color: var(--text-2); }
.pay-pretax { color: var(--accent); font-weight: 700; }
.pay-posttax { color: var(--warn); font-weight: 700; }

/* ── RATE BENCHMARK ─────────────────────────────────────── */
.rate-track { position: relative; margin: 18px 0 8px; }
.rate-bar { height: 10px; border-radius: 100px; background: linear-gradient(90deg, var(--ok-bg) 0%, var(--ok) 30%, var(--warn) 60%, var(--bad) 85%, var(--bad) 100%); position: relative; overflow: visible; }
.rate-range-fill { position: absolute; top: 0; height: 10px; background: rgba(34,197,94,0.25); border-radius: 100px; border: 1.5px solid var(--ok); }
.rate-marker { position: absolute; top: -4px; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #fff; transform: translateX(-50%); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.rate-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-3); margin-top: 6px; }
.rate-legend { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.rate-legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-2); font-weight: 600; }
.rate-legend-dot { width: 10px; height: 10px; border-radius: 50%; }

/* ── COMPARISON TABLE ───────────────────────────────────── */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cmp-table th { background: var(--bg-surface); padding: 9px 11px; text-align: left; font-size: 11px; font-weight: 700; color: var(--text-2); }
.cmp-table td { padding: 9px 11px; border-bottom: 1px solid var(--border-soft); color: var(--text); }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-best { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.cmp-total td { font-family:'Nunito',sans-serif; font-weight: 800; font-size: 13px; background: var(--bg-surface); border-top: 2px solid var(--border); }
.better { display: inline-block; background: var(--ok-bg); color: var(--ok-text); font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 100px; margin-left: 3px; }
.worse  { display: inline-block; background: var(--bad-bg); color: var(--bad-text); font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 100px; margin-left: 3px; }

/* ── FBT ROWS ───────────────────────────────────────────── */
.fbt-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.fbt-row:last-child { border-bottom: none; }
.fbt-label { color: var(--text-2); }
.fbt-val { font-weight: 600; color: var(--text); }

/* ── RUNNING COSTS ──────────────────────────────────────── */
.rc-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.rc-row:last-child { border-bottom: none; }
.rc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rc-name { font-size: 13px; font-weight: 600; color: var(--text); }
.rc-sub { font-size: 11px; color: var(--text-3); }
.rc-val { font-size: 13px; font-weight: 700; text-align: right; color: var(--text); }
.rc-bench { font-size: 10px; text-align: right; }
.rc-bench.ok   { color: var(--ok); }
.rc-bench.warn { color: var(--warn); }
.rc-bench.bad  { color: var(--bad); }

/* ── RED FLAGS ──────────────────────────────────────────── */
.flag-item { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.flag-item:last-child { border-bottom: none; padding-bottom: 0; }
.flag-bar { width: 4px; border-radius: 2px; flex-shrink: 0; align-self: stretch; min-height: 40px; }
.flag-bar.high { background: var(--bad); }
.flag-bar.med  { background: var(--warn); }
.flag-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.flag-sev { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 100px; margin-left: 6px; }
.flag-sev.high { background: var(--bad-bg); color: var(--bad-text); }
.flag-sev.med  { background: var(--warn-bg); color: var(--warn-text); }
.flag-desc { font-size: 12px; color: var(--text-2); line-height: 1.55; }

/* ── NEXT STEPS ─────────────────────────────────────────── */
.step { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); align-items: flex-start; }
.step:last-child { border-bottom: none; padding-bottom: 0; }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-bg); color: var(--accent); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; font-family: 'Nunito', sans-serif; }
.step-title { font-size: 13px; font-weight: 700; margin-bottom: 3px; color: var(--text); }
.step-desc { font-size: 12px; color: var(--text-2); line-height: 1.55; }
.step-action { display: inline-block; margin-top: 5px; font-size: 11px; font-weight: 700; color: var(--accent); cursor: pointer; }

/* ── LOCKED CARD ────────────────────────────────────────── */
.locked-wrap { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.locked-inner { background: var(--bg-card); border: 1.5px dashed var(--border); border-radius: var(--radius); padding: 20px; filter: blur(2px); pointer-events: none; opacity: 0.4; }
.locked-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.lock-icon { width: 34px; height: 34px; background: var(--bg-surface); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.lock-lbl { font-size: 12px; font-weight: 700; color: var(--text-2); text-align: center; }

/* ── SCORE BANNER ───────────────────────────────────────── */
.score-banner { background: var(--bg-card); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); margin-bottom: 16px; display: flex; gap: 16px; align-items: center; transition: background var(--transition); }
.grade-circle { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.grade-d { background: var(--bad-bg); border: 3px solid var(--bad); }
.grade-c { background: var(--warn-bg); border: 3px solid var(--warn); }
.grade-b { background: var(--accent-bg); border: 3px solid var(--accent); }
.grade-a { background: var(--ok-bg); border: 3px solid var(--ok); }
.grade-letter { font-family: 'Nunito', sans-serif; font-size: 22px; font-weight: 900; }
.grade-d .grade-letter { color: var(--bad); }
.grade-c .grade-letter { color: var(--warn); }
.grade-letter-ok { color: var(--ok); }

/* ── STEP TRACKER ───────────────────────────────────────── */
.step-track { display: flex; align-items: center; gap: 4px; }
.st { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-3); font-family: 'Nunito', sans-serif; }
.st.active { color: var(--accent); }
.st.done   { color: var(--ok); }
.st-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; flex-shrink: 0; }
.st-line { width: 28px; height: 2px; background: var(--border); margin: 0 2px; }
.st-line.done { background: var(--ok); }

/* ── INFO BOX ───────────────────────────────────────────── */
.info-box { border-radius: var(--radius-sm); padding: 11px 14px; font-size: 12px; font-weight: 600; margin-top: 10px; }
.info-box.ok   { background: var(--ok-bg);   color: var(--ok-text); }
.info-box.warn { background: var(--warn-bg); color: var(--warn-text); }
.info-box.bad  { background: var(--bad-bg);  color: var(--bad-text); }
.info-box.info { background: var(--accent-bg); color: var(--accent); }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 32px; margin-top: 60px; }
.footer-inner { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-logo-text { font-family: 'Nunito', sans-serif; font-size: 17px; font-weight: 900; color: var(--text); }
.footer-logo-text span { color: var(--accent); }
.footer-tagline { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.5; }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: var(--text-2); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { max-width: 760px; margin: 24px auto 0; padding-top: 20px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 11px; color: var(--text-3); }
.footer-disc { font-size: 10px; color: var(--text-3); max-width: 400px; text-align: right; line-height: 1.5; }

/* ── HOW IT WORKS PAGE ──────────────────────────────────── */
.hiw-hero { text-align: center; padding: 60px 28px 40px; }
.hiw-hero p { max-width: 520px; margin: 12px auto 0; }
.hiw-steps { counter-reset: step; }
.hiw-step { display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--border-soft); align-items: start; }
.hiw-step:last-child { border-bottom: none; }
.hiw-step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-bg); border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 900; color: var(--accent); flex-shrink: 0; }
.hiw-step-title { font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.hiw-step-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.hiw-step-detail { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.hiw-step-bullet { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text-2); }
.hiw-step-bullet::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; }
.hiw-faq { margin-top: 12px; }
.hiw-faq-item { border-bottom: 1px solid var(--border-soft); }
.hiw-faq-q { width: 100%; background: none; border: none; text-align: left; padding: 14px 0; font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.hiw-faq-q::after { content: '+'; font-size: 18px; color: var(--accent); font-weight: 300; }
.hiw-faq-q.open::after { content: '−'; }
.hiw-faq-a { display: none; font-size: 13px; color: var(--text-2); line-height: 1.7; padding-bottom: 14px; }
.hiw-faq-a.open { display: block; }
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.analysis-card { background: var(--bg-surface); border-radius: var(--radius-sm); padding: 14px; }
.analysis-icon { font-size: 20px; margin-bottom: 6px; }
.analysis-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.analysis-desc { font-size: 11px; color: var(--text-2); line-height: 1.5; }

/* ── TERMS PAGE ─────────────────────────────────────────── */
.terms-hero { padding: 48px 28px 32px; border-bottom: 1px solid var(--border-soft); margin-bottom: 32px; }
.terms-hero p { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.terms-toc { background: var(--bg-surface); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 28px; }
.terms-toc-title { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; color: var(--text-2); text-transform: uppercase; margin-bottom: 10px; }
.terms-toc-links { display: flex; flex-direction: column; gap: 6px; }
.terms-toc-links a { font-size: 13px; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.terms-toc-links a::before { content:'§'; font-size:11px; opacity:0.6; }
.terms-section { margin-bottom: 36px; }
.terms-section h3 { font-size: 16px; margin-bottom: 10px; color: var(--text); padding-bottom: 8px; border-bottom: 2px solid var(--accent-bg); }
.terms-section p { font-size: 13px; color: var(--text-2); line-height: 1.75; margin-bottom: 10px; }
.terms-section ul { padding-left: 20px; margin: 8px 0; }
.terms-section ul li { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-bottom: 5px; }
.terms-warning { background: var(--warn-bg); border-left: 3px solid var(--warn); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 12px 0; }
.terms-warning p { color: var(--warn-text); font-size: 13px; margin: 0; }

/* ── SCAN ANIMATIONS ────────────────────────────────────── */
.spin { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.tick-circle { width: 16px; height: 16px; background: var(--ok); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.scan-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--text-2); }
.scan-row.done { color: var(--text); font-weight: 600; }

/* ── UPLOAD ZONE ────────────────────────────────────────── */
.upload-zone { background: var(--bg-card); border: 2px dashed var(--border); border-radius: 20px; padding: 48px 32px; text-align: center; cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.upload-zone:hover { border-color: var(--accent); background: var(--accent-bg); }
.upload-circle { width: 64px; height: 64px; background: var(--accent-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.upload-title { font-family: 'Nunito', sans-serif; font-size: 18px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.upload-hint { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.fmt-tags { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.fmt-tag { background: var(--bg-surface); color: var(--text-3); font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; border: 1px solid var(--border); }

/* ── EXTRACTED BANNER ───────────────────────────────────── */
.extracted-banner { background: var(--ok-bg); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); border-radius: var(--radius-sm); padding: 11px 15px; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.ext-icon { width: 28px; height: 28px; background: var(--ok); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ext-text { font-size: 13px; color: var(--ok-text); font-weight: 700; }
.ext-sub  { font-size: 11px; color: var(--ok-text); opacity: 0.8; margin-top: 1px; }

/* ── FIELDS SECTION ─────────────────────────────────────── */
.fields-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; margin-top: 4px; }
.skip-hint { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 10px; }
.skip-hint span { color: var(--accent); font-weight: 600; cursor: pointer; }

/* ── SCAN RESULTS HEADER ────────────────────────────────── */
.results-meta { font-size: 11px; color: var(--text-3); font-weight: 600; margin-bottom: 4px; }
.results-title { font-family: 'Nunito', sans-serif; font-size: 22px; font-weight: 900; letter-spacing: -0.5px; color: var(--text); margin-bottom: 18px; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  h1 { font-size: 1.9rem; }
  .container { padding: 0 16px; }
  .cmp-table { font-size: 10px; }
  .cmp-table th, .cmp-table td { padding: 7px 6px; }
}
