/* ==========================================================================
   Havan Investimentos: site stylesheet
   One accent, one neutral family, one radius scale, one shadow scale, one light theme.
   Section 1 tokens · 2 base · 3 layout primitives · 4 header and navigation · 5 hero
   6 sections and motifs · 7 cards, steps, tables · 8 forms and calculator · 9 footer
   10 page heroes and content blocks · 11 modal · 12 utilities · 13 motion · 14 breakpoints
   ========================================================================== */

/* 1. Tokens -------------------------------------------------------------- */
:root {
  --accent: #1c5a3c;
  --accent-hover: #164a32;
  --accent-tint: #e7efe8;
  --accent-soft: #f1f5f0;
  --amber: #b9812c;
  --amber-line: #e0a63a;
  --amber-text: #8a5d14;
  --amber-tint: #f7eeda;

  --bg: #faf7f1;
  --surface: #fffdf8;
  --surface-2: #f2ecdf;
  --surface-3: #ece4d3;
  --border: #e3dac8;
  --border-strong: #cfc3ab;
  --text: #1d2620;
  --text-muted: #55605a;
  --ink: #12241b;
  --ink-2: #1a3a2b;
  --on-ink: #f4f1e8;
  --on-ink-muted: #b9cbbf;

  --font-display: "Gabarito", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;

  --fs-1: clamp(2rem, 1.2rem + 1.75vw, 2.75rem);
  --fs-2: clamp(1.625rem, 1.25rem + 1.35vw, 2.375rem);
  --fs-3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-4: 1.125rem;
  --fs-5: 1rem;
  --fs-6: 0.9375rem;
  --fs-7: 0.8125rem;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(28, 60, 44, 0.08), 0 1px 1px rgba(28, 60, 44, 0.04);
  --shadow-md: 0 1px 2px rgba(28, 60, 44, 0.07), 0 10px 28px -10px rgba(28, 60, 44, 0.22);
  --shadow-lg: 0 2px 4px rgba(28, 60, 44, 0.08), 0 28px 60px -20px rgba(18, 36, 27, 0.38);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;

  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

@font-face {
  font-family: "Gabarito";
  src: url("../fonts/gabarito-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-5) / 1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe, video, canvas { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-1); }
h2 { font-size: var(--fs-2); }
h3 { font-size: var(--fs-3); }
h4 { font-size: var(--fs-4); }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 var(--space-4); padding-inline-start: 1.35em; }
li { margin-bottom: var(--space-2); }
strong { font-weight: 650; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; padding-block: 5px; transition: color 150ms var(--ease); }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber-line); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-ink); }
[hidden] { display: none !important; }
.icon { flex: none; vertical-align: -0.2em; }

/* 3. Layout primitives --------------------------------------------------- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.container--narrow { max-width: 880px; }
.section { padding-block: clamp(48px, 3px + 6vw, 96px); }
.section--tight { padding-block: clamp(32px, 2px + 4vw, 56px); }
.section-head { max-width: 760px; margin-bottom: var(--space-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.lead { font-size: var(--fs-4); color: var(--text-muted); line-height: 1.6; max-width: 62ch; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); font: 700 var(--fs-7) / 1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-text); }
.stack > * + * { margin-top: var(--space-4); }
.stack { list-style: none; padding: 0; }
.stack li { display: flex; align-items: flex-start; gap: var(--space-3); }
.stack li .icon { color: var(--amber-text); margin-top: 3px; }
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.text-muted { color: var(--text-muted); }
.measure { max-width: 68ch; }

/* Buttons: one label per intent, never wrapping */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 12px 24px; border: 1.5px solid transparent; border-radius: var(--r-md);
  font: 600 var(--fs-5) / 1.2 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease), border-color 160ms var(--ease);
}
.btn .icon { transition: transform 160ms var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--on-ink); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }
.btn--secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--secondary:hover { background: var(--accent-tint); color: var(--accent-hover); }
.btn--amber { background: var(--amber-line); color: var(--ink); }
.btn--amber:hover { background: #cf9228; color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--accent); padding-inline: var(--space-2); }
.btn--ghost:hover { background: var(--accent-tint); }
.btn--block { width: 100%; }
.link-more { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; }

/* 4. Header and navigation ---------------------------------------------- */
.skip-link {
  position: absolute; left: var(--space-4); top: -80px; z-index: 200;
  padding: 12px 18px; background: var(--ink); color: var(--on-ink); border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: var(--space-3); color: var(--on-ink); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 241, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 200ms var(--ease), border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.site-header.is-scrolled { background: var(--bg); border-bottom-color: var(--border); box-shadow: var(--shadow-md); }
.site-header__bar { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; padding: 0; }
.brand:hover { color: var(--text); }
.brand__mark { display: block; }
.brand__name { font: 700 1.1875rem / 1.1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.brand__word--light { color: var(--accent); font-weight: 400; font-family: var(--font-body); letter-spacing: 0; font-size: 1.0625rem; }

.nav-toggle {
  display: none; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); cursor: pointer;
}
.nav-toggle__icon { display: inline-flex; }
.nav-toggle__icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close { display: inline-flex; }

.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__group { position: relative; margin: 0; }
.nav__trigger {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text);
  font: 600 var(--fs-5) / 1.2 var(--font-body); cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.nav__caret { color: var(--text-muted); transition: transform 160ms var(--ease); }
.nav__trigger:hover, .nav__trigger:focus-visible, .nav__group.is-open .nav__trigger { background: var(--accent-tint); color: var(--accent); }
.nav__group.is-open .nav__caret { transform: rotate(180deg); }

.nav__submenu {
  position: absolute; left: 0; top: 100%; z-index: 110; min-width: 260px; margin: 0; padding: var(--space-2);
  list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px); pointer-events: none;
  transition: opacity 150ms var(--ease), transform 150ms var(--ease), visibility 150ms;
}
.nav__submenu::before {
  content: ""; position: absolute; top: -7px; left: 22px; width: 12px; height: 12px;
  background: var(--surface); border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg);
}
.nav__group.is-open .nav__submenu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.nav__group--wide .nav__submenu { min-width: 560px; columns: 2; column-gap: var(--space-3); }
.nav__group--wide .nav__submenu li { break-inside: avoid; }
.nav__group.is-align-end .nav__submenu { left: auto; right: 0; }
.nav__group.is-align-end .nav__submenu::before { left: auto; right: 22px; }
.nav__submenu li { margin: 0; }
.nav__link { display: block; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-weight: 500; line-height: 1.35; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.nav__link:hover, .nav__link:focus-visible { background: var(--accent-tint); color: var(--accent); }
html:not(.js) .nav__group:hover .nav__submenu,
html:not(.js) .nav__group:focus-within .nav__submenu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }

