/* Formera — modern tech aesthetic.
   Dark glassy hero, light content sections, generous whitespace.
   Inspired by Linear / Stripe / Vercel. No frameworks. */

:root {
  --bg: #fafafa;
  --bg-2: #f3f4f6;
  --ink: #0a0a0f;
  --ink-2: #2b2b35;
  --ink-3: #5b5b6b;
  --muted: #8b8b99;
  --line: #e5e7eb;
  --accent: #5b8def;       /* a calm EU-blue */
  --accent-2: #8c5cf6;     /* violet — modern AI vibe */
  --accent-ink: #1d3fa3;
  --gold: #f4c64b;
  --green: #10b981;
  --paper: #ffffff;
  --shadow: 0 20px 50px -20px rgba(20, 22, 60, .25);
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }

/* ─────────────────────────────────────────────── nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(255,255,255,.75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 17px; color: var(--ink);
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.logo-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: url("buronia-mark.svg?v=20260501-docmark") center / contain no-repeat;
  box-shadow: 0 6px 14px -8px rgba(29,63,163,.9);
  flex: 0 0 auto;
}
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  color: var(--ink-2); font-size: 14px; font-weight: 500;
}
.product-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}
.product-switch a {
  min-height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.product-switch a.is-active {
  background: var(--ink);
  color: white;
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-pick { position: relative; font-size: 13px; }
.lang-pick > summary {
  list-style: none; cursor: pointer;
  padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: white;
  color: var(--ink-2);
}
.lang-pick > summary::-webkit-details-marker { display: none; }
.lang-pick ul {
  position: absolute; right: 0; top: 110%;
  background: white; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow);
  list-style: none; padding: 6px; margin: 0; min-width: 160px;
}
.lang-pick li a {
  display: block; padding: 8px 10px; border-radius: 6px;
  color: var(--ink-2);
}
.lang-pick li a:hover { background: var(--bg-2); text-decoration: none; }
.wa-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: #25d366; color: white !important;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 12px -4px rgba(37, 211, 102, .5);
}
.wa-pill:hover { text-decoration: none; transform: translateY(-1px); }

/* ─────────────────────────────────────────────── hero */
.hero {
  position: relative; overflow: hidden;
  padding: 90px 24px 110px;
  background:
    radial-gradient(1200px 500px at 80% -100px, rgba(91,141,239,.18), transparent 70%),
    radial-gradient(900px 500px at 10% 0%, rgba(140,92,246,.16), transparent 70%),
    linear-gradient(180deg, #0a0a0f 0%, #15172a 100%);
  color: white;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 30%, transparent 100%);
}
.hero-inner {
  position: relative;
  max-width: 1100px; margin: 0 auto;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
  color: #c7c8d8;
}
.hero-title {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 22px auto 16px;
  max-width: 16ch;
  font-weight: 600;
}
.hero-flag {
  display: block; margin-top: 6px;
  font-size: .55em; color: #c7c8d8;
  font-style: normal; font-weight: 500;
}
.hero-flag em { font-style: normal; color: white; }
.hero-trust {
  list-style: none; padding: 0; margin: 24px auto 32px;
  max-width: 720px;
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  justify-content: center;
  color: #c7c8d8; font-size: 14.5px;
}
.hero-trust li {
  position: relative; padding-left: 22px;
}
.hero-trust li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; }
.hero-lead { color: #c7c8d8; max-width: 540px; margin: 0 auto 28px; font-size: 17px; }

/* ─────────────────────────────────────────────── buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
  max-width: 100%;
  min-width: 0;
  line-height: 1.25;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 8px 22px -10px rgba(91,141,239,.7);
}
.btn-primary:hover { box-shadow: 0 12px 26px -10px rgba(91,141,239,.85); }
.btn-secondary {
  background: white;
  border-color: var(--line);
  color: var(--accent-ink);
}
.btn-secondary:hover {
  background: var(--bg-2);
  box-shadow: none;
}
.btn-muted {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #6b7280;
  box-shadow: none;
}
.btn-muted:hover {
  background: #e5e7eb;
  color: #4b5563;
  box-shadow: none;
  transform: none;
}
.btn-requirements {
  justify-content: flex-start;
  text-align: left;
}
.btn-ghost {
  background: rgba(255,255,255,.08);
  color: white;
  border-color: rgba(255,255,255,.16);
}
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ─────────────────────────────────────────────── containers / sections */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-title {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -.02em;
  margin: 0 0 12px;
  font-weight: 600;
}
.section-sub { color: var(--ink-3); max-width: 60ch; margin: 0 0 36px; font-size: 16px; }

.benefits-section, .how-section, .pricing-section, .faq-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.how-section { background: var(--bg-2); }

/* ─────────────────────────────────────────────── benefit cards */
.benefit-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.benefit-card {
  display: block;
  padding: 22px 22px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
}
.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(91,141,239,.4);
  text-decoration: none;
}
.benefit-card-head h3 {
  margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em;
}
.benefit-en { color: var(--muted); font-size: 13px; }
.benefit-one { color: var(--ink-2); margin: 12px 0 18px; font-size: 14.5px; }
.benefit-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12.5px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-2); color: var(--ink-2);
  font-weight: 500;
}
.chip-eur { background: rgba(16, 185, 129, .12); color: #047857; }
.chip-auth { background: rgba(91,141,239,.1); color: var(--accent-ink); max-width: 100%;
             white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); display: inline-block; }
.dot-on { background: var(--gold); }
.benefit-arrow { margin-left: auto; color: var(--accent-ink); font-weight: 600; font-size: 13px; }

/* ─────────────────────────────────────────────── how it works */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  counter-reset: step;
}
.steps li {
  background: white; border: 1px solid var(--line);
  padding: 26px; border-radius: var(--radius);
  position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; font-weight: 700; font-size: 14px;
}
.steps h3 { margin: 14px 0 6px; font-size: 17px; font-weight: 600; }
.steps p { margin: 0; color: var(--ink-3); font-size: 14.5px; }

/* ─────────────────────────────────────────────── pricing */
.price-card {
  max-width: 460px; margin: 0 auto;
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
  text-align: center; box-shadow: var(--shadow);
}
.price-amount { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 16px; }
.price-num { font-family: 'Source Serif 4', serif; font-size: 56px; font-weight: 600; letter-spacing: -.02em; }
.price-label { color: var(--muted); font-size: 14px; }
.price-included {
  list-style: none; padding: 0; margin: 0 0 24px;
  text-align: start; font-size: 14.5px; color: var(--ink-2);
}
.price-included li {
  padding: 10px 0; border-bottom: 1px dashed var(--line);
  position: relative; padding-inline-start: 28px;
}
.price-included li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; color: var(--green); font-weight: 700;
}

/* ─────────────────────────────────────────────── faq */
.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: "+"; color: var(--accent-ink); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--ink-3); margin: 12px 0 0; }

