/* ============================================================================
   Havan Investimentos — main.css
   Light warm-green fintech theme, deep emerald accent (#0a7d5c), Archivo +
   Inter, one radius/shadow scale, crypto/market motifs per design.md §7/§13.
   ========================================================================= */

/* --- Fonts (local, latin + latin-ext for pt-BR accents) ------------------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0080-024F, U+1E00-1EFF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/archivo-latin-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0080-024F, U+1E00-1EFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0080-024F, U+1E00-1EFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600.woff2') format('woff2');
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  --bg: #f6f8f4;
  --surface: #fdfefc;
  --surface-2: #eef4ee;
  --border: #dfe8e0;
  --ink: #0d2b21;
  --text: #23332c;
  --text-muted: #55665e;

  --accent: #0a7d5c;
  --accent-hover: #086a4d;
  --accent-tint: #e2f1e9;
  --accent-strong: #0d2b21;
  --gold: #e8b331;
  --gold-soft: #f7e3ae;
  --ok: #1e7f4f;
  --bad: #b03d3d;

  --font-display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(13, 43, 33, .07), 0 2px 8px rgba(13, 43, 33, .05);
  --shadow-md: 0 1px 2px rgba(13, 43, 33, .06), 0 8px 24px rgba(13, 43, 33, .10);
  --shadow-lg: 0 4px 10px rgba(13, 43, 33, .10), 0 18px 44px rgba(13, 43, 33, .16);

  --canvas-grid: rgba(13, 43, 33, .14);
  --canvas-node: rgba(13, 43, 33, .5);

  --header-h: 74px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* --- Reset / base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg, iframe, video, canvas { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .4em; }
strong { color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.icon { width: 22px; height: 22px; flex: none; }
.icon--inline { width: 17px; height: 17px; vertical-align: -3px; color: var(--accent); }
.icon--nav { width: 16px; height: 16px; color: var(--accent); }
.icon--caret { width: 14px; height: 14px; transition: transform .16s var(--ease); }
.icon--menu-item { width: 17px; height: 17px; color: var(--accent); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--accent-strong); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 600; transition: top .15s;
}
.skip-link:focus { top: 0; color: #fff; }

/* --- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  line-height: 1.2; padding: 13px 26px; border-radius: var(--r-sm);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  white-space: nowrap; transition: transform .16s var(--ease), box-shadow .16s var(--ease),
    background-color .16s var(--ease), color .16s var(--ease);
}
.btn--primary {
  background: var(--accent); color: #fff; box-shadow: var(--shadow-sm);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--lg { padding: 15px 32px; font-size: 1.05rem; }

/* --- Sections --------------------------------------------------------------- */
.section { padding: clamp(48px, 7vw, 84px) 0; position: relative; }
.section--tint {
  background:
    radial-gradient(900px 380px at 12% 0%, rgba(10, 125, 92, .07), transparent 62%),
    linear-gradient(180deg, var(--surface-2), var(--bg));
}
.section--mesh {
  background:
    radial-gradient(760px 320px at 88% 8%, rgba(232, 179, 49, .10), transparent 60%),
    radial-gradient(820px 400px at 6% 92%, rgba(10, 125, 92, .09), transparent 62%),
    var(--surface-2);
}
.section__head { max-width: 780px; margin-bottom: clamp(24px, 4vw, 42px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__lead { color: var(--text-muted); font-size: 1.06rem; margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-tint);
  border: 1px solid rgba(10, 125, 92, .22);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 16px;
}
.section-note { font-size: .88rem; color: var(--text-muted); }

/* --- Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(246, 248, 244, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.site-header.is-scrolled { background: rgba(246, 248, 244, .97); box-shadow: var(--shadow-md); }
.header__inner {
  display: flex; align-items: center; gap: 22px;
  min-height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; flex: none; }
.logo__svg { width: 210px; height: 37px; overflow: visible; }
.logo__mark rect, .logo__mark path { fill: var(--ink); }
.logo__mark .logo__spark { fill: var(--gold); }
.logo__mark rect:nth-child(3) { fill: var(--accent); }
.logo__word { font: 800 21px var(--font-display), sans-serif; fill: var(--ink); letter-spacing: -.01em; }
.logo__word2 { font: 600 10.5px var(--font-body), sans-serif; fill: var(--accent); letter-spacing: .13em; text-transform: uppercase; }
.logo--footer .logo__word { fill: #f2f7f3; }
.logo--footer .logo__word2 { fill: #7fc4a7; }
.logo--footer .logo__mark rect, .logo--footer .logo__mark path { fill: #f2f7f3; }
.logo--footer .logo__mark .logo__spark { fill: var(--gold); }
.logo--footer .logo__mark rect:nth-child(3) { fill: #2fb67f; }

.main-nav { margin-inline: auto; }
.main-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav__item { position: relative; }
.main-nav__trigger {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; cursor: pointer;
  font: 600 .93rem var(--font-body); color: var(--ink);
  padding: 10px 13px; border-radius: var(--r-sm);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.main-nav__trigger:hover, .main-nav__trigger[aria-expanded="true"] {
  background: var(--accent-tint); color: var(--accent-hover);
}
.main-nav__trigger[aria-expanded="true"] .icon--caret { transform: rotate(180deg); }

.submenu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 130;
  min-width: 288px; max-width: 360px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(5px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.main-nav__item.is-open .submenu,
.main-nav__item:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav__item.align-right > .submenu { left: auto; right: 0; }
.submenu::before {
  content: ""; position: absolute; top: -5px; left: 26px;
  width: 10px; height: 10px; background: var(--surface);
  border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.main-nav__item.align-right .submenu::before { left: auto; right: 26px; }
.submenu ul { list-style: none; margin: 0; padding: 0; max-height: min(62vh, 540px); overflow-y: auto; }
.submenu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; color: var(--text);
  font-size: .92rem; font-weight: 500;
  transition: background-color .14s, color .14s;
}
.submenu a:hover { background: var(--accent-tint); color: var(--ink); }

.header__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--border);
  border-radius: var(--r-sm); width: 44px; height: 44px;
  align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.nav-toggle .icon--toggle { width: 22px; height: 22px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

.mobile-nav {
  display: none; border-top: 1px solid var(--border);
  background: var(--surface); padding: 18px clamp(16px, 4vw, 40px) 26px;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__group + .mobile-nav__group { margin-top: 16px; }
.mobile-nav__title {
  font: 700 .78rem var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 6px;
}
.mobile-nav__group ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav__group a {
  display: block; padding: 9px 4px; color: var(--text); font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav__cta { margin-top: 18px; width: 100%; }

/* --- Ticker row (injected by the beacon addon after header) ----------------- */
.tv-ticker-wrapper {
  position: relative; z-index: 60;
  padding-top: 0px !important;
  height: 58px !important;
}

.iti__selected-country,
.iti__selected-dial-code {
  color: rgb(24, 33, 47) !important;
}

/* --- Hero (home) ------------------------------------------------------------- */
.hero--home {
  position: relative; overflow: hidden;
  padding: clamp(40px, 5.5vw, 74px) 0 clamp(48px, 6vw, 88px);
  background: #0a231d;
}
.hero__parallax {
  position: absolute; inset: -40px 0 0 0; z-index: 0;
  background: url('../images/hero-brazil.webp') center / cover no-repeat;
  will-change: transform;
}
.hero--home::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgb(6 27 24 / .84), rgb(8 35 29 / .5) 52%, rgb(6 27 24 / .3)),
              linear-gradient(0deg, rgb(6 27 24 / .68), transparent 47%);
}

