/* ScoreMyOffers — one stylesheet, no inline styles (the CSP forbids them).
   Tokens first; light and dark share every rule below. */

:root {
  --bg: #f4f5fb;
  --bg-2: #eceefa;
  --surface: #ffffff;
  --surface-2: #f8f9fe;
  --surface-3: #eef0fa;
  --ink: #161a33;
  --ink-2: #444a6b;
  --ink-3: #6e7493;
  --line: #e2e5f2;
  --line-2: #d3d7ea;
  --brand: #4f46e5;
  --brand-2: #4338ca;
  --brand-ink: #ffffff;
  --brand-soft: #eceafe;
  --brand-softer: #f5f3ff;
  --accent: #f59e0b;
  --accent-soft: #fff4dc;
  --good: #059669;
  --good-soft: #e3f8ef;
  --bad: #dc2626;
  --bad-soft: #fde8e8;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --info: #0369a1;
  --info-soft: #e0f2fe;
  --remote: #3f4565;
  --remote-soft: #eef0f6;
  --hybrid: #3f4565;
  --hybrid-soft: #eef0f6;
  --onsite: #3f4565;
  --onsite-soft: #eef0f6;
  --unknown-soft: #eef0f6;
  --shadow-1: 0 1px 2px rgba(22, 26, 51, .06), 0 1px 1px rgba(22, 26, 51, .04);
  --shadow-2: 0 2px 4px rgba(22, 26, 51, .05), 0 8px 24px -6px rgba(40, 44, 90, .14);
  --shadow-3: 0 6px 12px rgba(22, 26, 51, .06), 0 24px 60px -12px rgba(50, 46, 140, .28);
  --ring: 0 0 0 3px rgba(99, 102, 241, .35);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --hero-1: #eef0fb;
  --hero-2: #f3f4f8;
  --hero-3: #f6f7fb;
  --grid-line: rgba(79, 70, 229, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1022; --bg-2: #121633; --surface: #171b36; --surface-2: #1c2142; --surface-3: #232a52;
    --ink: #eef0ff; --ink-2: #c1c6e6; --ink-3: #8f95ba; --line: #2a3060; --line-2: #363d73;
    --brand: #8b93f8; --brand-2: #8b93f8; --brand-ink: #0d1022; --brand-soft: #262a5c; --brand-softer: #1d2150;
    --accent: #fbbf24; --accent-soft: #3a2e12; --good: #34d399; --good-soft: #0f3328; --bad: #f87171; --bad-soft: #3d1a1d;
    --warn: #fbbf24; --warn-soft: #3a2e12; --info: #7dd3fc; --info-soft: #0c2c40;
    --remote: #c1c6e6; --remote-soft: #232a52; --hybrid: #c1c6e6; --hybrid-soft: #232a52; --onsite: #c1c6e6;
    --onsite-soft: #232a52; --unknown-soft: #242a4d;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 2px 4px rgba(0, 0, 0, .3), 0 10px 30px -8px rgba(0, 0, 0, .6);
    --shadow-3: 0 10px 20px rgba(0, 0, 0, .35), 0 30px 70px -10px rgba(0, 0, 0, .7);
    --hero-1: #151a3d; --hero-2: #121633; --hero-3: #121633; --grid-line: rgba(129, 140, 248, .08);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1022; --bg-2: #121633; --surface: #171b36; --surface-2: #1c2142; --surface-3: #232a52;
  --ink: #eef0ff; --ink-2: #c1c6e6; --ink-3: #8f95ba; --line: #2a3060; --line-2: #363d73;
  --brand: #8b93f8; --brand-2: #8b93f8; --brand-ink: #0d1022; --brand-soft: #262a5c; --brand-softer: #1d2150;
  --accent: #fbbf24; --accent-soft: #3a2e12; --good: #34d399; --good-soft: #0f3328; --bad: #f87171; --bad-soft: #3d1a1d;
  --warn: #fbbf24; --warn-soft: #3a2e12; --info: #7dd3fc; --info-soft: #0c2c40;
  --remote: #c1c6e6; --remote-soft: #232a52; --hybrid: #c1c6e6; --hybrid-soft: #232a52; --onsite: #c1c6e6;
  --onsite-soft: #232a52; --unknown-soft: #242a4d;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 2px 4px rgba(0, 0, 0, .3), 0 10px 30px -8px rgba(0, 0, 0, .6);
  --shadow-3: 0 10px 20px rgba(0, 0, 0, .35), 0 30px 70px -10px rgba(0, 0, 0, .7);
  --hero-1: #151a3d; --hero-2: #121633; --hero-3: #121633; --grid-line: rgba(129, 140, 248, .08);
  color-scheme: dark;
}

/* --- base ------------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); font-weight: 780; }
h3 { font-size: 1.15rem; font-weight: 720; }
p { margin: 0 0 1em; }
small, .small { font-size: .86rem; }
.muted { color: var(--ink-3); }
.ink-2 { color: var(--ink-2); }
.mono { font-family: var(--mono); font-size: .9em; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 760px; }
.mx-auto { margin-inline: auto; }
.kpi .delta .up { color: var(--good); }
.kpi .delta .down { color: var(--bad); }
.vbars.dense .vbar-label { font-size: .58rem; writing-mode: vertical-rl; transform: rotate(180deg); }
.vbars.dense .vbar-value { font-size: .6rem; }
/* Weekly / monthly switch on the subscription page: two radios, no script. */
.interval-radio { position: absolute; opacity: 0; pointer-events: none; }
.interval-switch { display: flex; gap: .25rem; width: max-content; margin: 0 auto 1.1rem; padding: .25rem; border-radius: 999px; background: var(--surface-3); }
.interval-switch label { padding: .45rem 1rem; border-radius: 999px; cursor: pointer; font-weight: 650; color: var(--ink-2); }
#every-month:checked ~ .interval-switch label[for=every-month], #every-week:checked ~ .interval-switch label[for=every-week] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
#every-month:focus-visible ~ .interval-switch label[for=every-month], #every-week:focus-visible ~ .interval-switch label[for=every-week] { outline: 2px solid var(--brand); outline-offset: 2px; }
#every-month:checked ~ .tiers .p-week, #every-week:checked ~ .tiers .p-month { display: none; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid-2 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-4 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }

/* --- buttons and forms --------------------------------------------------------------------- */
.btn {
  --b: var(--surface); --c: var(--ink); --l: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .62rem 1.05rem; border-radius: 12px; border: 1px solid var(--l); background: var(--b); color: var(--c);
  font: inherit; font-weight: 650; font-size: .95rem; line-height: 1.2; cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow-1); transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); color: var(--c); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary {
  --c: #fff; --l: transparent;
  background: var(--brand);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 14px -8px rgba(79, 70, 229, .6);
}
.btn-primary:hover { color: #fff; background: var(--brand-2); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 8px 18px -8px rgba(79, 70, 229, .7); }
.btn-ghost { --b: transparent; box-shadow: none; --l: transparent; color: var(--ink-2); }
.btn-ghost:hover { --b: var(--surface-3); box-shadow: none; }
.btn-soft { --b: var(--brand-soft); --c: var(--brand); --l: transparent; box-shadow: none; }
.btn-danger { --b: var(--bad-soft); --c: var(--bad); --l: transparent; box-shadow: none; }
.btn-good { --b: var(--good-soft); --c: var(--good); --l: transparent; box-shadow: none; }
.btn-lg { padding: .85rem 1.4rem; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: .38rem .7rem; font-size: .85rem; border-radius: 9px; }
.btn-icon { padding: .45rem; width: 2.25rem; height: 2.25rem; border-radius: 10px; }
.btn-block { width: 100%; }

label { font-weight: 620; font-size: .92rem; color: var(--ink-2); display: block; margin-bottom: .3rem; }
.field { margin-bottom: 1rem; }
.field-hint { font-size: .83rem; color: var(--ink-3); margin-top: .3rem; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=date],
select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 11px; padding: .62rem .8rem; transition: border .15s, box-shadow .15s;
}
textarea { min-height: 6rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input[type=checkbox], input[type=radio] { width: 1.1rem; height: 1.1rem; accent-color: var(--brand); flex: none; margin: .15rem 0 0; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; color: var(--ink-2); margin-bottom: .7rem; }
.check span { line-height: 1.45; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 3.2rem; }
.password-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.select-inline { width: auto; padding: .45rem 2rem .45rem .7rem; font-size: .92rem; }

.alert { border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; border: 1px solid transparent; font-size: .95rem; }
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert-error { background: var(--bad-soft); color: var(--bad); }
.alert-ok { background: var(--good-soft); color: var(--good); }
.alert-info { background: var(--info-soft); color: var(--info); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }

/* --- surfaces ---------------------------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: 1.35rem;
}
.card-flat { box-shadow: none; }
.card-soft { background: var(--surface-2); box-shadow: none; }
.card h2, .card h3 { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-tight { padding: 2rem 0; }
.eyebrow {
  display: inline-flex; gap: .4rem; align-items: center; font-size: .78rem; font-weight: 750; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-soft); border-radius: 99px; padding: .3rem .7rem;
  margin-bottom: 1rem;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-2); max-width: 46rem; }

.badge {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 680; border-radius: 99px;
  padding: .2rem .6rem; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; line-height: 1.4;
}
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-good { background: var(--good-soft); color: var(--good); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-accent { background: var(--accent-soft); color: var(--warn); }

/* --- site header ---------------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 30; backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 820; font-size: 1.15rem; color: var(--ink);
  text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem .7rem; border-radius: 10px; }
.nav a:not(.btn):hover { background: var(--surface-3); color: var(--ink); }
.nav-collapse { display: contents; }
@media (max-width: 720px) {
  .hide-sm { display: none !important; }
  .profile-switch select { max-width: 58vw; }
}
.banner { background: var(--brand); color: #fff; font-size: .9rem; text-align: center; padding: .45rem 16px; }
.banner a { color: #fff; font-weight: 700; }

/* --- footer ------------------------------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: 2.5rem 0; margin-top: 3rem; font-size: .9rem; color: var(--ink-3); }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-grid h4 { color: var(--ink); font-size: .9rem; margin-bottom: .6rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }

/* --- landing -------------------------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(60rem 30rem at 15% -10%, var(--hero-1), transparent 65%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1.05fr 1fr; align-items: center; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 .strike { position: relative; color: var(--ink-3); white-space: nowrap; }
.hero h1 .strike::after { content: ""; position: absolute; left: -2%; right: -2%; top: 55%; height: .1em; background: var(--ink-3); border-radius: 4px; transform: rotate(-2deg); opacity: .7; }
.grad-text { color: var(--brand); }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.6rem 0 1.1rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: var(--ink-3); font-size: .92rem; padding: 0; list-style: none; margin: 0; }
.hero-points li::before { content: "✓"; color: var(--good); font-weight: 800; margin-right: .4rem; }

.mock-stack { position: relative; min-height: 420px; perspective: 1400px; }
.mock-card { position: absolute; left: 0; right: 0; margin: 0 auto; max-width: 470px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-3); padding: 1.1rem 1.2rem; }
.mock-card.back-2 { top: 0; transform: translateY(0) scale(.9) rotate(-4deg); opacity: .55; filter: blur(.5px); }
.mock-card.back-1 { top: 22px; transform: scale(.95) rotate(3deg); opacity: .8; }
.mock-card.front { top: 56px; transform: rotate(-1deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: rotate(-1deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .mock-card.front { animation: none; } * { scroll-behavior: auto !important; } }
.mock-toast { position: absolute; right: 0; bottom: 6px; max-width: 260px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-3); padding: .8rem .95rem; font-size: .85rem; display: flex; gap: .65rem; align-items: flex-start; }
.mock-toast .tg { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #2aabee, #229ed9); flex: none; display: grid; place-items: center; color: #fff; font-weight: 900; }
.mock-dup { position: absolute; left: -8px; bottom: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-3); padding: .7rem .9rem; font-size: .85rem; max-width: 240px; }
@media (max-width: 520px) { .mock-toast, .mock-dup { position: static; margin-top: .75rem; max-width: none; } .mock-stack { min-height: 0; } .mock-card.back-1, .mock-card.back-2 { display: none; } .mock-card.front { position: relative; top: 0; } }

.logos { display: flex; flex-wrap: wrap; gap: .6rem; }
.problem-card { position: relative; padding-top: 3.3rem; }
.problem-card .num { position: absolute; top: 1.1rem; left: 1.35rem; font-size: .8rem; font-weight: 800; color: var(--ink-3);
  background: var(--surface-3); border-radius: 8px; padding: .15rem .5rem; }
.feature { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: 1fr 1fr; align-items: center; padding: clamp(2rem, 5vw, 3.5rem) 0; }
.feature.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.reverse > :first-child { order: 0; } }
.feature-visual { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-3); padding: 1.4rem; position: relative; overflow: hidden; }

.feature ul.ticks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; }
.feature ul.ticks li { padding-left: 1.7rem; position: relative; color: var(--ink-2); }
.feature ul.ticks li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234f46e5'%3E%3Cpath d='M8.1 13.4 4.7 10l-1.2 1.2 4.6 4.6 9.4-9.4-1.2-1.2z'/%3E%3C/svg%3E") center/80% no-repeat; }

.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.step { position: relative; padding-top: 3.6rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 1.1rem; left: 1.35rem; width: 2rem; height: 2rem;
  border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--brand); }
.funnel { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-weight: 750; font-size: 1.05rem; }
.funnel .n { font-size: 1.8rem; letter-spacing: -0.03em; }
.funnel .arrow { color: var(--ink-3); }

.pricing { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); max-width: 860px; margin: 0 auto; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-3); }
.price-card .price { font-size: 2.6rem; font-weight: 820; letter-spacing: -0.04em; }
.price-card .price small { font-size: 1rem; color: var(--ink-3); font-weight: 600; letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .55rem; flex: 1; }
.price-card li { padding-left: 1.6rem; position: relative; color: var(--ink-2); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.price-card li.no { color: var(--ink-3); }
.price-card li.no::before { content: "—"; color: var(--ink-3); }
.ribbon { position: absolute; top: -12px; right: 18px; background: var(--brand); color: #fff; font-weight: 800;
  font-size: .75rem; border-radius: 99px; padding: .25rem .7rem; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; box-shadow: var(--shadow-1); }
.faq details + details { margin-top: .75rem; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .7rem 0 0; color: var(--ink-2); }

.cta-band { border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); color: #fff; position: relative; overflow: hidden;
  background: #1e2140; box-shadow: var(--shadow-3); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); }
.cta-band .btn { --b: #fff; --c: #1e2140; --l: transparent; }

/* --- offer card (app, demo, landing mock) ------------------------------------------------------------------- */
.offers { display: grid; gap: .9rem; }
.offer {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1); padding: 1rem 1.1rem 1rem 4.9rem; transition: box-shadow .18s ease, transform .18s ease, opacity .25s ease;
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: .45rem;
}
/* One column, read top-down next to the score: the title, then salary, work mode and the
   application step (always in the same order, card after card), then everything else. */