.site-header__cta { margin-left: auto; min-height: 44px; padding: 10px 20px; }

/* 5. Hero (home) --------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); }
.hero__bg { position: absolute; inset: -8% 0 0; z-index: -1; pointer-events: none; }
.hero__bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right bottom; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(250 247 241 / 28%), rgb(250 247 241 / 62%) 38%, rgb(250 247 241 / 20%) 62%, transparent 84%),
    radial-gradient(ellipse at 18% 28%, rgb(250 247 241 / 86%), rgb(250 247 241 / 45%) 42%, transparent 74%);
}
.hero__title .hero-accent { color: var(--accent); }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); grid-template-rows: auto auto 1fr auto; column-gap: clamp(32px, 4.5vw, 72px); align-items: start; padding-block: clamp(40px, 2px + 3vw, 56px) clamp(96px, 9vw, 144px); }
.hero__title { grid-column: 1; max-width: 26ch; margin-bottom: var(--space-5); }
.hero__lead { grid-column: 1; font-size: var(--fs-4); color: var(--text-muted); max-width: 52ch; }
.hero__form { grid-column: 2; grid-row: 1 / span 4; }
.hero__list { grid-column: 1; list-style: none; margin: var(--space-5) 0 0; padding: 0; max-width: 46ch; }
.hero__list li { display: flex; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-3); padding-block: 2px; font-weight: 500; }
.hero__list .icon { color: var(--accent); margin-top: 4px; }
.hero__links { grid-column: 1; align-self: end; display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

.icon-link { display: flex; align-items: center; gap: var(--space-3); padding: 10px 16px 10px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; font-weight: 600; transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), border-color 160ms var(--ease); }
.icon-link:hover { color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); }
.icon-badge--amber { background: var(--amber-tint); color: var(--amber-text); }
.icon-badge--ink { background: var(--ink); color: var(--amber-line); }
.icon-badge--sm { width: 36px; height: 36px; border-radius: 10px; }

/* 6. Sections and motifs ------------------------------------------------- */
.band { background: var(--surface); border-block: 1px solid var(--border); }
.band--tint { background: var(--accent-soft); border: 0; }
.band--sand { background: var(--surface-2); border: 0; }
.band--ink { background: var(--ink); color: var(--on-ink); }
.band--ink h2, .band--ink h3 { color: var(--on-ink); }
.band--ink .lead, .band--ink p { color: var(--on-ink-muted); }
.band--ink a:not(.btn) { color: var(--amber-line); }
.band--ink .icon-badge { background: rgba(224, 166, 58, 0.14); color: var(--amber-line); }
/* A raised form card inside a dark band keeps the light-surface text colours (Lighthouse contrast). */
.band--ink .form-card, .band--ink .form-card p { color: var(--text-muted); }
.band--ink .form-card h2 { color: var(--text); }
.band--ink .form-card a:not(.btn) { color: var(--accent); }
.band--ink .form-card label { color: var(--text); }