.hero--home .hero__copy h1 { color: #fff; }
.hero--home .hero__copy h1 em { color: #9be3bd; }
.hero--home .hero__lead,
.hero--home .hero__flags-label,
.hero--home .flag { color: #f0f7f1; }
.hero--home .hero__parallax { will-change: transform; }
#hero-canvas {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  opacity: 0; transition: opacity .6s var(--ease);
}
.hero--home .container.hero__inner { z-index: 2; }
.hero--home.js-anim #hero-canvas { opacity: 1; }
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: clamp(24px, 3.4vw, 52px); align-items: start;
}
.hero__copy { padding-top: clamp(4px, 1vw, 18px); }
.hero__copy h1 { max-width: 15ch; margin-bottom: .45em; }
.hero__copy h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: 1.08rem; color: var(--text-muted); max-width: 56ch; }
.hero__form { position: relative; z-index: 2; }
.hero__form .form-block { margin: 0; }

.home-hero-details {
  grid-column: 1; margin-top: 8px; display: flex; flex-direction: column; gap: 18px;
}
.hero__flags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.hero__flags-label { font-weight: 600; color: var(--ink); }
.flag { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--text); }
.flag img { border-radius: 3px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); display: block; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge-link {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 10px 16px; font-weight: 600; color: var(--ink); font-size: .92rem;
  box-shadow: var(--shadow-sm); transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s;
}
.badge-link .icon { color: var(--accent); }
.badge-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(10, 125, 92, .4); color: var(--ink); }