.offer-main { display: contents; }
.offer-title { order: 1; }
.offer-facts { order: 2; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.offer-sub { order: 3; }
.offer .why { order: 4; }
.offer .rule-note { order: 5; }
.offer .offer-note { order: 6; }
.offer .offer-actions { order: 7; }
.ofact { display: contents; }
.ofact dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ofact dd { margin: 0; }
.ofact .fact { white-space: nowrap; font-size: .9rem; }
.offer:hover { box-shadow: var(--shadow-2); }
.offer.leaving { opacity: 0; transform: translateX(30px) scale(.98); }
.offer.is-single { border-color: var(--brand); box-shadow: var(--shadow-3); }
.score {
  position: absolute; left: 1rem; top: 1rem; width: 3.1rem; height: 3.1rem; border-radius: 14px; display: grid; place-items: center;
  font-weight: 830; font-size: 1.15rem; letter-spacing: -0.03em; color: var(--ink-2); background: var(--surface-3);
}
.score small { display: block; font-size: .58rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-top: -0.25rem; opacity: .8; }
.score .in { line-height: 1.1; text-align: center; }
.score.s-hot { color: #fff; background: var(--brand); }
.score.s-good { color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.score.s-ok { color: var(--brand); background: var(--brand-soft); }
.score.s-neg { color: var(--bad); background: var(--bad-soft); }
.offer-title { font-weight: 730; font-size: 1.05rem; line-height: 1.3; margin: 0 0 .15rem; letter-spacing: -0.01em; }
.offer-title a { color: var(--ink); text-decoration: none; }
.offer-title a:hover { color: var(--brand); text-decoration: underline; }
.offer-sub { color: var(--ink-2); font-size: .93rem; display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.offer-sub .dot { color: var(--ink-3); }
.facts { display: flex; flex-wrap: wrap; gap: .4rem; margin: .65rem 0 .5rem; }
.fact {
  position: relative; display: inline-flex; align-items: center; gap: .35rem; font-size: .83rem; font-weight: 650;
  border-radius: 9px; padding: .26rem .55rem; background: var(--surface-3); color: var(--ink-2); outline: none;
}
.fact .ic { font-size: .95em; }
.fact.mode-remote { background: var(--remote-soft); color: var(--remote); }
.fact.mode-hybrid { background: var(--hybrid-soft); color: var(--hybrid); }
.fact.mode-onsite { background: var(--onsite-soft); color: var(--onsite); }
.fact.mode-unknown { background: var(--unknown-soft); color: var(--ink-3); }
.fact.ral { background: var(--surface-3); color: var(--ink); font-weight: 750; }
.fact.ral-none { background: var(--unknown-soft); color: var(--ink-3); font-weight: 560; }
.fact.ral-up { background: var(--good-soft); color: var(--good); }
.fact.ral-down { background: var(--surface-3); color: var(--ink-3); }
.fact.app-step { background: var(--brand-soft); color: var(--brand); }
.fact.app-accettata, .fact.app-offerta { background: var(--good-soft); color: var(--good); }
.fact.app-scartato, .fact.app-rifiutata, .fact.app-nessuna_risposta { background: var(--surface-3); color: var(--ink-3); }
.fact .app-date { font-weight: 500; font-size: .8em; opacity: .75; }
.app-select { max-width: 16rem; font-size: .85rem; }
.pipeline { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .8rem; }
.pipeline a { text-decoration: none; }
.pipeline .fact.on { box-shadow: inset 0 0 0 1.5px currentColor; }
.more-filters { width: 100%; }
.more-filters > summary { cursor: pointer; font-size: .88rem; color: var(--ink-2); font-weight: 650; }
.more-filters .toolbar-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .5rem; }
.fact.closed { background: var(--bad-soft); color: var(--bad); }
.fact .report {
  position: absolute; top: -9px; right: -9px; width: 20px; height: 20px; border-radius: 50%; border: 0; padding: 0;
  font-size: .72rem; font-weight: 800; line-height: 20px; background: var(--ink); color: var(--bg); cursor: pointer;
  opacity: 0; transform: scale(.6); transition: opacity .12s, transform .12s; box-shadow: var(--shadow-2);
}
.fact:hover .report, .fact:focus-within .report, .fact:focus .report { opacity: 1; transform: scale(1); }
@media (hover: none) { .fact .report { opacity: .85; transform: scale(.85); } }
.fact .tip {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 5; width: max-content; max-width: 280px; background: var(--ink);
  color: var(--bg); font-size: .78rem; font-weight: 500; padding: .45rem .6rem; border-radius: 9px; box-shadow: var(--shadow-2);
  opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .12s, transform .12s;
}
.fact:hover .tip, .fact:focus .tip, .fact:focus-within .tip { opacity: 1; transform: translateY(0); }
.why { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; font-size: .8rem; }
.why .lbl { color: var(--ink-3); font-weight: 600; margin-right: .1rem; }
.word { border-radius: 7px; padding: .1rem .45rem; font-weight: 650; }
.word.plus { background: var(--good-soft); color: var(--good); }
.word.minus { background: var(--bad-soft); color: var(--bad); }
.word .x2 { font-size: .68em; opacity: .8; margin-left: .25rem; }
.rule-note { font-size: .82rem; color: var(--ink-3); margin-top: .4rem; }
.offer-note { margin-top: .5rem; background: var(--accent-soft); color: var(--ink-2); border-radius: 10px; padding: .45rem .65rem; font-size: .88rem; white-space: pre-wrap; }
.offer-actions { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .7rem; align-items: center; }
.offer-actions .spacer { flex: 1; }
.offer-meta { font-size: .8rem; color: var(--ink-3); }
@media (max-width: 560px) {
  .offer { padding: 4.3rem .9rem .9rem; gap: .6rem; }
  .score { left: .9rem; top: .9rem; width: auto; min-width: 3rem; height: 2.6rem; padding: 0 .7rem; }
  .score .in { display: flex; gap: .3rem; align-items: baseline; }
  .score small { margin: 0; }
}

/* --- app shell ------------------------------------------------------------------------------------------------------ */
.app-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.app-top .wrap { display: flex; align-items: center; gap: .9rem; min-height: 60px; }
.profile-switch { display: flex; align-items: center; gap: .4rem; }
.profile-switch select { width: auto; max-width: 22rem; font-weight: 650; padding: .4rem 2rem .4rem .7rem; background: var(--surface-2); }
.tabs { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 25; box-shadow: var(--shadow-1); }
.tabs .wrap { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.tabs .wrap::-webkit-scrollbar { display: none; }
.tabs a { position: relative; color: var(--ink-2); text-decoration: none; font-weight: 640; font-size: .93rem; padding: .85rem .8rem; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--brand); }
.tabs a.on::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.page { padding: 1.5rem 0 3rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.page-head h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }

.status-tabs { display: flex; gap: .35rem; flex-wrap: wrap; }
.status-tabs a { display: inline-flex; gap: .45rem; align-items: center; text-decoration: none; color: var(--ink-2); font-weight: 650; font-size: .92rem;
  padding: .5rem .85rem; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); }
.status-tabs a .n { font-size: .78rem; background: var(--surface-3); border-radius: 99px; padding: .05rem .5rem; color: var(--ink-3); }
.status-tabs a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.status-tabs a.on .n { background: rgba(255, 255, 255, .18); color: inherit; }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; }
.toolbar input[type=search] { max-width: 260px; }
.toolbar .grow { flex: 1; }
.chips { display: flex; gap: .35rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 620; color: var(--ink-2); text-decoration: none;
  border: 1px solid var(--line-2); background: var(--surface); padding: .35rem .7rem; border-radius: 99px; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand-soft); color: var(--brand); border-color: transparent; }

