/* ==========================================================================
   Design system: Andes night + copper. One theme (dark), one accent.
   Tokens first, then layout primitives, components, pages.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: optional;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: optional;
}

:root {
  --bg: #0b1020;
  --bg-2: #0e1530;
  --surface: #121a35;
  --surface-2: #19234a;
  --border: #27335f;
  --border-soft: #1d2852;
  --text: #eef1fa;
  --text-muted: #a9b3d1;
  --text-dim: #8995ba;

  --accent: #b8501a;
  --accent-hover: #9d4112;
  --accent-ink: #f4a672;
  --accent-tint: rgba(232, 134, 74, .14);
  --accent-line: rgba(232, 134, 74, .38);

  --lapis: #6c8ff2;
  --lapis-solid: #2f5bd8;
  --teal: #35c9b0;
  --sand: #e9c46a;
  --rose: #e5677d;
  --good: #3fcf8e;
  --bad: #ef6a6a;
  --flag-red: #d52b1e;
  --flag-blue: #0039a6;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(3, 6, 18, .5);
  --shadow-md: 0 1px 2px rgba(3, 6, 18, .45), 0 12px 32px rgba(3, 7, 20, .45);
  --shadow-lg: 0 2px 6px rgba(3, 6, 18, .5), 0 28px 70px rgba(2, 4, 14, .6);

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .6, .2, 1);

  --grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 0H0V48' fill='none' stroke='%239db2f0' stroke-opacity='.07'/%3E%3C/svg%3E");
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%23f4b07c' fill-opacity='.18'/%3E%3C/svg%3E");
  --chartline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='220' viewBox='0 0 520 220'%3E%3Cpath d='M0 190C60 180 90 150 140 156S230 120 280 100 380 90 430 50 500 24 520 10' fill='none' stroke='%23f4b07c' stroke-opacity='.28' stroke-width='2'/%3E%3Cg fill='%23f4b07c' fill-opacity='.35'%3E%3Ccircle cx='140' cy='156' r='4'/%3E%3Ccircle cx='280' cy='100' r='4'/%3E%3Ccircle cx='430' cy='50' r='4'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, iframe, video, canvas { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffd0ae; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 650;
  letter-spacing: -.018em;
  line-height: 1.14;
  margin: 0 0 .55em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.35rem); font-weight: 700; line-height: 1.08; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }
h4 { font-size: 1.08rem; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }
.small { font-size: .9rem; }
.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; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

/* ---- icons --------------------------------------------------------------- */
.icon { width: 24px; height: 24px; flex: none; }
.icon .t { fill: currentColor; fill-opacity: .2; stroke: none; }
.icon-badge {
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--accent-tint); color: var(--accent-ink);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.icon-badge .icon { width: 26px; height: 26px; }
.icon-badge--lg { width: 60px; height: 60px; border-radius: 16px; }
.icon-badge--lg .icon { width: 32px; height: 32px; }
.icon-badge--lapis { background: rgba(108, 143, 242, .14); color: var(--lapis); box-shadow: inset 0 0 0 1px rgba(108, 143, 242, .4); }
.icon-badge--teal { background: rgba(53, 201, 176, .13); color: var(--teal); box-shadow: inset 0 0 0 1px rgba(53, 201, 176, .38); }

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: 650 1rem/1 var(--f-body); letter-spacing: .005em; white-space: nowrap;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.btn .icon { width: 20px; height: 20px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm), 0 8px 22px -8px rgba(232, 134, 74, .55); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--accent-line); }
.btn--ghost:hover { background: var(--accent-tint); color: #fff; border-color: var(--accent-ink); transform: translateY(-2px); }
.btn--ghost:active { transform: translateY(0); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---- header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 16, 32, .84);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-scrolled { background: rgba(9, 13, 28, .95); box-shadow: var(--shadow-lg); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); flex: none; }
.logo:hover { color: var(--text); }
.logo__mark { display: block; border-radius: 11px; }
.logo__word { font: 700 1.4rem/1 var(--f-display); letter-spacing: -.03em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__trigger {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  background: transparent; border: 0; border-radius: 10px; color: var(--text);
  font: 600 .98rem/1 var(--f-body); cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.nav__trigger:hover, .nav__item.is-open > .nav__trigger { background: var(--accent-tint); color: #fff; }
.nav__caret { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.nav__item.is-open .nav__caret { transform: rotate(180deg); }

.sub {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 70; min-width: 270px;
  background: #0d1430; border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s var(--ease), transform .15s var(--ease), visibility 0s linear .15s;
}
.sub::before {
  content: ""; position: absolute; top: -7px; left: 26px; width: 12px; height: 12px;
  background: #0d1430; border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.sub.sub--right { left: auto; right: 0; }
.sub.sub--right::before { left: auto; right: 26px; }
.sub--wide { min-width: 560px; }
.sub ul { list-style: none; margin: 0; padding: 0; }
.sub--wide ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; }
.sub a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px;
  color: var(--text); text-decoration: none; font-weight: 550; font-size: .97rem; line-height: 1.3;
  transition: background-color .14s var(--ease);
}
.sub a .icon { width: 20px; height: 20px; color: var(--accent-ink); }
.sub a:hover, .sub a:focus-visible { background: var(--accent-tint); color: #fff; }
.sub a[aria-current="page"] { background: var(--surface-2); }
@media (hover: hover) and (min-width: 1024px) {
  .nav__item:hover > .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__item:hover > .nav__trigger { background: var(--accent-tint); color: #fff; }
  .nav__item:hover .nav__caret { transform: rotate(180deg); }
}
.nav__item.is-open > .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__cta { display: none; }
.header-cta { margin-left: 8px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; margin-left: auto; padding: 0;
  place-items: center; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 1023.98px) {
  .nav-toggle { display: inline-grid; }
  .header-cta { margin-left: 0; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; margin: 0;
    background: #0a0f23; border-bottom: 1px solid var(--border-soft);
    transition: max-height .22s var(--ease);
  }
  .nav.is-open { max-height: calc(100vh - 72px); overflow-y: auto; box-shadow: var(--shadow-lg); }
  .nav__list { flex-direction: column; align-items: stretch; padding: 8px 16px; }
  .nav__trigger { width: 100%; justify-content: space-between; min-height: 52px; padding: 0 8px; border-radius: 10px; }
  .sub, .sub--wide {
    position: static; min-width: 0; border: 0; box-shadow: none; background: transparent; padding: 0 0 8px 8px;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .sub::before { display: none; }
  .nav__item.is-open > .sub { display: block; }
  .sub--wide ul { grid-template-columns: 1fr; }
  .nav__cta { display: none; margin: 8px 16px 20px; }
}
@media (max-width: 479.98px) {
  .header-cta { display: none; }
  .nav__cta { display: inline-flex; }
  .logo__word { font-size: 1.28rem; }
}

/* ---- breadcrumbs ---------------------------------------------------------- */
.crumbs { padding: 14px 0 0; font-size: .9rem; color: var(--text-dim); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border); }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--text); }

/* ---- sections --------------------------------------------------------------- */
.sec { position: relative; padding-block: clamp(56px, 7.5vw, 104px); isolation: isolate; }
.sec--tint { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.sec--tint::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grid); mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.sec--mesh { background: radial-gradient(900px 420px at 88% 0%, rgba(47, 91, 216, .16), transparent 70%), radial-gradient(700px 360px at 0% 100%, rgba(232, 134, 74, .1), transparent 70%), var(--bg); }
.sec--mesh::before { content: ""; position: absolute; right: 0; bottom: 0; width: min(520px, 70%); height: 220px; z-index: -1; background: var(--chartline) no-repeat right bottom / contain; opacity: .9; }
.sec--band { background: var(--surface); border-block: 1px solid var(--border-soft); }
.sec--band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--dots); mask-image: linear-gradient(90deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); }
.sec--glow { background: radial-gradient(800px 380px at 50% 0%, rgba(232, 134, 74, .16), transparent 70%), var(--bg-2); }
.sec__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec__head--center { margin-inline: auto; text-align: center; }
.sec__head--center .lead { margin-inline: auto; }
.eyebrow { display: inline-block; margin: 0 0 12px; font: 650 .8rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }

/* ---- cards and grids -------------------------------------------------------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards--stagger > :nth-child(even) { transform: translateY(18px); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-md);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--shadow-lg); }
.cards--stagger > .card:nth-child(even):hover { transform: translateY(15px); }
.card__head { display: flex; align-items: center; gap: 14px; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--text-muted); }
.card ul { margin: 0; color: var(--text-muted); }
.card ul li + li { margin-top: .35em; }
a.card { text-decoration: none; color: inherit; }
.card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 650; }
.card__more .icon { width: 18px; height: 18px; transition: transform .16s var(--ease); }
a.card:hover .card__more .icon { transform: translateX(4px); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split--wide-right { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.split--top { align-items: start; }
@media (max-width: 860px) { .split, .split--wide-left, .split--wide-right { grid-template-columns: minmax(0, 1fr); } }

.figure-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.figure-card img, .figure-card svg { width: 100%; height: auto; display: block; }
.figure-card figcaption { padding: 14px 18px; font-size: .92rem; color: var(--text-muted); border-top: 1px solid var(--border-soft); }
figure { margin: 0; }

.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 34px; margin-bottom: .7em; color: var(--text-muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .22em; width: 22px; height: 22px; border-radius: 7px;
  background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4a672' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.500 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.checks strong { color: var(--text); }

.callout {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px;
  background: var(--accent-tint); border: 1px solid var(--accent-line); border-radius: var(--r);
  color: var(--text);
}
.callout .icon { color: var(--accent-ink); margin-top: 2px; }
.callout p { margin: 0; color: var(--text); }
.callout p + p { margin-top: .6em; }
.callout--blue { background: rgba(108, 143, 242, .1); border-color: rgba(108, 143, 242, .38); }
.callout--blue .icon { color: var(--lapis); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .92rem; color: var(--text); }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--accent-ink)); display: inline-block; }

/* ---- steps ------------------------------------------------------------------ */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step {
  position: relative; counter-increment: step; background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-md);
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.step:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.step__num {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; font: 700 .95rem/1 var(--f-display);
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: .4em; }
.step p { margin: 0; color: var(--text-muted); }
.steps--flow .step:not(:last-child)::after {
  content: ""; position: absolute; top: 40px; right: -20px; width: 20px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent-line) 0 4px, transparent 4px 8px);
}
@media (max-width: 640px) { .steps--flow .step::after { display: none; } }