.motif-grid { position: relative; isolation: isolate; }
.motif-grid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.55; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M44 0H0v44' fill='none' stroke='%231c5a3c' stroke-opacity='.09' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%); mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
}
.motif-line { position: relative; isolation: isolate; overflow: hidden; }
.motif-line::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath d='M0 290L180 250L360 268L540 196L720 214L900 140L1080 156L1260 84L1440 40V320H0Z' fill='%231c5a3c' fill-opacity='.07'/%3E%3Cpath d='M0 290L180 250L360 268L540 196L720 214L900 140L1080 156L1260 84L1440 40' fill='none' stroke='%23b9812c' stroke-opacity='.35' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.motif-candles { position: relative; isolation: isolate; }
.motif-candles::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 34%; z-index: -1; pointer-events: none; opacity: 0.5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='200' viewBox='0 0 160 200'%3E%3Cg stroke='%231c5a3c' stroke-opacity='.28' stroke-width='2'%3E%3Cpath d='M20 10v180M60 10v180M100 10v180M140 10v180'/%3E%3C/g%3E%3Cg fill='%231c5a3c' fill-opacity='.16'%3E%3Crect x='12' y='40' width='16' height='46' rx='2'/%3E%3Crect x='52' y='96' width='16' height='52' rx='2'/%3E%3Crect x='92' y='60' width='16' height='58' rx='2'/%3E%3Crect x='132' y='112' width='16' height='40' rx='2'/%3E%3C/g%3E%3Cg fill='%23b9812c' fill-opacity='.3'%3E%3Crect x='52' y='30' width='16' height='40' rx='2'/%3E%3Crect x='132' y='48' width='16' height='44' rx='2'/%3E%3C/g%3E%3C/svg%3E") right center / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%);
}

/* Exchange logos: one chip per logo, every chip the same size */
.logo-chip { display: flex; align-items: center; justify-content: center; width: 160px; height: 56px; padding: 10px 14px; background: #ffffff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); }
.logo-chip--dark { background: #0f172a; border-color: #0f172a; }
.logo-chip img { display: block; height: 28px; width: auto; max-width: 100%; }
.logo-row { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; justify-content: center; }
.logo-row li { margin: 0; }

/* 7. Cards, steps, tables ------------------------------------------------ */
.card { display: flex; flex-direction: column; gap: var(--space-3); height: 100%; padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 0; }
.card p { color: var(--text-muted); font-size: var(--fs-6); }
.card--link { color: inherit; text-decoration: none; }
.card--link:hover { color: inherit; }
.card--flat { background: var(--accent-soft); }
.card--amber { background: var(--amber-tint); border-color: #ead9b4; }
.card--ink { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.card--ink h3 { color: var(--on-ink); }
.card--ink p { color: var(--on-ink-muted); }
.card--flush { padding: var(--space-5); }
.card__head { display: flex; align-items: center; gap: var(--space-3); }
.card__head h2 { font-size: var(--fs-4); line-height: 1.25; margin: 0; }
.card__list { margin: 0; padding-inline-start: 1.1em; font-size: var(--fs-6); color: var(--text-muted); }
.card__foot { margin-top: auto; padding-top: var(--space-3); }
/* Risk card: explanation, then the practical recommendation on a ruled foot */
.risk-card p { color: var(--text); }
.risk-card__tip { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px dashed var(--border-strong); color: var(--text-muted) !important; }
.risk-card__tip strong { color: var(--accent); }
/* Compact link tiles (company block): icon beside the label, two per row */
.link-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.link-tiles .card { flex-direction: row; align-items: center; gap: var(--space-3); padding: 14px 16px; }
.link-tiles .card h3 { font-size: var(--fs-5); line-height: 1.25; margin: 0; }
.link-tiles .icon-badge { width: 40px; height: 40px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-5); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { position: relative; margin: 0; padding: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); counter-increment: step; }
.steps > li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: var(--space-3); border-radius: 50%; background: var(--accent); color: var(--on-ink); font: 700 var(--fs-5) / 1 var(--font-display); }
.steps > li h3 { font-size: var(--fs-4); margin-bottom: var(--space-2); }
.steps > li p { color: var(--text-muted); font-size: var(--fs-6); margin-bottom: 0; }
.steps--row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.steps--row > li::after { content: ""; position: absolute; top: 50%; right: -18px; width: 12px; height: 12px; border-top: 2px solid var(--border-strong); border-right: 2px solid var(--border-strong); transform: translateY(-50%) rotate(45deg); }
.steps--row > li:last-child::after { display: none; }

.steps--list { display: grid; gap: var(--space-4); }
.steps--list > li { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); align-items: start; background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0 0 var(--space-4); border-bottom: 1px solid var(--border); }
.steps--list > li::before { grid-column: 1; margin-bottom: 0; width: 40px; height: 40px; background: var(--accent-tint); color: var(--accent); }
.steps--list > li > :nth-child(1) { grid-column: 2; }
.steps--list > li > * { grid-column: 2; }
.steps--list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps--list > li h3 { font-size: var(--fs-4); margin-bottom: var(--space-2); }
.steps--list > li p { margin-bottom: 0; }
.steps--list > li ul { margin: var(--space-3) 0 0; }
/* Numbered commitments (complaints page) */
.commitments { margin: 0; padding-inline-start: 1.3em; }
.commitments li { margin-bottom: var(--space-3); }
.commitments li::marker { color: var(--accent); font-weight: 700; }

/* Steps as a timeline: numbered stops on one line, no card chrome */
.steps--line { position: relative; }
.steps--line::before { content: ""; position: absolute; top: 16px; left: 20px; right: 20px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) 0%, var(--amber-line) 100%); }
.steps--line > li { position: relative; padding: 0; background: transparent; border: 0; box-shadow: none; }
.steps--line > li::before { position: relative; z-index: 1; margin-bottom: var(--space-4); box-shadow: 0 0 0 5px var(--bg); }
.steps--line > li h3 { margin-bottom: var(--space-2); }

