/* ===========================================================
   Design tokens
   =========================================================== */
:root {
    --paper: #F7F8FB;
    --paper-raised: #FFFFFF;
    --ink: #13182B;
    --ink-soft: #5B6478;
    --line: #E3E6EF;
    --brand: #3454D1;
    --brand-dim: #EEF1FC;
    --brand-deep: #24399C;
    --pass: #00A878;
    --pass-bg: #E5F7F0;
    --flag: #E2543D;
    --flag-bg: #FDEAE7;
    --warn: #9A6B00;
    --warn-bg: #FFF3D6;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --radius: 14px;
    --max-width: 1080px;
    --header-bg: rgba(247, 248, 251, 0.88);
    --dark-surface: #13182B;
    --overlay-bg: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] {
    --paper: #0E1016;
    --paper-raised: #171A24;
    --ink: #EAEDF6;
    --ink-soft: #9AA2B8;
    --line: #2A2E3D;
    --brand: #7C93FF;
    --brand-dim: #1C2340;
    --brand-deep: #AEBBFF;
    --pass: #35D399;
    --pass-bg: #113228;
    --flag: #FF6B57;
    --flag-bg: #3A1E1B;
    --warn: #E8B84B;
    --warn-bg: #3D3115;
    --header-bg: rgba(14, 16, 22, 0.88);
    --overlay-bg: rgba(23, 26, 36, 0.7);
}

html { transition: background 0.15s ease; }
body { transition: background 0.15s ease, color 0.15s ease; }

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper-raised);
    color: var(--ink-soft);
    cursor: pointer;
    margin-right: 0.6rem;
    flex-shrink: 0;
}
.theme-toggle-btn:hover { color: var(--brand); border-color: var(--brand); }
.theme-toggle-btn svg { width: 17px; height: 17px; }
.theme-toggle-btn .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle-btn .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle-btn .icon-moon { display: inline; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.12;
    margin: 0;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ===========================================================
   Layout shell
   =========================================================== */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

header.site {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
header.site .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 68px;
    max-width: 1320px;
}
.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}
.logo .logo-accent { color: var(--brand); }
.logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pass); display: inline-block; box-shadow: 0 0 0 3px var(--pass-bg); }

nav.primary { display: flex; align-items: center; gap: 2rem; }
nav.primary a {
    font-size: 0.95rem;
    color: var(--ink-soft);
    font-weight: 500;
    white-space: nowrap;
}
nav.primary a:hover, nav.primary a.active { color: var(--ink); }
nav.primary a.btn-primary { color: white; }
nav.primary a.btn-primary:hover { color: white; }
nav.primary a.btn-ghost { color: var(--ink); }
nav.primary .nav-links { display: flex; gap: 1.75rem; flex-shrink: 0; }
nav.primary #nav-auth-slot {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
nav.primary #nav-auth-slot span { white-space: nowrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(52, 84, 209, 0.55); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.88rem; }

footer.site {
    border-top: 1px solid var(--line);
    margin-top: 5rem;
    padding: 2.5rem 0 3rem;
}
footer.site .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
}
footer.site .foot-links { display: flex; gap: 1.5rem; }
footer.site .foot-links a { color: var(--ink-soft); font-size: 0.9rem; }
footer.site .foot-links a:hover { color: var(--ink); }
footer.site .foot-note { color: var(--ink-soft); font-size: 0.85rem; }

/* ===========================================================
   Section rhythm
   =========================================================== */
