/* ==========================================================================
   Deft Thriftovane — site.css
   Light theme, deep-emerald accent. One token set, one radius/shadow scale,
   one component family across every page (design.md §1/§3/§4/§10).
   ========================================================================== */

:root {
  --bg: #f2f6f3;
  --surface: #fdfefd;
  --surface-2: #e9f2ec;
  --border: #dce7e0;
  --border-strong: #c4d5ca;
  --ink: #17231c;
  --muted: #51645a;
  --accent: #0b7d58;
  --accent-hover: #096a4a;
  --accent-tint: #e0f1e8;
  --accent-ink: #0a3d2c;
  --paper-deep: #e4efe8;

  --shadow-sm: 0 1px 2px rgba(16, 42, 28, .07), 0 2px 6px rgba(16, 42, 28, .05);
  --shadow-md: 0 1px 2px rgba(16, 42, 28, .06), 0 10px 28px rgba(16, 42, 28, .10);
  --shadow-lg: 0 2px 4px rgba(16, 42, 28, .07), 0 18px 44px rgba(16, 42, 28, .14);

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

  --font-body: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --header-h: 72px;
}

/* ---- 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; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe, video, canvas { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 750;
  letter-spacing: -.015em;
  color: var(--ink);
}
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.15rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { font-weight: 650; }

.icon { width: 24px; height: 24px; flex: none; }
.icon--xs { width: 16px; height: 16px; }
.icon--sm { width: 20px; height: 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { left: 8px; color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* ---- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 650; font-size: 1rem;
  min-height: 48px; padding: 12px 26px;
  border-radius: var(--r-md); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s 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(-1px); box-shadow: var(--shadow-md);
}
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent; color: var(--accent-ink); border-color: var(--border-strong);
}
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-ink); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---- header / nav --------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 253, 251, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex; align-items: center; gap: 28px;
  min-height: var(--header-h);
}

.header-logo { display: inline-flex; align-items: center; text-decoration: none; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 40px; height: 40px; }
.logo__word { height: 22px; width: auto; }

.header-nav { margin-left: auto; }

.nav-groups { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }

.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  font: 600 .95rem/1 var(--font-body); color: var(--ink);
  padding: 10px 12px; border-radius: var(--r-sm);
  transition: background-color .15s ease, color .15s ease;
}
.nav-trigger:hover { background: var(--accent-tint); color: var(--accent-ink); }
.nav-trigger[aria-expanded="true"] { color: var(--accent-ink); background: var(--accent-tint); }
.nav-caret { transition: transform .16s ease; }
.nav-trigger[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.nav-group { position: relative; }

.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 110;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  min-width: 280px; max-width: 360px;
}
.nav-group--edge .nav-menu { left: auto; right: 0; }
.nav-menu::before {
  content: ""; position: absolute; top: -5px; left: 24px;
  width: 10px; height: 10px; background: var(--surface);
  border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.nav-group--edge .nav-menu::before { left: auto; right: 24px; }
.nav-menu[hidden] { display: none; }
.nav-menu.is-open { animation: menu-in .16s ease; }
@keyframes menu-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.nav-menu__list { list-style: none; margin: 0; padding: 0; max-height: min(60vh, 480px); overflow-y: auto; }
.nav-menu__link {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: .95rem;
  transition: background-color .14s ease, color .14s ease;
}
.nav-menu__link:hover, .nav-menu__link:focus-visible { background: var(--accent-tint); color: var(--accent-ink); }
.nav-menu__link.is-current { color: var(--accent-ink); font-weight: 650; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-burger {
  display: none; background: none; border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); padding: 8px; cursor: pointer; color: var(--ink);
}
.nav-burger .icon--close-state { display: none; }
.nav-burger[aria-expanded="true"] .icon--open-state { display: none; }
.nav-burger[aria-expanded="true"] .icon--close-state { display: block; }

.mobile-menu { border-top: 1px solid var(--border); background: var(--surface); padding: 14px 0 22px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__group + .mobile-menu__group { margin-top: 6px; }
.mobile-menu__trigger {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  background: none; border: 0; cursor: pointer; padding: 12px 6px;
  font: 650 1rem/1 var(--font-body); color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.mobile-menu__trigger .icon { transition: transform .16s ease; }
.mobile-menu__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-menu__panel[hidden] { display: none; }
.mobile-menu__panel ul { list-style: none; margin: 0; padding: 6px 6px 10px; }
.mobile-menu__panel a {
  display: block; padding: 8px 10px; border-radius: 8px;
  color: var(--ink); text-decoration: none;
}
.mobile-menu__panel a:hover { background: var(--accent-tint); }
.mobile-menu .btn { margin-top: 14px; }

@media (max-width: 1020px) {
  .header-nav { display: none; }
  .nav-burger { display: inline-flex; }
  .header-actions .btn--sm { display: none; }
}
@media (min-width: 1021px) {
  .mobile-menu { display: none; }
}

/* ---- ticker row (addon injects after header) ------------------------------ */