/* position: relative keeps absolutely positioned descendants (visually hidden labels) inside the
   scroll clipping of the wrapper; without it they widen the page on small screens. */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 var(--space-5); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.table-wrap:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-6); min-width: 520px; }
caption { padding: var(--space-4) var(--space-5); text-align: left; font: 700 var(--fs-4) / 1.3 var(--font-display); color: var(--text); caption-side: top; }
th, td { padding: 14px var(--space-5); text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
thead th { background: var(--surface-2); font: 700 var(--fs-7) / 1.3 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 42%, transparent); }
tbody th { font-weight: 600; color: var(--text); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mark-yes, .mark-no { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.mark-yes { color: var(--accent); }
.mark-no { color: #a4372f; }
.table--compare thead th:first-child, .table--compare tbody th { width: 42%; }
/* Row labels keep a readable width on phones: the table scrolls sideways inside its wrapper. */
.table--compare tbody th, .table--compare thead th:first-child { min-width: 190px; }
.table--compare thead th:nth-child(2) { background: var(--accent); color: var(--on-ink); }
.table--compare td:not(:first-child), .table--compare tbody th { text-align: center; }
.table--compare tbody th { text-align: left; }
.table-note { font-size: var(--fs-6); color: var(--text-muted); }

.note { padding: var(--space-5) var(--space-6); background: var(--amber-tint); border-inline-start: 4px solid var(--amber-line); border-radius: 0 var(--r-md) var(--r-md) 0; }
.note--green { background: var(--accent-tint); border-inline-start-color: var(--accent); }
.note--plain { background: var(--surface-2); border-inline-start-color: var(--border-strong); }
.note p { font-size: var(--fs-6); }
.note__title { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); font: 700 var(--fs-5) / 1.3 var(--font-display); color: var(--text); }
/* Ruled list of "never" items (fraud warning) */
.checklist { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: var(--space-3); margin: 0; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.checklist .icon { color: #a4372f; margin-top: 3px; }
.table--fit { min-width: 440px; }

.flag-band { padding-block: 18px 24px; }
.flag-strip { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.flag-strip svg { flex: none; border-radius: 4px; box-shadow: 0 0 0 1px rgba(28, 60, 44, 0.12); }
.flag-strip p { margin: 0; font-weight: 600; }
.flag-strip span { display: block; font-weight: 400; font-size: var(--fs-6); color: var(--text-muted); }

/* FAQ */
.faq { display: grid; gap: var(--space-3); }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.faq--open .faq__item { padding: var(--space-5) var(--space-6); }
.faq__question { margin: 0; font-size: var(--fs-4); line-height: 1.3; }
.faq__trigger { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); width: 100%; min-height: 56px; padding: var(--space-4) var(--space-5); border: 0; border-radius: var(--r-md); background: transparent; color: var(--text); font: 700 var(--fs-4) / 1.3 var(--font-display); text-align: left; cursor: pointer; transition: background-color 150ms var(--ease); }
.faq__trigger:hover { background: var(--accent-soft); }
.faq__chevron { color: var(--accent); transition: transform 180ms var(--ease); }
.faq__trigger[aria-expanded="true"] .faq__chevron { transform: rotate(180deg); }
.faq__panel { padding: 0 var(--space-5) var(--space-5); }
.faq__answer { color: var(--text-muted); font-size: var(--fs-6); }
.faq__answer p { margin-bottom: var(--space-3); }
.faq__answer ul, .faq__answer ol { margin-bottom: 0; }

/* CTA band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(48px, 3px + 5vw, 80px); background: var(--ink); color: var(--on-ink); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 420' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23e0a63a' stroke-opacity='.22' stroke-width='1.5'%3E%3Cpath d='M0 340C240 320 360 250 560 262S900 190 1100 150 1360 60 1440 40'/%3E%3Cpath d='M0 380C260 360 400 300 620 306S960 250 1180 206 1400 120 1440 100'/%3E%3C/g%3E%3Cg fill='%23e0a63a' fill-opacity='.55'%3E%3Ccircle cx='560' cy='262' r='5'/%3E%3Ccircle cx='1100' cy='150' r='5'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat; }
.cta-band h2, .cta-band h3 { color: var(--on-ink); }
.cta-band p { color: var(--on-ink-muted); max-width: 60ch; }
.cta-band .btn--amber { margin-top: var(--space-4); }
.cta-band--light { background: var(--amber-tint); color: var(--text); }
.cta-band--light::before { opacity: 0.5; }
.cta-band--light h2, .cta-band--light h3, .cta-band--light p { color: var(--text); }

/* Promo strip with an amount in R$ */
.promo { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-5); padding: var(--space-5) var(--space-6); background: var(--accent); color: var(--on-ink); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.promo__amount { font: 700 clamp(2rem, 1.4rem + 1.6vw, 3rem) / 1 var(--font-display); color: var(--amber-line); white-space: nowrap; }
.promo p { margin: 0; color: var(--on-ink); }
.promo small { display: block; margin-top: 6px; color: #e3ece5; font-size: var(--fs-7); line-height: 1.5; text-wrap: pretty; }
.promo small a { color: #f8e4b8; }
.band--ink .hero__list .icon { color: var(--amber-line); }

/* 8. Forms and calculator ------------------------------------------------- */
.form-card { padding: clamp(20px, 2vw + 12px, 32px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.form-block { scroll-margin-top: calc(var(--header-h) + 16px); }
.form-block__title { font-size: var(--fs-3); margin-bottom: var(--space-2); }
.form-block__intro { color: var(--text-muted); font-size: var(--fs-6); margin-bottom: var(--space-4); }
.form-legal { margin: var(--space-4) 0 0; font-size: var(--fs-7); line-height: 1.5; color: var(--text-muted); }
.form-legal a { font-weight: 600; padding-block: 5px; margin-block: -2px; }

/* The form widget's own markup is generic: label, input, select, textarea, button. */
.form-block form { display: grid; gap: var(--space-4); }
.form-block form > div { display: grid; gap: 6px; }
.form-block label { display: block; font: 600 var(--fs-6) / 1.35 var(--font-body); color: var(--text); }
.form-block input:not([type="checkbox"]):not([type="radio"]), .form-block select, .form-block textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); font: 400 var(--fs-5) / 1.3 var(--font-body);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.form-block input::placeholder, .form-block textarea::placeholder { color: #7a857e; }
.form-block input:focus-visible, .form-block select:focus-visible, .form-block textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.form-block input[aria-invalid="true"], .form-block select[aria-invalid="true"], .form-block textarea[aria-invalid="true"] { border-color: #a4372f; }
.form-block [id$="-error"] { margin: 0; font-size: var(--fs-7); font-weight: 500; color: #8f2f27; }
.form-block label:has(> input[type="checkbox"]) { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); align-items: start; font-weight: 400; font-size: var(--fs-6); color: var(--text-muted); cursor: pointer; }
.form-block input[type="checkbox"] { width: 24px; height: 24px; margin: -1px 0 0; accent-color: var(--accent); }
.form-block label:has(> input[type="checkbox"]) [id$="-error"] { grid-column: 2; }
.form-block button[type="submit"], .form-block button:not([type]) { min-height: 50px; width: 100%; margin-top: var(--space-2); padding: 12px 24px; border: 0; border-radius: var(--r-md); background: var(--accent); color: var(--on-ink); font: 700 var(--fs-5) / 1.2 var(--font-body); cursor: pointer; box-shadow: var(--shadow-sm); transition: background-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease); }
.form-block button[type="submit"]:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.form-block [role="status"] { margin: 0; padding: var(--space-3) var(--space-4); background: var(--accent-tint); border-radius: var(--r-sm); font-size: var(--fs-6); font-weight: 500; color: var(--accent); }

/* Calculator module: its own classes, restyled to the site tokens.
   The module links its stylesheet in the body, after this file, so every override below uses two
   classes to win without !important. */
.calc-shell { display: grid; gap: var(--space-6); }
.calc-widget.calc-widget { --calc-skeleton-bg: #ebe4d6; --calc-skeleton-shimmer: rgba(255, 253, 248, 0.7); text-align: left; padding: clamp(20px, 2vw + 12px, 40px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-md); font-family: var(--font-body); max-width: 1000px; margin-inline: auto; }
.calc-widget .calc-widget__title { font-family: var(--font-display); font-size: var(--fs-3); margin-bottom: var(--space-3); }
.calc-widget .calc-widget__subtitle { font-size: var(--fs-6); line-height: 1.55; margin-bottom: var(--space-6); max-width: 72ch; }
.calc-widget .calc-widget__wrapper { gap: var(--space-8); margin-bottom: var(--space-6); max-width: none; }
.calc-widget .calc-widget__controls { gap: var(--space-6); }
.calc-widget .calc-widget__label { font-size: var(--fs-6); font-weight: 600; }
.calc-widget .calc-widget__value { font-family: var(--font-display); font-size: 1.75rem; margin: 6px 0 12px; }
.calc-widget .calc-widget__result { backdrop-filter: none; -webkit-backdrop-filter: none; border-color: rgba(255, 253, 248, 0.12); border-radius: var(--r-lg); padding: var(--space-6); box-shadow: var(--shadow-md); }
.calc-widget .calc-widget__result-head { margin-bottom: var(--space-5); }
.calc-widget .calc-widget__result-title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; }
.calc-widget .calc-widget__total { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); }
.calc-widget .calc-widget__stats { gap: var(--space-5); }
.calc-widget .calc-widget__stat-label { font-size: var(--fs-5); font-weight: 600; line-height: 1.35; }
.calc-widget .calc-widget__stat-value { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); white-space: nowrap; }
.calc-widget .calc-widget__minmax { font-size: var(--fs-7); }
/* A 24px tall touch area with the same thin track drawn in its middle. The module writes the
   track gradient inline, so the geometry is pinned here with !important. */
.calc-widget .calc-widget__range { height: 24px; cursor: pointer; background-size: 100% 8px !important; background-position: center !important; background-repeat: no-repeat !important; }
.calc-widget .calc-widget__range:focus-visible { outline: 3px solid var(--amber-line); outline-offset: 2px; border-radius: 8px; }
.calc-widget .calc-widget__disclaimer { font-size: var(--fs-6); line-height: 1.55; margin-bottom: var(--space-5); }
.calc-widget .calc-widget__cta { min-height: 48px; padding: 12px 24px; font: 700 var(--fs-5) / 1.2 var(--font-body); border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: background-color 160ms var(--ease), transform 160ms var(--ease); }
.calc-widget .calc-widget__cta:hover { opacity: 1; background: var(--accent-hover); transform: translateY(-1px); }
.calc-widget .calc-widget__cta:focus-visible { outline: 3px solid var(--amber-line); outline-offset: 3px; }
html:not(.js) .calc-widget { display: none; }
.calc-modal .calc-modal__content { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.calc-modal .calc-modal__close { width: 44px; height: 44px; top: 6px; right: 8px; font-size: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); }
.calc-modal .calc-modal__close:focus-visible { outline: 3px solid var(--amber-line); outline-offset: 0; }
.calc-modal .calc-modal__title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; padding-inline: var(--space-7); }
.calc-modal .form-block, .calc-modal form { display: grid; gap: var(--space-4); text-align: left; }
.calc-modal form > div { display: grid; gap: 6px; }
.calc-modal label { display: block; font: 600 var(--fs-6) / 1.35 var(--font-body); color: #1d2620; }
.calc-modal input:not([type="checkbox"]) { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--border-strong); border-radius: var(--r-sm); background: #fffdf8; color: #1d2620; font: 400 var(--fs-5) / 1.3 var(--font-body); }
.calc-modal input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.calc-modal label:has(> input[type="checkbox"]) { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); align-items: start; font-weight: 400; font-size: var(--fs-6); color: #55605a; cursor: pointer; }
.calc-modal input[type="checkbox"] { width: 24px; height: 24px; margin: -1px 0 0; accent-color: var(--accent); }
.calc-modal [id$="-error"] { margin: 0; font-size: var(--fs-7); font-weight: 500; color: #8f2f27; }
.calc-modal button[type="submit"] { min-height: 50px; width: 100%; margin-top: var(--space-2); padding: 12px 24px; border: 0; border-radius: var(--r-md); background: var(--accent); color: var(--on-ink); font: 700 var(--fs-5) / 1.2 var(--font-body); cursor: pointer; }
.calc-modal button[type="submit"]:hover { background: var(--accent-hover); }
.calc-modal .form-legal { color: #55605a; }
.calc-modal .calc-modal__legal a { color: var(--accent); font-weight: 600; padding-block: 5px; margin-block: -2px; }
.calc-modal .form-block__intro { color: #55605a; }

/* 9. Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding-top: clamp(48px, 3px + 5vw, 80px); }
.site-footer a { color: var(--on-ink); }
.site-footer a:hover { color: var(--amber-line); }
.footer__top { display: grid; grid-template-columns: minmax(300px, 1.7fr) repeat(4, minmax(0, 1fr)); gap: var(--space-6); padding-bottom: var(--space-7); }
.footer__brand .brand { color: var(--on-ink); margin-bottom: var(--space-4); }
.footer__brand .brand__name { color: var(--on-ink); }
.site-footer .brand__word--light { color: var(--amber-line); }
.footer__tagline { font-size: var(--fs-6); margin-bottom: var(--space-4); max-width: 30ch; }
.footer__mail { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-6); }
.footer__badges { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: var(--space-4) 0 0; padding: 0; list-style: none; font-size: var(--fs-7); }
.footer__badges li { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 10px; border: 1px solid rgba(224, 166, 58, 0.35); border-radius: 999px; color: var(--amber-line); }
.footer__heading { color: var(--on-ink); font: 700 var(--fs-5) / 1.3 var(--font-body); letter-spacing: 0.02em; margin-bottom: var(--space-4); }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: var(--space-2); }
.footer__link { display: inline-block; padding-block: 5px; margin-block: -5px; font-size: var(--fs-6); text-decoration: none; color: var(--on-ink-muted); transition: color 150ms var(--ease); }
.footer__link:hover { color: var(--amber-line); }
.footer__legal { padding-block: var(--space-6); border-top: 1px solid rgba(244, 241, 232, 0.14); }
.footer__legal p { font-size: var(--fs-7); line-height: 1.65; max-width: 100ch; }
.footer__bottom { padding-block: var(--space-5); border-top: 1px solid rgba(244, 241, 232, 0.14); font-size: var(--fs-7); }
.footer__bottom p { margin: 0; }

/* 10. Page heroes and content blocks ------------------------------------- */
.breadcrumbs { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.breadcrumbs__list { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: var(--space-3) 0; list-style: none; font-size: var(--fs-7); }
.breadcrumbs__item { display: flex; align-items: center; gap: 10px; margin: 0; }
.breadcrumbs__item + .breadcrumbs__item::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid var(--border-strong); border-right: 1.5px solid var(--border-strong); transform: rotate(45deg); }
.breadcrumbs__link, .breadcrumbs__group { color: var(--text-muted); text-decoration: none; }
.breadcrumbs__link, .breadcrumbs__current, .breadcrumbs__group { display: inline-block; padding-block: 5px; margin-block: -5px; line-height: 1.5; }
.breadcrumbs__link:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs__current { color: var(--text); font-weight: 600; }

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(40px, 3px + 4vw, 72px); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%); }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 52%; z-index: -1; opacity: 0.7; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 260' preserveAspectRatio='none'%3E%3Cpath d='M0 230L200 196L400 208L600 150L800 164L1000 104L1200 118L1440 48V260H0Z' fill='%231c5a3c' fill-opacity='.08'/%3E%3Cpath d='M0 230L200 196L400 208L600 150L800 164L1000 104L1200 118L1440 48' fill='none' stroke='%23b9812c' stroke-opacity='.4' stroke-width='2.5'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.page-hero__grid > .form-card { max-width: 460px; justify-self: end; width: 100%; }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { max-width: 56ch; }
.page-hero__facts { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); margin: var(--space-5) 0 0; padding: 0; list-style: none; }
.page-hero__facts li { display: flex; align-items: center; gap: var(--space-2); margin: 0; font-weight: 600; font-size: var(--fs-6); }
.page-hero__facts .icon { color: var(--accent); }

.prose > h2 { margin-top: var(--space-8); scroll-margin-top: calc(var(--header-h) + 16px); }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: var(--space-6); font-size: var(--fs-4); }
.prose h2 + h3 { margin-top: var(--space-4); }
.prose ul, .prose ol { padding-inline-start: 1.25em; }
.prose li { margin-bottom: var(--space-2); }
.prose li::marker { color: var(--accent); }
.prose td p { margin: 0; font-size: inherit; color: inherit; }

.fact-list { margin: 0; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.fact-list > div { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; gap: var(--space-4); padding: 14px var(--space-5); border-bottom: 1px solid var(--border); }
.fact-list > div:last-child { border-bottom: 0; }
.fact-list > div:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 42%, transparent); }
.fact-list dt { font: 700 var(--fs-7) / 1.5 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.fact-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.toc { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; columns: 2; column-gap: var(--space-6); }
.toc li { margin: 0; break-inside: avoid; }
.toc a { display: flex; align-items: baseline; gap: 6px; padding: 6px 0; text-decoration: none; font-weight: 500; }
.toc a:hover { text-decoration: underline; }
.toc__n { color: var(--amber-text); font-weight: 700; min-width: 1.6em; font-variant-numeric: tabular-nums; }

.flow { display: grid; gap: var(--space-4); }
.flow__row { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); align-items: start; }
.flow__row .icon-badge { margin-top: 2px; }
.flow__row h3 { margin-bottom: var(--space-1); font-size: var(--fs-4); }
.flow__row p { margin-bottom: 0; color: var(--text-muted); font-size: var(--fs-6); }
/* Role family card (careers): heading, working conditions, description, action */
.role .card__head { align-items: flex-start; }
.role .card__head h3 { margin-bottom: 4px; }
.role__terms { margin: 0; font-size: var(--fs-7); color: var(--text-muted); }
.role .card__foot { padding-top: var(--space-4); }

.map-embed { max-width: 100%; aspect-ratio: 16 / 9; min-height: 320px; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface-2); }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-caption { margin-top: var(--space-3); font-size: var(--fs-6); color: var(--text-muted); }

.article-card { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-4); padding: var(--space-5); }
.article-card h3 a { text-decoration: none; color: inherit; }
.article-card h3 a:hover { color: var(--accent); }
.article-body { max-width: 70ch; }
.kv { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0 0 var(--space-4); padding: 0; list-style: none; font-size: var(--fs-7); color: var(--text-muted); }
.kv li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.kv .icon { color: var(--amber-text); }

/* Illustration figures */
.figure { margin: 0; }
.figure img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); }
.figure figcaption { margin-top: var(--space-2); font-size: var(--fs-7); color: var(--text-muted); }