section { padding: 5rem 0; }
section.tight { padding: 3rem 0; }
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand);
    font-weight: 600;
    margin-bottom: 0.9rem;
    display: inline-block;
}
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.8rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
    padding: 4.5rem 0 5rem;
}
.hero .wrap {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
}
.hero h1 {
    font-size: clamp(2.4rem, 4.4vw, 3.5rem);
    letter-spacing: -0.01em;
    margin-bottom: 1.2rem;
}
.hero h1 .accent { color: var(--brand); }
.hero p.lede {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 480px;
    margin-bottom: 2rem;
}
.hero .cta-row { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.hero .cta-note { font-size: 0.85rem; color: var(--ink-soft); font-family: var(--font-mono); }

.trust-row {
    display: flex;
    gap: 1.6rem;
    margin-top: 2.4rem;
    flex-wrap: wrap;
}
.trust-row .item {
    font-size: 0.85rem;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.trust-row .item svg { flex-shrink: 0; }

/* ---- scan card (signature element) ---- */
.scan-card {
    position: relative;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: 0 30px 60px -30px rgba(19, 24, 43, 0.18);
    overflow: hidden;
}
.scan-card .doc-line {
    height: 10px;
    background: var(--line);
    border-radius: 4px;
    margin-bottom: 12px;
}
.scan-card .doc-line.w60 { width: 60%; }
.scan-card .doc-line.w80 { width: 80%; }
.scan-card .doc-line.w40 { width: 40%; }
.scan-card .doc-line.w90 { width: 90%; }
.scan-card .doc-line.w70 { width: 70%; }
.scan-card .doc-block { margin-bottom: 22px; position: relative; }
.scan-card .doc-block:last-child { margin-bottom: 0; }

.tag {
    position: absolute;
    right: 0;
    top: -2px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 5px;
    background: var(--pass-bg);
    color: var(--pass);
    opacity: 0;
    animation: tagReveal 6s ease-in-out infinite;
}
.doc-block.b1 .tag { animation-delay: 0.4s; }
.doc-block.b2 .tag { animation-delay: 1.1s; }
.doc-block.b3 .tag { animation-delay: 1.8s; }
.doc-block.b4 .tag { animation-delay: 2.5s; background: var(--flag-bg); color: var(--flag); }
.doc-block.b5 .tag { animation-delay: 3.2s; }

@keyframes tagReveal {
    0%, 8% { opacity: 0; transform: translateY(2px); }
    12%, 82% { opacity: 1; transform: translateY(0); }
    90%, 100% { opacity: 0; }
}

.scan-line {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand) 20%, var(--brand) 80%, transparent);
    box-shadow: 0 0 16px 2px rgba(52, 84, 209, 0.5);
    animation: sweep 6s ease-in-out infinite;
}
@keyframes sweep {
    0% { top: 0%; opacity: 0; }
    5% { opacity: 1; }
    80% { top: 100%; opacity: 1; }
    86%, 100% { top: 100%; opacity: 0; }
}

.scan-card .score-reveal {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.scan-card .score-reveal .label { font-size: 0.82rem; color: var(--ink-soft); }
.scan-card .score-reveal .score {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--pass);
    opacity: 0;
    animation: scoreIn 6s ease-in-out infinite;
}
@keyframes scoreIn {
    0%, 84% { opacity: 0; }
    90%, 100% { opacity: 1; }
}

/* ===========================================================
   Feature grid
   =========================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }

.feature-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem;
}
.feature-card .icon-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--brand);
    background: var(--brand-dim);
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 600;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.55rem; }
.feature-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.premium-badge {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: #7A4B00;
    background: #FFE9B8;
    padding: 2px 6px;
    border-radius: 5px;
    margin-left: 6px;
    letter-spacing: 0.03em;
    font-weight: 700;
    vertical-align: middle;
}
.locked-panel {
    text-align: center;
    padding: 2.4rem 1.4rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--paper-raised);
}
.locked-panel .lock-icon { width: 30px; height: 30px; color: var(--ink-soft); margin-bottom: 0.8rem; }
.locked-panel h4 { margin: 0 0 0.4rem; font-size: 1rem; }
.locked-panel p { margin: 0 0 1.1rem; color: var(--ink-soft); font-size: 0.9rem; }

/* ===========================================================
   How it works (real sequence -> numbered is justified)
   =========================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }

.workflow-flow {
    display: flex; align-items: stretch; gap: 0.75rem; flex-wrap: wrap; justify-content: center;
}
.workflow-step {
    flex: 1 1 200px; background: var(--paper-raised); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.1rem 1.2rem; min-width: 180px;
}
.workflow-step .wf-tag {
    display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em;
    color: var(--brand); text-transform: uppercase; margin-bottom: 0.4rem;
}
.workflow-step p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.workflow-step h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.workflow-arrow {
    display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
    font-size: 1.3rem; flex: 0 0 auto; padding: 0 0.2rem;
}
@media (max-width: 720px) {
    .workflow-flow { flex-direction: column; }
    .workflow-arrow { transform: rotate(90deg); padding: 0.2rem 0; }
}
.step { position: relative; padding-left: 0; }
.step .num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--brand);
    font-weight: 700;
    margin-bottom: 0.7rem;
    display: block;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ===========================================================
   Before / After bullet sample (reused pattern from app)
   =========================================================== */