.backlog {
  display: grid; gap: 1rem; grid-template-columns: auto 1fr; align-items: center; border-radius: var(--radius); padding: 1.2rem 1.3rem; margin-bottom: 1.2rem;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); box-shadow: var(--shadow-1);
}
.backlog .big { font-size: 2.2rem; font-weight: 830; letter-spacing: -0.04em; color: var(--brand); line-height: 1; }
.backlog .acts { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
@media (max-width: 600px) { .backlog { grid-template-columns: 1fr; } }
.progress { height: 10px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--brand); transition: width .4s ease; }
.progress-label { display: flex; justify-content: space-between; font-size: .85rem; color: var(--ink-3); margin-top: .35rem; }
.pager { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; align-items: center; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-3); }
.empty .em { font-size: 2.5rem; margin-bottom: .5rem; }

/* KPI tiles and charts */
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brand); opacity: .55; }
.kpi .v { font-size: 1.9rem; font-weight: 820; letter-spacing: -0.04em; line-height: 1.1; }
.kpi .l { color: var(--ink-3); font-size: .86rem; font-weight: 600; }
.kpi .s { color: var(--ink-2); font-size: .82rem; margin-top: .3rem; }
.legend { display: flex; gap: 1rem; font-size: .83rem; color: var(--ink-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.legend .u { background: var(--brand); }
.legend .r { background: var(--accent); }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
table.t td { padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.periods { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }

/* triage */
.triage { max-width: 680px; margin: 0 auto; }
.triage .offer { padding: 1.4rem 1.4rem 1.2rem 5.4rem; grid-template-columns: minmax(0, 1fr); box-shadow: var(--shadow-3); min-height: 15rem; touch-action: pan-y; user-select: none; }
.triage .offer.drag { transition: none; }
.triage .offer.fly-right { transform: translateX(120%) rotate(8deg); opacity: 0; }
.triage .offer.fly-left { transform: translateX(-120%) rotate(-8deg); opacity: 0; }
.triage-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1rem; }
.triage-buttons .btn { flex-direction: column; gap: .15rem; padding: .8rem .4rem; }
.triage-buttons .btn kbd { font-size: .7rem; opacity: .7; }
kbd { font-family: var(--mono); font-size: .78em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 .3rem; background: var(--surface-2); color: var(--ink-2); }
.quick-word { display: flex; gap: .4rem; margin-top: 1rem; }
.quick-word input { flex: 1; }

/* words editor */
.word-rows { display: grid; gap: .45rem; }
.word-row { display: grid; grid-template-columns: 1fr 8.5rem 2.4rem; gap: .45rem; align-items: center; }
.word-row select.w-pos { color: var(--good); font-weight: 700; }
.word-row select.w-neg { color: var(--bad); font-weight: 700; }

/* auth pages */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 2rem 16px; background:
  radial-gradient(40rem 26rem at 0% 0%, var(--hero-1), transparent 60%), radial-gradient(40rem 26rem at 100% 100%, var(--hero-2), transparent 60%); }
.auth .card { width: 100%; max-width: 440px; padding: 1.8rem; box-shadow: var(--shadow-3); }
.auth h1 { font-size: 1.6rem; }
.auth .alt { text-align: center; font-size: .92rem; color: var(--ink-3); margin-top: 1.1rem; }
.qr svg.qr, svg.qr { width: 220px; height: 220px; border-radius: 12px; background: #fff; padding: 6px; box-shadow: var(--shadow-2); }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; font-family: var(--mono); font-size: 1rem; }
.codes span { background: var(--surface-3); border-radius: 8px; padding: .4rem .6rem; text-align: center; }

/* dialog */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(92vw, 460px); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); }
dialog::backdrop { background: rgba(13, 16, 34, .45); backdrop-filter: blur(3px); }
dialog form { padding: 1.4rem; }
dialog h3 { margin-bottom: .3rem; }
.dialog-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }

