/* ============================================================
   NIS2-Narzedzia.pl — Main Stylesheet
   Design: clean B2B compliance — navy + white + green CTA
   ============================================================ */

:root {
  --navy:       #1a3a5c;
  --navy-dark:  #0f2540;
  --navy-light: #2a5080;
  --green:      #16a34a;
  --green-dark: #15803d;
  --red:        #dc2626;
  --yellow:     #ca8a04;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-300:   #cbd5e1;
  --gray-500:   #64748b;
  --gray-700:   #334155;
  --gray-900:   #0f172a;
  --white:      #ffffff;
  --radius:     6px;
  --shadow:     0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-light); }

/* ── Typography ── */
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.15; color: var(--gray-900); }
h2 { font-size: clamp(1.35rem, 2.5vw, 2rem);  font-weight: 700; line-height: 1.2;  color: var(--gray-900); }
h3 { font-size: clamp(1.1rem,  2vw,  1.4rem); font-weight: 700; line-height: 1.3;  color: var(--gray-900); }
h4 { font-size: 1rem; font-weight: 600; color: var(--gray-700); }

p { margin-bottom: 1rem; color: var(--gray-700); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--gray-700); }
li { margin-bottom: .35rem; }

strong { color: var(--gray-900); }

/* ── Layout ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 1.25rem; }

section { padding: 4rem 0; }
section:nth-of-type(even) { background: var(--gray-50); }

/* ── Navigation ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; gap: 1.5rem;
}
.nav__logo {
  font-size: 1.15rem; font-weight: 800; color: var(--navy);
  white-space: nowrap;
}
.nav__logo span { color: var(--green); }
.nav__links {
  display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0;
}
.nav__links a { font-size: .9rem; font-weight: 500; color: var(--gray-700); }
.nav__links a:hover { color: var(--navy); }
.nav__cta {
  background: var(--navy); color: var(--white) !important;
  padding: .45rem 1rem; border-radius: var(--radius);
  font-size: .85rem; font-weight: 600; white-space: nowrap;
}
.nav__cta:hover { background: var(--navy-dark) !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.4rem; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all .15s;
  text-decoration: none;
}
.btn--primary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn--primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--lg { padding: .9rem 1.8rem; font-size: 1.05rem; }
.btn--sm { padding: .4rem .85rem; font-size: .82rem; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--white); padding: 5rem 0 4rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero p   { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; }
.hero__badges {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem;
}
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .9rem; border-radius: 20px;
  font-size: .82rem; font-weight: 600; white-space: nowrap;
}
.badge--red    { background: rgba(220,38,38,.15); color: #fca5a5; border: 1px solid rgba(220,38,38,.3); }
.badge--green  { background: rgba(22,163,74,.15);  color: #86efac; border: 1px solid rgba(22,163,74,.3); }
.badge--yellow { background: rgba(202,138,4,.15);  color: #fde68a; border: 1px solid rgba(202,138,4,.3); }
.badge--blue   { background: rgba(59,130,246,.15); color: #93c5fd; border: 1px solid rgba(59,130,246,.3); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Stats strip ── */
.stats {
  background: var(--navy-dark); color: var(--white);
  padding: 1.5rem 0;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem; text-align: center;
}
.stat__number { font-size: 2rem; font-weight: 800; color: var(--white); }
.stat__label  { font-size: .8rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .05em; }

/* ── Alert box ── */
.alert {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.1rem 1.25rem; border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.alert--red    { background: #fef2f2; border: 1px solid #fecaca; }
.alert--yellow { background: #fffbeb; border: 1px solid #fde68a; }
.alert--green  { background: #f0fdf4; border: 1px solid #bbf7d0; }
.alert--blue   { background: #eff6ff; border: 1px solid #bfdbfe; }
.alert__icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1; }
.alert__text { font-size: .9rem; color: var(--gray-700); }
.alert__text strong { display: block; margin-bottom: .25rem; font-size: .95rem; color: var(--gray-900); }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: .55rem; top: 0; bottom: 0;
  width: 2px; background: var(--gray-200);
}
.timeline__item { position: relative; margin-bottom: 2rem; }
.timeline__item::before {
  content: ''; position: absolute; left: -1.875rem; top: .35rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--navy); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--navy);
}
.timeline__item.past::before  { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.timeline__item.urgent::before { background: var(--red);  box-shadow: 0 0 0 2px var(--red); }
.timeline__date { font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--gray-500); margin-bottom: .2rem; }
.timeline__item.urgent .timeline__date { color: var(--red); }
.timeline__title { font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.timeline__desc  { font-size: .88rem; color: var(--gray-500); margin-top: .25rem; }

/* ── Section headers ── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p   { color: var(--gray-500); font-size: 1.05rem; max-width: 580px; margin: 0 auto; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--green); margin-bottom: .5rem;
}

/* ── Tool cards (homepage picks) ── */
.picks-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.pick-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 10px; padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, border-color .2s;
}
.pick-card:hover { box-shadow: var(--shadow-lg); border-color: var(--gray-300); }
.pick-card__label {
  font-size: .73rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--green); margin-bottom: .5rem;
}
.pick-card__name { font-size: 1.15rem; font-weight: 800; margin-bottom: .3rem; }
.pick-card__price { font-size: .82rem; color: var(--gray-500); margin-bottom: .75rem; }
.pick-card__desc  { font-size: .88rem; color: var(--gray-700); margin-bottom: 1rem; }
.pick-card__pros  { list-style: none; padding: 0; margin-bottom: 1rem; }
.pick-card__pros li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.pick-card__pros li { font-size: .85rem; color: var(--gray-700); }