/* ─────────────────────────────────────────────── footer */
.site-footer {
  padding: 48px 24px 32px;
  background: #0a0a0f;
  color: #c7c8d8;
}
.footer-disclaimer {
  max-width: 1100px; margin: 0 auto 36px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 13px; line-height: 1.6;
}
.footer-disclaimer strong { display: block; color: white; margin-bottom: 6px; font-size: 14px; }
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer-grid h4 { color: white; font-size: 14px; margin: 0 0 10px; }
.footer-grid p { font-size: 13.5px; }
.footer-grid a { color: #c7c8d8; }
.footer-grid p a { display: inline-block; padding: 3px 0; min-height: 22px; }
/* GDPR-erase footer link — red accent, semibold. The most-asked-for
   self-service action gets a visual cue so a worried user can find it
   from any page on the site, not just the dashboard. */
.footer-erase {
  color: #fca5a5 !important;
  font-weight: 600;
}
.footer-erase:hover { color: #fecaca !important; }

/* Country switcher row in the footer.
   Renders all 27 EU countries as a tight flex-wrap chip row, not a grid
   of tiles — at this scale a fixed-width grid blows up vertically and
   eats the viewport. Chips are ~auto-width per native name + flag,
   tap targets stay at min-height 36px on desktop / 44px on mobile. */
.footer-countries {
  max-width: 1100px;
  margin: 0 auto 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-countries h4 {
  color: white; font-size: 13px; margin: 0 0 12px;
  letter-spacing: .02em;
}
.country-flags {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap;
  gap: 6px;
}
.country-flags li { display: inline-flex; }
.country-flag-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  min-height: 32px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  color: #c7c8d8;
  text-decoration: none;
  font-size: 13px; line-height: 1.2;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.country-flag-link:hover,
.country-flag-link:focus-visible {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.20);
  color: white;
  text-decoration: none;
}
.country-flag-link.is-current {
  border-color: rgba(91,141,239,.55);
  background: rgba(91,141,239,.12);
  color: white;
}
/* Countries listed but not yet on a live subdomain. Link still works
   (it routes to the apex chooser with ?country preselect); chip is
   visually de-emphasised so users see what's coming without thinking
   the page is broken. */
.country-flag-link.is-soon { opacity: .55; }
.country-flag-link.is-soon:hover,
.country-flag-link.is-soon:focus-visible { opacity: .85; }
.cf-flag { font-size: 16px; line-height: 1; }
.cf-name { font-size: 13px; font-weight: 500; white-space: nowrap; }
/* Hide the English-name span by default — the flag + native is enough
   in a footer chip. Surfaced via title= for hover discoverability. */
.cf-en { display: none; }

.footer-apex-links {
  max-width: 1100px;
  margin: 0 auto 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-apex-links h4 {
  color: white;
  font-size: 13px;
  margin: 0 0 14px;
  letter-spacing: .02em;
}
.footer-apex-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px 22px;
}
.footer-apex-link-group {
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-apex-link-group h5 {
  display: grid;
  gap: 2px;
  margin: 0 0 8px;
  color: white;
  font-size: 13px;
  line-height: 1.3;
}
.footer-apex-link-group h5 small {
  color: #8f93a6;
  font-size: 11px;
  font-weight: 500;
}
.footer-apex-link-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-apex-link-group li { margin: 0; }
.footer-apex-link-group a {
  display: inline-block;
  max-width: 100%;
  padding: 3px 0;
  color: #c7c8d8;
  font-size: 12.5px;
  line-height: 1.35;
  text-decoration: none;
}
.footer-apex-link-group a:hover {
  color: white;
  text-decoration: underline;
}

.footer-foot {
  max-width: 1100px; margin: 36px auto 0;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12.5px; color: var(--muted);
}

/* Per-country services list — same centering + width as the rest of
   the footer blocks. Without this it rendered as a full-bleed left-
   aligned <ul> with default browser padding, breaking the column
   alignment of every other footer section. */
.footer-services {
  max-width: 1100px;
  margin: 0 auto 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-services h4 {
  color: white; font-size: 13px; margin: 0 0 12px;
  letter-spacing: .02em;
}
.footer-services-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 6px 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.footer-services-list li { margin: 0; }
.footer-services-list a {
  color: #c7c8d8;
  font-size: 13px;
  display: inline-block;
  padding: 4px 0;
  text-decoration: none;
}
.footer-services-list a:hover { color: white; text-decoration: underline; }
.fs-native { font-weight: 500; }
.fs-en { color: #888a98; font-weight: 400; }

@media (max-width: 640px) {
  /* Mobile: meet the project ≥44px touch-target rule. Desktop chips stay
     compact at 32px because they're a footer detail, not a primary CTA. */
  .country-flag-link {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
  }
  .cf-flag { font-size: 18px; }
  .cf-name { font-size: 14px; }
}

/* ─────────────────────────────────────────────── benefit landing */
.benefit-hero {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, white 0%, var(--bg) 100%);
}
.benefit-hero-grid {
  display: grid; gap: 50px;
  grid-template-columns: 1.05fr .95fr;
}
@media (max-width: 900px) {
  .benefit-hero-grid { grid-template-columns: 1fr; }
}
.back-link {
  font-size: 13px; color: var(--ink-3); display: inline-block; margin-bottom: 14px;
}
.benefit-title {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -.02em;
  margin: 4px 0 4px;
  font-weight: 600;
}
.benefit-lead { font-size: 18px; color: var(--ink-2); margin: 16px 0 22px; }
.benefit-desc { margin: 28px 0; color: var(--ink-2); font-size: 15.5px; }
.elig-h { font-size: 16px; margin: 28px 0 8px; color: var(--ink); }
.elig-list {
  background: var(--bg-2); padding: 16px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.elig-list > p { margin: 0 0 10px; color: var(--ink-2); font-size: 14.5px; }
.elig-list > p:last-child { margin-bottom: 0; }
.elig-bullets {
  list-style: disc outside; margin: 0; padding-left: 20px;
  color: var(--ink-2); font-size: 14.5px;
}
.elig-bullets li { margin: 6px 0; line-height: 1.55; }
.elig-bullets li:first-child { margin-top: 0; }
.elig-bullets li:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────────── A4 letterhead preview */
.a4-preview-wrap { position: sticky; top: 90px; align-self: start; }
.a4-preview, .a4-print {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1.414;
  overflow: hidden;
}
.a4-preview { max-width: 460px; margin: 0 auto; }
.a4-print { max-width: 760px; margin: 24px auto; aspect-ratio: auto; min-height: 1000px; padding-bottom: 40px; }
.a4-letterhead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 26px;
  background: linear-gradient(90deg, rgba(91,141,239,.08), rgba(140,92,246,.08));
  border-bottom: 2px solid var(--accent);
}
.a4-letterhead-real { background: linear-gradient(90deg, var(--ink), var(--ink-2)); }
.a4-letterhead-real .a4-brand { color: white; }
.a4-letterhead-real .a4-meta { color: #c7c8d8; }
.a4-brand {
  font-weight: 700; letter-spacing: -.01em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.a4-meta { font-size: 12px; color: var(--ink-3); }
.a4-body, .a4-content {
  padding: 30px 38px;
  font-family: 'Source Serif 4', serif;
  font-size: 14.5px;
  color: var(--ink-2);
}
.a4-body h2, .a4-content h2 {
  font-size: 22px; margin: 0 0 16px; font-weight: 600;
}
.a4-content p { margin: 0 0 12px; }
.a4-applicant, .a4-to { font-size: 13.5px; color: var(--ink-3); }
.a4-subject { margin-top: 18px; }
.a4-para { color: #c7c7c7; user-select: none; }
.a4-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  background: linear-gradient(180deg, transparent 0%, white 65%);
  pointer-events: none;
}
.a4-locked, .a4-paywall {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px;
  text-align: center;
}
.a4-paywall {
  position: relative;
  background: linear-gradient(180deg, transparent 0%, white 25%);
  margin-top: -100px; padding: 60px 24px 30px;
}
.lock-icon, .paywall-icon { font-size: 22px; margin-bottom: 6px; }
.lock-h { font-weight: 700; font-size: 16px; margin: 0 0 4px; }
.lock-sub { font-size: 13px; color: var(--ink-3); margin: 0 0 14px; }
.a4-print-locked .a4-content {
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 45%, rgba(0,0,0,.15) 65%, transparent 80%);
  mask-image: linear-gradient(180deg, black 0%, black 45%, rgba(0,0,0,.15) 65%, transparent 80%);
}
.a4-note {
  text-align: center; color: var(--muted); font-size: 12px; margin-top: 12px;
}

/* ─────────────────────────────────────────────── form */
.form-section { padding: 60px 0 100px; background: var(--bg-2); min-height: 70vh; }
.form-section h1 {
  font-family: 'Source Serif 4', serif; font-size: 36px; letter-spacing: -.02em;
  margin: 4px 0 6px; font-weight: 600;
}
.form-section .lead { color: var(--ink-3); margin-bottom: 30px; }
.benefit-form {
  display: grid; gap: 18px;
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.field { display: grid; gap: 6px; }
.field-label {
  font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.field-req { color: var(--muted); font-style: normal; font-size: 11.5px; font-weight: 500; }
.field-help { color: var(--ink-3); font-size: 13px; }

/* Related services section on benefit landing pages — internal +
   external authority links, 10+ items per country. */
.related-services {
  background: var(--bg-2); padding: 60px 0; margin-top: 60px;
  border-top: 1px solid var(--line);
}
.related-services h2 { font-family: 'Source Serif 4', serif;
  font-size: 28px; margin: 0 0 6px; }
.related-list {
  list-style: none; padding: 0;
  margin: 22px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px;
}
.related-item {
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.related-item a {
  display: block; padding: 4px 0;
  color: var(--ink-2); text-decoration: none;
  transition: color .12s ease;
}
.related-item a:hover { color: var(--accent); }
.related-item .related-ext { color: var(--ink-3); margin-left: 4px; }
.related-internal a strong::before { content: "→ "; color: var(--accent); }
.related-foot { margin-top: 22px; font-size: 13.5px; }
@media (max-width: 720px) {
  .related-list { grid-template-columns: 1fr; }
}

/* Server-side validation error UI on the form. */
.alert {
  background: #fff4f4; border: 1px solid #f0c4c4;
  color: #842424; border-radius: var(--radius-sm);
  padding: 12px 14px; margin: 16px 0; font-size: 14px;
}
.alert ul { margin: 6px 0 0 18px; padding: 0; }
.field-has-error input, .field-has-error select, .field-has-error textarea,
.field-live-error input, .field-live-error select, .field-live-error textarea,
.field-has-error .widget-kvnr, .field-has-error .widget-plz,
.field-has-error .widget-krankenkasse, .field-has-error .widget-address,
.field-live-error .widget-profile-field {
  border-color: #d24545;
  background: #fff8f8;
}
.field-error-msg { color: #842424; font-weight: 500; }

/* Validation states for widget inputs (.widget-kvnr, .widget-plz,
   .widget-krankenkasse, .widget-address). Live status is shown in a
   sibling .field-help[data-status]. Border colour signals state. */
.widget-kvnr, .widget-plz, .widget-krankenkasse,
.widget-address, .widget-profile-field {
  font: inherit; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: white;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.widget-kvnr.is-ok, .widget-plz.is-ok, .widget-krankenkasse.is-ok,
.widget-address.is-ok, .widget-profile-field.is-ok {
  border-color: #2e9e5b;
  box-shadow: 0 0 0 3px rgba(46, 158, 91, 0.10);
}
.widget-kvnr.is-err, .widget-plz.is-err, .widget-krankenkasse.is-err,
.widget-address.is-err, .widget-profile-field.is-err {
  border-color: #d24545;
  box-shadow: 0 0 0 3px rgba(210, 69, 69, 0.10);
}
.widget-kvnr.is-wait, .widget-plz.is-wait,
.widget-krankenkasse.is-wait, .widget-address.is-wait,
.widget-profile-field.is-wait {
  border-color: var(--accent);
}
.widget-kvnr-status, .widget-plz-status,
.widget-krankenkasse-status, .widget-address-status, .widget-profile-status {
  min-height: 1em;
}
.widget-kvnr {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* iOS Safari: prevent zoom on focus by ensuring 16px+ font size on inputs. */
.widget-kvnr, .widget-plz, .widget-krankenkasse,
.widget-address, .widget-profile-field {
  font-size: 16px;
}
.address-autocomplete-wrap {
  display: block;
  position: relative;
}
.address-autocomplete-wrap .widget-address {
  width: 100%;
  box-sizing: border-box;
}
.address-suggestions {
  position: absolute;
  z-index: 10020;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.address-suggestions[hidden] {
  display: none;
}
.address-suggestion-option {
  width: 100%;
  min-height: 44px;
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.address-suggestion-option:first-child {
  border-top: 0;
}
.address-suggestion-option:hover,
.address-suggestion-option.is-active {
  background: var(--bg-2);
}
.address-suggestion-main {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
}
.address-suggestion-secondary {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.25;
}

/* Locale-aware date input: text input + calendar-icon button + a hidden
   native picker the button triggers via showPicker(). Stays in lockstep
   with three-way JS sync (see benefit_form.html). */
.locale-date-wrap {
  display: flex; align-items: stretch; gap: 6px; position: relative;
}
.locale-date-wrap input.locale-date {
  flex: 1 1 auto; min-width: 0;
}
.locale-date-pick {
  flex: 0 0 auto;
  width: 44px;             /* mobile-tap target */
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-2);
  font-size: 18px; line-height: 1;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.locale-date-pick:hover { background: var(--line); }
.locale-date-pick:focus { outline: none; border-color: var(--accent); }
/* Native <input type=date> we open programmatically — keep it out of the
   layout entirely. showPicker() opens the OS date picker without
   needing the input itself to be visible. */
.locale-date-native {
  position: absolute; left: 0; bottom: 0;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
  border: 0; padding: 0; margin: 0;
}
.field input, .field select, .field textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: white;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,141,239,.18);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.field-sensitive .field-label::after {
  content: "🔒"; opacity: .6;
}
.sens-note { color: var(--ink-3); font-size: 12.5px; }
.consent {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg-2); padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--ink-2);
}
.consent input { margin-top: 3px; }
.alert {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px;
  font-size: 14px;
}
.form-foot { font-size: 13px; margin-top: 14px; }

/* ─────────────────────────────────────────────── benefit landing CTA bar */
.benefit-cta-bar {
  background: linear-gradient(135deg, var(--ink) 0%, #1a1c2e 100%);
  color: white;
  padding: 28px 0;
}
.benefit-cta-bar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.benefit-cta-bar h3 { margin: 0; font-size: 18px; }
.benefit-cta-bar p { margin: 4px 0 0; color: #c7c8d8; font-size: 14px; }
@media (max-width: 600px) {
  .benefit-cta-bar .container { flex-direction: column; align-items: stretch; }
}

/* ─────────────────────────────────────────────── apex chooser */
.hero-apex .country-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-width: 760px; margin: 32px auto 0;
}
.country-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 24px 20px; border-radius: var(--radius);
  color: white; text-align: center;
  transition: transform .15s ease, background .15s ease;
}
.country-card:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); text-decoration: none; }
.country-flag { display: block; font-size: 38px; }
.country-name { display: block; font-weight: 600; margin-top: 10px; }
.country-en { display: block; font-size: 12.5px; }
.hero-foot { margin-top: 36px; font-size: 13px; }

/* ─────────────────────────────────────────────── disclosure badge */
.not-affiliated-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 14px 0 0;
  padding: 5px 10px; border-radius: 6px;
  background: var(--bg-2); color: var(--ink-3);
  font-size: 12px;
  border: 1px solid var(--line);
}
.not-affiliated-badge::before {
  content: "ⓘ"; color: var(--accent);
}

/* breadcrumb above benefit-city h1 */
.breadcrumb {
  font-size: 13px; color: var(--ink-3); margin-bottom: 10px;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--accent-ink); }
.breadcrumb span { color: var(--muted); margin: 0 6px; }
.breadcrumb strong { color: var(--ink); font-weight: 500; }

/* local authority block */
.local-auth {
  margin: 28px 0;
  padding: 22px 24px;
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
}
.local-auth h2 {
  margin: 0 0 14px; font-size: 18px; font-weight: 600; letter-spacing: -.01em;
}
.auth-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 14.5px; }
.auth-list dt { color: var(--ink-3); font-weight: 500; }
.auth-list dd { margin: 0; color: var(--ink-2); }
.auth-list dd a { word-break: break-all; }

/* below-the-fold indexable SEO content */
.seo-content { margin-top: 36px; }
.seo-faq { border-top: 1px solid var(--line); padding: 18px 0; }
.seo-faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: "+"; color: var(--accent-ink); font-size: 22px; }
.seo-faq[open] summary::after { content: "–"; }
.seo-faq h3 { margin: 0; font-size: 16.5px; font-weight: 600; }
.seo-faq ul { margin: 12px 0 0; padding-left: 22px; color: var(--ink-2); font-size: 14.5px; }
.seo-faq li { margin: 6px 0; }
.seo-faq p { margin: 12px 0 0; color: var(--ink-2); font-size: 14.5px; }

.related-cities { margin: 36px 0 0; }
.related-cities h3 { font-size: 15px; color: var(--ink); margin: 0 0 12px; }
.city-link-grid {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.city-link-grid a {
  display: inline-block; padding: 6px 12px;
  background: var(--bg-2); border-radius: 999px;
  color: var(--ink-2); font-size: 13px;
  border: 1px solid var(--line);
}
.city-link-grid a:hover { background: white; border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }

/* legal pages */
.legal-section { padding: 50px 0 80px; background: var(--bg); min-height: 70vh; }
.legal-section h1 {
  font-family: 'Source Serif 4', serif; font-size: 36px; margin: 0 0 24px;
  font-weight: 600; letter-spacing: -.02em;
}
.legal-section h2 { margin: 30px 0 8px; font-size: 18px; font-weight: 600; }
.legal-section p, .legal-section li { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.legal-section table.privacy-table {
  width: 100%; border-collapse: collapse; margin: 14px 0;
  font-size: 13.5px;
}
.legal-section .privacy-table th, .legal-section .privacy-table td {
  padding: 8px 12px; border: 1px solid var(--line); text-align: start;
  vertical-align: top;
}
.legal-section .privacy-table th { background: var(--bg-2); font-weight: 600; }

/* ─────────────────────────────────────────────── business portal */
.business-hero .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .7fr);
  gap: 42px;
  align-items: center;
  text-align: left;
}
.business-hero-panel,
.business-form-panel,
.business-signup-context {
  background: rgba(255,255,255,.96);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.business-hero-panel label,
.business-form-panel label {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink-2);
}
.business-hero-panel select,
.business-form-panel input,
.business-form-panel select {
  width: 100%;
  min-height: 46px;
  font: inherit;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  padding: 10px 12px;
}
.business-hero-panel select:focus,
.business-form-panel input:focus,
.business-form-panel select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,141,239,.16);
}
.business-mini-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.business-mini-list span,
.business-language-strip span,
.business-language-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 0 11px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.business-language-strip a.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.business-section {
  padding: 64px 0;
  background: var(--bg);
}
.business-muted-band {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.business-section-head { margin-bottom: 28px; }
.business-region-title {
  margin: 30px 0 14px;
  font-size: 18px;
}
.business-country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.business-country-card {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 32px -28px rgba(20,22,60,.35);
}
.business-country-card:hover {
  text-decoration: none;
  border-color: rgba(91,141,239,.45);
  transform: translateY(-1px);
}
.business-country-card span { color: var(--ink-3); font-size: 13px; }
.business-country-head {
  padding: 74px 0 44px;
  color: white;
  background:
    radial-gradient(900px 420px at 80% -80px, rgba(91,141,239,.20), transparent 70%),
    linear-gradient(180deg, #0a0a0f 0%, #17182a 100%);
}
.business-country-head-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.business-country-head h1,
.business-signup-context h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
}
.business-country-head p { color: rgba(255,255,255,.76); max-width: 700px; }
.business-language-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}
.business-language-strip.compact { margin: 16px 0 0; }
.business-program-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.business-program-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
}
.business-program-rank {
  display: grid;
  align-content: start;
  gap: 8px;
}
.business-program-rank span {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--accent-ink);
  font-weight: 750;
  font-size: 13px;
}
.business-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.business-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-weight: 700;
  text-decoration: none;
}
.business-actions a:hover {
  border-color: var(--accent);
  background: var(--bg-2);
}
.business-lead-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}
.business-lead-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.business-lead-list span {
  display: block;
  color: var(--ink-3);
  font-size: 14px;
}
.business-signup-section { background: var(--bg-2); }
.business-signup-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: start;
}
.business-signup-context {
  position: sticky;
  top: 86px;
}
.business-selected-program {
  display: grid;
  gap: 4px;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  padding: 13px;
  margin-top: 18px;
}
.business-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.business-field-help,
.business-field-error {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.business-field-help { color: var(--ink-3); }
.business-field-help.ok { color: #047857; }
.business-field-help.bad,
.business-field-error { color: #b42318; }
.business-success-box {
  border: 1px solid rgba(16,185,129,.35);
  background: #ecfdf5;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 18px;
}
.business-reference {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 8px;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  background: rgba(4, 120, 87, .1);
  color: #065f46;
  font-weight: 700;
}
.business-success-box ul {
  margin: 12px 0;
  padding-left: 20px;
  color: var(--ink-2);
}
.business-success-box li { margin-bottom: 6px; }

/* Compliance index: bigger tap targets, full-width on touch. */
.compliance-list { list-style: none; padding: 0; margin: 16px 0; }
.compliance-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.compliance-list li a {
  display: inline-block; padding: 4px 0;
  font-size: 16px; font-weight: 600;
}
.compliance-list li .muted { display: block; font-size: 14px; margin-top: 2px; }

/* ─────────────────────────────────────────────── responsive */
@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    align-items: center;
  }
  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }
  .brand-word {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .product-switch {
    order: 2;
    width: 100%;
  }
  .product-switch a {
    flex: 1 1 0;
    padding: 0 9px;
    font-size: 12px;
  }
  .nav-right {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: stretch;
    gap: 6px;
  }
  .nav-right > * {
    min-height: 40px;
  }
  .lang-pick,
  .balance-pill,
  .nav-account,
  .wa-pill {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
  }
  .lang-pick > summary,
  .balance-pill,
  .nav-account,
  .wa-pill {
    width: 100%;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
  .lang-pick > summary {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .lang-pick ul {
    left: 0;
    right: auto;
    max-width: min(260px, calc(100vw - 24px));
  }
  .nav-links { display: none; }
  .hero { padding: 60px 16px 80px; }
  .a4-preview-wrap { position: static; }
  .business-hero .hero-inner,
  .business-signup-layout,
  .business-program-card,
  .business-form-grid {
    grid-template-columns: 1fr;
  }
  .business-country-head-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .business-signup-context { position: static; }
  .business-program-rank { grid-template-columns: 1fr 1fr; }

  /* Legal/compliance pages — keep readable, never overflow horizontally. */
  .legal-section { padding: 30px 0 60px; }
  .legal-section h1 { font-size: 26px; }
  .legal-section h2 { font-size: 16px; margin-top: 22px; }

  /* Tables (privacy data table, compliance security sub-processors): wrap
     in horizontal scroll instead of overflowing the viewport. The
     wrapper class is added to every legal table; the bare table also
     gets a min-width so columns don't crush. */
  .legal-section .privacy-table {
    display: block; overflow-x: auto; white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .legal-section .privacy-table thead, .legal-section .privacy-table tbody,
  .legal-section .privacy-table tr { display: table; width: 100%; table-layout: fixed; }
  .legal-section .privacy-table td, .legal-section .privacy-table th {
    white-space: normal;  /* let cells wrap once table is constrained */
    font-size: 13px; padding: 6px 8px;
  }

  /* Compliance index list: more vertical breathing room on mobile. */
  .compliance-list li { padding: 18px 0; }
  .compliance-list li a { font-size: 17px; }

  /* Imprint footer-like link blocks should stack with bigger tap targets. */
  .legal-section ul li { line-height: 1.9; }
}

@media (max-width: 420px) {
  .nav-right {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 40px;
  }
  .wa-pill {
    width: 40px;
    padding: 0;
    font-size: 0;
    gap: 0;
  }
  .wa-pill svg {
    width: 16px;
    height: 16px;
  }
}

/* ─────────────────────────────────────────────── print */
@media print {
  .nav, .site-footer, .a4-paywall, .a4-fade, .a4-locked, .benefit-cta-bar { display: none !important; }
  body { background: white; }
  .a4-print { box-shadow: none; border: none; }
}

/* ─────────────────────────────────────────────── accounts: login + dashboard */
.nav-account {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 7px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: white;
}
.nav-account:hover { text-decoration: none; background: var(--bg-2); }

.auth-section {
  padding: 70px 24px 110px;
  background:
    radial-gradient(900px 400px at 50% -50px, rgba(91,141,239,.10), transparent 70%),
    var(--bg);
}
.auth-title { font-size: 32px; letter-spacing: -.015em; margin: 0 0 6px; }
.auth-form { display: grid; gap: 18px; max-width: 420px; margin-top: 24px; }
.auth-card {
  margin-top: 28px; padding: 28px; border-radius: var(--radius);
  background: white; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.auth-sent .auth-icon {
  font-size: 36px; line-height: 1;
  display: inline-block; margin-bottom: 8px;
  color: var(--accent);
}
.auth-foot { margin-top: 22px; font-size: 13.5px; }

.dash-section { padding: 56px 24px 110px; }
.dashboard-shell {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
}
.dashboard-main {
  min-width: 0;
  width: 100%;
  max-width: none;
}
.dash-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 16px; margin-bottom: 32px;
}
.dash-head-actions {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.dash-h2 {
  font-size: 22px; letter-spacing: -.01em;
  margin: 36px 0 8px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.dash-sub { margin-bottom: 18px; max-width: 640px; }
.dash-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.dash-card {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: 10px;
  background: white; border: 1px solid var(--line);
}
.dash-card-main { display: grid; gap: 4px; min-width: 0; flex: 1 1 280px; }
.dash-card-actions { display: flex; gap: 8px; }
.dash-head p,
.dash-card-main strong,
.dash-card-main .muted,
.dash-summary {
  overflow-wrap: anywhere;
}
.dash-summary { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.dash-empty {
  padding: 28px; border-radius: 10px;
  background: var(--bg-2); border: 1px dashed var(--line);
  color: var(--ink-2);
}
.pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
}
.pill-ok { background: rgba(16,185,129,.12); color: #047857; }
.pill-locked { background: rgba(244,198,75,.18); color: #92580c; }

.dashboard-assistant {
  position: fixed;
  top: 122px;
  right: 24px;
  bottom: 12px;
  width: min(720px, calc(100vw - 48px));
  z-index: 45;
}
.dashboard-assistant-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  background: white;
  border: 1px solid #d9dde6;
  border-radius: 24px;
  box-shadow: 0 22px 46px -30px rgba(15, 23, 42, .52);
  overflow: hidden;
}
.dashboard-assistant-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 94px;
  padding: 22px 20px;
  border-bottom: 1px solid #e2e4ea;
}
.dashboard-assistant-presence {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 999px;
  background: #e5f5ef;
}
.dashboard-assistant-presence span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #55be8b;
}
.dashboard-assistant-head h2 {
  margin: 0;
  flex: 1 1 auto;
  color: #11131b;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 750;
}
.dashboard-assistant-close {
  appearance: none;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #858894;
  font: inherit;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}
.dashboard-assistant-close:hover {
  background: #f2f3f6;
  color: #363946;
}
.dashboard-assistant-thread {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 20px;
  overflow-y: auto;
  background: white;
}
.dashboard-assistant-empty {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ink-3);
  background: transparent;
  font-size: 14px;
  line-height: 1.45;
}
.dashboard-assistant-message {
  display: grid;
  gap: 4px;
  max-width: 78%;
  padding: 10px 12px;
  border: 1px solid #e4e8f2;
  border-radius: 8px;
  background: white;
}
.dashboard-assistant-message.is-user {
  justify-self: end;
  background: #eef4ff;
  border-color: #d6e4ff;
}
.dashboard-assistant-message-role {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.dashboard-assistant-message p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.dashboard-assistant-form {
  display: grid;
  gap: 10px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  background: white;
}
.dashboard-assistant-form[hidden] {
  display: none !important;
}
.dashboard-assistant-form textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
}
.dashboard-assistant-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 141, 239, .12);
}
.dashboard-assistant-form textarea:disabled {
  background: var(--bg-2);
  color: var(--muted);
}
.dashboard-assistant-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dashboard-assistant-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 12px;
}
.dashboard-assistant-actions .btn {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
}
.dashboard-assistant-actions .btn:disabled {
  opacity: .52;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 760px) {
  .dashboard-shell {
    padding: 0;
  }
  .dashboard-assistant {
    top: 92px;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }
  .dashboard-assistant-head {
    min-height: 78px;
    padding: 18px 16px;
  }
  .dashboard-assistant-head h2 {
    font-size: 23px;
  }
  .dashboard-assistant-close {
    width: 34px;
    height: 34px;
    font-size: 34px;
  }
}

/* ─────────────────────────────────────────────── upload UX */
.upload-section { padding: 56px 24px 110px; }
.upload-form { display: grid; gap: 18px; margin-top: 22px; }
.upload-mobile { display: block; cursor: pointer; }
.upload-mobile input { display: none; }
.upload-mobile-cta {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; font-weight: 600; font-size: 16px;
  box-shadow: 0 12px 26px -10px rgba(91,141,239,.5);
}
.upload-cam { font-size: 24px; }
.upload-or { text-align: center; font-size: 13px; }
.upload-drop {
  display: block; cursor: pointer; position: relative;
  padding: 38px 24px; text-align: center;
  border: 2px dashed var(--line); border-radius: var(--radius);
  background: var(--bg-2); color: var(--ink-2);
  transition: border-color .15s, background .15s;
}
.upload-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-drop:hover, .upload-drop-hot {
  border-color: var(--accent); background: rgba(91,141,239,.06);
}
.upload-drop-inner { display: grid; gap: 6px; }
/* The HTML `hidden` attribute must win over our `display: flex/block` rules.
   Without this, the spinner and result panels render on initial page load,
   so users see "Reading your document..." before they've
   even clicked Upload. Bug found 2026-04-30. */
.upload-status[hidden], .upload-result[hidden] { display: none !important; }
.upload-status {
  display: block; margin-top: 24px;
  padding: 18px 20px; background: white; border-radius: 10px;
  border: 1px solid var(--line);
}
.upload-progress { display: grid; gap: 10px; }
.upload-progress-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
}
.upload-progress-label {
  font-weight: 600; font-size: 15px; color: var(--ink);
  letter-spacing: -.005em;
}
.upload-progress-pct {
  font-variant-numeric: tabular-nums;
  font-weight: 600; font-size: 15px; color: var(--ink-2);
}
.upload-progress-track {
  position: relative;
  height: 8px; border-radius: 999px;
  background: var(--bg-2);
  overflow: hidden;
}
.upload-progress-bar {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .25s ease, background .25s ease;
}
.upload-progress-bar-process {
  background: linear-gradient(90deg, var(--accent-2), #d946ef);
  /* Subtle shimmer so the bar still looks alive even while paused at the
     90% ceiling waiting for the OCR result. */
  background-size: 200% 100%;
  animation: upload-shimmer 2.4s linear infinite;
}
.upload-progress-bar-done {
  background: linear-gradient(90deg, var(--green), #34d399);
}
@keyframes upload-shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}
.upload-progress-hint { margin: 0; font-size: 13.5px; }
/* Legacy spinner — kept for any other callers that may still use it. */
.upload-spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: upload-spin 0.9s linear infinite;
}
@keyframes upload-spin { to { transform: rotate(360deg); } }
.upload-result {
  margin-top: 24px; padding: 20px 22px;
  background: white; border-radius: 10px; border: 1px solid var(--line);
}
.upload-foot { margin-top: 26px; font-size: 13px; }
@media (max-width: 540px) {
  .upload-drop { padding: 24px 18px; }
  .upload-mobile-cta { padding: 26px 22px; font-size: 17px; }
}