/* toast */
.toasts { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 100; display: grid; gap: .5rem; width: min(92vw, 420px); }
.toast { background: var(--ink); color: var(--bg); border-radius: 12px; padding: .7rem 1rem; font-size: .92rem; box-shadow: var(--shadow-3);
  display: flex; justify-content: space-between; gap: .8rem; align-items: center; animation: toast-in .2s ease; }
.toast button { background: none; border: 0; color: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; font: inherit; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* demo + tour */
.demo-bar { background: #1e2140; color: #fff; font-size: .9rem; }
.demo-bar .wrap { display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: .55rem; padding-bottom: .55rem; }
.demo-bar .btn { --b: rgba(255, 255, 255, .12); --c: #fff; --l: rgba(255, 255, 255, .25); box-shadow: none; }
.demo-bar .btn-primary { --c: #1e2140; background: #fff; color: #1e2140; }
.demo-bar .btn-primary:hover { background: #e0e7ff; color: #1e2140; }
.tour-focus { position: relative; z-index: 61 !important; box-shadow: 0 0 0 4px var(--brand), 0 0 0 9999px rgba(13, 16, 34, .55) !important; border-radius: 14px; }
.tour-bubble { position: absolute; z-index: 62; width: min(92vw, 360px); background: var(--surface); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-3);
  padding: 1.1rem 1.2rem 1rem; border: 1px solid var(--line); animation: toast-in .2s ease; }
.tour-bubble h4 { margin: 0 0 .35rem; font-size: 1.05rem; }
.tour-bubble p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.tour-bubble .tour-nav { display: flex; align-items: center; gap: .4rem; margin-top: .9rem; }
.tour-bubble .tour-count { font-size: .8rem; color: var(--ink-3); margin-right: auto; }
.tour-dots { display: flex; gap: 4px; margin-right: auto; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.tour-dots i.on { background: var(--brand); width: 16px; border-radius: 4px; }

/* legal and prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose li { margin-bottom: .35rem; color: var(--ink-2); }
.prose p { color: var(--ink-2); }
.draft-note { border: 2px dashed var(--warn); background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1.5rem; font-size: .92rem; }

/* admin */
.pre { white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: .8rem; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: .8rem; max-height: 28rem; overflow: auto; }
.dot-ok, .dot-bad { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .35rem; }
.dot-ok { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.dot-bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.em { font-size: 2.6rem; line-height: 1; margin-bottom: .6rem; }
.kpi-like { margin: .4rem 0 .9rem; }
.kpi-like .big { font-size: 2.3rem; font-weight: 820; letter-spacing: -0.04em; color: var(--brand); }
.auth .card.center { max-width: 520px; }

.word.excl { background: var(--ink); color: var(--bg); }
.exclusion-strip { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; border: 1px dashed var(--line-2); background: var(--surface);
  border-radius: 14px; padding: .7rem .9rem; margin-bottom: 1rem; font-size: .92rem; color: var(--ink-2); }
.exclusion-strip .ic { font-size: 1.3rem; }
.exclusion-strip > span:nth-child(2) { flex: 1; min-width: 14rem; }
.word-row select.w-excl { color: var(--bad); font-weight: 800; background: var(--bad-soft); }
.vs { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .vs { grid-template-columns: 1fr; } }
.vs .side { border-radius: var(--radius); padding: 1rem 1.1rem; border: 1px solid var(--line); background: var(--surface); }
.vs .side.them { background: var(--surface-2); }
.vs .side h4 { margin: 0 0 .6rem; font-size: .95rem; }
.sponsored { display: inline-flex; gap: .3rem; align-items: center; font-size: .72rem; font-weight: 700; color: var(--ink-3); background: var(--surface-3); border-radius: 6px; padding: .1rem .4rem; }
.mini-list { display: grid; gap: .45rem; }
.mini-item { display: flex; gap: .6rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .55rem .7rem; font-size: .9rem; }
.mini-item .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-item.gone { opacity: .45; text-decoration: line-through; }
.mini-score { font-weight: 800; font-size: .85rem; min-width: 2.4rem; text-align: center; border-radius: 8px; padding: .15rem .3rem; background: var(--brand-soft); color: var(--brand); }
.mini-score.hot { background: var(--brand); color: #fff; }
.mini-score.neg { background: var(--bad-soft); color: var(--bad); }

/* --- bar charts in HTML (widths and heights by class: no inline styles under the CSP) --- */
.hbars { display: grid; gap: .55rem; }
.hbar { display: grid; grid-template-columns: minmax(5.5rem, 8rem) 1fr 2.6rem; gap: .7rem; align-items: center; font-size: .9rem; }
.hbar-label { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { height: .85rem; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.hbar-value { font-weight: 750; font-variant-numeric: tabular-nums; text-align: right; }
.hbars.modes .fill-unknown { background: var(--line-2); }
.vbars { display: flex; align-items: stretch; gap: .5rem; height: 13rem; padding-top: .3rem; }
.vbar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.vbar-value { font-size: .82rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.vbar-track { flex: 1; width: 100%; max-width: 3.2rem; display: flex; align-items: flex-end; }
.vbar-fill { display: block; width: 100%; border-radius: 8px 8px 3px 3px; background: var(--brand); }
.vbar-label { font-size: .75rem; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 560px) { .vbar-label { font-size: .65rem; } .vbars { gap: .25rem; } }
.w-0 { width: 0%; }
.w-2 { width: 2%; }
.w-4 { width: 4%; }
.w-6 { width: 6%; }
.w-8 { width: 8%; }
.w-10 { width: 10%; }
.w-12 { width: 12%; }
.w-14 { width: 14%; }
.w-16 { width: 16%; }
.w-18 { width: 18%; }
.w-20 { width: 20%; }
.w-22 { width: 22%; }
.w-24 { width: 24%; }
.w-26 { width: 26%; }
.w-28 { width: 28%; }
.w-30 { width: 30%; }
.w-32 { width: 32%; }
.w-34 { width: 34%; }
.w-36 { width: 36%; }
.w-38 { width: 38%; }
.w-40 { width: 40%; }
.w-42 { width: 42%; }
.w-44 { width: 44%; }
.w-46 { width: 46%; }
.w-48 { width: 48%; }
.w-50 { width: 50%; }
.w-52 { width: 52%; }
.w-54 { width: 54%; }
.w-56 { width: 56%; }
.w-58 { width: 58%; }
.w-60 { width: 60%; }
.w-62 { width: 62%; }
.w-64 { width: 64%; }
.w-66 { width: 66%; }
.w-68 { width: 68%; }
.w-70 { width: 70%; }
.w-72 { width: 72%; }
.w-74 { width: 74%; }
.w-76 { width: 76%; }
.w-78 { width: 78%; }
.w-80 { width: 80%; }
.w-82 { width: 82%; }
.w-84 { width: 84%; }
.w-86 { width: 86%; }
.w-88 { width: 88%; }
.w-90 { width: 90%; }
.w-92 { width: 92%; }
.w-94 { width: 94%; }
.w-96 { width: 96%; }
.w-98 { width: 98%; }
.w-100 { width: 100%; }
.h-0 { height: 0%; }
.h-2 { height: 2%; }
.h-4 { height: 4%; }
.h-6 { height: 6%; }
.h-8 { height: 8%; }
.h-10 { height: 10%; }
.h-12 { height: 12%; }
.h-14 { height: 14%; }
.h-16 { height: 16%; }
.h-18 { height: 18%; }
.h-20 { height: 20%; }
.h-22 { height: 22%; }
.h-24 { height: 24%; }
.h-26 { height: 26%; }
.h-28 { height: 28%; }
.h-30 { height: 30%; }
.h-32 { height: 32%; }
.h-34 { height: 34%; }
.h-36 { height: 36%; }
.h-38 { height: 38%; }
.h-40 { height: 40%; }
.h-42 { height: 42%; }
.h-44 { height: 44%; }
.h-46 { height: 46%; }
.h-48 { height: 48%; }
.h-50 { height: 50%; }
.h-52 { height: 52%; }
.h-54 { height: 54%; }
.h-56 { height: 56%; }
.h-58 { height: 58%; }
.h-60 { height: 60%; }
.h-62 { height: 62%; }
.h-64 { height: 64%; }
.h-66 { height: 66%; }
.h-68 { height: 68%; }
.h-70 { height: 70%; }
.h-72 { height: 72%; }
.h-74 { height: 74%; }
.h-76 { height: 76%; }
.h-78 { height: 78%; }
.h-80 { height: 80%; }
.h-82 { height: 82%; }
.h-84 { height: 84%; }
.h-86 { height: 86%; }
.h-88 { height: 88%; }
.h-90 { height: 90%; }
.h-92 { height: 92%; }
.h-94 { height: 94%; }
.h-96 { height: 96%; }
.h-98 { height: 98%; }
.h-100 { height: 100%; }

.mass-panel > summary { list-style: none; cursor: pointer; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.mass-panel > summary::-webkit-details-marker { display: none; }
.mass-panel > summary h2 { margin: 0; font-size: 1.2rem; }
.mass-panel > summary::after { content: "▾"; margin-left: auto; color: var(--ink-3); }
.mass-panel[open] > summary { margin-bottom: .8rem; }

/* plan picker */
.tiers { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); max-width: 980px; margin: 0 auto; align-items: stretch; }
.tier { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.tier:hover { transform: translateY(-2px); }
.tier-radio { position: absolute; opacity: 0; pointer-events: none; }
.tier-pick { display: block; text-align: center; font-weight: 700; border-radius: 12px; padding: .6rem; background: var(--surface-3); color: var(--ink-2); }
.tier:has(.tier-radio:checked) { border: 2px solid var(--brand); box-shadow: var(--shadow-3); }
.tier:has(.tier-radio:checked) .tier-pick { background: var(--brand); color: #fff; }
.tier:has(.tier-radio:focus-visible) { box-shadow: var(--ring), var(--shadow-3); }
.tier.featured { transform: translateY(-6px); }
@media (max-width: 760px) { .tier.featured { transform: none; } }

.card.section-tight { padding: 1.35rem; margin: 1.25rem 0; }
.periods input[type=date] { width: auto; }
.mass-panel { margin-bottom: 1rem; }
.stat-list { display: grid; gap: .1rem; }
.stat-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.stat-list > div:last-child { border-bottom: 0; }
.stat-list b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }

.exclusion-strip .word.excl, .why .word { display: inline-block; margin: .1rem .15rem .1rem 0; }
.brand { flex: none; }
.brand-mark { min-width: 32px; }
@media (max-width: 720px) { .profile-switch { min-width: 0; flex: 1; } .profile-switch select { max-width: 100%; width: 100%; } }
/* Offer cards drawn on the home page. */
.offer.offer-mock { padding-top: .9rem; padding-bottom: .9rem; }
.mock-card.front { padding: 0; border: 0; background: transparent; box-shadow: none; }
.mock-card.front .offer { box-shadow: var(--shadow-3); }
.mock-dup { bottom: 20px; }
.vs > .side { min-width: 0; }
.footer-note { margin-top: 2rem; }
.tier { font-weight: 400; color: var(--ink); }
.check input[type=number], .periods input[type=number] { width: 6.5rem; display: inline-block; padding: .35rem .5rem; margin: 0 .25rem; }
/* The score badge sits above the title on phones: drawn cards need the same room. */
@media (max-width: 560px) {
  .offer.offer-mock { padding-top: 4.1rem; }
  .mock-card.front { transform: none; animation: none; }
}
.brand-my { color: var(--brand); }

.lang-switch { font-size: .8rem !important; font-weight: 750 !important; letter-spacing: .04em; border: 1px solid var(--line-2); border-radius: 8px; padding: .25rem .45rem !important; }