/* ---- tables ----------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-md); -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .98rem; }
.tbl caption { text-align: left; padding: 16px 18px 6px; font: 650 1.08rem var(--f-display); caption-side: top; }
.tbl th, .tbl td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-soft); }
.tbl thead th { background: var(--surface-2); color: var(--text); font-weight: 650; font-size: .92rem; letter-spacing: .01em; white-space: nowrap; }
.tbl tbody tr:last-child td, .tbl tbody tr:last-child th { border-bottom: 0; }
.tbl tbody tr:hover { background: rgba(232, 134, 74, .05); }
.tbl tbody th { font-weight: 650; color: var(--text); }
.tbl td { color: var(--text-muted); }
.tbl .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .yes { color: var(--good); font-weight: 700; }
.tbl .no { color: var(--bad); font-weight: 700; }
.tbl-note { font-size: .93rem; color: var(--text-muted); margin-top: 14px; }

/* comparison table (home) */
.compare .tbl { min-width: 640px; }
.compare .tbl thead th:nth-child(2) { background: linear-gradient(180deg, rgba(232, 134, 74, .28), rgba(232, 134, 74, .1)); color: #fff; }
.compare .tbl tbody td:nth-child(2) { background: rgba(232, 134, 74, .06); }
.mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.mark .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.mark--yes { background: rgba(63, 207, 142, .16); color: var(--good); }
.mark--no { background: rgba(239, 106, 106, .15); color: var(--bad); }
.mark-label { display: inline-flex; align-items: center; gap: 10px; }

/* ---- hero (home) ------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; overflow: clip; padding: clamp(32px, 5vw, 64px) 0 clamp(52px, 7vw, 92px); }
.hero__bg { position: absolute; inset: -140px 0 0 0; z-index: -3; background: #050813; will-change: transform; }
.hero__bg img { position: absolute; left: 0; top: 140px; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.hero-fx { position: absolute; left: 0; top: 0; z-index: -2; width: 100%; height: auto; aspect-ratio: 16 / 9; pointer-events: none; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 16, 32, .92) 0%, rgba(11, 16, 32, .74) 36%, rgba(11, 16, 32, .22) 66%, rgba(11, 16, 32, 0) 100%), linear-gradient(180deg, rgba(11, 16, 32, .45), transparent 24%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); grid-template-areas: "head form" "body form"; gap: 22px clamp(28px, 5vw, 72px); align-items: start; }
.hero__head { grid-area: head; }
.hero__body { grid-area: body; }
.hero__form { grid-area: form; }
.hero h1 { margin-bottom: .45em; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: #cdd5ee; max-width: 58ch; }
.hero__points { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.hero__points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.hero__points .icon { color: var(--accent-ink); margin-top: 2px; width: 22px; height: 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--border-soft); }
.flags { display: flex; align-items: center; gap: 12px; }
.flags__label { font-size: .93rem; color: var(--text-muted); }
.flag { display: block; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), var(--shadow-sm); }
.trust-links { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-link {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px;
  background: rgba(18, 26, 53, .8); border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; color: var(--text); font-weight: 600; font-size: .96rem; line-height: 1.25;
  transition: border-color .16s var(--ease), transform .16s var(--ease), background-color .16s var(--ease);
}
.trust-link:hover { border-color: var(--accent-ink); background: var(--surface-2); transform: translateY(-2px); color: #fff; }
.trust-link .icon-badge { width: 40px; height: 40px; border-radius: 11px; }
.trust-link .icon-badge .icon { width: 22px; height: 22px; }
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "form" "body"; }
  .hero::before { background: linear-gradient(180deg, rgba(11, 16, 32, .88), rgba(11, 16, 32, .7) 50%, var(--bg)); }
}

/* inner page hero (form on the right) */
.page-hero { position: relative; isolation: isolate; overflow: clip; padding: clamp(28px, 4.5vw, 56px) 0 clamp(44px, 6vw, 80px); border-bottom: 1px solid var(--border-soft); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 50% 78%; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 16, 32, .96), rgba(11, 16, 32, .82) 45%, rgba(11, 16, 32, .5)), linear-gradient(180deg, transparent 55%, var(--bg)); }
.page-hero--plain { padding-bottom: clamp(32px, 4vw, 52px); background: radial-gradient(900px 300px at 85% -20%, rgba(232, 134, 74, .14), transparent 70%), var(--bg-2); }
.page-hero--plain::before, .page-hero--plain .page-hero__bg { display: none; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "head form" "body form"; gap: 20px clamp(28px, 5vw, 72px); align-items: start; }
.page-hero__grid--solo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head"; }
.page-hero__head { grid-area: head; }
.page-hero__body { grid-area: body; }
.page-hero__form { grid-area: form; }
@media (max-width: 920px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "form" "body"; }
  .page-hero::before { background: linear-gradient(180deg, rgba(11, 16, 32, .9), rgba(11, 16, 32, .78) 60%, var(--bg)); }
}
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-dim); font-size: .92rem; margin-top: 6px; }
.page-meta span { display: inline-flex; align-items: center; gap: 8px; }
.page-meta .icon { width: 18px; height: 18px; color: var(--accent-ink); }