.hero-proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); padding: 14px 18px; max-width: 640px;
}
.hero-proof__points { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.hero-proof__points li {
  display: inline-flex; align-items: center; gap: 7px; margin: 0;
  font-size: .88rem; font-weight: 500; color: var(--text);
}
.hero-proof__points .icon { width: 15px; height: 15px; color: var(--ok); }

/* --- Page hero (inner pages) -------------------------------------------------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 5vw, 68px) 0;
  background:
    radial-gradient(720px 300px at 86% 10%, rgba(232, 179, 49, .12), transparent 62%),
    radial-gradient(860px 360px at 4% 96%, rgba(10, 125, 92, .10), transparent 64%),
    linear-gradient(180deg, #eef4ee, var(--bg));
}
.page-hero::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 300px; height: 300px;
  background:
    radial-gradient(closest-side, rgba(10, 125, 92, .14), transparent 72%);
  pointer-events: none;
}
.page-hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: clamp(24px, 3.4vw, 52px); align-items: start;
}
.page-hero__grid .form-block { margin: 0; }
.page-hero h1 { max-width: 22ch; margin-bottom: .5em; }
.page-hero__lead { color: var(--text-muted); font-size: 1.05rem; max-width: 58ch; }
.page-hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* --- Form block (formFactory wrapper) ------------------------------------------ */
.form-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: clamp(18px, 2.6vw, 28px); margin: 0 auto; max-width: 560px;
}
.form-block__intro { font-size: .95rem; color: var(--text-muted); margin-bottom: 14px; }
.form-block__note { font-size: .84rem; color: var(--text-muted); margin: 10px 0 0; }
.form-legal { font-size: .8rem; color: var(--text-muted); margin: 12px 0 0; }
.form-legal a { text-decoration: underline; }
.form-block form { width: 100%; }
.form-block input[type="text"],
.form-block input[type="email"],
.form-block input[type="tel"],
.form-block input[type="password"] {
  width: 100%; box-sizing: border-box;
}
.form-block .form-block__title { font: 700 1.02rem var(--font-display); color: var(--ink); margin: 0 0 4px; }

