/* 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: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}
.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;
}
.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-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; }

.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-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-has-error .widget-kvnr, .field-has-error .widget-plz,
.field-has-error .widget-krankenkasse, .field-has-error .widget-address {
  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 {
  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 {
  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 {
  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 {
  border-color: var(--accent);
}
.widget-kvnr-status, .widget-plz-status,
.widget-krankenkasse-status, .widget-address-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 {
  font-size: 16px;
}

/* 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);
}
.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 { padding: 10px 16px; }
  .product-switch a { padding: 0 9px; font-size: 12px; }
  .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; }
}

/* ─────────────────────────────────────────────── 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; }
.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-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; }

/* ─────────────────────────────────────────────── 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 with Claude Vision..." 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; }
}

/* ─────────────────────────────────────────────── 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 {
  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;
}
.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: 14px;
  padding: 18px 18px;
  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: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  font-size: 18px; line-height: 1;
}
.privacy-list strong {
  display: block;
  font-size: 14.5px; font-weight: 600;
  color: white;
  margin-bottom: 4px;
}
.privacy-list 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; }
}

/* ─────────────────────────────────────────────── persistent chat panel */
/* Right-rail Buronia-assistant panel rendered by _base.html on every page.
   Logged-out users see a sign-in CTA (adoption teaser); logged-in users
   get the live recommendation chat.

   On wide screens it sits as a fixed sidebar on the right; on tablet
   widths it collapses to a floating bubble that the user can re-open. */
.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; }

/* Chat panel removed 2026-05-01 — page is now centred normally. The
   .page-main wrapper still exists in _base.html (kept for backwards
   compatibility with templates that target it for layout) but no
   longer carries the right-padding shim. */

/* ─────────────────────────────────────────────── 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; }
.rec-card .pill { background: rgba(91,141,239,.14); color: var(--accent-ink); }
.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;
}

/* ───────────────────────────────────────────────
   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-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); }

/* ───────── 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 .price { font-size: 18px; }
  .mail-history { font-size: 13px; }
  .mail-history th, .mail-history td { padding: 8px 6px; }
}

/* ───────── 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; }