/* inner hero background variants (Chile imagery, generated) */
.page-hero--andes .page-hero__bg { background-image: url("../images/hero-inner-andes.svg"); }
.page-hero--city .page-hero__bg { background-image: url("../images/hero-inner-city.svg"); }
.page-hero--net .page-hero__bg { background-image: url("../images/hero-inner-net.svg"); }

/* ---- registration form block ------------------------------------------------- */
.form-block {
  position: relative; background: linear-gradient(180deg, rgba(25, 35, 74, .96), rgba(18, 26, 53, .98));
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: clamp(20px, 3vw, 30px);
}
.form-block::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(90deg, var(--flag-blue) 0 33%, #f4f1ea 33% 66%, var(--flag-red) 66%); opacity: .9; }
.form-block__title { margin: 0 0 6px; font: 650 clamp(1.2rem, 1.1rem + .5vw, 1.45rem)/1.25 var(--f-display); color: var(--text); letter-spacing: -.015em; }
.form-block__intro { margin: 0 0 16px; color: var(--text-muted); font-size: .98rem; }
.form-block__after { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border-soft); color: var(--text-muted); font-size: .95rem; }
.form-legal { margin: 14px 0 0; font-size: .82rem; line-height: 1.5; color: var(--text-dim); }
.form-block form { margin: 14px 0 0; }
.form-block form [class] { max-width: none; }
.form-block form input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"]) {
  min-height: 50px; height: 50px !important; background: #0b1230 !important; color: var(--text) !important;
  border: 1px solid var(--border) !important; border-radius: 12px !important;
  font-family: var(--f-body) !important; font-size: 1rem !important; font-weight: 500 !important; line-height: 1.2 !important;
  box-shadow: none; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-block form input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"]):not([type="tel"]) { padding: 0 14px !important; }