.bullet-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bullet-demo .pane {
    border-radius: 10px;
    padding: 1.1rem 1.3rem;
    font-family: var(--font-mono);
    font-size: 0.86rem;
    line-height: 1.55;
}
.bullet-demo .before { background: var(--paper-raised); color: var(--ink-soft); border-left: 3px solid var(--line); }
.bullet-demo .after { background: var(--pass-bg); color: var(--ink); border-left: 3px solid var(--pass); position: relative; padding-right: 2.8rem; }
.bullet-demo .pane .tag-label {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: inherit;
    opacity: 0.7;
}

/* Copy buttons (AI summary + rewritten bullets) */
.copy-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; flex-shrink: 0;
    background: var(--paper-raised); border: 1px solid var(--line); border-radius: 8px;
    color: var(--ink-soft); cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn:hover { background: var(--brand-dim); color: var(--brand); border-color: var(--brand); }
.copy-btn.copied { background: var(--pass-bg); color: var(--pass); border-color: var(--pass); }
.copy-btn-pane { position: absolute; top: 0.7rem; right: 0.7rem; background: var(--overlay-bg); }

.panel-hint { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 1.1rem; }
.diff-mark {
    background: #FFE58A; color: #5A4200; padding: 0.05em 0.3em; border-radius: 4px;
    font-weight: 700; box-decoration-break: clone; -webkit-box-decoration-break: clone;
    opacity: 0; animation: markIn 0.4s ease 0.3s forwards;
}
.diff-verb { background: var(--pass-bg); color: var(--pass); }
@keyframes markIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.diff-badge {
    display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
    background: var(--pass); color: white; padding: 0.1rem 0.5rem; border-radius: 999px;
    margin-left: 0.5rem; text-transform: none; letter-spacing: 0;
}

/* ===========================================================
   Pricing
   =========================================================== */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; align-items: stretch; }
.price-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.price-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
}
.price-card.highlight { border-color: var(--brand); box-shadow: 0 24px 50px -28px rgba(52, 84, 209, 0.35); position: relative; }
.price-card.highlight::before {
    content: "Most popular";
    position: absolute;
    top: -12px; right: 1.6rem;
    background: var(--brand);
    color: white;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}
.price-card .plan-name { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.6rem; }
.price-card .plan-price { font-family: var(--font-display); font-size: 2.3rem; margin-bottom: 1.4rem; }
.price-card .plan-price span { font-size: 1rem; color: var(--ink-soft); font-family: var(--font-body); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.6rem 0; flex-grow: 1; }
.price-card li { padding: 0.5rem 0; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-soft); }
.price-card li:first-child { border-top: none; }
.price-card li.included { color: var(--ink); }
.price-card li.included::before { content: "✓ "; color: var(--pass); font-weight: 700; }
.price-card li.excluded::before { content: "— "; color: var(--ink-soft); }

/* ===========================================================
   Trust badges (homepage)
   =========================================================== */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.4rem 2.4rem;
    padding: 1.6rem 0;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: var(--ink-soft);
}
.trust-badge-icon {
    display: flex;
    width: 18px;
    height: 18px;
    color: var(--pass);
    flex-shrink: 0;
}
.trust-badge a { color: var(--brand); font-weight: 600; }

/* ===========================================================
   CTA band
   =========================================================== */