/* ── Comparison table ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 2rem; }
.comp-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.comp-table th {
  background: var(--navy); color: var(--white);
  padding: .75rem 1rem; text-align: left;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap;
}
.comp-table th:first-child { border-radius: 6px 0 0 0; }
.comp-table th:last-child  { border-radius: 0 6px 0 0; }
.comp-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr:hover td { background: var(--gray-50); }
.comp-table .tool-name { font-weight: 700; color: var(--gray-900); }
.comp-table .tool-sub  { font-size: .78rem; color: var(--gray-500); }
.comp-table .badge-sm {
  display: inline-block; padding: .15rem .55rem;
  border-radius: 12px; font-size: .72rem; font-weight: 600;
}
.badge-sm--green  { background: #dcfce7; color: #166534; }
.badge-sm--yellow { background: #fefce8; color: #854d0e; }
.badge-sm--red    { background: #fee2e2; color: #991b1b; }
.badge-sm--blue   { background: #dbeafe; color: #1e40af; }
.badge-sm--gray   { background: var(--gray-100); color: var(--gray-700); }
.check { color: var(--green); font-weight: 700; }
.cross { color: var(--red); }

/* ── Tool profiles ── */
.tool-profile {
  border: 1px solid var(--gray-200); border-radius: 10px;
  padding: 2rem; margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.tool-profile__header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem;
}
.tool-profile__name { font-size: 1.35rem; font-weight: 800; margin-bottom: .2rem; }
.tool-profile__tag  { font-size: .8rem; color: var(--gray-500); }
.tool-profile__badge {
  font-size: .75rem; font-weight: 700; padding: .3rem .8rem;
  border-radius: 20px; background: var(--green); color: var(--white);
  white-space: nowrap; align-self: flex-start;
}
.tool-profile__body { font-size: .9rem; color: var(--gray-700); margin-bottom: 1.25rem; }
.tool-profile__cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.tool-profile__col h4 { margin-bottom: .5rem; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--gray-500); }
.pros-list { list-style: none; padding: 0; }
.pros-list li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.cons-list { list-style: none; padding: 0; }
.cons-list li::before { content: '✗ '; color: var(--red); font-weight: 700; }
.pros-list li, .cons-list li { font-size: .85rem; color: var(--gray-700); margin-bottom: .3rem; }
.tool-profile__price {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: .75rem 1rem;
  font-size: .88rem; color: var(--gray-700); margin-bottom: 1rem;
}
.tool-profile__price strong { color: var(--gray-900); }
.tool-profile__footer {
  display: flex; gap: .75rem; flex-wrap: wrap; align-items: center;
}