.form-block form input[type="tel"] { padding-top: 0 !important; padding-bottom: 0 !important; }
.form-block form input::placeholder { color: var(--text-dim); opacity: 1; font-size: 1rem; }
.form-block form input:focus { outline: none; border-color: var(--accent-ink) !important; box-shadow: 0 0 0 3px rgba(244, 166, 114, .24); }
.form-block form input[type="submit"] {
  width: 100%; min-height: 54px; height: 54px; border: 0 !important; border-radius: 12px !important; cursor: pointer;
  background: var(--accent) !important; color: #fff !important; font: 700 1.05rem var(--f-body) !important;
  box-shadow: var(--shadow-sm), 0 10px 24px -10px rgba(232, 134, 74, .7);
  transition: background-color .16s var(--ease), transform .16s var(--ease);
}
.form-block form input[type="submit"]:hover { background: var(--accent-hover) !important; transform: translateY(-2px); }
.form-block form input[type="submit"]:active { transform: translateY(0); }
.form-block .iti { width: 100%; }
.form-block .iti__country-list { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.form-block .iti__country.iti__highlight { background: var(--accent-tint); }
.form-block .iti__selected-dial-code { color: var(--text); }

/* ---- markets (flags, logos) --------------------------------------------------- */
.exch { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.exch li {
  display: grid; place-items: center; min-height: 92px; padding: 18px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r);
  color: #c7d0ea; transition: color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.exch li:hover { color: #fff; border-color: var(--accent-line); transform: translateY(-2px); }
.exch svg { width: 100%; max-width: 150px; height: 34px; }
.exch-note { margin-top: 18px; font-size: .88rem; color: var(--text-dim); }

/* ---- charts ------------------------------------------------------------------- */
.chart-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: clamp(16px, 2.4vw, 26px); }
.chart-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.chart-card__title { margin: 0; font: 650 1.15rem var(--f-display); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chart-legend button {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid var(--border); font: 600 .88rem var(--f-body);
  transition: background-color .15s var(--ease), border-color .15s var(--ease), opacity .15s var(--ease);
}
.chart-legend button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chart-legend button[aria-pressed="false"] { opacity: .45; }
.chart-legend button:hover { border-color: var(--c); background: var(--surface-2); }
.chart-body { position: relative; aspect-ratio: 16 / 7; min-height: 240px; }
.chart-body svg, .chart-body canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.chart-tip {
  position: absolute; z-index: 2; pointer-events: none; min-width: 150px; padding: 10px 12px; border-radius: 10px;
  background: #0b1230; border: 1px solid var(--border); box-shadow: var(--shadow-md); font-size: .85rem;
  opacity: 0; transform: translateY(4px); transition: opacity .12s var(--ease);
}
.chart-tip.is-on { opacity: 1; transform: none; }
.chart-tip b { display: block; margin-bottom: 4px; color: var(--text-muted); font-weight: 600; }
.chart-tip span { display: flex; justify-content: space-between; gap: 14px; }
.chart-tip em { font-style: normal; font-variant-numeric: tabular-nums; }
.chart-note { margin: 12px 0 0; font-size: .85rem; color: var(--text-dim); }
.spark-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 18px; }
.spark { padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: var(--r); }
.spark__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.spark__sym { font: 700 1rem var(--f-display); color: var(--text); }
.spark__name { font-size: .82rem; color: var(--text-dim); }
.spark__chg { font: 700 .95rem var(--f-body); font-variant-numeric: tabular-nums; }
.spark__chg.up { color: var(--good); }
.spark__chg.down { color: var(--bad); }
.spark svg { width: 100%; height: 46px; display: block; margin-top: 8px; }
.calc-wrap { position: relative; }
.calc-deco { position: absolute; inset: auto 0 0 0; height: 46%; z-index: -1; opacity: .5; }
.calc-deco canvas { width: 100%; height: 100%; display: block; }

/* module/calculator frame: sits inside the container, never edge to edge */
.calc-frame { background: linear-gradient(160deg, rgba(25, 35, 74, .75), rgba(14, 21, 48, .9)); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 36px); box-shadow: var(--shadow-lg); }