.ticker-row, .beacon-ticker { width: 100%; }

/* ---- breadcrumbs ----------------------------------------------------------- */

.breadcrumbs { background: var(--surface); border-bottom: 1px solid var(--border); }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  list-style: none; margin: 0; padding: 12px 0; font-size: .88rem; color: var(--muted);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---- sections ---------------------------------------------------------------- */

.section { padding: clamp(44px, 6vw, 76px) 0; }
.section--tint { background: var(--paper-deep); }
.section--card { background: var(--surface); border-block: 1px solid var(--border); }

.section-head { max-width: 760px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head--split {
  max-width: none; display: flex; flex-wrap: wrap; gap: 24px;
  align-items: flex-end; justify-content: space-between;
}
.section-head__lead { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent-ink); background: var(--accent-tint);
  border-radius: 999px; padding: 5px 14px; margin-bottom: 14px;
}

/* decorative band textures (design.md §13 — gradient base + drawn motif) */
.band-grid {
  background-image:
    radial-gradient(circle at 12% 18%, var(--accent-tint) 0, transparent 42%),
    radial-gradient(circle at 88% 82%, #eef6f0 0, transparent 46%),
    linear-gradient(180deg, var(--bg) 0%, var(--paper-deep) 100%);
}
.band-dots {
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1.4px);
  background-size: 22px 22px;
}

/* ---- hero --------------------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(52px, 7vw, 100px);
  background:
    radial-gradient(900px 460px at 85% 12%, rgba(11, 125, 88, .10), transparent 60%),
    radial-gradient(700px 420px at 6% 88%, rgba(20, 40, 30, .07), transparent 55%),
    linear-gradient(178deg, #f6faf7 0%, var(--bg) 70%);
}
.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 40, 30, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 40, 30, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(720px 520px at 78% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(720px 520px at 78% 40%, #000 0%, transparent 78%);
}
.hero__inner {
  position: relative; display: grid; gap: clamp(28px, 4vw, 56px); align-items: start;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-areas:
    "heading form"
    "rest    form";
}
.hero__heading { grid-area: heading; }
.hero__rest { grid-area: rest; }
.hero__form-wrap { grid-area: form; }
.hero__heading h1 { margin-bottom: 0; max-width: 15ch; }
.hero__rest .hero__sub { margin-top: .65em; }
.hero__sub { font-size: 1.1rem; color: var(--muted); max-width: 54ch; }
.hero__note { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .93rem; margin: 14px 0 0; }
.hero__note .icon { color: var(--accent); }

.hero__trust { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.hero__trust-link {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 10px 16px; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.hero__trust-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.hero__trust-link .icon { color: var(--accent); }

.hero__flags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; color: var(--muted); font-size: .93rem; }
.flag {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px 6px 8px; font-weight: 600; color: var(--ink);
}
.flag svg { width: 26px; height: 18px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(20, 40, 30, .08); }

.hero__form-wrap { position: relative; }
.hero__motif { position: absolute; z-index: 0; pointer-events: none; }
.hero__form-wrap .form-block { position: relative; z-index: 1; }

@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; grid-template-areas: "heading" "form" "rest"; }
  .hero__motif { display: none; }
}

/* 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(20px, 3vw, 30px);
}
.form-block__intro { font-weight: 650; color: var(--accent-ink); margin-bottom: 14px; }
.form-legal { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }

/* ---- cards / grids --------------------------------------------------------- */

.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 2.6vw, 28px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card--link { display: block; text-decoration: none; color: inherit; }
.card--flat:hover { transform: none; }

.card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.card__head h3 { margin: 0; }