/* --- Icon badges & cards -------------------------------------------------------- */
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--accent-tint); color: var(--accent);
}
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge--gold { background: #faf0d7; color: #8a6410; }
.icon-badge--dark { background: #dfeee7; color: var(--ink); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: clamp(18px, 2.4vw, 26px);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(10, 125, 92, .35); }
.card > h3 { display: flex; align-items: flex-start; gap: 12px; margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card .icon-badge { margin-bottom: 12px; }

.grid-cards {
  display: grid; gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-cards--wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* --- Steps (numbered) -------------------------------------------------------------- */
.steps {
  display: grid; gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 22px 22px 20px; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font: 700 .95rem var(--font-body);
  margin-bottom: 12px; box-shadow: 0 0 0 5px var(--accent-tint);
}
.step h3 { margin-bottom: .4em; }
.step p { color: var(--text-muted); font-size: .95rem; margin-bottom: 0; }

/* --- Tables --------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 13px 16px; vertical-align: top; }
.table-wrap thead th {
  background: var(--surface-2); font-family: var(--font-display);
  font-size: .9rem; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table-wrap tbody tr + tr td { border-top: 1px solid var(--border); }
.table-wrap tbody tr:nth-child(even) { background: rgba(238, 244, 238, .5); }
.tick-yes { color: var(--ok); font-weight: 700; }
.tick-no { color: var(--bad); font-weight: 700; }
.compare-col { background: var(--accent-tint); }

/* --- Exchange logos block --------------------------------------------------------------- */
.exchanges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 168px; height: 58px; border-radius: 12px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  background: #ffffff;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.chip--dark { background: #0f172a; }
.chip img { height: 28px; width: auto; max-width: 82%; }

/* --- Reviews -------------------------------------------------------------------------------- */
.reviews { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: minmax(0, 1fr); }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.review__head { display: flex; align-items: center; gap: 13px; }
.review__photo { flex: none; object-fit: cover; border-radius: 50%; border: 2px solid var(--accent-tint); box-shadow: var(--shadow-sm); display: block; }
.review__name { font-weight: 700; color: var(--ink); margin: 0; }
.review__role { font-size: .84rem; color: var(--text-muted); margin: 0; }
.review__stars { color: var(--gold); display: inline-flex; gap: 2px; }
.review__stars .icon { width: 14px; height: 14px; }
.review__text { margin: 0; font-size: .96rem; }
.review__stats { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--border); }
.review__stat { font-size: .84rem; color: var(--text-muted); }
.review__stat strong { display: block; font-size: .98rem; color: var(--ink); }
.reviews-note { text-align: center; font-size: .85rem; color: var(--text-muted); margin: 18px auto 0; max-width: 640px; }

/* --- Company block (home) ---------------------------------------------------------------------- */
.company-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(22px, 3.4vw, 48px); align-items: start; }
.company-facts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.company-facts li { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .95rem; }
.company-facts .icon { color: var(--accent); margin-top: 2px; }
.company-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.company-links a {
  display: flex; flex-direction: column; gap: 9px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); padding: 15px 16px; font-weight: 600; color: var(--ink); font-size: .92rem;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s;
}
.company-links a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(10, 125, 92, .4); color: var(--ink); }
.company-links .icon-badge { width: 40px; height: 40px; border-radius: 11px; }
.company-links .icon-badge .icon { width: 20px; height: 20px; }

/* --- FAQ accordion --------------------------------------------------------------------------------- */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  cursor: pointer; list-style: none; padding: 16px 18px;
  font: 700 1rem var(--font-display); color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--accent); transition: transform .18s var(--ease); flex: none; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item__body { padding: 14px 18px 16px; color: var(--text-muted); }
.faq-item__body p:last-child { margin-bottom: 0; }

/* --- Calculator section ------------------------------------------------------------------------------ */
.calc-section { position: relative; }
.calc-wrap { max-width: 980px; margin-inline: auto; }