.cta-band {
    background: var(--dark-surface);
    border-radius: 20px;
    padding: 3.2rem 3rem;
    text-align: center;
    color: white;
    margin: 1rem 0;
}
.cta-band h2 { color: white; font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.9rem; }
.cta-band p { color: #C7CCDE; margin-bottom: 1.8rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: white; color: var(--dark-surface); }
.cta-band .btn-primary:hover { box-shadow: 0 8px 20px -8px rgba(255,255,255,0.3); }

/* ===========================================================
   Generic content blocks (privacy / pages)
   =========================================================== */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2.4rem; margin-bottom: 0.8rem; font-size: 1.4rem; }
.prose p { color: var(--ink-soft); margin-bottom: 1rem; }
.prose ul { color: var(--ink-soft); padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }

.page-header { padding: 3.5rem 0 1rem; }
.page-header .eyebrow { margin-bottom: 0.7rem; }
.page-header h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 0.8rem; }
.page-header p.lede { color: var(--ink-soft); font-size: 1.05rem; max-width: 560px; }

/* ===========================================================
   Responsive
   =========================================================== */
/* ===========================================================
   Auth pages (login / signup)
   =========================================================== */
.auth-shell {
    max-width: 420px;
    margin: 0 auto;
    padding: 4rem 0 5rem;
}
.auth-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.2rem;
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.auth-card .sub { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.6rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.field input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
}
.field input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.form-error {
    background: var(--flag-bg);
    color: var(--flag);
    font-size: 0.88rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    margin-bottom: 1.1rem;
    display: none;
}
.form-error.show { display: block; }
.auth-switch { margin-top: 1.4rem; font-size: 0.9rem; color: var(--ink-soft); text-align: center; }
.auth-switch a { color: var(--brand); font-weight: 600; }
.field-hint-row { text-align: right; margin: -0.6rem 0 1.1rem; }
.link-quiet { font-size: 0.85rem; color: var(--ink-soft); text-decoration: none; }
.link-quiet:hover { color: var(--brand); text-decoration: underline; }
.form-success {
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.1rem;
    line-height: 1.5;
    display: none;
}
.form-success.show { display: block; }

/* ===========================================================
   App (analyzer) page
   =========================================================== */
.app-shell { padding: 2.5rem 0 5rem; }
.usage-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--brand-dim);
    border-radius: 10px;
    padding: 0.85rem 1.2rem;
    margin-bottom: 1.6rem;
    font-size: 0.88rem;
}
.usage-banner.premium { background: var(--pass-bg); }
.usage-banner .upgrade-link { color: var(--brand); font-weight: 600; }

.upload-zone {
    position: relative;
    background: var(--paper-raised);
    border: 1.5px dashed var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    overflow: hidden;
}
.upload-zone:hover { border-color: var(--brand); background: var(--brand-dim); }
.upload-zone:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.upload-zone.drag-over {
    border-color: var(--brand);
    background: var(--brand-dim);
    transform: scale(1.01);
    border-style: solid;
}
.upload-zone.has-file { cursor: default; padding: 1.1rem 1.3rem; border-style: solid; border-color: var(--line); }
.upload-zone.has-file:hover { border-color: var(--line); background: var(--paper-raised); }
.upload-zone.uploading { border-color: var(--brand); }
.upload-zone.upload-success { border-color: var(--pass); background: var(--pass-bg); }

.upload-empty { display: flex; flex-direction: column; align-items: center; text-align: center; }
.upload-icon { width: 34px; height: 34px; color: var(--ink-soft); margin-bottom: 0.7rem; transition: transform 0.2s ease; }
.upload-zone.drag-over .upload-icon { color: var(--brand); transform: translateY(-3px); }
.upload-title { font-family: var(--font-display); font-weight: 600; margin: 0 0 0.2rem; font-size: 0.98rem; }
.upload-sub { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }

