:root {
  --bg: #f5f4ef;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --surface-deep: #15202a;
  --text: #16222d;
  --muted: #576574;
  --line: #d7dce2;
  --line-strong: #b2bdc9;
  --accent: #25556a;
  --accent-strong: #ea6a29;
  --accent-soft: rgba(37, 85, 106, 0.1);
  --result-bg: rgba(37, 85, 106, 0.04);
  --result-border: rgba(37, 85, 106, 0.22);
  --shadow: 0 20px 45px rgba(15, 27, 38, 0.08);
  --shadow-sm: 0 10px 24px rgba(15, 27, 38, 0.06);
  --radius: 26px;
  --radius-sm: 18px;
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 85, 106, 0.08), transparent 28%),
    linear-gradient(180deg, #faf9f5 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 1rem 0;
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.518rem 1rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(183, 190, 198, 0.65);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(15, 27, 38, 0.05);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.576rem;
  min-width: 0;
}

.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand__mark svg {
  display: block;
  width: 25.6px;
  height: 25.6px;
}

.brand__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand__copy strong {
  line-height: 1.1;
}

.brand__copy small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.1;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  padding: 0.352rem 0.576rem;
  border-radius: 999px;
  transition: background-color 200ms ease, color 200ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
  outline: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  min-height: 36px;
  min-width: 36px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  border-radius: 999px;
  padding: 0;
  position: relative;
  justify-content: center;
  align-items: center;
}

.nav-toggle__icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
  height: 14px;
  position: relative;
}

.nav-toggle__icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle__text {
  display: none;
}

/* ============================================
   PAGE SHELL
   ============================================ */

.page-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem 1rem 5rem;
}

.breadcrumb {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 1rem 0 1.25rem;
  overflow-wrap: anywhere;
}

/* ============================================
   HERO — compact for calculator pages
   ============================================ */

.hero {
  padding: 1.6rem clamp(1.2rem, 2.2vw, 2rem);
  border: 1px solid rgba(183, 190, 198, 0.7);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(140deg, rgba(37, 85, 106, 0.04), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.88));
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0.3rem 0 0.6rem;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero__intro,
.lead {
  max-width: 68ch;
  font-size: clamp(1rem, 2vw, 1.14rem);
  color: var(--muted);
  margin: 0;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 600;
}

/* Hero quick-action buttons for homepage */
.hero-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.hero-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  text-decoration: none;
  min-height: 56px;
}

.hero-action:hover,
.hero-action:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(37, 85, 106, 0.12);
  outline: none;
}

.hero-action__icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ============================================
   SECTION & CARDS
   ============================================ */

.section {
  margin-top: 1.5rem;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(183, 190, 198, 0.55);
  box-shadow: var(--shadow-sm);
}

.section-heading {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-heading--compact h2,
.section-heading--compact h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
}

.bullet-list,
.stack-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.72rem;
}

.card-grid,
.answer-grid,
.compare-grid,
.stat-grid {
  display: grid;
  gap: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

@media (min-width: 680px) and (max-width: 999px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    max-width: 100%;
  }
}

@media (max-width: 679px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.mini-card,
.stat-card,
.compare-card,
.answer-card {
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease;
  display: flex;
  flex-direction: column;
}

.mini-card .text-link {
  margin-top: auto;
}

/* Card hover micro-animation */
.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 27, 38, 0.12);
}

/* Primary card variant for top calculators */
.mini-card--primary .mini-card__header {
  background: linear-gradient(135deg, var(--accent), #1a3d4d);
}

.mini-card--primary .mini-card__header h3 {
  color: white;
}

.mini-card__header {
  padding: 1rem 1rem 0.8rem;
  background: linear-gradient(135deg, #1a3d4d, var(--accent));
  position: relative;
}

.mini-card__header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24px;
  background: var(--surface-strong);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.mini-card__header h3 {
  color: white;
  margin: 0;
  position: relative;
  z-index: 1;
}

.mini-card__body {
  padding: 0.75rem 1rem 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mini-card h3,
.answer-card {
  padding: 1.25rem;
}

.answer-card h2,
.answer-card h3 {
  margin: 0;
}

/* Cards without __header/__body structure (e.g. related cards) */
.mini-card > h3 {
  padding: 1rem 1rem 0;
}

.mini-card > p {
  padding: 0.4rem 1rem 0;
}

.mini-card > .text-link {
  margin-left: 1rem;
  margin-bottom: 1rem;
  margin-top: auto;
}

.mini-card p,
.stat-card p,
.compare-card p,
.answer-card p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(37, 85, 106, 0.12);
  transition: background-color 200ms ease;
}

.text-link:hover {
  background: rgba(37, 85, 106, 0.2);
}

/* ============================================
   CALCULATOR — single-column flow
   ============================================ */

.calculator-shell {
  display: grid;
  gap: 1.2rem;
}

.calculator-panel,
.result-panel {
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
}

.calculator-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 247, 0.98));
  border: 1px solid var(--line);
  padding: 1.15rem;
}