/* ── Quiz ── */
.quiz-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 2.5rem; box-shadow: var(--shadow-lg);
  max-width: 680px; margin: 0 auto;
}
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-step h3 { margin-bottom: .5rem; }
.quiz-step p  { font-size: .9rem; color: var(--gray-500); margin-bottom: 1.5rem; }
.quiz-progress {
  height: 4px; background: var(--gray-200); border-radius: 2px;
  margin-bottom: 2rem;
}
.quiz-progress__bar { height: 100%; background: var(--navy); border-radius: 2px; transition: width .3s; }
.quiz-options { display: flex; flex-direction: column; gap: .75rem; }
.quiz-option {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border: 2px solid var(--gray-200);
  border-radius: 8px; cursor: pointer; transition: all .15s;
  background: var(--white); text-align: left; width: 100%;
}
.quiz-option:hover { border-color: var(--navy); background: var(--gray-50); }
.quiz-option.selected { border-color: var(--navy); background: #eff6ff; }
.quiz-option__icon { font-size: 1.5rem; flex-shrink: 0; }
.quiz-option__text { font-size: .9rem; font-weight: 600; color: var(--gray-900); }
.quiz-option__sub  { font-size: .78rem; color: var(--gray-500); display: block; }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 2rem; gap: 1rem; }
.quiz-result { text-align: center; padding: 1rem 0; }
.quiz-result__icon { font-size: 3.5rem; margin-bottom: 1rem; }
.quiz-result h3 { margin-bottom: .75rem; }
.quiz-result p  { max-width: 480px; margin: 0 auto 1.5rem; }
.result--yes { color: var(--red); }
.result--no  { color: var(--green); }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item:first-child { border-top: 1px solid var(--gray-200); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 0; cursor: pointer; gap: 1rem;
  font-weight: 600; font-size: .95rem; color: var(--gray-900);
  background: none; border: none; width: 100%; text-align: left;
}
.faq-question:hover { color: var(--navy); }
.faq-question .faq-icon { font-size: 1.2rem; flex-shrink: 0; color: var(--gray-500); transition: transform .2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 0 1.25rem; font-size: .9rem; color: var(--gray-700); }
.faq-item.open .faq-answer { display: block; }

/* ── CTA section ── */
.cta-section {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white); text-align: center; padding: 5rem 0;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 520px; margin: 0 auto 2rem; }

/* ── Footer ── */
.footer {
  background: var(--navy-dark); color: rgba(255,255,255,.6);
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 1.5rem;
}
.footer__logo { font-size: 1rem; font-weight: 800; color: var(--white); }
.footer__logo span { color: var(--green); }
.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__links a { font-size: .82rem; color: rgba(255,255,255,.6); }
.footer__links a:hover { color: var(--white); }
.footer__copy { font-size: .78rem; width: 100%; margin-top: .5rem; }
.footer__disclaimer {
  font-size: .72rem; color: rgba(255,255,255,.4);
  margin-top: .75rem; line-height: 1.5;
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: .8rem; color: var(--gray-500);
  padding: .75rem 0; border-bottom: 1px solid var(--gray-200);
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { margin: 0 .4rem; }

/* ── Rating stars ── */
.stars { color: #f59e0b; letter-spacing: .05em; }
.rating { display: flex; align-items: center; gap: .4rem; }
.rating__score { font-weight: 700; font-size: .9rem; }
.rating__count { font-size: .78rem; color: var(--gray-500); }

/* ── Table of contents ── */
.toc {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.toc h4 { margin-bottom: .75rem; font-size: .85rem; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .06em; }
.toc ol  { padding-left: 1.25rem; margin: 0; }
.toc li  { font-size: .88rem; margin-bottom: .3rem; }
.toc a   { color: var(--navy); }

/* ── Utility ── */
.text-center { text-align: center; }
.text-sm     { font-size: .875rem; }
.text-gray   { color: var(--gray-500); }
.mt-1  { margin-top: .5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mb-4  { margin-bottom: 2rem; }
.gap-row { display: flex; flex-direction: column; gap: 1rem; }

/* ── Two-col layout ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ── Info box ── */
.info-box {
  background: var(--gray-50); border-left: 4px solid var(--navy);
  padding: 1.1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.5rem;
}
.info-box p { font-size: .88rem; margin: 0; }

/* ── Penalty box ── */
.penalty-box {
  background: #fff1f2; border: 1px solid #fecdd3; border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin-bottom: 2rem;
}
.penalty-box h4 { color: var(--red); margin-bottom: .5rem; }
.penalty-box p  { font-size: .88rem; color: #9f1239; margin: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  section { padding: 2.5rem 0; }
  .nav__links { display: none; }
  .two-col, .three-col { grid-template-columns: 1fr; }
  .tool-profile__cols { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 3rem 0 2.5rem; }
  .comp-table { font-size: .78rem; }
  .comp-table td, .comp-table th { padding: .6rem .75rem; }
}
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .quiz-nav { flex-direction: column-reverse; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ── Extra button sizes ── */
.btn--xs { padding: .28rem .65rem; font-size: .75rem; font-weight: 600; }

/* ── Deadline countdown display ── */
.deadline-counter {
  display: inline-flex; align-items: baseline; gap: .3rem;
  font-weight: 800; color: var(--red);
}
.deadline-counter__days { font-size: 1.6rem; line-height: 1; }
.deadline-counter__label { font-size: .8rem; font-weight: 600; color: var(--gray-500); }

/* ── Best-pick hero bar (porownanie.html) ── */
.best-pick-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; margin-bottom: 2.5rem;
}
.best-pick-card {
  background: var(--white); border: 2px solid var(--gray-200);
  border-radius: 10px; padding: 1.1rem 1.25rem;
  display: flex; flex-direction: column; gap: .5rem;
  transition: border-color .15s, box-shadow .15s;
}
.best-pick-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); }
.best-pick-card--featured { border-color: var(--green); background: #f0fdf4; }
.best-pick-card__label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--gray-500);
}
.best-pick-card--featured .best-pick-card__label { color: var(--green); }
.best-pick-card__name { font-size: 1.1rem; font-weight: 800; color: var(--gray-900); }
.best-pick-card__desc { font-size: .82rem; color: var(--gray-600); flex: 1; }
.best-pick-card__cta {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .82rem; font-weight: 700; color: var(--navy);
  text-decoration: none; margin-top: .25rem;
}
.best-pick-card--featured .best-pick-card__cta { color: var(--green-dark); }

/* ── Editorial / advertiser disclosure ── */
.editorial-note {
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: var(--radius); padding: .85rem 1.1rem;
  font-size: .8rem; color: var(--gray-700);
  margin-bottom: 1.25rem; line-height: 1.5;
}
.editorial-note strong { color: var(--gray-900); }

/* ── Inline email capture ── */
.email-capture-box {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  border-radius: 10px; padding: 1.75rem 2rem;
  color: var(--white); margin: 2rem 0;
}
.email-capture-box h3 { color: var(--white); margin-bottom: .4rem; font-size: 1.15rem; }
.email-capture-box p  { color: rgba(255,255,255,.8); font-size: .88rem; margin-bottom: 1rem; }
.email-capture-row {
  display: flex; gap: .6rem; flex-wrap: wrap;
}
.form-input {
  flex: 1; min-width: 200px;
  padding: .65rem .9rem; border-radius: var(--radius);
  border: 2px solid var(--gray-300); font-size: .9rem;
  font-family: inherit; outline: none; background: var(--white);
  color: var(--gray-900); transition: border-color .15s;
}
.form-input:focus { border-color: var(--navy); }
.form-input::placeholder { color: var(--gray-500); }

/* ── Social proof counter ── */
.social-proof {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: var(--gray-500); margin-top: .75rem;
}
.social-proof__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.85); }
}