@media (max-width: 720px) {
  .dash-section,
  .upload-section,
  .auth-section,
  .erase-confirm-section,
  .erase-done-section {
    padding: 32px 12px 76px;
  }
  .dashboard-shell {
    padding-left: 0;
    padding-right: 0;
    gap: 22px;
  }
  .dash-section .container,
  .upload-section .container,
  .auth-section .container,
  .erase-confirm-section .container,
  .erase-done-section .container {
    padding-left: 0;
    padding-right: 0;
  }
  .dash-head {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
  }
  .dash-head h1,
  .upload-section h1,
  .auth-title,
  .erase-confirm-card h1,
  .erase-done-card h1 {
    line-height: 1.1;
    overflow-wrap: anywhere;
  }
  .dash-head-actions,
  .dash-card-actions,
  .rec-card-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
  .dash-head-actions .btn,
  .dash-card-actions .btn,
  .rec-card-actions .btn {
    width: 100%;
    min-height: 48px;
    white-space: normal;
  }
  .dash-h2 {
    font-size: 20px;
    margin-top: 28px;
  }
  .dash-card {
    display: grid;
    align-items: stretch;
    gap: 14px;
    padding: 15px;
  }
  .dash-card-main {
    flex-basis: auto;
  }
  .dash-empty {
    padding: 20px;
  }
  .dashboard-assistant-card {
    min-height: 380px;
  }
  .dashboard-assistant-head,
  .dashboard-assistant-thread,
  .dashboard-assistant-form {
    padding-left: 14px;
    padding-right: 14px;
  }
  .dashboard-assistant-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .dashboard-assistant-actions .btn {
    width: 100%;
  }
  .pill {
    white-space: normal;
  }
  .upload-mobile-cta,
  .upload-result,
  .upload-status {
    overflow-wrap: anywhere;
  }
}

/* ─────────────────────────────────────────────── inline engagement form */
.inline-form-wrap { position: sticky; top: 90px; align-self: start; }
.inline-form-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  max-width: 460px;
  margin: 0 auto;
}
.inline-form-head { margin-bottom: 18px; }
.inline-form-eyebrow {
  display: inline-block;
  padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(91,141,239,.12), rgba(140,92,246,.12));
  color: var(--accent-ink);
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.inline-form-title {
  font-family: 'Source Serif 4', serif;
  font-size: 24px;
  margin: 12px 0 6px;
  letter-spacing: -.01em;
  font-weight: 600;
}
.inline-form-sub {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.5;
}
.inline-form { display: grid; gap: 14px; }
.if-field { display: grid; gap: 4px; }
.if-label {
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
}
.if-field input {
  font: inherit;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  transition: border-color .12s ease, box-shadow .12s ease;
  width: 100%;
  box-sizing: border-box;
}
.if-field input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,141,239,.18);
}
.if-consent {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg-2);
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 12.5px; color: var(--ink-2);
  line-height: 1.45;
}
.if-consent input { margin-top: 3px; flex-shrink: 0; }
.inline-form-foot {
  text-align: center; font-size: 12px; margin: 4px 0 0;
}

/* Google Maps Places Autocomplete dropdown — match site aesthetic */
.pac-container {
  z-index: 10020 !important;
  background: white !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
  font-family: inherit !important;
  margin-top: 4px !important;
  overflow: hidden !important;
}
.pac-item { padding: 8px 12px !important; border-top: 1px solid var(--line) !important; }
.pac-item:hover { background: var(--bg-2) !important; }

/* Stack on mobile */
@media (max-width: 900px) {
  .inline-form-wrap { position: static; max-width: 100%; }
  .inline-form-card { max-width: 100%; }
}

/* Email check-inbox + verify confirmation pages share the same look */
.check-inbox-card {
  max-width: 480px; margin: 60px auto;
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 32px;
  box-shadow: var(--shadow); text-align: center;
}
.check-inbox-card .icon { font-size: 36px; margin-bottom: 8px; }
.check-inbox-card h1 { font-family: 'Source Serif 4', serif; font-size: 24px; margin: 0 0 8px; }
.check-inbox-card p { color: var(--ink-3); margin: 8px 0; font-size: 14.5px; }

/* Dev-mode magic-link disclosure — only shown when SMTP isn't configured.
   Surfaces the verify URL directly so flow can be completed without email. */
.dev-link-banner {
  margin-top: 18px;
  padding: 14px 16px;
  background: #fff8e1;
  border: 1px solid #f5b800;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: #5d4500;
  text-align: left;
}
.dev-link-banner strong { display: block; margin-bottom: 6px; color: #5d4500; }
.dev-link-banner .dev-link-url {
  display: block;
  margin-top: 6px;
  word-break: break-all;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--accent-ink);
}

/* 6-digit code input — large, monospace, prominent.
   Used on /login (after sending) and on check_inbox. */
.code-input {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 24px;
  letter-spacing: 0.4em;
  text-align: center;
  padding: 14px 12px !important;
  text-transform: uppercase;
}
.code-form { max-width: 320px; margin: 0 auto; }

/* ─────────────────────────────────────────────── account erasure
   Prominent "delete my account & data" affordance on the dashboard,
   the typed-confirmation page, and the post-deletion receipt. The
   point is to make GDPR Art. 17 visible — not buried in a legal
   page. Visual language: red accent + dashed border so it reads as
   an irreversible action, not a normal CTA. */

.btn-danger {
  background: #dc2626;
  color: white;
  border: 1px solid #b91c1c;
  box-shadow: 0 8px 22px -10px rgba(220, 38, 38, .55);
}
.btn-danger:hover { background: #b91c1c; box-shadow: 0 12px 26px -10px rgba(185, 28, 28, .7); }
.btn-danger:disabled,
.btn-danger[aria-disabled="true"] {
  opacity: 0.55; cursor: not-allowed; transform: none;
}
.btn-ghost-light {
  background: white;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.btn-ghost-light:hover { background: var(--bg-2); }

.erase-zone {
  margin-top: 56px;
  padding: 24px 26px;
  display: flex; gap: 18px; align-items: flex-start;
  flex-wrap: wrap;
  border: 1px dashed #fca5a5;
  background: #fef2f2;
  border-radius: 12px;
  color: #7f1d1d;
}
.erase-zone-icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: white; color: #dc2626;
  border: 1px solid #fecaca;
}
.erase-zone-body { flex: 1 1 280px; min-width: 0; }
.erase-zone-body h2 {
  margin: 0 0 6px;
  font-size: 19px; letter-spacing: -.01em;
  color: #991b1b;
  border: none; padding: 0;
}
.erase-zone-body p {
  margin: 0 0 10px; font-size: 14.5px; color: #7f1d1d; max-width: 60ch;
}
.erase-zone-body p strong { color: #7f1d1d; }
.erase-zone-detail { color: #b45454 !important; font-size: 13.5px !important; }
.erase-zone-detail a { color: #991b1b; text-decoration: underline; }
.erase-zone-body .btn-danger { margin-top: 6px; }

/* Confirmation page (typed DELETE) */
.erase-confirm-section { padding: 56px 24px 110px; }
.erase-confirm-card {
  background: white;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 32px 32px 28px;
  box-shadow: 0 24px 48px -28px rgba(220, 38, 38, .25);
}
.erase-confirm-card h1 {
  margin: 8px 0 8px;
  font-size: 26px; letter-spacing: -.015em;
}
.erase-confirm-card h1 strong { color: #b91c1c; font-weight: 600; }
.erase-confirm-card h2 {
  font-size: 15px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-3); margin: 24px 0 8px;
}
.erase-confirm-card .lead { font-size: 17px; color: var(--ink-2); margin: 0 0 4px; }
.erase-confirm-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: #fef2f2; color: #dc2626;
  border: 1px solid #fecaca;
  margin-bottom: 4px;
}
.erase-list {
  margin: 0; padding-left: 20px;
  color: var(--ink-2); font-size: 14.5px; line-height: 1.7;
}
.erase-form { margin-top: 28px; }
.erase-form label {
  display: block; font-size: 14px; color: var(--ink-2);
  margin-bottom: 8px;
}
.erase-confirm-input {
  width: 100%; max-width: 280px;
  padding: 12px 14px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 18px; letter-spacing: 0.18em; text-align: center;
  text-transform: uppercase;
  border: 1px solid #fca5a5;
  border-radius: 10px; background: #fffbfb;
  color: #991b1b;
}
.erase-confirm-input:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .15);
}
.erase-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 18px;
}

/* Post-deletion receipt page */
.erase-done-section { padding: 80px 24px 110px; }
.erase-done-card {
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px 32px 36px;
  box-shadow: 0 24px 48px -28px rgba(91,141,239,.25);
}
.erase-done-card h1 {
  margin: 14px 0 10px;
  font-size: 28px; letter-spacing: -.015em;
}
.erase-done-card .lead { color: var(--ink-2); margin: 0 auto 10px; max-width: 48ch; }
.erase-done-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: #f0fdf4; color: #16a34a;
  border: 1px solid #bbf7d0;
}
.erase-done-actions { margin-top: 24px; }

@media (max-width: 540px) {
  .erase-zone { padding: 18px; }
  .erase-confirm-card { padding: 22px 20px 20px; }
  .erase-actions { flex-direction: column; align-items: stretch; }
  .erase-actions .btn { width: 100%; }
}

/* ───────────────────────────────────────────────
   Country home — refreshed sections (2026-04-30)

   Why this exists: the original country home was three thin sections
   (3-step flow, flat €19 pricing card, 4-question FAQ). The home was
   the highest-traffic page for SEO but the lowest-converting because
   it didn't explain the AI value proposition or why someone should
   trust us with welfare-application data. This block adds:

     - .hero-stats     — service count / lang count / "from €X"
     - .ai-section     — what the AI actually does (4 cards) + a
                         with/without comparison table
     - .privacy-section— 6-point EU/encryption/no-tracking pitch
     - .price-card-wide— per-application range pricing, not a flat
                         number; the old €19 number was wrong because
                         pricing.py prices each benefit individually.
     - .cta-section    — closing CTA bar above the footer
   ─────────────────────────────────────────────── */

.hero-lead {
  max-width: 720px;
  margin: 0 auto 26px;
  font-size: 17.5px;
  line-height: 1.55;
  color: #c7c8d8;
}

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 28px 56px;
  justify-content: center;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 600; letter-spacing: -.01em;
  background: linear-gradient(135deg, #e8eaff 0%, #c8b8ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stat-lab {
  margin-top: 4px;
  font-size: 12.5px; letter-spacing: .04em;
  text-transform: uppercase;
  color: #8a8b9c;
}