/* --- Map embed ----------------------------------------------------------------------------------------- */
.map-embed {
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md); background: var(--surface);
  max-width: 860px; aspect-ratio: 16 / 9; min-height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- CTA band ---------------------------------------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(620px 260px at 88% 12%, rgba(232, 179, 49, .16), transparent 62%),
    linear-gradient(135deg, #0d2b21, #123528 58%, #0a7d5c 132%);
  color: #eaf4ee; padding: clamp(40px, 5.6vw, 66px) 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe3d8; max-width: 640px; margin-inline: auto; }
.cta-band .btn--primary { background: #fff; color: var(--ink); }
.cta-band .btn--primary:hover { background: var(--gold-soft); color: var(--ink); }

/* --- Offer page (special) ----------------------------------------------------------------------------------- */
.offer-strip {
  background: linear-gradient(90deg, #0d2b21, #14503a); color: #eaf4ee;
  font-size: .88rem; font-weight: 500;
  padding: 9px 0; position: relative; z-index: 130;
}
.offer-strip .container { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; }
.offer-strip span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.offer-strip .icon { width: 15px; height: 15px; color: var(--gold); }

.countdown { display: inline-flex; gap: 10px; margin: 6px 0 10px; }
.countdown__cell {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--ink); color: #fff; border-radius: 10px;
  padding: 9px 13px; min-width: 74px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(255, 255, 255, .06);
}
.countdown__num { font: 800 1.65rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.countdown__label { font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: #9ed4bb; }
.offer-hero .countdown { margin-block: 14px 6px; }

.offer-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(14px, 2vw, 20px); }

.offer-modal {
  position: fixed; inset: 0; z-index: 400; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.offer-modal.is-open { display: flex; }
.offer-modal__overlay { position: absolute; inset: 0; background: rgba(9, 26, 20, .62); backdrop-filter: blur(3px); }
.offer-modal__card {
  position: relative; z-index: 1; width: min(460px, 100%);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 28px 26px 24px; text-align: center;
  animation: offer-pop .22s var(--ease);
}
@keyframes offer-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.offer-modal__close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  font-size: 1.2rem; line-height: 1; color: var(--text); cursor: pointer;
}
.offer-modal__close:hover { background: var(--accent-tint); color: var(--ink); }
.offer-modal__art { margin: 4px auto 10px; display: block; }
.offer-modal .countdown { margin-inline: auto; }
.offer-modal .btn { width: 100%; }

/* --- Footer ---------------------------------------------------------------------------------------------------- */
.site-footer {
  background: #0d2b21; color: #b9cfc4; margin-top: 0;
  padding: clamp(40px, 5.4vw, 64px) 0 26px;
}
.footer__grid {
  display: grid; gap: clamp(24px, 3.4vw, 48px);
  grid-template-columns: minmax(240px, 1.3fr) repeat(4, minmax(150px, 1fr));
}
.footer__about { font-size: .9rem; color: #9db8ab; margin-top: 14px; max-width: 40ch; }
.footer__line { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; margin: 8px 0 0; }
.footer__line .icon { width: 16px; height: 16px; color: #2fb67f; margin-top: 3px; }
.footer__line a { color: #d7e8de; }
.footer__line a:hover { color: #fff; }
.footer__title { font: 700 .8rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #7fc4a7; margin: 0 0 12px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col a { display: inline-block; color: #b9cfc4; font-size: .88rem; padding: 4px 0; }
.footer__col a:hover { color: #fff; }
.footer__disclaimer {
  margin-top: clamp(28px, 4vw, 44px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer__disclaimer-title { font-weight: 700; color: #eaf4ee; margin-bottom: 8px; }
.footer__disclaimer p { font-size: .8rem; color: #93b0a3; margin: 0; }
.footer__bottom { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer__bottom p { font-size: .8rem; color: #7a998c; margin: 0; }

/* --- Breadcrumbs ------------------------------------------------------------------------------------------------- */
.breadcrumbs { padding: 16px 0 0; font-size: .84rem; }
.breadcrumbs__list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs__list li + li::before { content: "/"; margin-right: 6px; color: var(--text-muted); }
.breadcrumbs__list a { color: var(--text-muted); }
.breadcrumbs__list a:hover { color: var(--accent); }
.breadcrumbs__list [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* --- 404 ----------------------------------------------------------------------------------------------------------- */
.section--404 { text-align: center; padding: clamp(70px, 10vw, 130px) 0; }
.page-404__code {
  font: 800 clamp(4.6rem, 10vw, 7.5rem)/1 var(--font-display); color: var(--accent);
  margin: 0 0 8px; letter-spacing: -.02em;
}
.section--404 .section__lead { max-width: 520px; margin-inline: auto; }

/* --- Utility paragraphs / legal layout --------------------------------------------------------------------------------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(14px, 2vw, 24px); }
.calc-note { font-size: .84rem; color: var(--text-muted); }
.small-table-note { font-size: .84rem; color: var(--text-muted); margin-top: 10px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* --- Scroll reveal (enhancement only; content visible without JS) ------------------------------------------------------- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --- Decorative dividers (data-flow motif) ------------------------------------------------------------------------------ */
.data-divider {
  height: 46px; position: relative; overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(10, 125, 92, .18) 18%, rgba(232, 179, 49, .22) 50%, rgba(10, 125, 92, .18) 82%, transparent);
  clip-path: polygon(0 46%, 100% 8%, 100% 62%, 0 92%);
}

/* --- Responsive ------------------------------------------------------------------------------------------------------------ */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }
  .mobile-nav { display: block; }
  .hero__inner, .page-hero__grid { grid-template-columns: 1fr; }
  .hero__form { order: 2; }
  .home-hero-details { order: 3; }
  .company-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .btn { white-space: normal; }
  .chip { width: 146px; height: 52px; }
  .chip img { height: 24px; }
  .countdown__cell { min-width: 64px; padding: 7px 10px; }
  .countdown__num { font-size: 1.35rem; }
  .table-wrap table { min-width: 640px; }
  .hero__parallax { background-position: 10% center; }
  .logo__svg { width: 186px; height: 33px; }
  .footer__grid { grid-template-columns: 1fr; gap: 20px; }
}

/* --- Reduced motion --------------------------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  #hero-canvas { display: none; }
}

/* --- Accessibility refinements ------------------------------------------------ */
/* Comparison table: ✓/✗ cells on the tinted column need darker ink for AA. */
.table-wrap td.compare-col.tick-yes { color: #125c3b; }
.table-wrap td.compare-col.tick-no { color: #8f3030; }


@media (min-width: 640px) {
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Homepage hero. Source order also drives the single-column layout. */
.hero--home .home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "headline registration" "details registration";
  align-items: start;
  gap: 18px clamp(28px, 5vw, 82px);
}
.hero--home .home-hero-heading { grid-area: headline; min-width: 0; margin: 0; padding: 0; }
.hero--home .home-hero-layout > .hero__form {
  grid-area: registration; position: relative; z-index: 4; min-width: 0; width: 100%; max-width: none; order: 0;
}
.hero--home .home-hero-details {
  grid-area: details; display: grid; min-width: 0; gap: 18px; margin: 0; order: 0;
}
.hero--home .home-hero-heading h1 { margin: 0; text-wrap: balance; }
.hero--home .home-hero-details .hero__lead { margin: 0; line-height: 1.6; }
.hero--home .home-hero-layout .form-block { width: 100%; max-width: none; margin: 0; }
.hero--home .home-hero-layout .form-legal { font-size: .78rem; line-height: 1.5; }
.hero--home .home-hero-layout :is(input, button, a):focus-visible { outline: 2px solid var(--hero-focus); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero--home .home-hero-layout {
    grid-template-columns: minmax(0, 580px);
    grid-template-rows: auto;
    grid-template-areas: "headline" "registration" "details";
    justify-content: center;
    row-gap: 20px;
  }
}

.hero--home {
  --hero-focus: #177849;
  padding-block: clamp(32px, 5vw, 72px) clamp(34px, 4.8vw, 62px);
}
.hero--home::before {
  background: linear-gradient(90deg, rgb(5 29 22 / .92), rgb(5 29 22 / .68) 45%, rgb(5 29 22 / .2)),
              linear-gradient(0deg, rgb(5 29 22 / .72), transparent 65%);
}
.hero--home .home-hero-heading h1 {
  max-width: 14ch;
  font-size: clamp(2rem, 4.55vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  text-wrap: wrap;
}
.hero--home .home-hero-heading h1 em { color: #aee4b9; }
.hero--home .home-hero-details .hero__lead { color: #e7f1e8; max-width: 48ch; }
.hero--home .hero-proof { margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.hero--home .hero-proof__points { display: grid; gap: 0; border-block: 1px solid #b7eac743; }
.hero--home .hero-proof__points li {
  gap: 10px; min-height: 35px; padding: 6px 0; color: #fff; border-radius: 0;
  border: 0; background: transparent; font-size: .88rem;
}
.hero--home .hero-proof__points .icon { color: #aee4b9; }
.hero--home .hero-proof__points li + li { border-top: 1px solid #b7eac72b; }
.hero--home .hero__flags { gap: 8px; }
.hero--home .hero__flags-label { flex-basis: 100%; font-size: .8rem; }
.hero--home .hero__badges { gap: 8px; }
.hero--home .hero__badges .badge-link { padding: 6px 10px; }
.hero--home .home-hero-layout > .hero__form {
  padding: clamp(16px, 2.3vw, 28px);
  background: #f9fcf5;
  border: 1px solid #cfdfcb;
  border-radius: 22px 22px 36px 22px;
  box-shadow: 0 22px 65px #041b1ab3;
}
.hero--home .hero-registration-title {
  color: #102f22; font-size: clamp(1.26rem, 2.3vw, 1.75rem); line-height: 1.2; margin: 0 0 14px;
  padding-bottom: 12px; border-bottom: 2px solid #b6d9bd;
}
.hero--home .home-hero-layout .form-block { border: 0; background: transparent; padding: 0; box-shadow: none; }
.hero--home .home-hero-layout .form-block__note { color: #24563c; font-weight: 600; }
@media (max-width: 900px) {
  .hero--home .home-hero-heading h1 { max-width: 18ch; font-size: clamp(1.78rem, 6.2vw, 3.25rem); }
  .hero--home .hero__parallax { background-position: 47% center; }
}

.hero--home .home-hero-heading h1 em { display: block; }
@media (min-width: 901px) {
  .hero--home .home-hero-heading h1 { max-width: 100%; font-size: clamp(2rem, 4.4vw, 3.85rem); }
}


/* Registration banner and primary header action. */
.registration-banner { background: #e2f0e7; color: #103e32; }
.registration-banner__inner { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding-block: 8px; }
.registration-banner__item {
  display: flex; align-items: center; gap: clamp(7px,1vw,15px);
  min-width: 0; padding: 5px clamp(7px,1.4vw,20px); line-height: 1.3;
}
.registration-banner__symbol { flex: none; display: grid; place-items: center; width: 34px; height: 34px; }
.registration-banner__symbol svg { width: 19px; height: 19px; }
.registration-banner__item strong { display: block; font-size: clamp(.86rem,1.24vw,1.1rem); }
.registration-banner__detail { display: block; margin-block-start: 2px; font-size: .78rem; color: #375b4d; }
.site-header .header__cta {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  gap: 9px; min-height: 42px; padding: 6px 14px; border: 1px solid #096141;
  background: #096141; color: #fff; border-radius: 999px; font-weight: 700;
  transition: box-shadow .18s, transform .18s;
}
.site-header .header__cta-glyph { display: grid; place-items: center; }
.site-header .header__cta-glyph svg { width: 20px; height: 20px; }
.site-header .header__cta:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .site-header .header__cta:hover { transform: translateY(-2px); box-shadow: 0 4px 10px #0003; }
}
.registration-banner__item + .registration-banner__item { border-inline-start: 1px solid #aecbb9; }
.registration-banner__symbol { background: #fff; border-radius: 50%; }
.site-header .header__cta { box-shadow: inset 0 -3px #004d32; }
@media (min-width:981px) and (max-width:1120px), (max-width:450px) {
  .site-header .header__cta-label { display: none; }
  .site-header .header__inner .header__cta { width: 36px; min-width: 36px; padding: 3px; }
  .site-header .header__cta-glyph { border: 0; padding: 0; }
}
@media (max-width: 640px) {
  .registration-banner__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-block: 3px;
  }
  .registration-banner .registration-banner__item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 29px;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .registration-banner .registration-banner__item + .registration-banner__item {
    border-block-start: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  }
  .registration-banner__symbol {
    width: 18px;
    height: 18px;
    border: 0;
    background: transparent;
  }
  .registration-banner__symbol svg { width: 15px; height: 15px; }
  .registration-banner__item > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: baseline;
    column-gap: 10px;
  }
  .registration-banner__item strong { font: 650 .83rem/1.35 var(--font-body, sans-serif); }
  .registration-banner__detail { margin: 0; font-size: .78rem; line-height: 1.4; text-align: end; }
  [dir="rtl"] .registration-banner__item strong,
  [dir="rtl"] .registration-banner__detail { line-height: 1.65; }
}

@media (max-width: 960px) {
  .site-header .container.header__inner { padding-right: 8px; }
  .site-header .header__inner > .header__actions { margin-left: auto; margin-right: 0; }
}