/* ── Sticky CTA bar (mobile) ── */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--navy-dark); color: var(--white);
  padding: .75rem 1rem; z-index: 200;
  transform: translateY(100%); transition: transform .3s ease;
  box-shadow: 0 -4px 12px rgba(0,0,0,.2);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta__inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.sticky-cta__inner span { font-size: .88rem; color: rgba(255,255,255,.85); }
.sticky-cta__inner strong { color: var(--white); }
.sticky-cta__close {
  background: none; border: none; color: rgba(255,255,255,.6);
  font-size: 1.1rem; cursor: pointer; padding: .2rem .4rem;
  line-height: 1; flex-shrink: 0;
}
.sticky-cta__close:hover { color: var(--white); }

/* ── Exit intent overlay ── */
.exit-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15,37,64,.7); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
  padding: 1rem;
}
.exit-overlay.visible { opacity: 1; pointer-events: auto; }
.exit-modal {
  background: var(--white); border-radius: 14px;
  padding: 2.5rem 2rem; max-width: 440px; width: 100%;
  text-align: center; position: relative;
  box-shadow: var(--shadow-lg);
}
.exit-modal__close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; font-size: 1.25rem;
  color: var(--gray-500); cursor: pointer; line-height: 1;
}
.exit-modal__close:hover { color: var(--gray-900); }
.exit-modal__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.exit-modal h3 { margin-bottom: .5rem; }
.exit-modal p  { font-size: .9rem; color: var(--gray-600); margin-bottom: 1.25rem; }
.exit-modal__form { display: flex; flex-direction: column; gap: .6rem; }
.exit-modal__skip {
  display: block; margin-top: 1rem;
  font-size: .78rem; color: var(--gray-500); text-decoration: underline;
}
.exit-modal__skip:hover { color: var(--gray-700); }