.upload-file-chip { display: flex; align-items: center; gap: 0.8rem; }
.upload-file-icon { width: 30px; height: 30px; color: var(--brand); flex-shrink: 0; }
.upload-file-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.upload-file-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-file-size { font-size: 0.78rem; color: var(--ink-soft); font-family: var(--font-mono); }
.upload-file-check { width: 20px; height: 20px; color: var(--pass); flex-shrink: 0; transform: scale(0); }
.upload-file-check.pop { animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes popIn { to { transform: scale(1); } }
.upload-remove-btn {
    background: var(--paper); border: 1px solid var(--line); border-radius: 50%;
    width: 26px; height: 26px; flex-shrink: 0; cursor: pointer; font-size: 0.8rem;
    color: var(--ink-soft); transition: background 0.15s ease, color 0.15s ease;
}
.upload-remove-btn:hover { background: var(--flag-bg); color: var(--flag); }

.upload-progress-track { height: 4px; background: var(--line); border-radius: 999px; margin-top: 1rem; overflow: hidden; }
.upload-progress-fill { height: 100%; width: 0%; background: var(--brand); border-radius: 999px; transition: width 0.2s ease; }
.upload-zone.upload-success .upload-progress-fill { background: var(--pass); }

.upload-trust-row {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    margin-top: 0.8rem;
    font-size: 0.76rem;
    color: var(--ink-soft);
}
.upload-trust-row span { display: flex; align-items: center; gap: 0.35rem; }
.upload-trust-row svg { width: 13px; height: 13px; color: var(--pass); }

.app-grid { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; align-items: start; }
.app-sidebar .field { margin-bottom: 1rem; }
.app-sidebar textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    resize: vertical;
}

.gauge-wrap { display: flex; justify-content: center; margin: 1.8rem 0 0.5rem; }
.gauge-verdict { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 1.8rem; opacity: 0; animation: fadeUp 0.5s ease 0.9s forwards; }

.gauge-ring { transition: stroke-dasharray 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.gauge-score-text { opacity: 0; animation: fadeUp 0.4s ease 0.5s forwards; }

.score-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
}
.score-hero-details { flex: 1; min-width: 220px; }
.grade-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.grade-badge {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1;
    opacity: 0;
    animation: fadeUp 0.5s ease 0.6s forwards;
}
.star-rating { font-size: 1.15rem; letter-spacing: 2px; color: var(--line); }
.star-rating .star.filled { color: #F5B301; }
.gauge-verdict-inline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 0.2rem;
    opacity: 0;
    animation: fadeUp 0.5s ease 0.9s forwards;
}
.metric-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.metric-pill {
    background: var(--brand-dim);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    display: flex;
    flex-direction: column;
    min-width: 140px;
    opacity: 0;
    animation: fadeUp 0.5s ease 1.1s forwards;
}
.metric-value { font-family: var(--font-mono); font-weight: 600; font-size: 1.25rem; }
.metric-label { font-size: 0.7rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; margin-top: 0.2rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
.chip {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    opacity: 0;
    animation: fadeUp 0.4s ease forwards;
}
.chip:nth-child(1) { animation-delay: 1.0s; }
.chip:nth-child(2) { animation-delay: 1.08s; }
.chip:nth-child(3) { animation-delay: 1.16s; }
.chip:nth-child(4) { animation-delay: 1.24s; }
.chip:hover { transform: translateY(-1px); box-shadow: 0 4px 10px -4px rgba(19, 24, 43, 0.25); }
.chip-ok { background: var(--pass-bg); color: var(--pass); }
.chip-missing { background: var(--flag-bg); color: var(--flag); }
.chip-warning { background: var(--warn-bg); color: var(--warn); }

.tab-row { display: flex; gap: 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.tab-btn {
    background: none; border: none; cursor: pointer;
    font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
    color: var(--ink-soft);
    padding: 0.7rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.2s ease;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--ink); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.3s ease; }

.result-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem;
    opacity: 0;
    animation: cardIn 0.45s ease forwards;
}

.checklist-progress { margin-bottom: 1.3rem; }
#checklist-progress-text { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.progress-track { height: 6px; background: var(--line); border-radius: 999px; margin-top: 0.5rem; overflow: hidden; }
.progress-fill { height: 100%; background: var(--brand); border-radius: 999px; transition: width 0.35s ease; }