/* AI section ───────────────────────────────────── */
.ai-section {
  padding: 80px 0;
  background:
    radial-gradient(900px 400px at 80% 0%, rgba(91,141,239,.05), transparent 70%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.ai-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 8px 0 48px;
}
.ai-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ai-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(91,141,239,.4);
}
.ai-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 14px;
}
.ai-icon-lang  { background: rgba(91,141,239,.10);  color: var(--accent-ink); }
.ai-icon-form  { background: rgba(140,92,246,.10);  color: #6d3fc7; }
.ai-icon-check { background: rgba(16,185,129,.12);  color: #047857; }
.ai-icon-doc   { background: rgba(244,198,75,.18);  color: #92580c; }
.ai-card h3 {
  font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  margin: 0 0 6px;
}
.ai-card p { margin: 0; color: var(--ink-3); font-size: 14.5px; line-height: 1.55; }

/* with/without comparison */
.ai-vs {
  display: grid; gap: 16px;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}
.ai-vs-col {
  border-radius: var(--radius);
  padding: 24px 26px;
}
.ai-vs-bad {
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.ai-vs-good {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.ai-vs-head {
  font-weight: 700; letter-spacing: -.005em;
  margin-bottom: 14px;
  font-size: 15px;
  display: flex; align-items: center; gap: 10px;
}
.ai-vs-bad .ai-vs-head::before {
  content: "✕"; color: #b91c1c;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  background: white; border: 1px solid #fecaca; border-radius: 50%;
  font-size: 13px;
}
.ai-vs-good .ai-vs-head::before {
  content: "✓"; color: #047857;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  background: white; border: 1px solid #bbf7d0; border-radius: 50%;
  font-size: 13px;
}
.ai-vs-col ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.ai-vs-col li {
  font-size: 14px; line-height: 1.5;
  padding-inline-start: 22px;
  position: relative;
  color: var(--ink-2);
}
.ai-vs-bad li::before {
  content: "—"; position: absolute; inset-inline-start: 0; color: #b91c1c; font-weight: 700;
}
.ai-vs-good li::before {
  content: "+"; position: absolute; inset-inline-start: 0; color: #047857; font-weight: 700;
}
@media (max-width: 720px) {
  .ai-vs { grid-template-columns: 1fr; }
}

/* 5-step process — denser grid than the legacy 3-step */
.steps-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.how-foot {
  margin: 36px 0 0;
  padding: 18px 22px;
  background: white;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px; color: var(--ink-3);
  text-align: center;
}

/* Privacy section ───────────────────────────────── */
.privacy-section {
  padding: 90px 0;
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(91,141,239,.18), transparent 70%),
    radial-gradient(700px 400px at 100% 100%, rgba(140,92,246,.16), transparent 70%),
    linear-gradient(180deg, #0a0a0f 0%, #15172a 100%);
  color: white;
  border-bottom: 1px solid var(--line);
}
.privacy-grid {
  display: grid; gap: 56px;
  grid-template-columns: 1fr 1.2fr;
  align-items: start;
}
@media (max-width: 900px) {
  .privacy-grid { grid-template-columns: 1fr; gap: 32px; }
}
.privacy-section .section-title { color: white; margin-top: 12px; }
.privacy-sub {
  color: #c7c8d8; font-size: 16px; line-height: 1.6;
  margin: 0 0 24px;
  max-width: 50ch;
}
.eyebrow-dark {
  display: inline-block;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
  color: #c7c8d8;
}
.btn-ghost-dark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: white !important;
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 600; font-size: 14.5px;
  transition: background .12s ease, transform .12s ease;
}
.btn-ghost-dark:hover { background: rgba(255,255,255,.14); text-decoration: none; transform: translateY(-1px); }

.privacy-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 14px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) { .privacy-list { grid-template-columns: 1fr; } }
.privacy-list li {
  display: flex; gap: 18px;
  padding: 22px 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  align-items: flex-start;
  transition: background .15s ease, border-color .15s ease;
}
.privacy-list li:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
}
.privacy-ico {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.25), transparent 36%),
    linear-gradient(135deg, rgba(91,141,239,.24), rgba(140,92,246,.12));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 18px 32px -24px rgba(0,0,0,.8);
  color: #dbeafe;
  line-height: 1;
}
.privacy-ico svg {
  display: block;
  width: 30px; height: 30px;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.privacy-ico-eu { color: #93c5fd; }
.privacy-ico-lock { color: #c4b5fd; }
.privacy-ico-delete { color: #fca5a5; }
.privacy-ico-private { color: #67e8f9; }
.privacy-ico-document { color: #fde68a; }
.privacy-ico-person { color: #86efac; }
.privacy-list li > div {
  min-width: 0;
  padding-top: 3px;
}
.privacy-list strong {
  display: block;
  font-size: 14.5px; font-weight: 600;
  color: white;
  margin-bottom: 4px;
}
.privacy-list li > div > span {
  display: block;
  font-size: 13.5px; line-height: 1.5;
  color: #c7c8d8;
}

/* Pricing — wider card with range and "fair" callout */
.price-card-wide { max-width: 580px; }
.price-prefix {
  font-family: 'Source Serif 4', serif;
  font-size: 26px; font-weight: 500;
  color: var(--ink-3);
  margin-inline-end: 4px;
}
.price-range {
  margin: 0 0 24px;
  color: var(--ink-3);
  font-size: 14px;
}
.price-fair {
  margin-top: 24px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(91,141,239,.08) 0%, rgba(140,92,246,.08) 100%);
  border: 1px solid rgba(91,141,239,.18);
  border-radius: var(--radius-sm);
  text-align: start;
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.price-fair strong {
  display: block;
  color: var(--accent-ink);
  font-size: 13px;
  margin-bottom: 4px;
}
.price-fair span { display: block; line-height: 1.5; }
.price-foot {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* Closing CTA section above footer */
.cta-section {
  padding: 70px 0 80px;
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(91,141,239,.10), transparent 70%),
    var(--paper);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.cta-section h2 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}
.cta-section p {
  margin: 0 auto 28px;
  max-width: 56ch;
  color: var(--ink-3);
  font-size: 16px;
}

/* Mobile tweaks */
@media (max-width: 720px) {
  .hero-stats { gap: 18px 32px; margin-top: 36px; padding-top: 22px; }
  .ai-section, .privacy-section { padding: 56px 0; }
  .ai-grid { gap: 14px; }
  .ai-card { padding: 22px 20px; }
  .privacy-grid { gap: 24px; }
  .price-card { padding: 24px 20px; }
}

/* ─────────────────────────────────────────────── recommendation card */
/* Surfaced on the dashboard when an analyzer recommendation is active. */
.rec-card {
  margin-bottom: 24px; padding: 20px 22px;
  background: linear-gradient(180deg, #f5f3ff, #ffffff 60%);
  border: 1px solid #d9d3fb;
  border-radius: 12px;
}
.rec-card-eyebrow {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(140,92,246,.14); color: #5b3fc1;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.rec-card h2 {
  margin: 0 0 8px; font-size: 22px; font-weight: 700;
  letter-spacing: -.01em;
}
.rec-card-rationale { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; }
.rec-card-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rec-card .pill { background: rgba(91,141,239,.14); color: var(--accent-ink); }
/* iter12: pill-action — secondary CTAs that sit next to .btn-primary in
   the recommendation card. Bigger touch target (>=40px tall on mobile),
   clearer hover state, real button shape. Replaces the previous "tiny
   blue capsule that looked decorative" look that triggered the 2026-05-04
   "buttons are very ugly" feedback. Keeps the .pill base shape (rounded)
   but matches the visual weight of .btn-ghost (used elsewhere on auth pages). */
.pill-action {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  background: var(--bg-2, #f4f5f9);
  color: var(--accent-ink, #4053d6);
  border: 1px solid rgba(91,141,239,.22);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
  white-space: nowrap;
}
.pill-action:hover {
  background: rgba(91,141,239,.10);
  border-color: rgba(91,141,239,.45);
  text-decoration: none;
}
.pill-action:active { transform: translateY(1px); }
.pill-action:focus-visible {
  outline: 2px solid var(--accent, #5b8def);
  outline-offset: 2px;
}
.rec-card .pill-action {
  /* slightly stronger inside the rec-card to balance against btn-primary */
  background: rgba(91,141,239,.10);
}
.rec-card .pill-action:hover { background: rgba(91,141,239,.18); }
.rec-card-evidence {
  margin: 14px 0 0; padding: 12px 14px;
  background: white; border: 1px solid var(--line);
  border-radius: 10px; font-size: 13.5px;
}
.rec-card-evidence q { color: var(--ink-2); font-style: italic; }
.rec-card-evidence cite {
  display: block; margin-top: 4px; color: var(--muted);
  font-size: 12.5px; font-style: normal;
}
.rec-others {
  margin: 14px 0 30px;
}
.rec-others-heading {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}
.rec-others-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.rec-others-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.rec-others-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  padding: 14px 16px;
  color: inherit;
}
.rec-others-link:hover {
  text-decoration: none;
  border-color: rgba(91,141,239,.4);
}
.rec-others-rationale {
  grid-column: 1 / -1;
  font-size: 13.5px;
}
.rec-others-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pill-confidence-high { background: rgba(16,185,129,.12); color: #047857; }
.pill-confidence-medium { background: rgba(244,198,75,.18); color: #92580c; }
.pill-confidence-low { background: rgba(107,114,128,.14); color: #4b5563; }

/* ───────────────────────────────────────────────
   Country home — hero v2 (2026-05-01)

   Why this exists: the v1 hero was centered and the title wrapped to
   4 lines on country-home pages. The right-side persistent chat panel
   (~376px wide on screens ≥1100px) was visually competing with the
   centered title and pushing the stats under it.

   v2 is a left-aligned 2-column hero — text on the left, a sample
   benefit-card stack on the right. Below 1180px the right column
   collapses to a single column so the chat panel and the hero card
   never fight for the same horizontal space.
   ─────────────────────────────────────────────── */

.hero-2col {
  padding: 72px 0 88px;
}
.hero-2col .hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}

/* Left text column. Width-cap the title at ~14ch so it stays a tight
   2-line headline and doesn't wrap to 3+ lines like the centered v1. */
.hero-2col .hero-text { min-width: 0; }
.hero-2col .hero-title {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.04;
  margin: 18px 0 14px;
  max-width: 14ch;
}
.hero-2col .hero-flag {
  display: inline-block;
  margin-top: 8px;
  font-size: .42em;
  vertical-align: middle;
}
.hero-2col .hero-lead {
  margin: 0 0 26px;
  max-width: 56ch;
  font-size: 17px;
  color: #c7c8d8;
}
.hero-2col .hero-trust {
  margin: 0 0 28px;
  justify-content: flex-start;
  max-width: 100%;
}
.hero-2col .hero-cta { justify-content: flex-start; gap: 10px; }

/* Stats card — bordered surface with vertical dividers; replaces the
   loose horizontal row. Sits inside the left column under the CTAs. */
.hero-2col .hero-stats {
  margin-top: 36px;
  padding: 18px 24px;
  border: 1px solid rgba(255,255,255,.10);
  border-top: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  justify-content: stretch;
}
.hero-2col .hero-stat {
  text-align: start;
  padding: 6px 0;
  position: relative;
}
.hero-2col .hero-stat + .hero-stat {
  padding-inline-start: 24px;
  border-inline-start: 1px solid rgba(255,255,255,.08);
}
.hero-2col .hero-stat-num {
  font-size: clamp(24px, 2.4vw, 30px);
  display: block;
}
.hero-2col .hero-stat-lab {
  font-size: 11.5px;
  letter-spacing: .05em;
  color: #8a8b9c;
}

/* Right visual column — a stack of three cards with depth. The front
   card is a real .benefit-card so the styling matches the live grid
   below; the two back cards are pure decoration to imply "more
   services". */
.hero-visual {
  position: relative;
  min-width: 0;
  /* Box gets a comfortable height so the back-cards have room to peek
     above and below the front card without clipping. */
  min-height: 360px;
  display: flex; align-items: center; justify-content: center;
}
.hero-card-stack {
  position: relative;
  width: 100%; max-width: 420px;
}
.hero-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
/* Two decorative cards behind the real benefit card. They scale and
   offset slightly to imply a stack, and use a faded glassy fill so
   they read as "more options" rather than empty boxes. */
.hero-card-back, .hero-card-mid {
  position: absolute; left: 0; right: 0;
  height: 100%;
  pointer-events: none;
}
.hero-card-back {
  top: 22px; left: 32px; right: -32px;
  transform: rotate(2.5deg);
  background: linear-gradient(180deg, rgba(140,92,246,.10), rgba(91,141,239,.04));
  border-color: rgba(255,255,255,.06);
  opacity: .55;
}
.hero-card-mid {
  top: 12px; left: 16px; right: -16px;
  transform: rotate(-1.5deg);
  background: linear-gradient(180deg, rgba(91,141,239,.12), rgba(91,141,239,.04));
  border-color: rgba(255,255,255,.10);
  opacity: .8;
}
/* Front card: the real benefit card. Force a light-on-dark frame so
   it pops against the dark hero background. Reuses .benefit-card
   styles for layout but overrides colors. */
.hero-card-front.benefit-card {
  position: relative;
  background: white;
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(20,22,60,.55),
              0 6px 14px -8px rgba(91,141,239,.4);
  border-color: rgba(255,255,255,.18);
  text-decoration: none;
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-card-front.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 36px 70px -22px rgba(20,22,60,.65),
              0 8px 18px -10px rgba(91,141,239,.55);
  text-decoration: none;
}
.hero-card-pill {
  position: absolute;
  top: -12px; inset-inline-start: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-size: 11px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 6px 16px -6px rgba(91,141,239,.6);
}
.hero-card-pill::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 3px rgba(255,255,255,.25);
  animation: hero-pill-pulse 2s ease-in-out infinite;
}
@keyframes hero-pill-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
  50%      { box-shadow: 0 0 0 6px rgba(255,255,255,.05); }
}

/* Breakpoints
   ────────────
   The chat panel sits to the right at ≥1100px (392px reserved via
   .page-main). At ≤1180px the 2-col hero would end up squeezed to
   ~400px on the left, so collapse to a single column instead. */
@media (max-width: 1180px) {
  .hero-2col .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual { min-height: 320px; }
  .hero-card-stack { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .hero-2col { padding: 48px 0 60px; }
  .hero-2col .hero-inner { padding: 0 18px; gap: 32px; }
  .hero-2col .hero-title { font-size: clamp(28px, 8vw, 40px); }
  .hero-2col .hero-stats {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 14px 14px;
    margin-top: 28px;
  }
  .hero-2col .hero-stat + .hero-stat { padding-inline-start: 14px; }
  .hero-2col .hero-stat-num { font-size: 22px; }
  .hero-2col .hero-stat-lab { font-size: 10.5px; }
  .hero-visual { min-height: 280px; }
  .hero-card-stack { max-width: 100%; }
}

/* ───────────────────────────────────────────────
   Pricing comparison table (2026-05-01)

   Replaces the single "from €X" pricing card with a SaaS-style
   per-service table: Buronia price vs solicitor estimate vs savings.
   The table is the single source of truth visible to the user, and
   payments.create_checkout_session charges price_for(benefit) so the
   number shown is exactly what Stripe will charge — no surprises.
   ─────────────────────────────────────────────── */

.price-table-wrap {
  margin: 8px 0 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px -22px rgba(20,22,60,.18);
  overflow: hidden;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  /* min-width is the touch-table threshold below; we wrap in scroll
     on mobile rather than crushing columns. */
  min-width: 640px;
}
.price-table thead th {
  text-align: start;
  padding: 14px 18px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-3);
  background: linear-gradient(180deg, #fafbff, #f3f4f6);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.price-table .pt-h-buronia { color: var(--accent-ink); }
.price-table .pt-brand {
  color: var(--accent-ink); font-weight: 700;
  letter-spacing: -.005em; text-transform: none;
  font-size: 13px;
}
.price-table .pt-h-buronia,
.price-table .pt-h-solicitor,
.price-table .pt-h-savings {
  text-align: end;
}

.price-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.price-table tbody tr:last-child td { border-bottom: 0; }

/* Zebra striping — alternate rows get a tiny background tint so the eye
   tracks across each row at a glance. */
.price-table tbody tr:nth-child(even) td { background: #fbfcff; }
.price-table tbody tr:hover td { background: rgba(91,141,239,.04); }

/* Service column — clickable. Native title bold, English subtitle below
   in muted. Whole cell links via the wrapping <a>. */
.pt-c-service { width: 50%; }
.pt-c-service a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
}
.pt-c-service a:hover .pt-service-native { color: var(--accent-ink); }
.pt-service-native {
  display: block;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.005em;
  transition: color .12s ease;
}
.pt-service-en {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
}

/* Buronia / solicitor / savings number columns — right-aligned, tabular
   numerals so the digits line up across rows. */
.pt-c-buronia, .pt-c-solicitor, .pt-c-savings {
  text-align: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pt-buronia-price {
  font-size: 16px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -.005em;
}
.pt-solicitor-price {
  font-size: 14.5px;
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: rgba(176, 88, 88, 0.55);
  text-decoration-thickness: 1.5px;
}
.pt-savings-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16,185,129,.12);
  color: #047857;
  font-size: 13px; font-weight: 600;
  letter-spacing: -.005em;
}

/* Footer block under the table — methodology disclosure + included list
   + CTA. Boxed in a subtle bg-2 panel to read as one chapter. */
.price-table-foot {
  margin-top: 28px;
  padding: 24px 26px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.price-table-method {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-3);
}
.price-table-method strong {
  display: inline;
  color: var(--ink-2);
  font-weight: 600;
  margin-inline-end: 4px;
}
.price-table-included-h {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.005em;
}
.price-included-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 28px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.price-included-grid li {
  position: relative;
  padding: 8px 0 8px 26px;
  border-bottom: 0;
  font-size: 14px;
  color: var(--ink-2);
}
.price-included-grid li::before {
  content: "✓";
  position: absolute; inset-inline-start: 0;
  color: var(--green); font-weight: 700;
}
.price-table-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
}

/* Mobile: horizontal scroll the table rather than crush columns. */
@media (max-width: 720px) {
  .price-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .price-table { min-width: 580px; }
  .price-table thead th,
  .price-table tbody td { padding: 12px 14px; }
  .pt-service-native { font-size: 14px; }
  .pt-service-en { font-size: 12px; }
  .pt-buronia-price { font-size: 15px; }
  .pt-solicitor-price { font-size: 13.5px; }
  .pt-savings-pill { font-size: 12px; padding: 3px 8px; }
  .price-included-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .price-table-foot { padding: 18px 18px; }
}

/* ─────────────────────────────────────────────── balance pill (nav) */
.balance-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: rgba(91,141,239,.10);
  color: var(--accent-ink);
  border: 1px solid rgba(91,141,239,.22);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.balance-pill:hover {
  background: rgba(91,141,239,.18);
  text-decoration: none;
}
.balance-pill-icon { line-height: 1; }
.balance-pill-low {
  background: rgba(244,198,75,.18);
  color: #92580c;
  border-color: rgba(244,198,75,.45);
}

/* ─────────────────────────────────────────────── top-up page */
.balance-card {
  margin: 22px 0 28px; padding: 24px 26px;
  background: linear-gradient(180deg, #f5f3ff, #ffffff 70%);
  border: 1px solid #d9d3fb;
  border-radius: 14px;
}
.balance-card-amount {
  font-family: 'Source Serif 4', serif;
  font-size: 38px; font-weight: 600; letter-spacing: -.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}
.topup-options {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.topup-options li form { margin: 0; }
.topup-btn {
  display: flex; flex-direction: column; align-items: flex-start;
  width: 100%;
  padding: 16px 18px;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.topup-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -10px rgba(91,141,239,.3);
}
.topup-btn-amount {
  font-family: 'Source Serif 4', serif;
  font-size: 26px; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink);
}
.topup-btn-detail { font-size: 12.5px; margin-top: 4px; }
.topup-amount-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}
.topup-amount-btn {
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: 92px;
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.topup-amount-btn:hover,
.topup-amount-btn:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 8px 22px -10px rgba(91,141,239,.30);
  outline: none;
}
.topup-amount-btn.is-selected {
  border-color: rgba(91,141,239,.70);
  background: linear-gradient(180deg, rgba(91,141,239,.12), white 72%);
  box-shadow: 0 14px 30px -22px rgba(91,141,239,.50);
}
.topup-amount-amount {
  font-family: 'Source Serif 4', serif;
  font-size: 28px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.01em;
}
.topup-amount-detail {
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.35;
}
.topup-prices {
  width: 100%; border-collapse: collapse;
  background: white; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
}
.topup-prices th, .topup-prices td {
  padding: 10px 14px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.topup-prices th {
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  background: var(--bg-2);
}
.topup-prices tbody tr:last-child td { border-bottom: 0; }
.topup-prices td:last-child {
  font-variant-numeric: tabular-nums;
  text-align: right; font-weight: 600;
}
.ledger-list {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: grid; gap: 4px;
  font-size: 13.5px;
}
.ledger-list li {
  display: grid;
  grid-template-columns: 140px 1fr auto auto;
  gap: 12px; align-items: baseline;
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.ledger-reason { color: var(--ink-2); }
.ledger-amount {
  font-variant-numeric: tabular-nums; font-weight: 600;
}
.ledger-credit { color: var(--green); }
.ledger-debit  { color: var(--ink-2); }

@media (max-width: 720px) {
  .balance-card {
    padding: 20px;
  }
  .topup-amount-row {
    grid-template-columns: 1fr;
  }
  .topup-amount-btn {
    min-height: 78px;
    padding: 15px 16px;
  }
  .topup-prices {
    table-layout: fixed;
  }
  .topup-prices th,
  .topup-prices td {
    padding: 10px;
    vertical-align: top;
    overflow-wrap: anywhere;
  }
  .topup-prices td:last-child {
    width: 86px;
  }
  .ledger-list li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px;
  }
}

/* ───────── Calculator ───────── */
.calc-shell { padding: 32px 0 96px; }
.calc-grid {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start;
}
@media (max-width: 980px) {
  .calc-grid { grid-template-columns: 1fr; gap: 24px; }
}

.calc-header { margin-bottom: 32px; }
.calc-header .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2, #64748b); margin-bottom: 12px;
}
.calc-title {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.15;
  letter-spacing: -0.01em; margin: 0 0 8px;
}
.calc-subtitle { font-size: 16px; color: var(--ink-2, #475569); max-width: 56ch; margin: 0; }

.calc-field { margin: 24px 0; padding: 0; }
.calc-field-label {
  display: block; font-weight: 600; font-size: 15px;
  color: var(--ink, #0f172a); margin-bottom: 6px;
}
.calc-field-help {
  font-size: 13px; color: var(--ink-2, #64748b); margin: 0 0 12px;
  line-height: 1.5; max-width: 56ch;
}

.calc-input, .calc-select {
  width: 100%; max-width: 320px;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid var(--line, #e5e7eb); border-radius: 10px;
  background: white;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.calc-input:focus, .calc-select:focus {
  outline: none;
  border-color: #0f172a; box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

/* slider */
.calc-slider-wrap {
  display: flex; align-items: center; gap: 16px; max-width: 380px;
}
.calc-slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, #0f172a 0%, #0f172a var(--pct, 50%), #e5e7eb var(--pct, 50%), #e5e7eb 100%);
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: white; border: 2px solid #0f172a;
  cursor: grab; transition: transform .12s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.calc-slider::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.calc-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: white; border: 2px solid #0f172a; cursor: grab;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.calc-slider-value {
  font-variant-numeric: tabular-nums; font-weight: 600;
  font-size: 18px; min-width: 38px; text-align: right;
  background: #f1f5f9; padding: 6px 12px; border-radius: 8px;
}

/* segmented */
.calc-segmented {
  display: inline-flex; background: #f1f5f9; padding: 4px;
  border-radius: 10px; gap: 0;
}
.calc-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.calc-segmented label {
  cursor: pointer; padding: 8px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-2, #64748b);
  transition: background .15s, color .15s, box-shadow .15s;
  min-width: 72px; text-align: center;
}
.calc-segmented input:checked + label {
  background: white; color: var(--ink, #0f172a);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.calc-trust {
  font-size: 12px; color: var(--ink-2, #64748b); margin-top: 32px;
}
.calc-trust a { color: inherit; text-decoration: underline; }

/* ─── right panel ─── */
.calc-result {
  position: sticky; top: 24px;
}
.calc-result-inner {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border-radius: 20px; padding: 36px 32px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}
.calc-result-headline {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 8px;
}
.calc-result-num {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(48px, 7vw, 72px); font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.calc-result-unit {
  font-size: 16px; color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.calc-result-formula {
  font-size: 14px; color: rgba(255,255,255,0.78);
  margin: 12px 0 20px; line-height: 1.5;
}
.calc-result-warn {
  background: rgba(251, 146, 60, 0.14);
  border-left: 3px solid #fb923c;
  padding: 12px 14px; border-radius: 6px;
  font-size: 13px; line-height: 1.5; color: #fed7aa;
  margin-bottom: 20px;
}
.calc-breakdown { list-style: none; padding: 0; margin: 0 0 24px; }
.calc-breakdown li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}
.calc-breakdown li:last-child { border-bottom: 0; }
.calc-breakdown-label { color: rgba(255,255,255,0.7); }
.calc-breakdown-value {
  font-variant-numeric: tabular-nums; font-weight: 600; color: white;
}
.calc-cta-wrap {
  display: flex; flex-direction: column; gap: 10px; margin-top: 8px;
}
.calc-cta { width: 100%; text-align: center; }
.calc-share {
  background: transparent; border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  padding: 10px 16px; border-radius: 10px; font-size: 13px;
  cursor: pointer; transition: background .15s, border-color .15s;
  font-family: inherit;
}
.calc-share:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }

/* Disclaimer panel inside the dark result aside on the full calculator
   page. Visually subdued so the headline number is still the primary
   focus, but legible enough to actually be read. */
.calc-disclaimer {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}
.calc-disclaimer-h {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 13px;
}
.calc-disclaimer-body { margin: 0; }
.calc-disclaimer a {
  color: inherit;
  text-decoration: underline;
}

/* Compact disclaimer in the side-calc widget (light theme). Smaller,
   denser — the side widget already lives in narrow real estate. */
.side-calc-disclaimer {
  margin: 12px 0 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  border-left: 3px solid rgba(0, 0, 0, 0.18);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-2, #555);
}
.side-calc-disclaimer strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink, #222);
  font-size: 12px;
}
.side-calc-disclaimer a { color: inherit; text-decoration: underline; }


/* ─────────────────────────────────────────────── mail-dispatch upsell page */
.mail-form { display: grid; gap: 22px; margin-top: 28px; }
.mail-form-row { display: grid; gap: 8px; }
.mail-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.mail-form select {
  width: 100%; padding: 14px 14px;
  font-size: 16px; line-height: 1.4;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: white; color: var(--ink);
}
.mail-form select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The "this is what will appear in the envelope window" preview is
   a small visual cue, deliberately styled to look like a window-
   envelope cutout so the user immediately recognises it. */
.address-preview {
  border: 1px dashed var(--line); border-radius: 10px;
  padding: 14px 16px;
  background: rgba(91,141,239,0.04);
}
.address-preview-label {
  display: block; font-size: 12px; color: var(--ink-2);
  margin-bottom: 8px; text-transform: uppercase;
  letter-spacing: 0.04em; font-weight: 600;
}
.address-preview-window {
  background: white; padding: 12px 14px; border-radius: 6px;
  font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.45;
  color: var(--ink); border: 1px solid rgba(0,0,0,0.06);
  /* Approximate the C5 envelope window (85.5 × 25.5mm scaled). */
  min-height: 76px;
  font-variant-numeric: tabular-nums;
}
.address-preview-window > div {
  white-space: pre; overflow: hidden; text-overflow: ellipsis;
}

/* Delivery-class radio cards — bigger touch targets for the older
   demographic. Min 44px touch size per Buronia's mobile rule. */
.mail-delivery-choice {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px;
}
.mail-delivery-choice legend {
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  padding: 0 6px;
}
.mail-delivery-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 10px;
  cursor: pointer; border-radius: 8px;
  min-height: 56px;
}
.mail-delivery-option:hover { background: rgba(91,141,239,0.05); }
.mail-delivery-option input { width: 20px; height: 20px; flex: 0 0 20px; }
.mail-delivery-option > div {
  display: grid; gap: 2px;
  grid-template-columns: 1fr auto;
  flex: 1; align-items: baseline;
}
.mail-delivery-option strong { font-size: 15px; }
.mail-delivery-option .muted { font-size: 13px; grid-column: 1; }
.mail-delivery-option .price {
  grid-row: span 2; align-self: center;
  font-weight: 700; font-size: 16px;
  color: var(--accent);
}

.muted.small { font-size: 12px; line-height: 1.5; }

/* History table styled simply; matches dashboard.html drafts table. */
.mail-history {
  width: 100%; border-collapse: collapse; margin-top: 14px;
  font-size: 14px;
}
.mail-history th, .mail-history td {
  padding: 10px 8px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.mail-history th { font-weight: 600; color: var(--ink-2); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.04em; }

.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.badge.status-pending,
.badge.status-validating,
.badge.status-action_required { background: rgba(244,198,75,0.18); color: #92580c; }
.badge.status-valid,
.badge.status-submitted,
.badge.status-mailed,
.badge.status-delivered { background: rgba(67,160,71,0.16); color: #1f5e22; }
.badge.status-dispatch_failed,
.badge.status-failed { background: rgba(220,69,69,0.14); color: #8a1f1f; }

/* Mobile: stack delivery options into single column with bigger
   visual hierarchy. Per Buronia's "Mobile always" rule. */
@media (max-width: 640px) {
  .mail-form { gap: 18px; }
  .mail-delivery-option { padding: 16px 8px; }
  .mail-delivery-option > div {
    grid-template-columns: 1fr;
  }
  .mail-delivery-option .muted {
    grid-column: auto;
  }
  .mail-delivery-option .price {
    grid-row: auto;
    justify-self: start;
    margin-top: 2px;
  }
  .address-preview-window > div {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .mail-delivery-option .price { font-size: 18px; }
  .mail-history {
    display: block;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
  }
  .mail-history thead {
    display: none;
  }
  .mail-history tbody,
  .mail-history tr,
  .mail-history td {
    display: block;
    width: 100%;
  }
  .mail-history tr {
    padding: 12px 14px;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
  }
  .mail-history td {
    display: grid;
    grid-template-columns: minmax(92px, .42fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 6px 0;
    border-bottom: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .mail-history td::before {
    content: attr(data-label);
    color: var(--ink-3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
}

/* ───────── Calculator below-the-fold SEO sections ───────── */
.calc-seo {
  padding: 64px 24px 32px;
  max-width: 880px;
  margin: 0 auto;
}
.calc-seo-h {
  font-family: 'Source Serif 4', serif;
  font-size: 32px; line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.calc-seo-lead {
  color: var(--ink-2, #475569);
  margin: 0 0 32px; font-size: 16px;
  max-width: 56ch;
}
.calc-seo-faq {
  border-top: 1px solid var(--line, #e5e7eb);
  padding: 16px 0;
}
.calc-seo-faq:last-child { border-bottom: 1px solid var(--line, #e5e7eb); }
.calc-seo-faq > summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.calc-seo-faq > summary::-webkit-details-marker { display: none; }
.calc-seo-faq > summary::after {
  content: "+"; font-size: 20px; color: var(--ink-2, #64748b);
  transition: transform .15s;
}
.calc-seo-faq[open] > summary::after {
  content: "−";
}
.calc-seo-faq > summary > h3 {
  margin: 0; font-size: 18px; font-weight: 600;
  font-family: inherit;
  color: var(--ink, #0f172a);
}
.calc-seo-faq p,
.calc-seo-faq ul,
.calc-seo-faq ol,
.calc-seo-faq pre {
  margin: 12px 0;
  font-size: 15px; line-height: 1.7;
  color: #1f2937;
}
.calc-seo-faq pre {
  background: #f8fafc; border: 1px solid var(--line, #e5e7eb);
  padding: 14px 16px; border-radius: 8px; font-size: 13px;
  overflow-x: auto;
}
.calc-seo-faq code {
  background: #f1f5f9; padding: 2px 6px; border-radius: 4px;
  font-size: 13px;
}
.calc-seo-faq pre code { background: none; padding: 0; }
.calc-seo-faq ul, .calc-seo-faq ol { padding-left: 24px; }
.calc-seo-faq li { margin: 6px 0; }
.calc-seo-faq strong { color: var(--ink, #0f172a); }
.calc-seo-faq a { color: var(--ink, #0f172a); text-decoration: underline; }

.calc-back {
  margin: 32px auto 96px; max-width: 880px;
  padding: 32px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  text-align: center;
}
.calc-back h2 {
  font-family: 'Source Serif 4', serif;
  margin: 0 0 12px; font-size: 24px;
}
.calc-back p { font-size: 16px; line-height: 1.6; color: var(--ink-2, #475569); }
.calc-back .btn { margin-top: 8px; }

/* ───────── Calculator call-out chip on benefit landing pages ───────── */
.benefit-calc-callout {
  display: flex; align-items: center; gap: 16px;
  background: #f8fafc;
  border: 1px solid var(--line, #e5e7eb);
  border-left: 3px solid var(--ink, #0f172a);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0 8px;
  text-decoration: none; color: inherit;
  transition: background .15s, transform .15s;
}
.benefit-calc-callout:hover {
  background: white;
  transform: translateY(-1px);
}
.benefit-calc-callout-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--ink, #0f172a); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex: 0 0 auto;
}
.benefit-calc-callout-text { flex: 1; min-width: 0; }
.benefit-calc-callout-h {
  font-weight: 600; font-size: 16px;
  color: var(--ink, #0f172a);
  margin: 0 0 2px;
}
.benefit-calc-callout-sub {
  font-size: 13px; color: var(--ink-2, #64748b);
  margin: 0;
}
.benefit-calc-callout-arrow {
  color: var(--ink-2, #64748b); font-size: 20px;
  flex: 0 0 auto;
}

/* ───────── Calculator lang-only banner ───────── */
.calc-lang-banner {
  margin: 16px 0 24px;
  padding: 14px 18px;
  background: #fef9c3;             /* soft yellow */
  border: 1px solid #fde68a;
  border-left: 3px solid #ca8a04;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
}
.calc-lang-banner[dir="rtl"] {
  border-left: 1px solid #fde68a;
  border-right: 3px solid #ca8a04;
}
.calc-lang-banner-msg {
  margin: 0; color: #713f12; font-weight: 500;
}
.calc-lang-banner-link {
  margin: 6px 0 0; color: #713f12;
}
.calc-lang-banner-link a {
  color: #713f12;
  text-decoration: underline;
  font-weight: 600;
}
.calc-lang-banner-link a:hover { color: #422006; }

/* ───────── Footer calculator list ───────── */
.footer-calculators {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  margin: 0 auto; max-width: 1180px;
}
.footer-calculators h4 {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.62);
  margin: 0 0 14px;
}
.footer-calculators-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px 16px;
}
.footer-calculators-list li {
  font-size: 14px;
}
.footer-calculators-list a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.footer-calculators-list a:hover {
  border-bottom-color: rgba(255,255,255,0.4);
}

/* ───────── Embedded mini-calculator on benefit landing pages ───────── */
.benefit-mini-calc {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border-radius: 16px;
  padding: 24px 24px 20px;
  margin: 20px 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.benefit-mini-calc-headline {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 6px;
}
.benefit-mini-calc-num {
  font-family: 'Source Serif 4', serif;
  font-size: 44px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.benefit-mini-calc-unit {
  font-size: 14px; color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.benefit-mini-calc-formula {
  font-size: 13px; color: rgba(255,255,255,0.78);
  margin: 6px 0 16px; line-height: 1.5;
}
.benefit-mini-calc-field { margin-bottom: 14px; }
.benefit-mini-calc-label {
  display: block; font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.7); margin-bottom: 6px;
}
.benefit-mini-calc-slider-wrap {
  display: flex; align-items: center; gap: 12px;
}
.benefit-mini-calc-slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.18); outline: none;
}
.benefit-mini-calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: white; cursor: grab;
}
.benefit-mini-calc-slider-value {
  font-variant-numeric: tabular-nums; font-weight: 600;
  font-size: 15px; min-width: 28px; text-align: right;
  background: rgba(255,255,255,0.08); padding: 4px 10px; border-radius: 6px;
}
.benefit-mini-calc-cta {
  display: inline-block; width: 100%;
  text-align: center; padding: 12px 20px;
  background: white !important; color: #0f172a !important;
  border-radius: 10px; font-weight: 600; font-size: 14px;
  text-decoration: none;
}
.benefit-mini-calc-cta:hover { background: #f1f5f9 !important; }
.benefit-mini-calc-disclaimer {
  margin: 8px 0 0; font-size: 11px;
  color: rgba(255,255,255,0.55);
}

/* ───────── Calculator landing-page extras (stronger hero) ───────── */
.calc-landing-share-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 12px;
}
.calc-landing-share-pill {
  font-size: 12px; padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px; cursor: pointer;
  background: transparent; color: rgba(255,255,255,0.85);
  font-family: inherit;
}
.calc-landing-share-pill:hover {
  background: rgba(255,255,255,0.06);
}

/* ───────── Calculator-integration layouts on benefit landing ─────────
   Three variants driven by the .benefit-hero--<variant> class:
   - default     → inherit existing styles
   - right-rail  → 2-col grid, calculator stacked on top of inline form
                   in the right column, sticky on scroll
   - left-long   → 1-col, full calculator inserted under the hero CTA */

/* Right-rail variant */
.benefit-hero--right-rail .benefit-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 32px;
  align-items: start;
}
.benefit-hero--right-rail .benefit-hero-side {
  position: sticky; top: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
@media (max-width: 980px) {
  .benefit-hero--right-rail .benefit-hero-grid {
    grid-template-columns: 1fr;
  }
  .benefit-hero--right-rail .benefit-hero-side {
    position: static;
  }
}

/* Embedded calculator partial — shared base */
.emb-calc {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}
.emb-calc-headline {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 6px;
}
.emb-calc-num {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.emb-calc-unit {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.emb-calc-formula {
  color: rgba(255,255,255,0.78);
  margin: 6px 0 18px; line-height: 1.5;
}
.emb-calc-warn {
  background: rgba(251, 146, 60, 0.14);
  border-left: 3px solid #fb923c;
  padding: 10px 12px; border-radius: 6px;
  font-size: 13px; line-height: 1.5; color: #fed7aa;
  margin-bottom: 16px;
}
.emb-calc-form { margin-bottom: 16px; }
.emb-calc-field { margin: 14px 0; }
.emb-calc-label {
  display: block; font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.7); margin-bottom: 6px;
}
.emb-calc-help {
  font-size: 11px; color: rgba(255,255,255,0.55);
  margin: 4px 0 8px; line-height: 1.45;
}
.emb-calc-slider-wrap {
  display: flex; align-items: center; gap: 12px;
}
.emb-calc-slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.18); outline: none;
}
.emb-calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: white; cursor: grab;
}
.emb-calc-slider-value {
  font-variant-numeric: tabular-nums; font-weight: 600;
  min-width: 28px; text-align: right;
  background: rgba(255,255,255,0.08); padding: 4px 10px; border-radius: 6px;
  color: white;
}
.emb-calc-input, .emb-calc-select {
  width: 100%; padding: 8px 10px;
  background: rgba(255,255,255,0.06); color: white;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 8px;
  font-size: 14px; font-family: inherit;
}
.emb-calc-segmented {
  display: inline-flex; background: rgba(255,255,255,0.06);
  padding: 3px; border-radius: 8px;
}
.emb-calc-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.emb-calc-segmented label {
  cursor: pointer; padding: 6px 16px; border-radius: 6px;
  font-size: 13px; color: rgba(255,255,255,0.65);
  min-width: 56px; text-align: center;
  transition: background .15s, color .15s;
}
.emb-calc-segmented input:checked + label {
  background: white; color: #0f172a;
}
.emb-calc-breakdown { list-style: none; padding: 0; margin: 0 0 18px; }
.emb-calc-breakdown li {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
}
.emb-calc-breakdown li:last-child { border-bottom: 0; }
.emb-calc-breakdown-label { color: rgba(255,255,255,0.7); }
.emb-calc-breakdown-value { font-variant-numeric: tabular-nums; font-weight: 600; }
.emb-calc-cta-wrap {
  display: flex; flex-direction: column; gap: 10px;
}
.emb-calc-cta {
  width: 100%; text-align: center;
  background: white !important; color: #0f172a !important;
}
.emb-calc-cta:hover { background: #f1f5f9 !important; }
.emb-calc-secondary {
  text-align: center; color: rgba(255,255,255,0.85);
  text-decoration: none; font-size: 13px;
  padding: 6px 0;
}
.emb-calc-secondary:hover { color: white; text-decoration: underline; }
.emb-calc-disclaimer {
  font-size: 11px; color: rgba(255,255,255,0.45);
  margin: 12px 0 0; line-height: 1.45;
}
.emb-calc-source {
  font-size: 11px; color: rgba(255,255,255,0.4);
  margin: 8px 0 0; line-height: 1.5;
}
.emb-calc-source a { color: rgba(255,255,255,0.55); text-decoration: underline; }
.emb-calc-source a:hover { color: rgba(255,255,255,0.85); }

/* Variant: right-rail (compact / 400px column) */
.emb-calc--right-rail .emb-calc-num    { font-size: 40px; }
.emb-calc--right-rail .emb-calc-unit   { font-size: 13px; }
.emb-calc--right-rail .emb-calc-formula{ font-size: 12px; }

/* Variant: left-long (large hero block) */
.benefit-hero--left-long .emb-calc {
  margin: 24px 0;
  padding: 36px 32px;
}
.emb-calc--left-long .emb-calc-num    { font-size: 64px; }
.emb-calc--left-long .emb-calc-unit   { font-size: 18px; }
.emb-calc--left-long .emb-calc-formula{ font-size: 15px; margin-bottom: 24px; }
.emb-calc--left-long .emb-calc-form   {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
@media (max-width: 720px) {
  .emb-calc--left-long .emb-calc-form { grid-template-columns: 1fr; }
}
.emb-calc--left-long .emb-calc-field { margin: 0; }

/* =========================================================================
   Apex (buronia.com) homepage — additions for the rebuilt landing page.
   These rules style three sections that were added 2026-05-01:
     .apex-offering — personal/business overview with handoff links
     .apex-pricing  — pricing tease, prices read from pricing.py
     .apex-seo      — per-country top-traffic SEO footer (one column / live country)
   The apex hero, country grid, AI cards, coverage strip, and CTA sections
   reuse classes that already existed in this file (.hero-2col, .ai-card,
   .privacy-grid, .cta-section), so no rules are needed for those.
   ========================================================================= */

/* --- Total offering map --------------------------------------------- */
html {
  scroll-padding-top: 96px;
}
@media (max-width: 720px) {
  html {
    scroll-padding-top: 190px;
  }
}

#offering,
#countries,
#us-states,
#business-markets,
#how,
#features,
#languages,
#pricing,
#coverage,
#faq,
#seo-footer {
  scroll-margin-top: 96px;
}
@media (max-width: 720px) {
  #offering,
  #countries,
  #us-states,
  #business-markets,
  #how,
  #features,
  #languages,
  #pricing,
  #coverage,
  #faq,
  #seo-footer {
    scroll-margin-top: 190px;
  }
}

.apex-offering {
  padding: 64px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.apex-offering-head {
  max-width: 760px;
}
.apex-offering .eyebrow {
  background: #eef3ff;
  color: #244487;
  border-color: #dce6ff;
}
.apex-offering-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.apex-offering-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 22px;
  border: 1px solid #dde3ee;
  border-radius: 8px;
  background: #fff;
  color: #151728;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.apex-offering-card:hover {
  border-color: #4067c9;
  box-shadow: 0 14px 34px rgba(31, 45, 82, .11);
  transform: translateY(-2px);
  text-decoration: none;
}
.apex-offering-kicker {
  font-size: 11px;
  font-weight: 750;
  color: #466072;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.apex-offering-card h3 {
  margin: 12px 0 10px;
  font-size: 18px;
  line-height: 1.25;
}
.apex-offering-card p {
  flex: 1;
  margin: 0 0 16px;
  color: #465166;
  font-size: 14px;
  line-height: 1.55;
}
.apex-offering-metric {
  display: block;
  padding-top: 14px;
  border-top: 1px solid #edf0f6;
  color: #667085;
  font-size: 12px;
}
.apex-offering-metric strong {
  color: #101828;
  font-size: 22px;
  margin-right: 5px;
}
.apex-offering-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
}
.apex-offering-list li {
  position: relative;
  padding-left: 20px;
  color: #344054;
  font-size: 14px;
  line-height: 1.45;
}
.apex-offering-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #2f7d46;
  font-weight: 800;
}
.apex-offering-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.apex-offering-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d7e0ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #244fa3;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.apex-offering-link:hover {
  border-color: #4067c9;
  background: #eef4ff;
  text-decoration: none;
}
.apex-offering-cta {
  margin-top: 12px;
  color: #244fa3;
  font-size: 14px;
  font-weight: 750;
}
.apex-offering-eu { border-top: 3px solid #2f7d46; }
.apex-offering-us { border-top: 3px solid #b64a2d; }
.apex-offering-personal { border-top: 3px solid #2f7d46; }
.apex-offering-business { border-top: 3px solid #2d62b6; }
.apex-offering-catalog { border-top: 3px solid #7b5b2e; }
@media (max-width: 980px) {
  .apex-offering-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .apex-offering { padding: 48px 0; }
  .apex-offering-grid { grid-template-columns: 1fr; }
  .apex-offering-card { min-height: auto; }
  .apex-offering-link { width: 100%; justify-content: center; }
}

/* --- Where to start (4-card matrix) --------------------------------- */
.apex-where { padding: 64px 0; background: #fff; }
.apex-where-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.apex-where-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: #1a1a2e;
  background: #fff;
  border: 1px solid #e1e3ec;
  border-radius: 16px;
  padding: 24px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  min-height: 240px;
}
.apex-where-card:hover {
  border-color: #5b6cff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(91, 108, 255, 0.12);
}
.apex-where-flag { font-size: 28px; line-height: 1; margin-bottom: 12px; }
.apex-where-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #0f1023;
}
.apex-where-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #4a4d63;
  margin: 0 0 16px;
  flex: 1;
}
.apex-where-meta { margin-bottom: 12px; }
.apex-where-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: #eef0fb;
  color: #4253c5;
  padding: 4px 10px;
  border-radius: 999px;
}
.apex-where-card.apex-where-eu .apex-where-pill { background: #eef9ee; color: #2d7a3a; }
.apex-where-card.apex-where-us .apex-where-pill { background: #fff1ec; color: #b04222; }
.apex-where-card.apex-where-personal .apex-where-pill { background: #f6f3ff; color: #5b3ea0; }
.apex-where-card.apex-where-business .apex-where-pill { background: #ecf3ff; color: #2a5db0; }
.apex-where-cta {
  font-size: 14px;
  font-weight: 600;
  color: #5b6cff;
}
@media (max-width: 920px) {
  .apex-where-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .apex-where-grid { grid-template-columns: 1fr; }
  .apex-where-card { min-height: auto; }
}

/* --- Pricing tease --------------------------------------------------- */
.apex-pricing { padding: 64px 0; background: #f7f8fc; }
.apex-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.apex-pricing-card {
  background: #fff;
  border: 1px solid #e1e3ec;
  border-radius: 16px;
  padding: 28px;
}
.apex-pricing-standard {
  border-color: #5b6cff;
  box-shadow: 0 8px 28px rgba(91, 108, 255, 0.10);
  transform: translateY(-4px);
}
.apex-pricing-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef0f6;
}
.apex-pricing-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #4a4d63;
}
.apex-pricing-price {
  font-size: 14px;
  color: #4a4d63;
}
.apex-pricing-price strong {
  font-size: 30px;
  font-weight: 700;
  color: #0f1023;
  margin-left: 4px;
}
.apex-pricing-example {
  font-size: 13px;
  color: #6b6f87;
  margin: 0 0 16px;
}
.apex-pricing-example em { font-style: normal; font-weight: 600; color: #1a1a2e; }
.apex-pricing-points {
  list-style: none;
  padding: 0;
  margin: 0;
}
.apex-pricing-points li {
  font-size: 14px;
  line-height: 1.55;
  color: #36384d;
  padding: 6px 0 6px 24px;
  position: relative;
}
.apex-pricing-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2d7a3a;
  font-weight: 700;
}
.apex-pricing-note {
  font-size: 13px;
  color: #6b6f87;
  margin-top: 24px;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.apex-pricing-cta {
  display: inline-flex;
  margin-top: 18px;
  color: #244fa3;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.apex-pricing-cta:hover { text-decoration: underline; }
@media (max-width: 920px) {
  .apex-pricing-grid { grid-template-columns: 1fr; }
  .apex-pricing-standard { transform: none; }
}

/* --- Business market links ------------------------------------------ */
.apex-business-links {
  padding: 64px 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.apex-business-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.apex-business-link {
  display: grid;
  gap: 6px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  color: #101828;
  background: #fff;
  text-decoration: none;
}
.apex-business-link:hover {
  border-color: #2d62b6;
  box-shadow: 0 10px 24px rgba(31, 45, 82, .09);
  text-decoration: none;
}
.apex-business-region {
  width: max-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf4ff;
  color: #244fa3;
  font-size: 11px;
  font-weight: 750;
}
.apex-business-link strong {
  font-size: 17px;
  line-height: 1.3;
}
.apex-business-link span:not(.apex-business-region) {
  color: #526071;
  font-size: 13px;
}
.apex-business-link small {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
}
.apex-business-catalog-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.apex-business-catalog-row a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #244fa3;
  font-size: 14px;
  font-weight: 700;
}
@media (max-width: 980px) {
  .apex-business-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .apex-business-links-grid { grid-template-columns: 1fr; }
}

/* --- Per-country SEO footer ----------------------------------------- */
.apex-seo { padding: 64px 0; background: #fff; }
.apex-seo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 32px;
  margin-top: 32px;
}
.apex-seo-col {
  border-top: 2px solid #1a1a2e;
  padding-top: 16px;
}
.apex-seo-col-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  flex-wrap: wrap;
}
.apex-seo-flag { font-size: 18px; line-height: 1; }
.apex-seo-cname {
  color: #0f1023;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.apex-seo-cname:hover { border-bottom-color: #5b6cff; }
.apex-seo-cen {
  font-size: 12px;
  font-weight: 400;
  color: #8a8da4;
}
.apex-seo-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.apex-seo-links li { padding: 4px 0; }
.apex-seo-link {
  font-size: 14px;
  color: #4253c5;
  text-decoration: none;
  line-height: 1.4;
  display: inline-block;
}
.apex-seo-link:hover { text-decoration: underline; }
.apex-seo-link-calculator { font-style: italic; }
.apex-seo-link-country_home { font-weight: 600; }
.apex-seo-note {
  font-size: 12px;
  color: #8a8da4;
  margin-top: 24px;
  max-width: 720px;
}
@media (max-width: 1100px) {
  .apex-seo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .apex-seo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .apex-seo-grid { grid-template-columns: 1fr; }
}

/* --- Cookie consent -------------------------------------------------- */
.cookie-consent {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(16, 24, 40, .18);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-copy h2 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.25;
  color: #111827;
}
.cookie-consent-copy p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.45;
}
.cookie-consent-copy a,
.cookie-manage {
  border: 0;
  background: transparent;
  color: #4253c5;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
  min-height: 40px;
}
.cookie-consent-prefs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 2px;
}
.cookie-consent-prefs[hidden] { display: none; }
.cookie-consent-prefs label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #263044;
}
.cookie-consent-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}
.cookie-consent-actions .btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 7px;
}
@media (max-width: 720px) {
  .cookie-consent {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 13px;
  }
  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    white-space: normal;
  }
  .cookie-manage {
    grid-column: 1 / -1;
    min-height: 44px;
  }
}

/* =========================================================================
   Apex (buronia.com) homepage — phase-2 additions: features grid + languages
   strip. Sit between the AI-cards section and the Where-to-start matrix.
   Same horizontal rhythm as .apex-where / .apex-pricing so the apex page
   reads as a single visual system.
   ========================================================================= */

.apex-features { padding: 64px 0; background: #fafbfe; }
.apex-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.apex-feature-card {
  background: #fff;
  border: 1px solid #e1e3ec;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.apex-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #eef3ff;
  color: #244fa3;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}
.apex-feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #0f1023;
}
.apex-feature-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #4a4d63;
  margin: 0 0 16px;
  flex: 1;
}
.apex-feature-stat {
  font-size: 12px;
  color: #6b6f87;
  border-top: 1px solid #eef0f6;
  padding-top: 12px;
}
.apex-feature-stat strong {
  color: #1a1a2e;
  font-size: 18px;
  margin-right: 6px;
}
@media (max-width: 920px) {
  .apex-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .apex-features-grid { grid-template-columns: 1fr; gap: 14px; }
  .apex-feature-card { padding: 18px; }
}

/* --- Languages strip ------------------------------------------------- */
.apex-langs { padding: 56px 0; background: #fff; }
.apex-langs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 24px 0 16px;
  padding: 0;
}
.apex-lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #e1e3ec;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: #1a1a2e;
  transition: border-color .15s ease, background-color .15s ease;
  /* >=44px tap target requires min-height. The padding above produces
     ~36px; bump min-height so mobile users can hit chips without
     pinch-zoom. WCAG 2.5.5 minimum is 44×44. */
  min-height: 44px;
  box-sizing: border-box;
}
.apex-lang-chip:hover {
  border-color: #5b6cff;
  background: #f6f7ff;
}
.apex-lang-native {
  font-weight: 500;
}
.apex-lang-rtl .apex-lang-native { font-weight: 400; }
.apex-lang-count {
  font-size: 11px;
  font-weight: 700;
  color: #5b6cff;
  background: #eef0fb;
  padding: 2px 8px;
  border-radius: 10px;
}
.apex-langs-note {
  font-size: 12px;
  color: #8a8da4;
  margin: 16px 0 0;
  max-width: 720px;
}
@media (max-width: 540px) {
  .apex-langs-row { gap: 6px; }
  .apex-lang-chip { padding: 6px 11px; font-size: 13px; }
}

/* =========================================================================
   Apex (buronia.com) — phase-3 fix 2026-05-01: CSS for the original
   chooser.html sections that were never authored because the chooser
   never actually rendered (route had missing variables). Once I wired
   the variables, the chooser rendered raw HTML with no styling.
   This block fixes:
     - .apex-hero-cards (right column of hero — 4 country cards)
     - .apex-countries / .apex-country-card / .apex-cc-* (main country grid)
     - .apex-featured / .apex-featured-card (top-benefits strip)
     - .apex-coverage (privacy strip — uses existing .privacy-grid layout)
     - .apex-cta / .apex-cta-flag (closing CTA flag row)
   ========================================================================= */

/* --- Hero right-column country card stack --------------------------- */
.apex-hero-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 460px;
}
.apex-hero-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, background-color .15s ease;
  min-height: 96px;
}
.apex-hero-card:hover {
  border-color: rgba(91, 141, 239, .55);
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-2px);
  text-decoration: none;
}
.apex-hero-flag {
  font-size: 24px;
  line-height: 1;
}
.apex-hero-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.apex-hero-meta {
  font-size: 12px;
  color: #c7c8d8;
  line-height: 1.4;
}
.apex-hero-meta strong {
  color: #fff;
  font-weight: 700;
}
@media (max-width: 720px) {
  .apex-hero-cards {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    gap: 10px;
  }
  .apex-hero-card { padding: 12px; min-height: 84px; }
}

/* --- Apex homepage redesign: product-led SaaS first viewport --------- */
.hero-apex {
  padding: 58px 0 60px;
  color: #111827;
  background:
    linear-gradient(rgba(25, 35, 58, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 35, 58, .045) 1px, transparent 1px),
    linear-gradient(135deg, #f8fbff 0%, #eef8f2 48%, #fffaf2 100%);
  background-size: 48px 48px, 48px 48px, auto;
  border-bottom: 1px solid #dce5ef;
}
.hero-apex::before {
  display: none;
}
.hero-apex .hero-inner {
  max-width: 1320px;
  grid-template-columns: minmax(0, .98fr) minmax(440px, .82fr);
  gap: 54px;
}
.hero-apex .eyebrow {
  color: #1f4f5f;
  background: rgba(20, 184, 166, .10);
  border-color: rgba(20, 184, 166, .22);
  letter-spacing: 0;
}
.hero-apex .hero-title {
  max-width: 760px;
  margin-top: 16px;
  font-family: 'Source Serif 4', serif;
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
  color: #0b1020;
}
.hero-apex .hero-lead {
  max-width: 720px;
  color: #3f4858;
  font-size: 18px;
  line-height: 1.56;
  margin-bottom: 22px;
}
.hero-apex .hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  color: #293241;
  font-size: 14px;
  margin-bottom: 24px;
}
.hero-apex .hero-trust li {
  padding: 10px 12px 10px 34px;
  border: 1px solid rgba(79, 70, 229, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 14px 40px rgba(44, 62, 90, .06);
}
.hero-apex .hero-trust li::before {
  left: 13px;
  top: 10px;
  color: #0f9f6e;
}
.hero-apex .btn-ghost {
  color: #172033;
  border-color: #cfd8e6;
  background: rgba(255,255,255,.72);
}
.hero-apex .btn-ghost:hover {
  background: #fff;
}
.hero-apex .hero-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
  padding: 16px 18px;
  border-color: #d7e1ee;
  background: rgba(255,255,255,.74);
  box-shadow: 0 18px 46px rgba(30, 52, 82, .08);
}
.hero-apex .hero-stat + .hero-stat {
  border-inline-start-color: #e1e7f0;
  padding-inline-start: 16px;
}
.hero-apex .hero-stat-num {
  background: none;
  color: #1f3a8a;
  letter-spacing: 0;
}
.hero-apex .hero-stat-lab {
  color: #657085;
  letter-spacing: 0;
}
.apex-product-visual {
  min-height: 450px;
  align-items: stretch;
}
.apex-ai-console {
  align-self: center;
  width: 100%;
  max-width: 520px;
  border: 1px solid #cfd9e8;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 28px 70px rgba(21, 35, 58, .17);
  overflow: hidden;
}
.apex-ai-console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  background: #101827;
  color: #d7dde8;
}
.apex-ai-console-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #56d68a;
}
.apex-ai-console-bar span:nth-child(2) { background: #f6c44b; }
.apex-ai-console-bar span:nth-child(3) { background: #7c8cff; }
.apex-ai-console-bar strong {
  margin-left: 8px;
  font-size: 13px;
  letter-spacing: 0;
}
.apex-ai-route {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid #edf1f6;
  background: #f7f9fc;
}
.apex-ai-route span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #dfe6f0;
  border-radius: 8px;
  color: #556173;
  font-size: 14px;
  font-weight: 700;
}
.apex-ai-route .is-active {
  color: #fff;
  background: #101827;
  border-color: #101827;
}
.apex-ai-workflow {
  display: grid;
  gap: 10px;
  padding: 20px;
}
.apex-ai-workflow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.apex-ai-workflow-row span {
  color: #667085;
  font-size: 13px;
}
.apex-ai-workflow-row strong {
  color: #111827;
  font-size: 14px;
  letter-spacing: 0;
}
.apex-ai-workflow-row.is-done {
  border-color: rgba(15, 159, 110, .22);
  background: #f3fbf7;
}
.apex-ai-draft {
  margin: 0 20px 20px;
  padding: 18px;
  border-radius: 8px;
  background: #172033;
  color: #fff;
}
.apex-ai-draft span {
  display: block;
  color: #8fd7bf;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.apex-ai-draft p {
  margin: 0;
  color: #dfe7f1;
  font-size: 14px;
  line-height: 1.55;
}

.apex-process-section {
  padding: 58px 0;
  background: #fff;
}
.apex-process-section .section-title,
.apex-pricing .section-title,
.apex-faq-section .section-title,
.apex-seo .section-title {
  letter-spacing: 0;
}
.apex-process-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.apex-process-steps li {
  min-height: 230px;
  padding: 22px;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(16, 24, 40, .05);
}
.apex-process-steps h3 {
  font-size: 18px;
  letter-spacing: 0;
}
.apex-process-steps p {
  font-size: 14px;
  line-height: 1.52;
}

.apex-pricing {
  background: #f6f8fb;
}
.apex-pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
.apex-pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 440px;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(16, 24, 40, .06);
}
.apex-pricing-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}
.apex-pricing-label {
  min-height: 34px;
  letter-spacing: 0;
}
.apex-pricing-price {
  display: grid;
  gap: 2px;
  min-height: 72px;
  align-content: start;
  color: #667085;
}
.apex-pricing-price span {
  font-size: 13px;
  font-weight: 700;
  color: #667085;
}
.apex-pricing-price strong {
  display: block;
  margin: 0;
  color: #0b1020;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.apex-pricing-points {
  flex: 1;
}
.apex-pricing-cta {
  margin-top: auto;
  padding-top: 18px;
}

.apex-faq-section {
  background: #fff;
}
.apex-faq-shell {
  display: grid;
  grid-template-columns: minmax(260px, .48fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.apex-faq-intro {
  position: sticky;
  top: 110px;
}
.apex-faq-intro .eyebrow {
  color: #244fa3;
  background: #eef4ff;
  border-color: #d7e5ff;
  letter-spacing: 0;
}
.apex-faq-intro p {
  margin: 0;
  color: #667085;
  font-size: 16px;
  line-height: 1.55;
}
.apex-faq-list {
  display: grid;
  gap: 12px;
}
.apex-faq-list details {
  padding: 0;
  border: 1px solid #dfe6f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .05);
  overflow: hidden;
}
.apex-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  font-size: 16px;
  letter-spacing: 0;
}
.apex-faq-list summary::after {
  content: "+";
  color: #244fa3;
  font-size: 22px;
  line-height: 1;
}
.apex-faq-list details[open] summary::after {
  content: "-";
}
.apex-faq-list p {
  margin: 0;
  padding: 0 18px 18px;
  color: #4b5565;
  font-size: 15px;
  line-height: 1.6;
}
.apex-seo {
  background: #f8fafc;
}
.apex-seo-col {
  border-top-color: #d7e0ee;
  background: #fff;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  padding: 16px;
}
.apex-seo-col-h {
  border-bottom: 1px solid #edf1f6;
  padding-bottom: 12px;
}
.apex-seo-link {
  color: #244fa3;
}

@media (max-width: 1100px) {
  .hero-apex .hero-inner {
    grid-template-columns: 1fr;
  }
  .apex-product-visual {
    min-height: auto;
  }
  .apex-ai-console {
    max-width: 760px;
  }
  .apex-process-steps,
  .apex-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .hero-apex {
    padding: 38px 0 44px;
  }
  .hero-apex .hero-title {
    font-size: clamp(34px, 11vw, 46px);
  }
  .hero-apex .hero-trust,
  .hero-apex .hero-stats,
  .apex-process-steps,
  .apex-pricing-grid,
  .apex-faq-shell {
    grid-template-columns: 1fr;
  }
  .hero-apex .hero-stat + .hero-stat {
    border-inline-start: 0;
    padding-inline-start: 0;
    border-top: 1px solid #e1e7f0;
    padding-top: 12px;
  }
  .apex-ai-console-bar strong {
    font-size: 12px;
  }
  .apex-faq-intro {
    position: static;
  }
}

/* --- Countries section (the main grid + group headers) -------------- */
.apex-countries {
  padding: 64px 0;
  background: #f7f8fc;
}
.apex-countries-h {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 32px 0 16px;
  color: #4a4d63;
}
.apex-countries-h-coming { margin-top: 48px; }
.apex-countries-h-us { margin-top: 48px; }
.apex-countries-h-count {
  font-size: 12px;
  font-weight: 600;
  color: #8a8da4;
  background: #fff;
  border: 1px solid #e1e3ec;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: .02em;
}

/* Pills used in the countries-h header AND inline on country cards */
.apex-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef0fb;
  color: #4253c5;
}
.apex-pill-live { background: #eef9ee; color: #2d7a3a; }
.apex-pill-coming { background: #fff1ec; color: #b04222; }
.apex-pill-live-mini {
  background: #2d7a3a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1;
}
.apex-pill-coming-mini {
  background: #b04222;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: .03em;
  line-height: 1.2;
}

.apex-country-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.apex-country-grid-coming {
  margin-top: 12px;
}
.apex-country-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e1e3ec;
  border-radius: 14px;
  color: #1a1a2e;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.apex-country-card:hover {
  text-decoration: none;
  color: #1a1a2e;
}
.apex-country-live:hover {
  border-color: #5b6cff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(91, 108, 255, 0.10);
}
.apex-country-coming {
  opacity: 0.78;
  cursor: default;
}
.apex-cc-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin: 0;
  border: none;
}
.apex-cc-flag {
  font-size: 28px;
  line-height: 1;
}
.apex-cc-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.apex-cc-native {
  font-size: 16px;
  font-weight: 600;
  color: #0f1023;
  line-height: 1.25;
}
.apex-cc-en {
  font-size: 12px;
  color: #6b6f87;
}
.apex-cc-pill {
  /* container for the live/coming mini pill */
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.apex-cc-top3 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.apex-cc-top3 li {
  font-size: 13px;
  line-height: 1.45;
  color: #36384d;
  padding-left: 10px;
  position: relative;
}
.apex-cc-top3 li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #5b6cff;
}
.apex-cc-top-native {
  font-weight: 600;
  color: #1a1a2e;
}
.apex-cc-top-en {
  color: #6b6f87;
  font-weight: 400;
}
.apex-subdomain-note {
  flex: 1;
  margin: 0;
  color: #4a5568;
  font-size: 13px;
  line-height: 1.5;
}
.apex-cc-foot {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #eef0f6;
  font-size: 12px;
  color: #6b6f87;
}
.apex-cc-foot-services {
  grid-column: 1;
  grid-row: 1;
}
.apex-cc-foot-services strong {
  color: #1a1a2e;
  font-size: 14px;
  font-weight: 700;
  margin-right: 4px;
}
.apex-cc-foot-price {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}
.apex-cc-foot-price strong {
  color: #1a1a2e;
  font-size: 14px;
  font-weight: 700;
  margin-left: 2px;
}
.apex-cc-foot-langs {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.apex-cc-foot-coming {
  grid-column: 1 / -1;
  grid-row: 2;
  font-style: italic;
  color: #b04222;
  margin-top: 4px;
}
.apex-cc-lang {
  font-size: 10px;
  font-weight: 700;
  color: #4a4d63;
  background: #f1f3fa;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .04em;
}
.apex-cc-lang-more {
  background: #e8ebf6;
  color: #5b6cff;
}
.apex-cc-cta {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  color: #244fa3;
  font-weight: 750;
}
.apex-coming-note {
  font-size: 13px;
  color: #6b6f87;
  margin: 16px 0 0;
  max-width: 780px;
}

@media (max-width: 1000px) {
  .apex-country-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .apex-country-grid { grid-template-columns: 1fr; gap: 12px; }
  .apex-country-card { padding: 16px; }
  .apex-cc-flag { font-size: 24px; }
  .apex-cc-native { font-size: 15px; }
}

/* --- Featured benefits strip --------------------------------------- */
.apex-featured {
  padding: 64px 0;
  background: #fff;
}
.apex-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.apex-featured-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 18px;
  background: #fafbfe;
  border: 1px solid #e1e3ec;
  border-radius: 14px;
  color: #1a1a2e;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.apex-featured-card:hover {
  text-decoration: none;
  color: #1a1a2e;
  border-color: #5b6cff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(91, 108, 255, 0.10);
}
.apex-featured-flag {
  font-size: 28px;
  line-height: 1;
  align-self: start;
}
.apex-featured-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.apex-featured-body h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: #0f1023;
  line-height: 1.3;
}
.apex-featured-en {
  font-size: 12px;
  color: #6b6f87;
}
.apex-featured-one {
  font-size: 13px;
  line-height: 1.5;
  color: #4a4d63;
  margin: 8px 0 0;
}
.apex-featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 10px;
}
.apex-featured-arrow {
  font-size: 12px;
  font-weight: 600;
  color: #5b6cff;
}

@media (max-width: 920px) {
  .apex-featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .apex-featured-grid { grid-template-columns: 1fr; }
}

/* --- Coverage strip (apex-coverage uses existing .privacy-grid) ---- */
.apex-coverage {
  padding: 72px 0;
  background: #0f1023;
  color: #c7c8d8;
}
.apex-coverage .privacy-grid {
  align-items: start;
  color: #c7c8d8;
}
.apex-coverage .privacy-lead h2,
.apex-coverage .section-title {
  color: #fff;
}
.apex-coverage .privacy-sub {
  color: #c7c8d8;
}
.apex-coverage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.apex-coverage-actions .btn {
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 8px;
}

/* --- Closing CTA (cta-section is base, apex-cta wraps the flag row) - */
.apex-cta {
  padding: 64px 0;
}
.apex-cta-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  justify-content: center;
}
.apex-cta-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  min-height: 44px;
  box-sizing: border-box;
}
.apex-cta-flag:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(91, 141, 239, .55);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}
.apex-cta-flag-emoji {
  font-size: 18px;
  line-height: 1;
}
.apex-cta-flag-name {
  font-weight: 500;
}
@media (max-width: 540px) {
  .apex-cta-flag { padding: 8px 12px; font-size: 13px; }
}

/* ============================================================
   MOBILE-PASS-2026-05-02 — drop 1 (consumer-side font-size + touch).
   Appended at EOF to minimise diff vs. in-flight company_portal /
   formera.css edits from the codex agent. Each rule re-states its
   selector and overrides via source-order specificity — do NOT
   inline these into the rules above.
   Covers audit rows: 5 (assistant textarea), 10 (assistant close),
   18 (.form-section h1), 19 (.benefit-form padding).
   ============================================================ */

/* Row 5 — iOS auto-zooms when font-size <16px on focused input.
   The dashboard assistant textarea is the primary mobile interaction
   on /dashboard, so the jolt is highly visible. */
.dashboard-assistant-form textarea {
  font-size: 16px;
}

/* Row 10 — the only way to dismiss the full-viewport assistant
   overlay on mobile. 38×38 fails Apple HIG ≥44; existing mobile
   override at line ~1630 makes it WORSE (34×34). Lift both. */
.dashboard-assistant-close {
  width: 44px;
  height: 44px;
}
@media (max-width: 720px) {
  .dashboard-assistant-close {
    width: 44px;
    height: 44px;
    font-size: 34px;
  }
}

/* Row 18 — long titles like "Antrag Bürgergeld starten" overflow
   narrow viewports at the desktop 36px size. Mirror .legal-section h1
   mobile rule for consistency. */
@media (max-width: 540px) {
  .form-section h1 {
    font-size: 26px;
  }
}

/* Row 19 — desktop padding leaves only ~286px of usable width inside
   .benefit-form at a 390px iPhone viewport. Tight, edge-touching. */
@media (max-width: 540px) {
  .benefit-form {
    padding: 18px;
  }
}
/* end MOBILE-PASS-2026-05-02 drop 1 */

/* APEX-HOMEPAGE-2026-05-02 - phone-width overflow fix.
   The apex hero was redesigned as a product-led SaaS surface; this final
   override keeps the sticky nav, CTA row, cookie banner, and large serif
   headline inside narrow phone viewports. */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }
  .nav .brand {
    order: 1;
    justify-self: start;
  }
  .nav .product-switch {
    order: 2;
    width: 100%;
    justify-content: stretch;
  }
  .nav .product-switch a {
    flex: 1 1 0;
  }
  .nav .nav-right {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }
  .nav .nav-account,
  .nav .wa-pill {
    width: auto;
    min-width: 0;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-inline: 10px;
    font-size: 13px;
  }
  .nav .wa-pill {
    gap: 6px;
  }
  .hero-apex {
    padding: 38px 0 44px;
  }
  .hero-apex .hero-inner {
    width: 100%;
    max-width: 100%;
    padding-inline: 18px;
    overflow: hidden;
  }
  .hero-apex .hero-text,
  .hero-apex .hero-lead,
  .hero-apex .hero-trust,
  .hero-apex .hero-cta,
  .hero-apex .hero-stats {
    width: min(100%, 354px);
    max-width: 354px;
  }
  .hero-apex .hero-title {
    max-width: min(100%, 354px);
    font-size: clamp(30px, 8.6vw, 36px);
    line-height: 1.06;
    overflow-wrap: break-word;
  }
  .hero-apex .hero-lead {
    max-width: 100%;
    font-size: 16px;
  }
  .hero-apex .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .hero-apex .hero-cta .btn {
    width: 100%;
  }
  .apex-ai-console {
    max-width: 100%;
  }
  .apex-ai-workflow-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .cookie-consent {
    left: 12px;
    right: auto;
    bottom: 12px;
    width: min(calc(100vw - 24px), 366px);
    max-width: 366px;
  }
  .cookie-consent-actions {
    grid-template-columns: 1fr;
  }
  .cookie-consent-actions .btn,
  .cookie-manage {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .nav .nav-right {
    grid-template-columns: minmax(0, 1fr) 48px;
  }
  .nav .wa-pill {
    width: 48px;
    min-width: 48px;
    padding: 0;
    gap: 0;
    font-size: 0;
  }
  .nav .wa-pill svg {
    width: 18px;
    height: 18px;
  }
  .hero-apex .hero-title {
    max-width: 330px;
  }
}

/* Final phone-nav clamp: the product switch and WhatsApp label were still
   contributing min-content width in Chrome's narrow screenshots. */
@media (max-width: 760px) {
  .nav > * {
    min-width: 0;
    max-width: 100%;
  }
  .nav .product-switch {
    order: 2;
    display: flex;
    min-width: 0;
    width: min(100%, 366px);
    max-width: 366px;
    box-sizing: border-box;
  }
  .nav .product-switch a {
    min-width: 0;
    padding-inline: 8px;
  }
  .nav .nav-right {
    order: 3;
    min-width: 0;
    width: min(100%, 366px);
    max-width: 366px;
    grid-template-columns: minmax(0, 1fr) minmax(112px, 1fr);
  }
  .nav .nav-account {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav .wa-pill {
    width: 48px;
    min-width: 48px;
    padding: 0;
    gap: 0;
    font-size: 0;
  }
  .nav .wa-pill svg {
    width: 18px;
    height: 18px;
  }
}

/* Dashboard assistant guardrail — keep the assistant as a right rail on
   tablet-sized browser windows instead of stretching into a fullscreen
   overlay. Phones still get the compact mobile treatment. */
.dashboard-assistant {
  position: fixed !important;
  top: 122px !important;
  right: 24px !important;
  bottom: 12px !important;
  left: auto !important;
  width: min(720px, calc(100vw - 48px)) !important;
  max-width: 720px !important;
  z-index: 45;
}
.dashboard-assistant-card {
  width: 100%;
  height: 100%;
}
@media (max-width: 900px) {
  .dashboard-assistant {
    right: 16px !important;
    left: auto !important;
    width: min(420px, calc(100vw - 32px)) !important;
    max-width: 420px !important;
  }
}
@media (max-width: 520px) {
  .dashboard-assistant {
    top: 92px !important;
    right: 12px !important;
    bottom: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
  }
}


/* Persistent Buronia assistant chat. */
.page-with-chat { display: block; }
.chat-panel {
  position: fixed; right: 16px; bottom: 16px; top: 78px;
  width: 360px; max-width: calc(100vw - 32px);
  background: white; border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 48px -16px rgba(20,22,60,.18);
  display: flex; flex-direction: column;
  z-index: 30;
  overflow: hidden;
}
.chat-panel[hidden] { display: none !important; }
.chat-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fafbff, white);
}
.chat-panel-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--ink);
}
.chat-panel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16,185,129,.15);
  animation: chat-pulse 2.4s ease-in-out infinite;
}
@keyframes chat-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16,185,129,.15); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,.05); }
}
.chat-panel-close {
  border: 0; background: transparent; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--muted);
  padding: 0 4px;
}
.chat-panel-close:hover { color: var(--ink); }
.chat-panel-body {
  flex: 1 1 auto; overflow-y: auto;
  padding: 14px; min-height: 0;
}
.chat-panel-empty {
  text-align: left; color: var(--ink-2); font-size: 14px;
  padding: 12px 4px;
}
.chat-panel-empty p { margin: 0 0 14px; line-height: 1.5; }
.chat-panel-empty .btn { width: 100%; }
.chat-msgs {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.chat-msg { display: flex; }
.chat-msg-assistant { justify-content: flex-start; }
.chat-msg-user { justify-content: flex-end; }
.chat-bubble {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px; line-height: 1.45;
  white-space: pre-wrap; word-wrap: break-word;
}
.chat-msg-assistant .chat-bubble {
  background: var(--bg-2);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.chat-msg-user .chat-bubble {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-panel-form {
  display: flex; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: white;
}
.chat-panel-form[hidden] { display: none !important; }
.chat-panel-form input[type="text"] {
  flex: 1 1 auto; min-width: 0;
  padding: 9px 12px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: white; color: var(--ink);
  outline: none;
  transition: border-color .15s ease;
}
.chat-panel-form input[type="text"]:focus { border-color: var(--accent); }
.chat-panel-form button {
  border: 0; cursor: pointer;
  padding: 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: white;
}
.chat-panel-form button:disabled { opacity: .45; cursor: not-allowed; }
.chat-panel-toggle {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  width: 52px; height: 52px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-size: 22px; line-height: 52px;
  box-shadow: 0 12px 30px -8px rgba(91,141,239,.55);
}
.chat-panel-toggle[hidden] { display: none !important; }
@media (min-width: 1100px) {
  .page-main { padding-right: 0; }
}
@media (max-width: 720px) {
  .chat-panel {
    right: 8px; left: 8px; width: auto; top: auto;
    height: 60vh; bottom: 8px;
  }
  .page-main { padding-right: 0; }
}

/* ============================================================
   MOBILE-PASS-2026-05-03 — drop 3 (iOS auto-zoom remaining inputs).
   Adversarial QA caught two more inputs <16px that trigger iOS focus-zoom:
   the embedded-calc input/select (live calculator widgets) and the chat
   panel's text input. Lift to 16px on mobile only — desktop keeps 14px
   for visual density.
   ============================================================ */
@media (max-width: 640px) {
  .emb-calc-input,
  .emb-calc-select { font-size: 16px; }
  .chat-panel-form input[type="text"] { font-size: 16px; }
}
/* ──────────────────────────────────────────────────────────────────────
   Profile Vault (dashboard) — autosaving, inline-edit pill grid.
   The vault is the user's promise: "we won't make you type the same
   thing twice." The visual job is to make existing data feel valuable
   and adding the missing pieces feel low-friction.
   ────────────────────────────────────────────────────────────────────── */

.vault {
  position: relative;
  margin: 28px 0 36px;
  padding: 26px 26px 22px;
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(140,92,246,.10), transparent 55%),
    radial-gradient(120% 140% at 100% 0%, rgba(91,141,239,.10), transparent 55%),
    linear-gradient(180deg, #ffffff, #fbfaff 60%);
  border: 1px solid #ece8fb;
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 18px 50px -28px rgba(70, 50, 160, .25),
    0 4px 14px -8px rgba(70, 50, 160, .12);
  overflow: hidden;
}
.vault::before {
  /* aurora line at the top edge — gives the card a "premium" identity */
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg,
    rgba(140,92,246,0) 0%,
    rgba(140,92,246,.55) 25%,
    rgba(91,141,239,.55) 60%,
    rgba(48,209,176,.55) 90%,
    rgba(48,209,176,0) 100%);
  filter: blur(.3px);
  opacity: .9;
}

.vault-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 18px; margin-bottom: 6px;
}
.vault-head-text { min-width: 0; }
.vault-eyebrow {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(140,92,246,.14); color: #5b3fc1;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
}
.vault-title {
  margin: 8px 0 4px; font-size: 22px; font-weight: 700;
  letter-spacing: -.012em;
}
.vault-lead {
  margin: 0; max-width: 60ch;
  color: var(--ink-2); font-size: 14.5px; line-height: 1.5;
}

/* Completeness ring — animates from JS by mutating stroke-dashoffset. */
.vault-ring {
  position: relative;
  width: 64px; height: 64px;
  flex: 0 0 auto;
}
.vault-ring svg { transform: rotate(-90deg); display: block; }
.vault-ring-track {
  fill: none;
  stroke: rgba(140,92,246,.14);
  stroke-width: 6;
}
.vault-ring-fill {
  fill: none;
  stroke: url(#vault-ring-gradient);
  stroke: #6c47e8; /* fallback if linearGradient is absent */
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 600ms cubic-bezier(.2,.8,.2,1);
}
.vault-ring-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
  font-size: 16px; font-weight: 700; color: #3b2a8c;
}
.vault-ring-num strong { font-weight: 800; }
.vault-ring-num span { font-size: 11px; margin-left: 1px; color: #6f6594; }

.vault-stats {
  margin: 10px 0 18px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  font-size: 13.5px;
}
.vault-stat strong { font-weight: 700; color: #3b2a8c; }
.vault-dot { color: #b4adda; }
.vault-stat-saves strong { color: #167b59; }

.vault-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .vault-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 22px;
  }
}
@media (min-width: 1100px) {
  .vault-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* The "Other answers" catch-all collects every free-form key the user has
   answered on prior forms. With 100 form-fills this can easily be 30-50
   pills, which look cramped jammed into one column of the 3-col grid.
   Span the full row so they have room to wrap horizontally like the user
   would expect for a tag cloud. */
.vault-section[data-section="other"] {
  grid-column: 1 / -1;
}

.vault-section { min-width: 0; }
.vault-section-title {
  margin: 0 0 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  color: #6f6594;
}

.vault-pills {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}

/* Pill base. Two visual states: filled (data present) and empty
   (dashed-outline "+ add" affordance). They share dimensions so toggling
   between them doesn't reflow the row. */
.vault-pill {
  position: relative;
  border-radius: 12px;
  transition: transform 180ms cubic-bezier(.2,.8,.2,1),
              box-shadow 180ms ease,
              background 180ms ease,
              border-color 180ms ease;
}
.vault-pill-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  font: inherit; color: inherit;
  cursor: pointer;
  text-align: start;
  max-width: 100%;
  transition: inherit;
}
.vault-pill-btn:focus-visible {
  outline: 2px solid #8c5cf6;
  outline-offset: 2px;
}
.vault-pill-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  color: #6f6594;
  white-space: nowrap;
}
.vault-pill-value {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--ink-1, #1f1c2e);
  letter-spacing: -.005em;
  min-width: 6ch;
  max-width: 28ch;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}

/* Filled state — soft tinted pill, raises on hover. */
.vault-pill.is-filled .vault-pill-btn {
  background: rgba(140,92,246,.06);
  border-color: rgba(140,92,246,.18);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
.vault-pill.is-filled:hover .vault-pill-btn {
  transform: translateY(-1px);
  background: rgba(140,92,246,.10);
  border-color: rgba(140,92,246,.30);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 6px 16px -8px rgba(70, 50, 160, .35);
}

/* Empty state — dashed outline, becomes solid on hover (invitation). */
.vault-pill.is-empty .vault-pill-btn {
  background: transparent;
  border: 1px dashed #c7bff0;
  color: #6f6594;
}
.vault-pill.is-empty:hover .vault-pill-btn {
  border-style: solid;
  border-color: #8c5cf6;
  background: rgba(140,92,246,.06);
  transform: translateY(-1px);
}
.vault-pill.is-empty .vault-pill-label { color: #6f6594; opacity: .85; }
.vault-pill-add { color: #6c47e8; font-weight: 700; }

/* Read-only (email) — no hover lift, no edit cursor. */
.vault-pill.is-readonly .vault-pill-btn {
  cursor: default;
  background: rgba(91,141,239,.06);
  border-color: rgba(91,141,239,.18);
}
.vault-pill.is-readonly:hover .vault-pill-btn { transform: none; }

/* Editing state — pill morphs into a contained input. */
.vault-pill.is-editing {
  background: white;
  border-radius: 12px;
  box-shadow:
    0 0 0 2px rgba(140,92,246,.18),
    0 12px 32px -16px rgba(70, 50, 160, .35);
}
.vault-pill.is-editing .vault-pill-btn {
  background: white;
  border-color: transparent;
}
.vault-pill-input {
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-1, #1f1c2e);
  width: 22ch;
  max-width: 100%;
  padding: 0;
  outline: none;
}
/* When editing, the JS moves .vault-pill-input out of the <button>
   wrapper (input-inside-button is invalid HTML and breaks focus). The
   button stays in the layout (visibility:hidden, not display:none) so
   the <li> keeps its size; the input is absolute-positioned over it. */
.vault-pill.is-editing { position: relative; }
.vault-pill.is-editing > .vault-pill-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 9px 13px;
  margin: 0;
  background: white;
  border: 1px solid rgba(140,92,246,.30);
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(140,92,246,.18),
              0 12px 32px -16px rgba(70, 50, 160, .35);
  z-index: 1;
}

/* Saving state — subtle pulse. */
.vault-pill.is-saving .vault-pill-btn {
  background: rgba(91,141,239,.08);
  animation: vault-pulse 1100ms ease-in-out infinite;
}
@keyframes vault-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}

/* "Just saved" — green check pulse. */
.vault-pill.vault-just-saved::after {
  content: "";
  position: absolute; top: 6px; right: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #30d1b0;
  box-shadow: 0 0 0 0 rgba(48, 209, 176, .55);
  animation: vault-saved 900ms cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes vault-saved {
  0%   { transform: scale(.6); box-shadow: 0 0 0 0 rgba(48, 209, 176, .55); }
  60%  { transform: scale(1.15); box-shadow: 0 0 0 12px rgba(48, 209, 176, 0); }
  100% { transform: scale(1); }
}

/* Error nudge. */
.vault-pill.vault-error {
  animation: vault-shake 360ms cubic-bezier(.2,.8,.2,1);
}
@keyframes vault-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
.vault-pill.vault-error .vault-pill-btn {
  border-color: #e15c6a !important;
  background: rgba(225,92,106,.06) !important;
}
/* Inline error message below an errored pill — a tooltip alone is
   invisible on touch and easy to miss on desktop, so we render the
   message right under the pill until success/auto-clear. */
.vault-pill-error-msg {
  display: block;
  position: absolute;
  left: 0; right: 0; top: 100%;
  margin-top: 4px;
  padding: 6px 10px;
  font-size: 12.5px; line-height: 1.3;
  color: #b3303f;
  background: #fff5f6;
  border: 1px solid #f3c1c8;
  border-radius: 8px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(225,92,106,.10);
}
/* Pills are rendered inside a positioned context already; ensure the
   error overlay anchors to the pill, not the page. */
.vault-pill { position: relative; }

.vault-foot {
  margin: 18px 0 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px;
}

/* Reduced-motion respect. */
@media (prefers-reduced-motion: reduce) {
  .vault-ring-fill,
  .vault-pill,
  .vault-pill-btn,
  .vault-just-saved::after,
  .vault-pill.is-saving .vault-pill-btn { transition: none; animation: none; }
}

/* Mobile — keep one column, tighten paddings. Pills already wrap. */
@media (max-width: 640px) {
  .vault {
    padding: 20px 18px;
    border-radius: 14px;
  }
  .vault-head { gap: 12px; }
  .vault-ring { width: 56px; height: 56px; }
  .vault-ring svg { width: 56px; height: 56px; }
  .vault-pill-btn { padding: 9px 12px; min-height: 44px; }
  .vault-pill-value { font-size: 16px; } /* iOS zoom guard */
  .vault-pill-input { font-size: 16px; }
}

/* ──────────────────────────────────────────────────────────────────────
   Pre-filled from vault — visual hint on benefit_form fields whose
   value was restored from the user's saved profile / prior application.
   The promise: the user sees that the field is already filled (so they
   know they can scroll past it) without it looking like a system error
   or a locked field they can't edit.
   ────────────────────────────────────────────────────────────────────── */

.field.field-prefilled {
  position: relative;
}
.field.field-prefilled input[type="text"],
.field.field-prefilled input[type="email"],
.field.field-prefilled input[type="tel"],
.field.field-prefilled input[type="number"],
.field.field-prefilled input[type="date"],
.field.field-prefilled textarea,
.field.field-prefilled select {
  background-color: rgba(48, 209, 176, .045);
  border-color: rgba(48, 209, 176, .35);
  transition: background-color 220ms ease, border-color 220ms ease;
}
.field.field-prefilled input[type="text"]:focus,
.field.field-prefilled input[type="email"]:focus,
.field.field-prefilled input[type="tel"]:focus,
.field.field-prefilled input[type="number"]:focus,
.field.field-prefilled input[type="date"]:focus,
.field.field-prefilled textarea:focus,
.field.field-prefilled select:focus {
  /* On focus the green tint fades — signals the field is editable. */
  background-color: white;
  border-color: var(--accent-ink, #5b8def);
}
.field-prefilled-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px 2px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #167b59;
  background: rgba(48, 209, 176, .14);
  vertical-align: middle;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .field.field-prefilled input,
  .field.field-prefilled textarea,
  .field.field-prefilled select { transition: none; }
}

/* ─── Pre-filled PDF download overlay (Bug #3 — prominent progress
   bar so the user doesn't think the page is frozen during the
   server-side AcroForm fill). ─── */
.pdf-download-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 24, 36, 0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  opacity: 0; transition: opacity 220ms ease;
}
.pdf-download-overlay.is-visible { opacity: 1; }
.pdf-download-overlay[hidden] { display: none; }
.pdf-download-card {
  background: white;
  border-radius: 16px;
  padding: 28px 32px;
  width: min(92vw, 520px);
  box-shadow: 0 18px 48px rgba(20, 24, 36, .25);
  text-align: center;
}
.pdf-download-card h3 {
  margin: 12px 0 6px;
  font-size: 19px;
  color: #182338;
}
.pdf-download-card p {
  margin: 0;
  color: #5a6479;
  font-size: 14px;
  line-height: 1.4;
}
.pdf-download-spinner {
  width: 36px; height: 36px;
  border: 3px solid #e6e9ef;
  border-top-color: #5b8def;
  border-radius: 50%;
  animation: pdf-spin 1.05s linear infinite;
  margin: 0 auto 4px;
}
@keyframes pdf-spin { to { transform: rotate(360deg); } }
.pdf-download-track {
  margin: 18px 0 6px;
  height: 10px;
  background: #e6e9ef;
  border-radius: 999px;
  overflow: hidden;
}
.pdf-download-bar {
  height: 100%;
  background: linear-gradient(90deg, #5b8def, #30d1b0);
  border-radius: 999px;
  transition: width 200ms ease;
}
.pdf-download-pct {
  font-weight: 700;
  font-size: 14px;
  color: #182338;
  margin-top: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .pdf-download-spinner { animation: none; }
  .pdf-download-bar { transition: none; }
}

/* ─── AI-suggested values: amber tint + visible "AI SUGGESTED" badge so
   the user understands Buronia drafted this and they MUST review it
   before submit. AI_INFER tier (extracted from documents, more
   legally consequential) gets the stronger red treatment. ─── */
.ai-suggest-banner {
  margin: 16px 0 22px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #f5c46a;
  background: linear-gradient(180deg, #fff8e8, #fff3da);
  color: #6b4a05;
  box-shadow: 0 1px 0 rgba(245, 196, 106, .25);
}
.ai-suggest-banner strong { display: block; font-size: 14px; margin-bottom: 4px; }
.ai-suggest-banner p { margin: 0; font-size: 13px; line-height: 1.45; }

.field.field-ai-suggest input[type="text"],
.field.field-ai-suggest input[type="number"],
.field.field-ai-suggest input[type="date"],
.field.field-ai-suggest input[type="tel"],
.field.field-ai-suggest input[type="email"],
.field.field-ai-suggest textarea,
.field.field-ai-suggest select {
  background-color: rgba(245, 196, 106, .08);
  border-color: rgba(212, 144, 28, .55);
}
.field.field-ai-suggest input:focus,
.field.field-ai-suggest textarea:focus,
.field.field-ai-suggest select:focus {
  background-color: white;
  border-color: var(--accent-ink, #5b8def);
}
.field.field-ai-infer input[type="text"],
.field.field-ai-infer input[type="number"],
.field.field-ai-infer input[type="date"],
.field.field-ai-infer input[type="tel"],
.field.field-ai-infer input[type="email"],
.field.field-ai-infer textarea,
.field.field-ai-infer select {
  background-color: rgba(225, 92, 106, .055);
  border-color: rgba(190, 70, 80, .55);
}
.field.field-ai-infer input:focus,
.field.field-ai-infer textarea:focus,
.field.field-ai-infer select:focus {
  background-color: white;
  border-color: var(--accent-ink, #5b8def);
}

.field-ai-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px 2px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}
.field-ai-badge-suggest {
  color: #6b4a05;
  background: rgba(245, 196, 106, .25);
  border: 1px solid rgba(212, 144, 28, .35);
}
.field-ai-badge-infer {
  color: #8a1f2c;
  background: rgba(225, 92, 106, .15);
  border: 1px solid rgba(190, 70, 80, .35);
}

.field-ai-rationale {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  color: #6b4a05;
  font-style: italic;
}
.field.field-ai-infer .field-ai-rationale {
  color: #8a1f2c;
}

/* ─── Buronia offer page (post-form-submit) ─── */
.offer-section { padding: 32px 0 80px; }
.offer-header { text-align: center; margin: 28px 0 36px; }
.offer-eyebrow {
  display: inline-block; padding: 4px 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #5b4b00;
  background: rgba(245,196,106,.25); border-radius: 999px;
}
.offer-title {
  font-size: 38px; font-weight: 700; line-height: 1.15;
  margin: 14px auto 10px; max-width: 720px;
}
.offer-lead { color: #5a6479; max-width: 640px; margin: 0 auto; font-size: 17px; }

/* Preview thumbnail card */
.offer-preview-card {
  display: grid; grid-template-columns: 1fr 200px; gap: 24px;
  background: #fff; border: 1px solid #e6e9ef; border-radius: 16px;
  padding: 20px 24px; margin: 24px auto; max-width: 880px;
  box-shadow: 0 1px 3px rgba(20,24,36,.05);
}
.offer-preview-eyebrow { font-size: 12px; color: #5a6479; text-transform: uppercase; letter-spacing: .06em; }
.offer-preview-card h3 { margin: 6px 0 4px; font-size: 18px; }
.offer-preview-checks {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px;
  font-size: 14px; color: #2a3344;
}
.offer-preview-thumb-frame {
  background: #fafbfd; border: 1px dashed #c5cbd8; border-radius: 10px;
  height: 160px; display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: #c5cbd8;
}
.offer-preview-thumb-frame img { max-height: 100%; max-width: 100%; border-radius: 6px; }

/* Two-column offer grid */
.offer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  max-width: 880px; margin: 24px auto;
}
@media (max-width: 720px) {
  .offer-grid { grid-template-columns: 1fr; }
  .offer-preview-card { grid-template-columns: 1fr; }
  .offer-title { font-size: 28px; }
}

.offer-card {
  position: relative;
  background: #fff; border: 1px solid #e6e9ef; border-radius: 18px;
  padding: 26px 24px 24px;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 8px rgba(20,24,36,.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.offer-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,24,36,.10); }
.offer-card-recommended {
  border: 2px solid #5b8def;
  box-shadow: 0 8px 28px rgba(91,141,239,.18);
}
.offer-card-badge {
  position: absolute; top: -12px; right: 22px;
  padding: 5px 14px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: white; background: linear-gradient(90deg, #5b8def, #30d1b0);
  border-radius: 999px; box-shadow: 0 2px 6px rgba(91,141,239,.35);
}
.offer-card-eyebrow {
  font-size: 12px; color: #5a6479; text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 6px;
}
.offer-card-title { margin: 0 0 12px; font-size: 22px; font-weight: 700; line-height: 1.2; }
.offer-card-price { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 12px; }
.offer-card-price-amount { font-size: 36px; font-weight: 800; color: #182338; line-height: 1; }
.offer-card-price-unit { font-size: 13px; color: #5a6479; }
.offer-card-summary { color: #2a3344; font-size: 14.5px; line-height: 1.5; margin: 0 0 16px; }
.offer-card-bullets { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.offer-card-bullets li {
  padding: 6px 0; font-size: 14px; color: #2a3344; line-height: 1.45;
  border-bottom: 1px solid #f0f2f5;
}
.offer-card-bullets li:last-child { border-bottom: none; }
.offer-card-cta { margin-top: auto; }
.offer-card-foot { margin: 10px 0 0; font-size: 12.5px; }

.offer-mail-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 0; }
.offer-mail-delivery { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.offer-mail-radio {
  display: block; cursor: pointer;
  background: #fafbfd; border: 1px solid #e6e9ef; border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 160ms ease, background 160ms ease;
}
.offer-mail-radio:hover { border-color: #5b8def; background: white; }
.offer-mail-radio input { margin-right: 10px; }
.offer-mail-radio-row {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 14.5px; color: #182338;
}
.offer-mail-radio-price { color: #5b8def; font-weight: 700; }
.offer-mail-radio-foot { display: block; font-size: 12.5px; margin-top: 4px; }
.offer-mail-bundle {
  font-size: 12.5px; padding: 8px 12px; background: #fff8e8;
  border: 1px solid #f5c46a; border-radius: 8px;
}

/* Compare table */
.offer-compare {
  max-width: 760px; margin: 36px auto 0;
}
.offer-compare h3 { text-align: center; font-size: 18px; margin: 0 0 14px; color: #2a3344; }
.offer-compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid #e6e9ef; border-radius: 14px;
  overflow: hidden;
  font-size: 14px; color: #2a3344;
}
.offer-compare-table th, .offer-compare-table td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid #f0f2f5;
}
.offer-compare-table th {
  background: #fafbfd; font-weight: 700; font-size: 13.5px;
}
.offer-compare-table th:nth-child(2),
.offer-compare-table td:nth-child(2),
.offer-compare-table th:nth-child(3),
.offer-compare-table td:nth-child(3) { text-align: center; }
.offer-compare-table tr:last-child td { border-bottom: none; }

.offer-trust { text-align: center; margin: 28px auto 0; max-width: 640px; font-size: 13px; }