/* ---- reviews ------------------------------------------------------------------- */
.reviews { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: stretch; }
.review {
  display: flex; flex-direction: column; gap: 16px; height: 100%;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-md);
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.review:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.review__who { display: flex; align-items: center; gap: 14px; }
.review__who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-line); background: var(--surface-2); }
.review__name { margin: 0; font: 650 1.05rem var(--f-display); color: var(--text); }
.review__job { margin: 0; font-size: .9rem; color: var(--text-dim); }
.review__text { margin: 0; color: var(--text-muted); flex: 1; }
.review__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.review__facts div { min-width: 0; }
.review__facts dt { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); font-weight: 650; }
.review__facts dd { margin: 2px 0 0; font: 700 .98rem var(--f-display); color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.review__facts dd.up { color: var(--good); }
.reviews-note { margin-top: 20px; font-size: .9rem; color: var(--text-dim); }

/* ---- security + feature cards ------------------------------------------------------ */
.feature-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg); transition: border-color .18s var(--ease), transform .18s var(--ease); }
.feature:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.feature h3 { margin: 0 0 .3em; }
.feature p { margin: 0; color: var(--text-muted); }

/* ---- company block ------------------------------------------------------------------ */
.company { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .company { grid-template-columns: minmax(0, 1fr); } }
.kv { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.kv li { display: flex; gap: 14px; align-items: flex-start; }
.kv .icon-badge { width: 42px; height: 42px; border-radius: 12px; }
.kv .icon-badge .icon { width: 22px; height: 22px; }
.kv dt, .kv .kv__label { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); font-weight: 650; }
.kv .kv__value { display: block; color: var(--text); }
.link-cards { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .link-cards { grid-template-columns: minmax(0, 1fr); } }
.link-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; min-height: 150px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg); text-decoration: none; color: var(--text); font: 650 1.05rem var(--f-display); transition: transform .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease); }
.link-card:hover { transform: translateY(-3px); border-color: var(--accent-ink); background: var(--surface-2); color: #fff; }
.link-card .icon-badge { margin-bottom: auto; }
.link-card small { font: 500 .9rem var(--f-body); color: var(--text-muted); }

/* ---- FAQ ------------------------------------------------------------------------------ */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r); transition: border-color .16s var(--ease); }
.faq details[open] { border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font: 650 1.05rem/1.4 var(--f-display); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4a672' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 20px 20px; color: var(--text-muted); }
.faq__answer p:last-child, .faq__answer ul:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: clamp(32px, 4vw, 56px); }
.faq-group h2 { display: flex; align-items: center; gap: 14px; }