.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: 26px; height: 26px; }
.icon-badge--sm { width: 42px; height: 42px; border-radius: 11px; }
.icon-badge--sm .icon { width: 22px; height: 22px; }

/* steps (numbered) */
.steps { counter-reset: step; display: grid; gap: clamp(16px, 2.4vw, 26px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 24px; transition: transform .18s ease, box-shadow .18s ease; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .95rem;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---- tables ----------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto; border: 1px solid var(--border);
  border-radius: var(--r-md); background: var(--surface);
  box-shadow: var(--shadow-sm); margin: 0 0 1.4em;
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
thead th {
  background: var(--surface-2); text-align: left; font-weight: 650;
  padding: 13px 16px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td, tbody th { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(233, 242, 236, .45); }
.table-note { font-size: .86rem; color: var(--muted); }
.table-note a { color: var(--accent-hover); }

.compare-table col.col-brand { background: rgba(224, 241, 232, .6); }
.compare-table .compare-brand { font-weight: 700; color: var(--accent-ink); }
.tick-yes { color: var(--accent); }
.tick-no { color: #b3403a; }
.tick-yes .icon, .tick-no .icon { width: 20px; height: 20px; }

/* ---- exchange logos block ------------------------------------------------------ */

.xlogos { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.xlogo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 168px; height: 60px; border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.xlogo-chip--dark { background: #0f172a; }
.xlogo-chip img { height: 28px; width: auto; max-width: 82%; display: block; }

/* ---- reviews -------------------------------------------------------------------- */

.review-grid { display: grid; gap: clamp(16px, 2.4vw, 24px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.review-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.review-card__head { display: flex; align-items: center; gap: 14px; }
.review-card__img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none;
  border: 3px solid var(--surface-2); box-shadow: 0 0 0 1px var(--border);
}
.review-card__name { font-weight: 700; margin: 0; }
.review-card__role { color: var(--muted); font-size: .88rem; margin: 0; }
.review-card__stats { display: flex; flex-wrap: wrap; gap: 8px; }
.stat-chip {
  background: var(--accent-tint); color: var(--accent-ink);
  border-radius: 999px; padding: 5px 13px; font-size: .83rem; font-weight: 650;
}
.stat-chip strong { font-weight: 750; }
.review-card__text { margin: 0; font-size: .97rem; }
.reviews-note { font-size: .85rem; color: var(--muted); margin: 18px 0 0; text-align: center; }

/* ---- company block ---------------------------------------------------------------- */

.company-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.company-facts { list-style: none; padding: 0; margin: 18px 0 0; }
.company-facts li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--border-strong); }
.company-facts li:last-child { border-bottom: 0; }
.company-facts .icon { color: var(--accent); margin-top: 3px; }
.company-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); align-content: start; }
@media (max-width: 880px) { .company-band { grid-template-columns: 1fr; } }

/* ---- FAQ ---------------------------------------------------------------------------- */

.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-item__q {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 16px 20px; font: 650 1.02rem/1.4 var(--font-body); color: var(--ink);
}
.faq-item__q .icon { transition: transform .16s ease; color: var(--accent); }
.faq-item__q[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq-item__a { padding: 0 20px 18px; color: var(--muted); }
.faq-item__a[hidden] { display: none; }
.faq-item__a > *:last-child { margin-bottom: 0; }

/* ---- calculator section ---------------------------------------------------------------- */

.calc-section { position: relative; overflow: hidden; background: var(--surface); border-block: 1px solid var(--border); }
.calc-section__deco { position: absolute; inset: auto 0 -70px 0; height: 240px; opacity: .5; pointer-events: none; }
.calc-canvas { display: block; width: 100%; height: 220px; }

/* ---- map ---------------------------------------------------------------------------------- */

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

/* ---- article / prose pages ------------------------------------------------------------------ */

.prose { max-width: 820px; }
.prose--wide { max-width: none; }
.split-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(26px, 4vw, 54px); align-items: start;
}
@media (max-width: 920px) { .split-hero { grid-template-columns: 1fr; } }

.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 72px) 0;
  background:
    radial-gradient(760px 380px at 88% 8%, rgba(11, 125, 88, .09), transparent 62%),
    linear-gradient(178deg, #f6faf7 0%, var(--bg) 72%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { max-width: 22ch; }
.page-hero__lead { color: var(--muted); font-size: 1.06rem; max-width: 58ch; }

.article-card .article-card__meta { font-size: .83rem; color: var(--muted); margin: 0 0 6px; }
.article-card h3 { font-size: 1.14rem; }
.article-card p { color: var(--muted); font-size: .95rem; }

.callout {
  background: var(--accent-tint); border: 1px solid #cfe6da; border-radius: var(--r-md);
  padding: 18px 22px; margin: 0 0 1.4em;
}
.callout p:last-child { margin-bottom: 0; }
.callout--warn { background: #fdf3ec; border-color: #eed9c8; }

/* ---- special offer page ---------------------------------------------------------------------- */

.urgency-strip { background: var(--accent-ink); color: #eaf6ef; font-size: .88rem; }
.urgency-strip .container { display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: center; padding-block: 9px; }
.urgency-strip strong { color: #fff; }
.so-hero { background: radial-gradient(820px 420px at 82% 0%, rgba(11, 125, 88, .14), transparent 60%), linear-gradient(178deg, #f2f9f4 0%, var(--bg) 74%); }
.countdown { display: inline-flex; gap: 6px; align-items: center; }
.countdown__seg {
  background: var(--accent-ink); color: #fff; border-radius: 8px;
  font: 700 1.35rem/1 var(--font-display); padding: 10px 12px; min-width: 52px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.countdown__sep { color: var(--accent-ink); font-weight: 800; }
.cta-band { background: var(--accent-ink); color: #eaf6ef; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe6da; max-width: 60ch; margin-inline: auto; }

.so-modal { position: fixed; inset: 0; z-index: 300; display: none; }
.so-modal.is-open { display: block; }
.so-modal__overlay { position: absolute; inset: 0; background: rgba(10, 25, 18, .62); }
.so-modal__card {
  position: relative; z-index: 1; max-width: 480px; margin: 10vh auto 0;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 30px 28px 26px; text-align: center;
}
.so-modal__close {
  position: absolute; top: 10px; right: 12px; background: none; border: 0;
  font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 6px;
}
.so-modal__close:hover { color: var(--ink); }
.so-modal__art { margin: 0 auto 8px; display: block; }

/* ---- footer ------------------------------------------------------------------------------------- */

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: clamp(40px, 6vw, 64px) 0 26px; }
.footer-top { display: grid; grid-template-columns: minmax(240px, 1.15fr) repeat(4, minmax(150px, 1fr)); gap: clamp(22px, 3vw, 36px); }
.footer-brand { max-width: 320px; }
.footer-logo .logo__mark { width: 34px; height: 34px; }
.footer-logo .logo__word { height: 19px; }
.footer-tagline { color: var(--muted); font-size: .92rem; margin: 16px 0 12px; }
.footer-contact { font-size: .88rem; color: var(--muted); }
.footer-contact .icon { color: var(--accent); vertical-align: -3px; margin-right: 5px; }
.footer-contact a { color: var(--muted); }
.footer-col__title { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-disclaimer { border-top: 1px solid var(--border); margin-top: 34px; padding-top: 22px; }
.footer-disclaimer__title { font-size: .9rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.footer-disclaimer p { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; margin-top: 22px; font-size: .83rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-legal-links a { color: var(--muted); }
@media (max-width: 1080px) { .footer-top { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }

/* ---- 404 ----------------------------------------------------------------------------------------- */

.error-page { text-align: center; padding: clamp(60px, 9vw, 120px) 0; }
.error-page__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 12vw, 7rem); color: var(--accent); line-height: 1; letter-spacing: -.04em; }

/* ---- scroll reveal ---------------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---- hero canvas -------------------------------------------------------------------------------------- */

#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---- helpers -------------------------------------------------------------------------------------------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-lg { margin-bottom: clamp(24px, 3vw, 36px); }
.stack > * + * { margin-top: 1em; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.hero--home-photo {
  background: linear-gradient(90deg, rgba(13, 23, 23, .88), rgba(13, 23, 23, .34)),
    url("../images/hero-home-full-hd.webp") center 52% / cover no-repeat;
  background-color: rgb(13, 23, 23);
}
.hero--home-photo .hero__heading h1 { color: #f6faf7; }
.hero--home-photo .hero__sub,
.hero--home-photo .hero__flags,
.hero--home-photo .hero__form-wrap > .hero__note { color: #e1ebe5; }

@media (max-width: 720px) {
  .hero--home-photo {
    background-image: linear-gradient(180deg, rgba(13, 23, 23, .79), rgba(13, 23, 23, .64)),
      url("../images/hero-home-full-hd.webp");
    background-position: center, 70% center;
  }
}

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

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

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

.review-photo-note { margin: 0 0 1rem; font-size: .875rem; }

.hero--home-photo .hero__grid-bg,
.hero--home-photo .hero__motif { display: none; }

/* Homepage composition */

.hero--home-photo h1,.hero--home-photo ~ .section h2 {font-family:Georgia,serif;font-weight:500;letter-spacing:-.04em}
.hero--home-photo .hero__form-wrap {padding:clamp(18px,2vw,32px);background:#fcfaf3;color:#173b2e;border-radius:3px 36px 3px 3px;box-shadow:0 16px 38px #071c203d}
.hero--home-photo .hero__form-wrap>.hero__note {color:#345a48}
.hero--home-photo ~ .section {background:#faf9f2}
.hero--home-photo ~ .section:nth-of-type(even){background:#edf3eb}
.hero--home-photo ~ .section .section-head {text-align:left;border-bottom:1px solid #a8baae;padding-bottom:18px}
.hero--home-photo ~ .section :is(.review-card,.card,.step,.faq-item){border-radius:0;border:0;border-top:1px solid #8ea99a;box-shadow:none;background:transparent}
.hero--home-photo ~ .section .review-card__text {font-family:Georgia,serif;font-size:1.1rem}
@media(min-width:1000px){.hero--home-photo ~ .section:has(.xlogos)>.container {display:grid;grid-template-columns:.85fr 1.3fr;gap:48px}.hero--home-photo ~ .section .steps {grid-template-columns:repeat(2,1fr)}}
.hero--home-photo h1 { font-size:clamp(2.1rem,4.2vw,4.25rem); line-height:1.05; text-wrap:balance; }
.hero--home-photo ~ .section { padding-block:clamp(44px,6vw,88px); }
.hero--home-photo ~ .section h2 { text-wrap:balance; }
header .btn--sm { border-radius:4px 20px 4px 20px; background:#07563e; color:#fff; border:1px solid transparent; gap:.55em; font-weight:750; text-decoration:none; }
header .btn--sm::after { content:"↗"; display:inline-block; transition:transform .18s; }
header .btn--sm:hover, header .btn--sm:focus-visible { background:#07563e; color:#fff; box-shadow:0 3px 12px #0003; }
header .btn--sm:hover::after { transform:translate(2px,-2px); }
@media(max-width:950px) {
  .hero--home-photo .hero__inner { display:flex; flex-direction:column; align-items:stretch; gap:16px; }
  .hero--home-photo .hero__heading { display:contents; }
  .hero--home-photo .hero__inner h1 { order:-3; margin:0; max-width:100%; font-size:clamp(1.95rem,6vw,3.15rem); }
  .hero--home-photo .hero__inner .hero__form-wrap { order:-2; width:100%; max-width:100%; min-width:0; margin:0; box-sizing:border-box; }
  .hero--home-photo .hero__heading > :not(h1) { order:0; }
}
@media(max-width:640px) {
 .hero--home-photo ~ .section :is(.steps,.step-list,.steps-grid,.step-grid){grid-template-columns:1fr}
}

@media (max-width: 950px) {
  header .header-inner { gap: 8px; }
  header .header-actions { display: flex; align-items: center; gap: 6px; }
  header .header-inner a.btn:is([href*="auth"],[href="#start-registration"]) { display: inline-flex; font-size: clamp(11px, 2.85vw, 14px); line-height: 1.12; padding: 8px 10px; min-height: 38px; max-width: 44vw; align-items: center; justify-content: center; white-space: normal; text-align: center; }
  header .header-inner :is(.brand,.header-logo) { min-width: 0; }
}
@media (max-width: 950px) {
  .hero--home-photo ~ .section { overflow-x: clip; }
  .hero--home-photo ~ .section .table-wrap { max-width: 100%; overflow-x: auto; }
  .hero--home-photo ~ .section .container > * { min-width: 0; }
}
@media (max-width: 950px) { body:has(.hero--home-photo) { overflow-x: clip; } }

.hero.intro-redesign {--tone:#e6eddb;--ink:#203a31;background:#f4f1e6;padding:clamp(30px,5vw,76px) 0;isolation:isolate}
.intro-redesign::before,.intro-redesign::after{display:none}
.intro-layout{display:grid;grid-template-columns:.95fr 1.05fr;grid-template-areas:"photo head" "photo form" "details details";gap:clamp(20px,3vw,48px);align-items:start}
.intro-layout>*{min-width:0}
.intro-head{grid-area:head;color:var(--tone)}
.intro-redesign .intro-head h1{margin:0;max-width:none;font-size:clamp(2.35rem,4.1vw,4.75rem);line-height:1.04;text-wrap:balance}
.intro-photo{grid-area:photo;position:relative;margin:0;overflow:hidden}
.intro-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.intro-photo figcaption{position:absolute;bottom:10px;left:14px;color:white;background:#0e182bc9;padding:3px 10px;font-size:.8rem}
.intro-form{grid-area:form;padding:clamp(17px,2.3vw,34px);background:var(--tone);color:var(--ink);scroll-margin-top:85px;align-self:start}
.intro-form :is(.form-heading,.form-hero-title,.hero-form-title){color:var(--ink);font-size:1.35rem;font-weight:750;margin:0 0 14px}
.intro-form > p:last-child{color:var(--ink);font-size:.88rem}
.intro-details{grid-area:details}.intro-details p{max-width:75ch}
.intro-help{margin-top:20px;border-top:1px solid currentColor;padding:14px 0 0}.intro-help summary{cursor:pointer;font-weight:700}.intro-help a{text-decoration:underline}
.intro-head h1{font-family:Georgia,serif;font-weight:500;color:#223a2f}.intro-photo{align-self:stretch;min-height:520px;border-radius:200px 200px 8px 8px}.intro-form{border-top:2px solid #315743;border-radius:0;background:#fffdf5}.intro-details{border-top:1px solid #819080;padding-top:20px;color:#233f31}.intro-details .hero__sub,.intro-details .hero__flags{color:#233f31}.intro-head{color:#264733}
@media(max-width:950px){.intro-redesign .intro-layout{display:flex;flex-direction:column;align-items:stretch;gap:18px}.intro-layout>.intro-head{order:0;text-align:left;margin:0}.intro-redesign .intro-head h1{font-size:clamp(2rem,6.5vw,3.4rem)}.intro-layout>.intro-form{order:1;width:100%;box-sizing:border-box}.intro-layout>.intro-photo{order:2;min-height:0;height:clamp(130px,35vw,220px)}.intro-layout>.intro-details{order:3}.intro-details .hero__copy,.intro-details .hero__rest{display:block}}

.intro-details .intro-return {display:inline-flex;align-items:center;gap:.65em;margin-top:18px;font-weight:750;text-decoration:underline;text-underline-offset:5px;color:inherit}
.intro-redesign .intro-form:target {outline:3px solid var(--accent);outline-offset:4px}
@media(max-width:950px){header .header-inner a.btn[href="#start-registration"]{display:inline-flex;align-items:center;justify-content:center;font-size:clamp(11px,2.85vw,14px);padding:8px 10px;min-height:38px;max-width:44vw;white-space:normal;text-align:center}}
@media (max-width: 950px) { html:has(.intro-redesign) { overflow-x: hidden; } body:has(.intro-redesign) { position: relative; overflow-x: hidden; } }

.hero.hero-contact {--scene:#1d3329;--highlight:#c5deb5;--panel:4px;--headline:Georgia,serif;--weight:550}

.hero.hero-contact {position:relative;isolation:isolate;background:var(--scene);color:white;padding:clamp(40px,5vw,80px) 0}
.hero-contact .intro-layout {position:static;display:grid;grid-template-columns:minmax(0,1fr) minmax(350px,440px);grid-template-areas:"head form" "details form";align-items:start;gap:16px clamp(40px,7vw,110px);min-height:440px}
.hero-contact .intro-photo {position:absolute;inset:0;z-index:-1;margin:0;width:100%;height:100%;max-width:none;min-height:0;border:0;border-radius:0;clip-path:none;pointer-events:none}
.hero-contact .intro-photo::after {content:"";position:absolute;inset:0;background:linear-gradient(90deg,color-mix(in srgb,var(--scene) 95%,transparent),color-mix(in srgb,var(--scene) 82%,transparent) 42%,color-mix(in srgb,var(--scene) 24%,transparent) 83%),linear-gradient(0deg,#07111980,transparent 55%)}
.hero-contact .intro-photo figcaption {display:none}
.hero-contact .intro-head {align-self:end;justify-self:start;text-align:left;max-width:100%;margin:0;padding:0;border:0}
.hero-contact .intro-head h1 {font-family:var(--headline);font-size:clamp(2.3rem,3.65vw,4.25rem);line-height:1.06;font-weight:var(--weight);font-style:normal;letter-spacing:-.036em;color:white;margin:0;text-shadow:none;text-align:left}
.hero-contact h1 :is(.hl,.accent) {color:var(--highlight);-webkit-text-fill-color:currentColor;background:none}
.hero-contact .intro-details {align-self:start;text-align:left;color:white;padding:0;margin:0;border:0}
.hero-contact .intro-summary {max-width:52ch;margin:0;font-size:clamp(1rem,1.25vw,1.18rem);line-height:1.55;color:#f5f7f8}
.hero-contact .intro-overview {margin-top:20px;max-width:58ch}
.hero-contact .intro-overview > summary {cursor:pointer;display:list-item;width:fit-content;color:var(--highlight);font-weight:650;padding:5px 2px}
.hero-contact .overview-body {background:white;color:#253343;border-radius:10px;padding:18px;margin-top:10px}
.hero-contact .overview-body :is(p,li,.hero__sub,.hero-lead,.hero__lead,.hero__desc,.hero-meta-label,.hero__flags,.hero__flags-label,.hero-flags-caption,.hero__meta-label) {color:#263541}
.hero-contact .intro-form {align-self:center;width:100%;max-width:none;margin:0;box-sizing:border-box;padding:clamp(22px,2.4vw,36px);color:#172432;background:white;border:0;border-top:4px solid var(--highlight);border-radius:var(--panel);box-shadow:0 16px 52px #06101945}
.hero-contact .intro-form :is(.hero-form-title,.form-heading,.form-block__title,.form-block__intro,.form-hero-title) {text-align:left;color:#182b34;font:700 clamp(1.45rem,2vw,1.85rem)/1.18 system-ui,sans-serif;letter-spacing:-.035em;margin:0 0 18px}
.hero-contact .intro-form .form-block {background:transparent;color:#263541;border:0;margin:0;padding:0;box-shadow:none}
.hero-contact .intro-form :is(.form-legal,.hero__note,.hero-note,.hero-form-note,.hero__manager-note,.hero__form-note) {color:#435360;line-height:1.45}
.hero-contact .intro-form .form-legal a {color:#225670;text-decoration:underline}
.hero-contact .intro-form > p:last-child {margin:14px 0 0;padding-top:12px;border-top:1px solid #dee5e9}
@media(max-width:800px){
.hero.hero-contact {padding:28px 0 32px}
.hero-contact .intro-layout {display:flex;flex-direction:column;gap:18px;min-height:0;align-items:stretch}
.hero-contact .intro-head,.hero-contact .intro-details {align-self:stretch}
.hero-contact .intro-head h1 {font-size:clamp(1.9rem,6.8vw,3rem)}
.hero-contact .intro-form {padding:22px 18px}
.hero-contact .intro-photo {height:100%;min-height:0}
}
.hero-contact .intro-form input:is([type=text],[type=email],[type=tel]) {background:#f7f9fb!important;color:#182532!important;border:1px solid #aebcc7!important;box-sizing:border-box}
.hero-contact .intro-form input::placeholder {color:#536373!important;opacity:1}
.hero-contact .intro-form input:focus-visible {outline:2px solid #206490;outline-offset:1px}
.hero-contact .intro-form .iti input[type=tel] {padding-inline-start:96px!important}
header .nav-invite {--invite-fill:#134c39;--invite-ink:#ffffff;--invite-shape:6px 16px 6px 16px;--mark-shape:50%;--invite-edge:inset 0 0 0 1px #41745b}

/* Header action */
header .btn.nav-invite {
  display:inline-flex; align-items:center; justify-content:space-between; gap:.72em;
  min-height:44px; max-width:100%; padding:5px 6px 5px 16px; box-sizing:border-box;
  border:0; border-radius:var(--invite-shape); background:var(--invite-fill); color:var(--invite-ink);
  box-shadow:var(--invite-edge); text-decoration:none; line-height:1.15;
  font-size:14px; font-weight:750; letter-spacing:0; white-space:normal; text-align:start;
}
header .btn.nav-invite::after, header .btn.nav-invite::before {content:none}
header .nav-invite .invite-mark {
  display:grid; place-items:center; flex:none; width:29px; height:29px;
  border-radius:var(--mark-shape); background:var(--invite-ink); color:var(--invite-fill);
}
header .invite-mark svg {display:block;width:17px;height:17px;transition:transform .18s ease}
header .btn.nav-invite:is(:hover,:focus-visible) {color:var(--invite-ink);background:var(--invite-fill);box-shadow:var(--invite-edge),0 4px 12px #1112}
header .btn.nav-invite:focus-visible {outline:2px solid currentColor;outline-offset:3px}
header .nav-invite:is(:hover,:focus-visible) .invite-mark svg {transform:translateX(2px)}
@media (max-width:950px) {
  header .header-inner a.btn.nav-invite {display:inline-flex;gap:6px;padding:4px 5px 4px 10px;min-height:40px;font-size:clamp(11px,3vw,14px);max-width:44vw}
  header .nav-invite .invite-mark {width:22px;height:22px}
  header .invite-mark svg {width:15px;height:15px}
}
@media (prefers-reduced-motion:reduce) {header .nav-invite .invite-mark svg {transition:none;transform:none}}

/* Always-visible platform information in the homepage hero. */
.hero-contact .platform-brief {max-width:58ch;margin:18px 0 0;padding:12px 0 0;border-top:1px solid color-mix(in srgb,var(--highlight) 52%,transparent);text-align:start}
.hero-contact .platform-brief h2 {display:flex;align-items:center;gap:8px;color:var(--highlight);font-family:inherit;font-size:1rem;font-weight:700;line-height:1.25;letter-spacing:0;margin:0}
.platform-brief h2::before {content:"";width:6px;height:6px;background:var(--highlight);border-radius:50%;flex:none}
.hero-contact .platform-brief p {margin:6px 0 10px;font-size:.94rem;line-height:1.45;color:#f6f8fa}
.hero-contact .brief-offices,.hero-contact .brief-links {display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;color:white;font-size:.82rem;line-height:1.3}
.hero-contact .brief-offices :is(.flag-chip,.flag-item,.flag) {display:inline-flex;align-items:center;gap:4px;position:static;height:auto;width:auto;margin:0;padding:0;background:transparent;border:0;box-shadow:none;color:inherit}
.hero-contact .brief-offices svg {width:19px;height:13px;position:static}
.hero-contact .brief-links {margin-top:8px;gap:3px 14px}
.hero-contact .brief-links a {color:var(--highlight);text-decoration:underline;text-underline-offset:3px;padding-block:3px}
.hero-contact .brief-links a:is(:hover,:focus-visible) {color:white}

.margin-note .platform-brief {border:0;border-left:3px solid var(--highlight);padding:0 0 0 16px}
.margin-note .platform-brief h2 {font:italic 1.22rem Georgia,serif}
.margin-note .platform-brief p {font:1.06rem/1.45 Georgia,serif;max-width:43ch}
.margin-note .brief-links {gap:6px 18px}

.margin-note .platform-brief h2::before {display:none}

.home-jump {background:#193c30;color:#ddf2d6;border-block:1px solid #193c30}
.home-jump .container {display:flex;flex-wrap:wrap;align-items:center;gap:0 clamp(14px,3vw,36px)}
.home-jump a {display:inline-flex;align-items:center;min-height:44px;padding:4px 0;color:inherit;font-weight:650;font-size:.92rem;text-decoration:underline;text-underline-offset:4px}
.home-jump a:visited {color:inherit}
.home-jump a:is(:hover,:focus-visible) {color:#fff;text-decoration-thickness:2px}
.home-jump a::after {content:"↓";padding-inline-start:.4em}
.home-jump ~ section[id] {scroll-margin-top:85px}
.hero-contact ~ section [role=region][tabindex] {max-width:100%;overflow-x:auto}
.home-jump a:focus-visible,.hero-contact ~ section [role=region][tabindex]:focus-visible {outline:2px solid currentColor;outline-offset:-2px}