.checklist-item {
    display: flex; align-items: flex-start; gap: 0.7rem;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.checklist-item:hover { background: rgba(19, 24, 43, 0.03); }
.checklist-checkbox { margin-top: 0.2rem; width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; flex-shrink: 0; }
.checklist-text { line-height: 1.5; }
.checklist-item.done .checklist-text { text-decoration: line-through; color: var(--ink-soft); }
.checklist-item.done .prio-badge { opacity: 0.5; }

.prio-badge {
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
    padding: 0.15rem 0.5rem; border-radius: 999px; flex-shrink: 0;
    margin-top: 0.15rem;
    text-transform: uppercase; letter-spacing: 0.02em;
}
.prio-high { background: var(--flag-bg); color: var(--flag); }
.prio-med { background: var(--warn-bg); color: var(--warn); }
.prio-low { background: var(--pass-bg); color: var(--pass); }

/* Icons */
.chip-icon svg, .stat-icon svg, .tab-icon svg, .category-icon svg, .strength-icon svg { width: 100%; height: 100%; }
.chip-icon { width: 12px; height: 12px; display: inline-block; vertical-align: -1px; margin-right: 0.2rem; }
.tab-icon { width: 15px; height: 15px; display: inline-block; vertical-align: -3px; margin-right: 0.35rem; opacity: 0.85; }
.stat-icon { width: 18px; height: 18px; display: inline-block; color: var(--brand); flex-shrink: 0; }
.category-icon { width: 15px; height: 15px; display: inline-block; color: var(--brand); flex-shrink: 0; }
.strength-icon { width: 17px; height: 17px; display: inline-block; color: var(--pass); flex-shrink: 0; margin-top: 0.1rem; }

/* Stat grid (Overview tab) */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.stat-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; }
.stat-card-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.8rem; }
.stat-card-head h4 { margin: 0; font-family: var(--font-display); font-size: 0.95rem; }
.stat-line { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 0.5rem; }
.stat-big { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; margin: 0 0 0.4rem; line-height: 1; }
.stat-unit { font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; margin-left: 0.3rem; }
.mini-stat { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 0.3rem; }
.mini-stat span:last-child { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }

/* AI panel */
.ai-callout {
    display: flex; gap: 0.7rem; align-items: flex-start;
    background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
    padding: 1rem 1.2rem; font-style: italic; margin-bottom: 1.3rem; line-height: 1.5;
}
.panel-subhead { font-family: var(--font-display); font-size: 0.95rem; margin: 1.4rem 0 0.7rem; }
.strength-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.5rem; }
.strength-item {
    display: flex; gap: 0.6rem; align-items: flex-start;
    background: var(--pass-bg); border-radius: 8px; padding: 0.6rem 0.8rem;
    font-size: 0.9rem; line-height: 1.45; color: var(--pass);
}
.ai-suggestion-list { display: flex; flex-direction: column; gap: 0.7rem; }
.ai-suggestion-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1rem; }

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-height: 360px;
    overflow-y: auto;
    padding: 0.4rem 0.2rem;
    margin-top: 0.8rem;
}
.chat-bubble {
    max-width: 80%;
    padding: 0.6rem 0.9rem;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.45;
    white-space: pre-wrap;
}
.chat-bubble-user {
    align-self: flex-end;
    background: var(--brand);
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-bubble-coach {
    align-self: flex-start;
    background: var(--paper);
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
}
.chat-bubble-thinking { color: var(--ink-soft); font-style: italic; }
.chat-input-row {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
}
.chat-input-row input {
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
}
.chat-input-row input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.ai-suggestion-head { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.5rem; }
.ai-category { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; }
.ai-issue { font-weight: 600; margin: 0 0 0.3rem; font-size: 0.92rem; }
.ai-suggestion-text { margin: 0; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1.5rem; opacity: 0; animation: fadeUp 0.5s ease forwards; }
.empty-state-icon { width: 56px; height: 56px; display: inline-block; color: var(--line); margin-bottom: 1rem; }
.empty-state-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0 0 0.4rem; }
.empty-state-sub { font-size: 0.88rem; color: var(--ink-soft); max-width: 340px; margin: 0 auto; line-height: 1.5; }