/* ── Quiz email gate ── */
.quiz-email-gate { text-align: center; padding: 1rem 0 .5rem; }
.quiz-email-gate h3 { margin-bottom: .5rem; }
.quiz-email-gate p  { font-size: .88rem; color: var(--gray-600); margin-bottom: 1.25rem; }
.quiz-gate-form { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.quiz-gate-skip {
  font-size: .78rem; color: var(--gray-500);
  background: none; border: none; cursor: pointer;
  text-decoration: underline; margin-top: .25rem;
}
.quiz-gate-skip:hover { color: var(--gray-700); }

/* ── Personalized result tool grid ── */
.result-tools {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin: 1.5rem 0; text-align: left;
}
@media (max-width: 540px) { .result-tools { grid-template-columns: 1fr; } }
.result-tool-card {
  border: 2px solid var(--gray-200); border-radius: 10px;
  padding: 1rem; display: flex; flex-direction: column; gap: .4rem;
  transition: border-color .15s, box-shadow .15s;
}
.result-tool-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); }
.result-tool-card:first-child { border-color: var(--green); background: #f0fdf4; }
.result-tool-card__rank {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--gray-500);
}
.result-tool-card:first-child .result-tool-card__rank { color: var(--green-dark); }
.result-tool-card__name { font-size: 1rem; font-weight: 800; color: var(--gray-900); }
.result-tool-card__tag  { font-size: .78rem; color: var(--gray-600); }
.result-tool-card__price { font-size: .8rem; font-weight: 600; color: var(--navy); }
.result-tool-card__actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .25rem; }

/* ── Penalty / fine calculator ── */
.penalty-result {
  background: #fff1f2; border: 2px solid #fecdd3;
  border-radius: 10px; padding: 1.25rem 1.5rem;
  margin: 1.5rem 0; text-align: center;
}
.penalty-result__amount {
  font-size: 2.2rem; font-weight: 800; color: var(--red);
  line-height: 1; margin: .5rem 0;
}
.penalty-result__label { font-size: .82rem; color: #9f1239; }
.calc-control { margin-bottom: 1.5rem; }
.calc-control label {
  display: flex; justify-content: space-between;
  font-size: .88rem; font-weight: 600; color: var(--gray-700);
  margin-bottom: .4rem;
}
.calc-control label span { font-weight: 700; color: var(--navy); }
.calc-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  background: var(--gray-200); outline: none; cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy); cursor: pointer;
  box-shadow: var(--shadow);
}
.calc-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy); cursor: pointer; border: none;
}

/* ── Methodology / scoring accordion ── */
.methodology-box {
  border: 1px solid var(--gray-200); border-radius: 8px;
  overflow: hidden; margin-top: .5rem;
}
.methodology-toggle {
  width: 100%; display: flex; justify-content: space-between;
  align-items: center; padding: .65rem .9rem;
  background: var(--gray-50); border: none; cursor: pointer;
  font-size: .78rem; color: var(--gray-500); font-weight: 600;
  font-family: inherit; gap: .5rem;
}
.methodology-toggle:hover { background: var(--gray-100); color: var(--gray-700); }
.methodology-toggle .arrow { transition: transform .2s; font-style: normal; }
.methodology-box.open .arrow { transform: rotate(180deg); }
.methodology-scores {
  display: none; padding: .75rem .9rem; background: var(--white);
}
.methodology-box.open .methodology-scores { display: block; }
.score-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .3rem 0; border-bottom: 1px solid var(--gray-100);
  font-size: .8rem;
}
.score-row:last-child { border-bottom: none; }
.score-row__label { color: var(--gray-700); }
.score-row__bar-wrap {
  display: flex; align-items: center; gap: .5rem;
}
.score-row__bar {
  width: 80px; height: 5px; background: var(--gray-200);
  border-radius: 3px; overflow: hidden;
}
.score-row__fill { height: 100%; background: var(--green); border-radius: 3px; }
.score-row__val { font-weight: 700; color: var(--navy); min-width: 2.5rem; text-align: right; font-size: .78rem; }

/* ── Alternatives section (review pages) ── */
.alternatives-section { margin: 2.5rem 0; }
.alternatives-section h3 {
  font-size: 1rem; color: var(--gray-500); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem;
}
.alt-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
}
@media (max-width: 600px) { .alt-grid { grid-template-columns: 1fr; } }
.alt-card {
  border: 1px solid var(--gray-200); border-radius: 8px;
  padding: .9rem 1rem; transition: border-color .15s, box-shadow .15s;
  display: flex; flex-direction: column; gap: .35rem; text-decoration: none;
}
.alt-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); color: inherit; }
.alt-card__name { font-size: .95rem; font-weight: 700; color: var(--gray-900); }
.alt-card__tag  { font-size: .75rem; color: var(--gray-500); }
.alt-card__rating { font-size: .78rem; font-weight: 700; color: var(--navy); }
.alt-card .stars { font-size: .8rem; }

/* ── Comparison table: per-row CTA ── */
.table-cta-cell { white-space: nowrap; }