/* ---- CTA band -------------------------------------------------------------------------- */
.cta-band { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(44px, 6vw, 80px); background: linear-gradient(120deg, #1a2150, #2a1d33 60%, #5a2a14); border-block: 1px solid var(--accent-line); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grid), var(--chartline) no-repeat right bottom / 520px auto; opacity: .85; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
.cta-band h2 { margin: 0 0 .3em; }
.cta-band p { margin: 0; color: #d6dcf3; max-width: 56ch; }

/* ---- docs / long text -------------------------------------------------------------------- */
.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.doc__toc { position: sticky; top: 96px; padding: 18px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r); font-size: .93rem; }
.doc__toc p { margin: 0 0 10px; font: 650 .8rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.doc__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.doc__toc li { counter-increment: toc; }
.doc__toc a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--text-muted); text-decoration: none; line-height: 1.35; }
.doc__toc a::before { content: counter(toc); flex: none; width: 22px; font-variant-numeric: tabular-nums; color: var(--text-dim); font-weight: 650; }
.doc__toc a:hover, .doc__toc a.is-active { background: var(--accent-tint); color: #fff; }
.doc__body { min-width: 0; max-width: 820px; }
.doc__body > section { padding-block: 6px 10px; scroll-margin-top: 100px; }
.doc__body > section + section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border-soft); }
.doc__body h2 { font-size: clamp(1.3rem, 1.15rem + .8vw, 1.75rem); display: flex; gap: 12px; align-items: baseline; }
.doc__body h2 .num { flex: none; font: 700 .95rem var(--f-display); color: var(--accent-ink); min-width: 1.6em; }
.doc__body p, .doc__body li { color: var(--text-muted); }
.doc__body li { margin-bottom: .45em; }
.doc__body strong { color: var(--text); }
.doc--wide { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .doc { grid-template-columns: minmax(0, 1fr); } .doc__toc { position: static; } }

.prose { max-width: 760px; }
.prose p, .prose li { color: var(--text-muted); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose strong { color: var(--text); }

.article-list { display: grid; gap: clamp(36px, 5vw, 64px); }
.article { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--border-soft); }
.article:first-child { border-top: 0; padding-top: 0; }
.article__aside { position: sticky; top: 100px; }
.article__aside .icon-badge { margin-bottom: 14px; }
.article__meta { font-size: .9rem; color: var(--text-dim); }
.article__body { max-width: 720px; }
.article__body p { color: var(--text-muted); }
@media (max-width: 860px) { .article { grid-template-columns: minmax(0, 1fr); } .article__aside { position: static; } }

/* ---- flow / diagram boxes ------------------------------------------------------------------- */
.flow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: flow; }
.flow li { position: relative; counter-increment: flow; padding: 18px 16px 18px 52px; background: var(--surface); border: 1px solid var(--border-soft); font-weight: 600; color: var(--text); font-size: .96rem; line-height: 1.35; }
.flow li::before { content: counter(flow); position: absolute; left: 14px; top: 16px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 700 .85rem var(--f-display); }
.flow li:first-child { border-radius: var(--r) 0 0 var(--r); }
.flow li:last-child { border-radius: 0 var(--r) var(--r) 0; }
.flow li small { display: block; margin-top: 4px; font-weight: 400; color: var(--text-muted); font-size: .87rem; }
@media (max-width: 760px) {
  .flow { grid-auto-flow: row; }
  .flow li:first-child { border-radius: var(--r) var(--r) 0 0; }
  .flow li:last-child { border-radius: 0 0 var(--r) var(--r); }
}

/* ---- vacancy list ------------------------------------------------------------------------------ */
.vacancies { display: grid; gap: 16px; }
.vacancy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: center; padding: 22px 24px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-md); transition: border-color .18s var(--ease), transform .18s var(--ease); }
.vacancy:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.vacancy h3 { margin: 0 0 .3em; }
.vacancy p { margin: 0 0 .7em; color: var(--text-muted); }
.vacancy__tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.vacancy__tags li { padding: 4px 11px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border-soft); font-size: .84rem; color: var(--text-muted); font-weight: 600; }
@media (max-width: 640px) { .vacancy { grid-template-columns: minmax(0, 1fr); } }