/* Progress chart (sidebar) */
.progress-chart { display: block; margin: 0.4rem 0 0.8rem; }
.chart-dot { transition: r 0.15s ease; cursor: pointer; }
.chart-dot:hover { r: 5; }
.chart-line { stroke-dasharray: 500; stroke-dashoffset: 500; animation: drawLine 0.9s ease forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.progress-summary { display: flex; flex-direction: column; gap: 0.35rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.progress-summary .mini-stat span:first-child { color: var(--ink-soft); }

/* Scroll reveal (landing page sections) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Hero gauge */
.hero-gauge { flex-shrink: 0; }
.score-reveal { display: flex; align-items: center; gap: 0.8rem; }

/* Pricing teaser (landing page) */
.pricing-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 640px; margin: 0 auto; }
.price-card { position: relative; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.price-card.featured { border-color: var(--brand); box-shadow: 0 8px 24px -12px rgba(52, 84, 209, 0.25); }
.price-card .plan-badge {
    position: absolute;
    top: -0.7rem;
    left: 1.4rem;
    background: var(--brand);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    line-height: 1;
}
.price-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.price-card .price { font-family: var(--font-mono); font-weight: 600; font-size: 1.3rem; margin: 0 0 1rem; color: var(--brand); }
.price-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.88rem; color: var(--ink-soft); }
.price-card li::before { content: "✓ "; color: var(--pass); font-weight: 700; }

/* FAQ accordion */
.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; padding: 0.2rem 1.1rem; }
.faq-item summary { cursor: pointer; padding: 0.9rem 0; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--brand); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 1rem; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }

.spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid var(--line); border-top-color: var(--brand);
    border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Header/nav only: kicks in earlier than the full mobile breakpoint below,
   since the logged-in nav (links + toggle + email + 2 buttons) needs more
   room than the 1080px content width but the rest of the page doesn't. */
@media (max-width: 1300px) {
    header.site .wrap {
        flex-wrap: wrap;
        height: auto;
        padding-top: 0.9rem;
        padding-bottom: 0.7rem;
        row-gap: 0.7rem;
    }
    nav.primary { width: 100%; justify-content: flex-end; flex-wrap: wrap; row-gap: 0.6rem; }
}

@media (max-width: 880px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; }
    .grid-3, .steps, .price-grid, .grid-2 { grid-template-columns: 1fr; }
    .bullet-demo { grid-template-columns: 1fr; }
    section { padding: 3.2rem 0; }
    .cta-band { padding: 2.4rem 1.6rem; }

    header.site .wrap {
        flex-wrap: wrap;
        height: auto;
        padding-top: 0.9rem;
        padding-bottom: 0.7rem;
        row-gap: 0.7rem;
    }
    nav.primary { width: 100%; justify-content: space-between; order: 3; flex-wrap: wrap; row-gap: 0.6rem; }
    nav.primary .nav-links { display: flex; gap: 1.1rem; }
    nav.primary .nav-links a { font-size: 0.86rem; }
    nav.primary #nav-auth-slot { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }

    /* Dashboard: stack single-column, but reorder so the optional
       target-role/job-description fields sit above the Analyze button
       (not below it, where they'd get missed) and the progress chart
       moves to the bottom, out of the way of the primary task. */
    .app-grid { grid-template-columns: 1fr; display: flex; flex-direction: column; }
    .app-sidebar { display: contents; }
    .app-main { order: 2; }
    .app-sidebar > .result-card:not(#progress-card) { order: 1; margin-bottom: 1.2rem; }
    #progress-card { order: 3; margin-top: 1.2rem; }

    /* Results tabs: horizontal scroll instead of wrapping/overflowing
       once there are 5 tabs (Checklist/Overview/AI/Summary/Rewrite). */
    .tab-row {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 1.1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .tab-row::-webkit-scrollbar { display: none; }
    .tab-btn { white-space: nowrap; flex-shrink: 0; }

    .gauge-wrap svg { width: 140px; height: 140px; }
    .score-hero { justify-content: center; text-align: center; }
    .score-hero-details { min-width: 0; }
    .grade-row { justify-content: center; }
    .metric-row { justify-content: center; }
    .stat-grid { grid-template-columns: 1fr; }
    .pricing-teaser { grid-template-columns: 1fr; max-width: 320px; }
    .faq-item summary { padding: 1rem 0; }

    /* Comfortable tap targets on touch screens */
    .chip, .tab-btn, .copy-btn, .upload-remove-btn, .checklist-checkbox { min-height: 30px; }
    .btn { min-height: 46px; }
}


/* ---------------------------------------------------------------------------
   Application tracker
--------------------------------------------------------------------------- */

.tracker-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem; margin-bottom: 1.4rem; }
.tracker-stat { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 0.6rem; text-align: center; }
.tracker-stat-count { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.tracker-stat-label { display: block; font-size: 0.72rem; color: var(--ink-soft); margin-top: 0.15rem; text-transform: uppercase; letter-spacing: 0.03em; }

.tracker-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tracker-filters { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tracker-filter-btn {
    border: 1px solid var(--line); background: var(--paper-raised); color: var(--ink-soft);
    border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.82rem; font-weight: 600; cursor: pointer;
}
.tracker-filter-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.application-card {
    background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1rem 1.1rem; margin-bottom: 0.7rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.application-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; }
.application-role { font-weight: 700; font-size: 1rem; }
.application-company { color: var(--ink-soft); font-size: 0.88rem; }
.application-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--ink-soft); }
.application-notes { font-size: 0.85rem; color: var(--ink-soft); white-space: pre-wrap; }
.application-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

