:root {
  color-scheme: light;
  --ink: #172426;
  --muted: #5d6c70;
  --paper: #fbfaf5;
  --surface: #ffffff;
  --surface-2: #f2eee4;
  --line: #ded8ca;
  --deep: #153b3d;
  --deep-2: #0d2b2d;
  --gold: #b77a1b;
  --green: #1f6f55;
  --blue: #256175;
  --red: #a44b39;
  --amber: #8a5b11;
  --shadow: 0 22px 60px rgba(27, 38, 38, 0.12);
  --radius: 8px;
  --shell: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  transition: font-size 0.2s ease;
}

body.large-text { font-size: 22px; }
body.xlarge-text { font-size: 26px; }

img { display: block; max-width: 100%; }
a { color: inherit; }
code { padding: 0.1rem 0.25rem; border-radius: 4px; background: rgba(21, 59, 61, 0.08); font-size: 0.95em; }

.skip-link {
  position: absolute;
  left: 16px; top: -48px; z-index: 200;
  padding: 10px 14px;
  background: var(--deep); color: white;
  border-radius: 6px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

.shell { width: min(var(--shell), calc(100% - 32px)); margin-inline: auto; }

.site-header {
  color: white;
  background: linear-gradient(100deg, rgba(10, 39, 41, 0.96), rgba(21, 59, 61, 0.84)),
              radial-gradient(circle at 80% 20%, rgba(183, 122, 27, 0.25), transparent 34%),
              linear-gradient(135deg, #153b3d, #0f282a);
  padding: 64px 0 54px;
}
.header-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); gap: 44px; align-items: center; }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.site-header .eyebrow { color: #f1c36f; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h1 { font-size: clamp(2.35rem, 6vw, 5.35rem); font-weight: 850; max-width: 790px; }
h2 { font-size: clamp(1.9rem, 4vw, 3.35rem); font-weight: 820; }
h3 { font-size: 1.18rem; font-weight: 800; }
.lead { max-width: 740px; margin: 22px 0 0; color: rgba(255,255,255,0.86); font-size: clamp(1.08rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 18px;
  border: 1px solid rgba(255,255,255,0.42); border-radius: 8px;
  color: white; text-decoration: none; font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); background: rgba(255,255,255,0.12); outline: none; }
.button.primary { background: #f4c05f; border-color: #f4c05f; color: #162224; }
button#fontSizeToggle { background: transparent; border-color: rgba(255,255,255,0.5); cursor: pointer; }

.hero-panel { padding: 26px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius); box-shadow: 0 20px 70px rgba(0,0,0,0.16); }
.panel-label { display: inline-flex; padding: 4px 9px; margin-bottom: 14px; border-radius: 999px; background: rgba(244,192,95,0.16); color: #f6d58e; font-size: 0.82rem; font-weight: 800; }
.hero-panel dl, .hero-panel dt, .hero-panel dd { margin: 0; }
.hero-panel dl { display: grid; gap: 14px; }
.hero-panel div { padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.hero-panel div:last-child { padding-bottom: 0; border-bottom: 0; }
.hero-panel dt { color: rgba(255,255,255,0.68); font-size: 0.9rem; }
.hero-panel dd { margin-top: 2px; font-size: 1.1rem; font-weight: 850; }

.top-nav { position: sticky; top: 0; z-index: 100; background: rgba(251,250,245,0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll a { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 0.93rem; font-weight: 800; text-decoration: none; }
.nav-scroll a:hover, .nav-scroll a:focus-visible { background: rgba(21,59,61,0.08); color: var(--deep); outline: none; }

.section { padding: 78px 0; }
.section.tinted { background: var(--surface-2); }
.section-heading { max-width: 850px; margin-bottom: 34px; }
.section-heading.compact { margin-bottom: 0; }
.section-heading p:not(.eyebrow) { margin: 14px 0 0; color: var(--muted); font-size: 1.08rem; }

/* Price cards */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.price-card, .recommendation, .vote-cards article, .installment-grid article, .question-grid article, .source-card, .aid-card, .document-image, .calculator { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.price-card { position: relative; overflow: hidden; padding: 24px; }
.price-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; }
.price-card.globals::before { background: var(--green); }
.price-card.canjeval::before { background: var(--blue); }
.price-card.neuban::before { background: var(--red); }
.company-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.company-row span { padding: 4px 8px; border-radius: 999px; background: rgba(21,59,61,0.08); color: var(--muted); font-size: 0.78rem; font-weight: 850; text-transform: uppercase; }
.price { margin: 18px 0 8px; font-size: clamp(2rem, 5vw, 3.15rem); line-height: 1; font-weight: 900; }
.small { margin: 0; color: var(--muted); font-size: 0.98rem; }
.source-note { margin: 18px 0 0; color: var(--deep); font-size: 0.9rem; font-weight: 800; }

.difference-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.difference-band div { padding: 18px; background: #fffaf0; }
.difference-band span { display: block; color: var(--muted); font-size: 0.95rem; }
.difference-band strong { display: block; margin-top: 4px; font-size: 1.45rem; line-height: 1.1; }

/* Decision section */
.decision-layout { display: grid; grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1fr); gap: 28px; }
.recommendation { padding: 28px; border-left: 6px solid var(--gold); }
.recommendation p { margin: 16px 0 0; }
.vote-cards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.vote-cards article, .question-grid article, .installment-grid article { padding: 22px; }

/* Semaphore */
.risk-semaphore { margin-top: 36px; }
.semaphore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.semaphore-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.semaphore-card h4 { margin-top: 8px; }
.dot { position: absolute; top: 18px; right: 18px; width: 16px; height: 16px; border-radius: 50%; }
.dot.red { background: #c44; }
.dot.amber { background: #e9a23b; }
.dot.green { background: #2f855a; }

.comparison-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); margin-bottom: 12px; }
.comparison-table { width: 100%; min-width: 960px; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 18px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.comparison-table thead th { background: var(--deep); color: white; font-size: 0.95rem; }
.comparison-table tbody th { width: 180px; background: #f8f4eb; font-weight: 850; }
.comparison-table tr:last-child th, .comparison-table tr:last-child td { border-bottom: 0; }
.table-note { color: var(--muted); font-size: 0.95rem; font-style: italic; }

/* Calculator */
.calculator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr); gap: 20px; padding: 22px; }
.calc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 7px; color: var(--deep); font-size: 0.92rem; font-weight: 850; }
input, select { width: 100%; min-height: 46px; border: 1px solid #cfc7b6; border-radius: 7px; background: #fffdf8; color: var(--ink); padding: 0 12px; font: inherit; font-size: 1rem; }
input:focus, select:focus { border-color: var(--deep); outline: 3px solid rgba(37,97,117,0.18); }
.input-note { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.calc-btn { justify-self: start; align-self: end; background: var(--deep); border-color: var(--deep); color: white; cursor: pointer; }
.calc-btn:hover { background: #1e4f52; }
.calc-results { display: grid; gap: 12px; }
.calc-results div { padding: 14px; border-radius: 7px; background: #f8f4eb; }
.calc-results span { display: block; color: var(--muted); font-size: 0.9rem; }
.calc-results strong { display: block; margin-top: 2px; font-size: clamp(1.4rem, 4vw, 2.1rem); line-height: 1.05; }

.installment-grid, .question-grid, .source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.plain-list { margin: 14px 0 0; padding: 0; list-style: none; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.plain-list.columns { column-count: 2; column-gap: 28px; }

.document-image { display: grid; grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 22px; padding: 22px; }
.document-image p { margin: 12px 0 0; color: var(--muted); }
.document-image img { border: 1px solid var(--line); border-radius: 6px; background: white; }
.document-image a { display: block; text-decoration: none; }
.document-image.two { align-items: start; }
.image-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.aid-status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.aid-card { padding: 22px; }
.aid-card.open { border-left: 6px solid var(--green); }
.aid-card.closed { border-left: 6px solid var(--amber); }
.aid-card.pending { border-left: 6px solid var(--blue); }
.aid-card.tax { border-left: 6px solid var(--red); }
.aid-kicker { margin-bottom: 10px; color: var(--gold); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.plain-alert { padding: 12px; border-radius: 7px; background: #fff7df; color: #563b08 !important; }
.aid-card a { display: inline-block; margin-top: 14px; color: var(--deep); font-weight: 850; }
.question-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.source-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.source-card { display: block; padding: 22px; text-decoration: none; transition: transform 0.18s ease, border-color 0.18s ease; }
.source-card:hover, .source-card:focus-visible { transform: translateY(-2px); border-color: var(--deep); outline: none; }
.source-card p { margin: 12px 0 0; color: var(--muted); font-weight: 500; }

.site-footer { padding: 34px 0; background: var(--deep-2); color: rgba(255,255,255,0.76); }
.site-footer p { margin: 0 0 8px; }
.validity-note { font-size: 0.9rem; color: rgba(255,255,255,0.55); }

/* Responsive */
@media (max-width: 980px) {
  .header-grid, .decision-layout, .calculator, .document-image { grid-template-columns: 1fr; }
  .price-grid, .vote-cards, .question-grid, .source-grid, .semaphore-grid { grid-template-columns: 1fr; }
  .difference-band, .aid-status, .installment-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .site-header { padding: 44px 0 38px; }
  .section { padding: 54px 0; }
  .shell { width: min(100% - 24px, var(--shell)); }
  .hero-panel, .price-card, .recommendation, .vote-cards article, .installment-grid article, .question-grid article, .source-card, .aid-card, .document-image, .calculator { padding: 18px; }
  .calc-form, .image-pair { grid-template-columns: 1fr; }
  .plain-list.columns { column-count: 1; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
}

/* Print styles */
@media print {
  body { font-size: 14pt; color: black; background: white; }
  .top-nav, .hero-actions, button, .skip-link, .site-footer { display: none; }
  .site-header { background: white; color: black; padding: 20px 0; border-bottom: 2px solid black; }
  .hero-panel { box-shadow: none; border: 1px solid #ccc; }
  .section { padding: 24px 0; }
  a[href]:after { content: " (" attr(href) ")"; font-size: 0.8rem; color: #555; }
  .comparison-table-wrap { overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}