/* ---- contact ------------------------------------------------------------------------------------ */
.map-embed { border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; max-width: 100%; aspect-ratio: 16 / 9; min-height: 320px; background: var(--surface); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: invert(.92) hue-rotate(180deg) saturate(.7) brightness(.95); }

/* ---- illustrations in sections -------------------------------------------------------------------- */
.ill { width: 100%; height: auto; display: block; border-radius: var(--r-lg); }
.ill-frame { position: relative; border-radius: var(--r-lg); border: 1px solid var(--border-soft); background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; }
.ill-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(11, 16, 32, .5)); pointer-events: none; }

/* ---- footer ----------------------------------------------------------------------------------------- */
.site-footer { position: relative; isolation: isolate; margin-top: 0; padding: clamp(48px, 6vw, 80px) 0 28px; background: #080c1a; border-top: 1px solid var(--border-soft); }
.site-footer__bg { position: absolute; inset: 0; z-index: -1; background: var(--grid); mask-image: linear-gradient(180deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%); }
.footer-top { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 72px); }
.footer-brand__text { margin: 16px 0; color: var(--text-muted); font-size: .96rem; max-width: 38ch; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; color: var(--text-muted); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--accent-ink); }
.footer-contact a { color: var(--text); }
.footer-cols { display: grid; gap: 28px 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.footer-col--wide { grid-column: span 1; }
.footer-col__title { margin: 0 0 14px; font: 650 .8rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: .96rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-disclaimer { margin-top: clamp(32px, 4vw, 52px); padding: 22px 24px; background: rgba(18, 26, 53, .7); border: 1px solid var(--border-soft); border-radius: var(--r); font-size: .86rem; line-height: 1.65; color: var(--text-muted); }
.footer-disclaimer p:last-child { margin-bottom: 0; }
.footer-disclaimer strong { color: var(--text); }
.footer-disclaimer__marks { color: var(--text-dim); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 24px; font-size: .9rem; color: var(--text-dim); }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 1000px) { .footer-top { grid-template-columns: minmax(0, 1fr); } .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .footer-cols { grid-template-columns: minmax(0, 1fr); } }

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

/* ---- special offer ---------------------------------------------------------------------------------------- */
.offer-strip { background: linear-gradient(90deg, #6e2a0c, #a8431a 50%, #6e2a0c); color: #fff; font-size: .93rem; }
.offer-strip__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 32px; padding-block: 9px; }
.offer-strip p { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.offer-strip .icon { width: 18px; height: 18px; }
.cd { display: inline-flex; align-items: center; gap: 8px; }
.cd__seg { display: grid; justify-items: center; }
.cd__digits { display: inline-flex; gap: 4px; }
.cd__digit { display: grid; place-items: center; width: 40px; height: 54px; border-radius: 10px; background: #0b1230; border: 1px solid var(--accent-line); font: 700 1.9rem/1 var(--f-display); font-variant-numeric: tabular-nums; color: #fff; box-shadow: inset 0 -10px 18px rgba(232, 134, 74, .12); }
.cd__label { margin-top: 6px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.cd__sep { font: 700 1.6rem var(--f-display); color: var(--accent-ink); align-self: start; line-height: 54px; }
.so-modal { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 16px; }
.so-modal.is-open { display: grid; }
.so-modal__overlay { position: absolute; inset: 0; background: rgba(3, 5, 14, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.so-modal__card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: linear-gradient(180deg, #19234a, #101733); border: 1px solid var(--accent-line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(20px, 4vw, 34px); text-align: center; animation: so-in .24s var(--ease); }
@keyframes so-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.so-modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.so-modal__close:hover { border-color: var(--accent-ink); background: var(--surface-2); }
.so-modal__ill { width: min(300px, 70%); margin: 0 auto 8px; }
.so-modal h2 { margin-bottom: .35em; }
.so-modal p { color: var(--text-muted); }
.so-modal .cd { justify-content: center; margin: 14px 0 20px; }
.price-tag { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--accent-tint); border: 1px solid var(--accent-line); color: var(--accent-ink); font-weight: 700; }

/* ---- plans / pricing ------------------------------------------------------------------------------------------ */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 26px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.plan--featured { border-color: var(--accent-ink); background: linear-gradient(180deg, rgba(232, 134, 74, .12), var(--surface) 40%); }
.plan__name { margin: 0; font: 700 1.3rem var(--f-display); }
.plan__price { margin: 0; font: 700 clamp(1.6rem, 1.3rem + 1vw, 2.1rem) var(--f-display); letter-spacing: -.02em; }
.plan__price small { display: block; font: 500 .88rem var(--f-body); color: var(--text-dim); letter-spacing: 0; }
.plan ul { margin: 0; flex: 1; }

/* ---- 404 ----------------------------------------------------------------------------------------------------- */
.nf { min-height: 56vh; display: grid; align-items: center; }
.nf__code { font: 700 clamp(4rem, 12vw, 8rem)/1 var(--f-display); color: var(--accent-ink); letter-spacing: -.04em; margin: 0; }

/* ---- reduced motion ---------------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__bg { transform: none !important; }
  .cards--stagger > :nth-child(even) { transform: none; }
}
@media (max-width: 640px) {
  .cards--stagger > :nth-child(even) { transform: none; }
  .cards--stagger > .card:nth-child(even):hover { transform: translateY(-3px); }
  .btn-row .btn { flex: 1 1 auto; }
  .review__facts { grid-template-columns: 1fr 1fr; }
  .review__facts div:last-child { grid-column: span 2; }
}

/* calculator module skin: the section heading above replaces the widget's own title */
.calc-frame .calc-widget__title, .calc-frame .calc-widget__subtitle {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.calc-frame .calc-widget__cta {
  font-family: var(--f-body); font-size: 1.05rem; font-weight: 700; min-height: 54px; padding: 0 30px; cursor: pointer;
  transition: background-color .16s var(--ease), transform .16s var(--ease);
}
.calc-frame .calc-widget__cta:hover { transform: translateY(-2px); }
.calc-frame { font-family: var(--f-body); }
.calc-frame .calc-widget__value, .calc-frame .calc-widget__total, .calc-frame .calc-widget__stat-value { font-family: var(--f-display); }

/* exchange logos: real marks, one mono treatment */
.exch img { width: 100%; max-width: 150px; height: 34px; object-fit: contain; filter: brightness(0) invert(1); opacity: .75; transition: opacity .16s var(--ease); }
.exch li:hover img { opacity: 1; }
/* trust links under the form, one row */
.trust-links--row { flex-wrap: nowrap; margin-top: 14px; }
.trust-links--row .trust-link { flex: 1 1 0; min-width: 0; padding: 8px 10px 8px 8px; font-size: .9rem; }
.trust-links--row .trust-link br { display: none; }
/* mobile: title, then form, then everything else */
@media (max-width: 920px) {
  .hero__head, .page-hero__head { display: contents; }
  .hero__grid, .page-hero__grid { grid-template-areas: none; }
  .hero__grid > *, .page-hero__grid > *, .hero__head > *, .page-hero__head > * { grid-area: auto; grid-column: 1; order: 3; }
  .hero__head > .eyebrow, .page-hero__head > .eyebrow { order: 0; }
  .hero__head > h1, .page-hero__head > h1 { order: 1; }
  .hero__form, .page-hero__form { order: 2; }
}
@media (max-width: 640px) {
  .offer-strip { font-size: .72rem; }
  .offer-strip__inner { flex-wrap: nowrap; gap: 4px 8px; justify-content: space-between; padding-block: 7px; }
  .offer-strip p { gap: 4px; min-width: 0; line-height: 1.2; }
  .offer-strip .icon { width: 13px; height: 13px; }
}

/* generated section backgrounds (home): image under a dark overlay so text stays AA */
.sec--bg1 {
  background: linear-gradient(180deg, rgba(11, 16, 32, .5), rgba(11, 16, 32, .3) 50%, rgba(11, 16, 32, .6)), url("../images/bg-bloc-1.webp") center / cover no-repeat, var(--bg);
}
.sec--bg2 {
  background: linear-gradient(90deg, rgba(11, 16, 32, .88) 0%, rgba(11, 16, 32, .6) 55%, rgba(11, 16, 32, .35) 100%), linear-gradient(180deg, rgba(11, 16, 32, .5), transparent 25%, transparent 75%, rgba(11, 16, 32, .6)), url("../images/bg-bloc-2.webp") center / cover no-repeat, var(--bg-2);
}
@media (max-width: 760px) {
  .sec--bg2 { background: linear-gradient(180deg, rgba(11, 16, 32, .82), rgba(11, 16, 32, .7)), url("../images/bg-bloc-2.webp") 70% center / cover no-repeat, var(--bg-2); }
}
@media (min-width: 761px) { .cards--2.cards--stagger { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* plain inner heroes (docs pages): reuse the generated network background under an overlay */
.page-hero--plain {
  background: linear-gradient(90deg, rgba(11, 16, 32, .9) 0%, rgba(11, 16, 32, .7) 55%, rgba(11, 16, 32, .5) 100%), url("../images/bg-bloc-1.webp") center / cover no-repeat, var(--bg-2);
}

/* flow steps: wrap into a tidy grid instead of squeezing into one cramped row */
.flow { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); grid-auto-columns: auto; gap: 12px; }
.flow li, .flow li:first-child, .flow li:last-child { border-radius: var(--r); padding: 16px 16px 16px 54px; }
.flow li::before { top: 16px; }