.status-badge {
    display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.65rem;
    border-radius: 999px; font-size: 0.76rem; font-weight: 700; text-transform: capitalize;
}
.status-saved { background: var(--brand-dim); color: var(--brand-deep); }
.status-applied { background: var(--warn-bg); color: var(--warn); }
.status-interviewing { background: #EAE2FD; color: #6B36D9; }
.status-offer { background: var(--pass-bg); color: var(--pass); }
.status-rejected { background: var(--flag-bg); color: var(--flag); }
.status-withdrawn { background: var(--line); color: var(--ink-soft); }

.status-select {
    border: 1px solid var(--line); border-radius: 8px; padding: 0.3rem 0.5rem; font-size: 0.8rem;
    background: var(--paper-raised); color: var(--ink); font-family: var(--font-body);
}

.tracker-empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-soft); }

.tracker-followup {
    font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.5rem;
    padding: 0.35rem 0.6rem; border-radius: 6px; background: var(--paper-raised); display: inline-block;
}
.tracker-followup.due { background: var(--warn-bg); color: var(--warn); font-weight: 600; }

.tracker-limit-banner {
    background: var(--warn-bg); color: var(--warn); border-radius: var(--radius);
    padding: 0.8rem 1rem; font-size: 0.85rem; margin-bottom: 1rem; display: flex;
    justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}

@media (max-width: 640px) {
    .tracker-stats { grid-template-columns: repeat(3, 1fr); }
    .application-card-head { flex-direction: column; }
}

/* ---------------------------------------------------------------------------
   Version compare
--------------------------------------------------------------------------- */

#compare-card select {
    width: 100%; padding: 0.5rem 0.6rem; border: 1px solid var(--line);
    border-radius: 8px; background: var(--paper-raised); color: var(--ink);
    font-family: var(--font-body); font-size: 0.85rem;
}
.compare-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.45rem 0; border-bottom: 1px solid var(--line); font-size: 0.82rem;
}
.compare-row:last-child { border-bottom: none; }
.compare-label { color: var(--ink-soft); }
.compare-delta { font-weight: 700; font-family: var(--font-mono); }
.compare-delta.up-good { color: var(--pass); }
.compare-delta.up-bad { color: var(--flag); }
.compare-delta.down-good { color: var(--pass); }
.compare-delta.down-bad { color: var(--flag); }
.compare-delta.flat { color: var(--ink-soft); }
.compare-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.6rem; }