.calculator-root {
  display: grid;
  gap: 1rem;
}

.field-grid {
  display: grid;
  gap: 0.9rem;
}

.field-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid--one {
  grid-template-columns: 1fr;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field .custom-select {
  min-height: 52px;
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
}

/* ---- Pill Toggle (segmented control) ---- */

.pill-toggle {
  display: flex;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: #fff;
  overflow: hidden;
  min-height: 52px;
}

.pill-toggle__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.6rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  position: relative;
}

.pill-toggle__btn:not(:first-of-type)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--line);
  transition: opacity 200ms ease;
}

.pill-toggle__btn.is-active::before,
.pill-toggle__btn.is-active + .pill-toggle__btn::before {
  opacity: 0;
}

.pill-toggle__btn:hover:not(.is-active) {
  background: rgba(37, 85, 106, 0.06);
  color: var(--accent);
}

.pill-toggle__btn.is-active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* ---- Custom Select (enhanced native) ---- */

.custom-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23576574' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.custom-select:hover {
  border-color: var(--accent);
}

.custom-select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 85, 106, 0.15);
}

.field input:focus-visible,
.field select:focus-visible,
.button:focus-visible,
.nav-toggle:focus-visible,
.faq summary:focus-visible {
  outline: 2px solid rgba(37, 85, 106, 0.3);
  outline-offset: 2px;
}

.field--segment {
  background: rgba(37, 85, 106, 0.03);
  padding: 0.85rem;
  border-radius: 18px;
  border: 1px solid rgba(37, 85, 106, 0.14);
}

.field-note,
.form-error {
  margin: 0;
  color: var(--muted);
}

.form-error:empty {
  display: none;
}

.checkbox-row {
  align-items: center;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  background: rgba(37, 85, 106, 0.04);
  border: 1px solid rgba(37, 85, 106, 0.14);
  border-radius: 18px;
}

.segment-block {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px dashed rgba(37, 85, 106, 0.28);
  border-radius: 20px;
  background: rgba(37, 85, 106, 0.02);
}

.segment-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.segment-block__head h3 {
  margin: 0;
  font-size: 1rem;
}

.segment-list {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.is-hidden {
  display: none !important;
}

/* Scroll anchor button for mobile */
.scroll-to-result {
  display: none;
  margin-top: 0.75rem;
  text-align: center;
}

.scroll-to-result a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(37, 85, 106, 0.06);
  border: 1px solid rgba(37, 85, 106, 0.14);
}

/* ============================================
   RESULT PANEL — light theme, high contrast
   ============================================ */

.result-panel {
  position: relative;
  background:
    linear-gradient(160deg, rgba(37, 85, 106, 0.06), rgba(37, 85, 106, 0.02)),
    var(--surface-strong);
  color: var(--text);
  border: 2px solid var(--result-border);
  padding: 1.15rem;
}

.result-panel__hero {
  padding: 1rem;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--result-border);
}

.result-big {
  margin-top: 0.35rem;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  color: var(--accent);
  transition: opacity 150ms ease;
}

.result-caption {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.stat-card,
.compare-card {
  background: var(--surface-strong);
  border-color: var(--line);
  padding: 0.85rem 1rem;
}

.stat-card strong,
.compare-card strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.14rem;
  color: var(--text);
  font-weight: 600;
}

.result-panel__why,
.result-panel__compare,
.buy-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.result-panel .eyebrow {
  color: var(--accent);
}

.stack-list {
  padding-left: 1rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  background: var(--accent-strong);
  color: white;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.button--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button--quiet {
  background: rgba(37, 85, 106, 0.08);
  color: var(--accent);
}

.button--small {
  min-height: 44px;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
}

/* ============================================
   ANSWER GRID (guide pages)
   ============================================ */

.answer-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}

.answer-card--lead {
  background:
    linear-gradient(145deg, rgba(37, 85, 106, 0.08), rgba(255, 255, 255, 0.96));
}

/* ============================================
   FAQ — with transition
   ============================================ */

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  padding: 0.25rem 1rem;
  transition: border-color 200ms ease;
}

.faq[open] {
  border-color: var(--accent);
}

.faq summary {
  list-style: none;
  padding: 0.85rem 0;
  font-weight: 600;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin: 0 0 0.95rem;
  color: var(--muted);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  padding: 0 1rem 2rem;
}

.site-footer__grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  border-radius: 26px;
  border: 1px solid rgba(183, 190, 198, 0.55);
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  gap: 0;
}

.site-footer__top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.footer-brand__mark {
  display: flex;
  align-items: center;
}