/* 11. Exit-intent modal (special-offer page only) ------------------------ */
.offer-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: var(--space-4); }
.offer-modal.is-open { display: flex; }
.offer-modal__overlay { position: absolute; inset: 0; background: rgba(18, 36, 27, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade-in 200ms var(--ease) both; }
.offer-modal__card { position: relative; z-index: 1; display: grid; grid-template-columns: 132px 1fr; gap: var(--space-5); width: min(100%, 640px); padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); animation: rise-in 240ms var(--ease) both; }
.offer-modal__art { align-self: center; }
.offer-modal__title { font-size: var(--fs-3); margin-bottom: var(--space-2); }
.offer-modal__card p { color: var(--text-muted); font-size: var(--fs-6); }
.offer-modal__close { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-sm); background: var(--accent-tint); color: var(--accent); font: 700 1.5rem / 1 var(--font-body); cursor: pointer; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.offer-modal__close:hover { background: var(--accent); color: var(--on-ink); }
body.has-modal { overflow: hidden; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* 12. Utilities ---------------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; } .mb-4 { margin-bottom: var(--space-4); } .mb-6 { margin-bottom: var(--space-6); }

/* 13. Motion: reveal only enhances, content is visible without JS -------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 380ms var(--ease), transform 380ms var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* 14. Breakpoints -------------------------------------------------------- */
@media (max-width: 1100px) {
  .site-header__bar { gap: var(--space-3); }
  .nav__trigger { padding-inline: 10px; }
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .link-tiles { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1023px) {
  :root { --header-h: 60px; }
  .nav-toggle { display: inline-flex; order: 3; }
  .site-header__cta { order: 2; margin-left: auto; min-height: 42px; padding: 9px 14px; font-size: var(--fs-6); white-space: nowrap; }
  .brand { margin-right: auto; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: var(--space-3) clamp(16px, 4vw, 40px) var(--space-5); background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); display: none; }
  .site-nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__group { border-bottom: 1px solid var(--border); }
  .nav__group:last-child { border-bottom: 0; }
  .nav__trigger { width: 100%; justify-content: space-between; min-height: 52px; padding-inline: var(--space-2); font-size: var(--fs-4); border-radius: 0; }
  .nav__caret { transform: rotate(-90deg); }
  .nav__group.is-open .nav__caret { transform: rotate(0); }
  .nav__submenu { position: static; min-width: 0; columns: auto; padding: 0 0 var(--space-3) var(--space-3); background: transparent; border: 0; border-radius: 0; box-shadow: none; transform: none; transition: opacity 150ms var(--ease), visibility 150ms; }
  /* On small screens a closed group takes no space at all (a hidden-but-occupied panel left tall blank rows). */
  .nav__group:not(.is-open) .nav__submenu { display: none; }
  .nav__submenu::before { display: none; }
  .nav__group.is-align-end .nav__submenu { left: 0; right: auto; }
  .nav__link { padding: 10px 12px; font-size: var(--fs-5); }
  html:not(.js) .site-nav { display: block; }
  html:not(.js) .site-header { position: static; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html:not(.js) .nav__trigger { pointer-events: none; }
  html:not(.js) .nav__submenu { opacity: 1; visibility: visible; pointer-events: auto; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .hero__form { grid-column: 1; grid-row: auto; max-width: 520px; }
  .hero__title, .hero__lead, .hero__list, .hero__links { grid-column: 1; grid-row: auto; align-self: start; }
  .hero__bg { inset: auto 0 0; height: clamp(320px, 86vw, 520px); }
  .hero__bg img { object-position: 64% bottom; }
  .hero__bg::after {
    background: linear-gradient(180deg, var(--bg), rgb(250 247 241 / 88%) 20%, rgb(250 247 241 / 26%) 52%, transparent 78%);
  }
  .hero__inner { padding-bottom: clamp(160px, 47vw, 250px); }
  .section { padding-block: 44px; }
  .split, .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > :first-child { order: 0; }
  .page-hero__grid > .form-card { justify-self: start; max-width: 560px; }
  .motif-candles::before { display: none; }
}

@media (max-width: 760px) {
  .promo { grid-template-columns: 1fr; justify-items: start; }
  .promo .btn { width: 100%; }
  .offer-modal__card { grid-template-columns: 1fr; }
  .offer-modal__art { display: none; }
  .fact-list > div { grid-template-columns: 1fr; gap: 4px; }
  .toc { columns: 1; }
  .steps--row > li::after { display: none; }
  .steps--line::before { display: none; }
  .steps--line > li { padding: var(--space-4) var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
  .steps--line > li::before { box-shadow: none; }
  .link-tiles { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__list li { padding-block: 6px; }
  .icon-link { flex: 1 1 100%; }
}

@media (max-width: 479px) {
  .brand__name { font-size: 1rem; }
  .site-header__bar { gap: var(--space-2); }
  /* First word only until the full name fits again. The link's accessible label keeps both words. */
  .site-header .brand__word--light { display: none; }
  .form-card { border-radius: var(--r-lg); }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .nav__group--wide .nav__submenu { columns: auto; }
  .btn { width: 100%; }
  .btn--inline { width: auto; }
}
@media (max-width: 400px) {
  /* Mark only: the full name stays in the link's accessible label. */
  .site-header .brand__name { display: none; }
  .site-header__cta { padding-inline: 12px; }
}

.tv-ticker-wrapper {
    padding-top: 0px !important;
    height: 58px !important;
}

/* Account button in the site header and its mobile menu. */
.site-header .header-signup {
    min-height: 44px; gap: 8px; padding: 5px 7px 5px 15px;
    font-size: .875rem; font-weight: 700; line-height: 1.15;
    white-space: nowrap; text-align: center; text-decoration: none;
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
    color: #fffdf5; background: linear-gradient(110deg, #194e37, #113c2b);
    border: 1px solid #214d37; border-radius: 13px;
    box-shadow: 0 4px 12px rgb(22 63 43 / 23%), inset 0 1px rgb(255 250 220 / 19%);
}
.site-header .header-signup__icon {
    display: grid; place-items: center; flex: none;
    width: 28px; height: 28px; border-radius: 50%;
    color: #253b26; background: #f3d38c;
}
.site-header .header-signup__icon svg { display: block; width: 16px; height: 16px; transition: transform .18s ease; }
.site-header .header-signup:focus-visible { outline: 2px solid #23573e; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .site-header .header-signup:hover {
    color: #fffdf5; background: #20583e; box-shadow: 0 5px 15px rgb(22 63 43 / 32%);
  }
  .site-header .header-signup:hover svg { transform: translateX(2px); }
}
@media (prefers-reduced-motion: reduce) {
    .site-header .header-signup, .site-header .header-signup:hover, .site-header .header-signup .header-signup__icon svg { transition: none; transform: none; }
}
@media (max-width: 599px) {
    .site-header .header-signup { width: auto; gap: 6px; padding-inline: 10px 5px; }
    .site-header .header-signup__icon { width: 24px; height: 24px; }
}

#registration-form input[type="submit"] {
    background-color: #1c5a3c!important;
    font-weight: bold!important;
    color: #fff!important;
}