.footer-brand strong {
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  transition: background-color 200ms ease, color 200ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 200ms ease;
}

.footer-legal__button {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 200ms ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible,
.footer-legal__button:hover,
.footer-legal__button:focus-visible {
  color: var(--accent);
}

/* ============================================
   COOKIE CONSENT
   ============================================ */

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none !important;
}

body[data-cookie-banner="visible"] .page-shell,
body[data-cookie-banner="visible"] .site-footer {
  padding-bottom: 7rem;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  left: auto;
  z-index: 120;
  width: 380px;
  max-width: calc(100vw - 2rem);
}

.cookie-banner__surface {
  margin: 0;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(183, 190, 198, 0.65);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(15, 27, 38, 0.12);
  backdrop-filter: blur(16px);
}

.cookie-banner__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.cookie-banner__copy {
  display: grid;
  gap: 0.4rem;
}

.cookie-banner__copy h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.cookie-banner__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.cookie-banner__copy a,
.cookie-modal__disclosure a {
  color: var(--accent);
  font-weight: 600;
}

.cookie-banner__actions {
  margin-top: 0;
  display: flex;
  gap: 0.5rem;
}

.cookie-banner__actions .button {
  flex: 1 1 0;
  min-height: 40px;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  font-size: 0.85rem;
  text-align: center;
  justify-content: center;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(8, 16, 23, 0.58);
  cursor: pointer;
}

.cookie-modal__panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  padding: 1.35rem;
  border-radius: 30px;
  border: 1px solid rgba(26, 61, 77, 0.18);
  background:
    radial-gradient(circle at top right, rgba(37, 85, 106, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 36px 80px rgba(15, 27, 38, 0.24);
}

.cookie-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-modal__head h2 {
  margin: 0.25rem 0 0;
  line-height: 1.08;
}

.cookie-modal__close {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(37, 85, 106, 0.06);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.cookie-modal__intro,
.cookie-modal__disclosure {
  margin: 1rem 0 0;
  color: var(--muted);
}

.cookie-options {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(37, 85, 106, 0.14);
  background: rgba(37, 85, 106, 0.04);
}

.consent-option--locked {
  background: linear-gradient(135deg, rgba(26, 61, 77, 0.1), rgba(37, 85, 106, 0.04));
}

.consent-option__copy {
  display: grid;
  gap: 0.28rem;
}

.consent-option__copy strong {
  line-height: 1.15;
}

.consent-option__copy small {
  color: var(--muted);
  line-height: 1.5;
}

.consent-option__status {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.consent-option__toggle {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--accent-strong);
}

.cookie-modal__actions {
  margin-top: 1.2rem;
}

body[data-cookie-modal="open"] {
  overflow: hidden;
}

/* ============================================
   STICKY SUMMARY BAR — always visible
   ============================================ */

.sticky-summary {
  position: sticky;
  bottom: 0.8rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--result-border);
  box-shadow: 0 8px 28px rgba(15, 27, 38, 0.1);
  z-index: 40;
}

.sticky-summary__label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sticky-summary strong {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.1rem;
}

.sticky-summary__cost {
  margin: 0;
  display: none;
  flex-direction: column;
  gap: 0.1rem;
}

.sticky-summary__cost-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.sticky-summary__cost strong {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 560px) {
  .site-footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .footer-links {
    margin-left: 0;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 920px) {
  .field-grid--four,
  .field-grid--three,
  .field-grid--two,
  .answer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  body[data-nav-open="true"] .site-nav {
    display: grid;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.6rem);
    padding: 0.8rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
}

@media (max-width: 680px) {
  .page-shell {
    padding-inline: 0.75rem;
  }

  .site-header {
    padding-inline: 0.75rem;
  }

  .field-grid--four,
  .field-grid--three,
  .field-grid--two,
  .answer-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .button-row {
    flex-direction: column;
  }

  .scroll-to-result {
    display: block;
  }

  .hero-actions {
    grid-template-columns: 1fr 1fr;
  }

  .sticky-summary {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .sticky-summary .button--small {
    width: 100%;
    text-align: center;
  }

  body[data-cookie-banner="visible"] .page-shell,
  body[data-cookie-banner="visible"] .site-footer {
    padding-bottom: 22rem;
  }

  .cookie-banner {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: auto;
    max-width: none;
  }

  .cookie-banner__surface {
    padding: 1rem;
    border-radius: var(--radius);
  }

  .cookie-modal__panel {
    padding: 1rem;
    border-radius: 24px;
  }

  .cookie-banner__layout,
  .consent-option {
    grid-template-columns: 1fr;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner__actions .button,
  .cookie-modal__actions .button {
    width: 100%;
  }
}


.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand strong {
  line-height: 1.1;
}

.footer-brand__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
