/* ==========================================================================
   Rendex Prime — REFERENCE-brandhouse (clean white friendly agency)
   Pure white base + soft warm-gray tints, coral #FF5C39 accent, grotesk
   headings in sentence case, rounded-full pill buttons/chips, cards 16-20px
   with soft diffuse shadows and 1px light borders. Replaces the previous
   neo-brutalist layer 1:1 (same class contract).
   Fonts: system grotesk stack approximating Space Grotesk / Hanken Grotesk
   ("Segoe UI", Arial) — no external font CDN.
   ========================================================================== */

:root {
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --tint: #F7F7F5;          /* soft warm-gray section band */
    --tint-2: #EFEFEB;        /* deeper band */
    --ink: #0B1220;
    --muted: #5B6472;
    --accent: #FF5C39;        /* coral */
    --accent-hover: #E84A28;
    --accent-ink: #B33418;    /* AA-safe coral for small text on light */
    --accent-tint: #FFE9E2;   /* soft coral wash */
    --accent-tint-2: #FFF4F0;
    --border: rgba(11, 18, 32, 0.10);
    --border-strong: rgba(11, 18, 32, 0.18);
    --hairline: rgba(11, 18, 32, 0.10);
    --footer-ink: #0B1220;

    --font-display: "Segoe UI", "Helvetica Neue", Arial, Helvetica, sans-serif;
    --font-body: "Segoe UI", "Helvetica Neue", Arial, Helvetica, sans-serif;

    --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.05), 0 4px 14px rgba(11, 18, 32, 0.06);
    --shadow-md: 0 2px 6px rgba(11, 18, 32, 0.05), 0 10px 30px rgba(11, 18, 32, 0.09);
    --shadow-lg: 0 6px 18px rgba(11, 18, 32, 0.08), 0 20px 52px rgba(11, 18, 32, 0.16);

    --radius-card: 18px;
    --radius-lg: 24px;
    --radius-input: 11px;
    --radius-pill: 999px;

    --container-w: 1200px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, svg, iframe, video, canvas { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0 0 0.9em; }
ul, ol { padding-left: 1.3em; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--ink); }

.skip-link {
    position: absolute; left: 12px; top: -64px; z-index: 200;
    background: var(--ink); color: #FFFFFF;
    border-radius: var(--radius-pill); padding: 10px 18px;
    font-size: 0.85rem; font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; color: #FFFFFF; text-decoration: none; }

/* ---------- layout primitives ---------- */
.container {
    width: 100%; max-width: var(--container-w); margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 40px);
}
.section { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.section--tint { background: var(--tint); }
.section--warm { background: var(--tint-2); }
.section-head { margin-bottom: clamp(26px, 4vw, 44px); max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.1;
    letter-spacing: -0.02em; margin: 0 0 0.4em; color: var(--ink);
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--accent-ink);
    background: var(--accent-tint);
    border-radius: var(--radius-pill);
    padding: 6px 14px; margin-bottom: 16px;
}
.eyebrow::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
}
.lead { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--muted); max-width: 68ch; }
.prose { max-width: 74ch; }
.prose h2, .prose h3 {
    font-family: var(--font-display); font-weight: 700;
    letter-spacing: -0.015em; line-height: 1.15;
}
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); margin-top: 1.4em; }
.prose h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-top: 1.2em; }
.note {
    font-size: 0.86rem; color: var(--muted); background: var(--tint);
    border: 1px solid var(--border); border-radius: 14px;
    padding: 12px 16px; max-width: 74ch;
}
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2.2rem; }
.text-center { text-align: center; }

/* small metadata label */
.micro {
    font-size: 12px; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--muted);
}

/* ---------- buttons (pill) ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.92rem; letter-spacing: -0.01em; line-height: 1;
    padding: 14px 26px;
    border: 1.5px solid transparent; border-radius: var(--radius-pill);
    cursor: pointer; text-decoration: none; white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--ink); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--tint); border-color: rgba(11, 18, 32, 0.32); }
.btn-block { display: flex; width: 100%; }
.header-cta-icon { display: inline-flex; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.header-inner {
    display: flex; align-items: center; gap: clamp(14px, 2.5vw, 34px);
    min-height: 74px; position: relative;
}
.brand { display: inline-flex; align-items: center; color: var(--ink); flex-shrink: 0; }
.brand svg { height: 38px; width: auto; display: block; }
.brand:hover { text-decoration: none; }

.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--ink); background: transparent;
    border: 0; border-radius: var(--radius-pill);
    padding: 10px 14px; cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-link:hover, .nav-link:focus-visible { background: var(--tint); color: var(--ink); }
.nav-link .icon { transition: transform 0.15s ease; color: var(--muted); }
.has-dropdown.is-open .nav-link { background: var(--tint); }
.has-dropdown.is-open .nav-link .icon { transform: rotate(180deg); }

.dropdown {
    position: absolute; top: 100%; left: 0; z-index: 110;
    min-width: 290px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 8px; visibility: hidden; opacity: 0; transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.has-dropdown.is-open .dropdown { visibility: visible; opacity: 1; transform: translateY(0); }
.dropdown::before {
    content: ""; position: absolute; top: -5px; left: 22px; width: 10px; height: 10px;
    background: var(--surface); border-left: 1px solid var(--border);
    border-top: 1px solid var(--border); transform: rotate(45deg); border-top-left-radius: 3px;
}
.dropdown-list { list-style: none; margin: 0; padding: 0; max-height: 70vh; overflow-y: auto; }
.dropdown-link {
    display: block; padding: 10px 12px; color: var(--ink); font-size: 0.9rem;
    border-radius: 10px; font-weight: 500;
}
.dropdown-link:hover, .dropdown-link:focus-visible {
    background: var(--accent-tint); color: var(--accent-ink); text-decoration: none;
}
.dropdown-link.is-active { background: var(--accent-tint); color: var(--accent-ink); font-weight: 700; }
.nav-item:last-child .dropdown { left: auto; right: 0; }
.nav-item:last-child .dropdown::before { left: auto; right: 22px; }

.btn-header { padding: 11px 20px; font-size: 0.86rem; }

.nav-burger {
    display: none; background: var(--surface); border: 1.5px solid var(--border-strong);
    border-radius: 12px; width: 46px; height: 46px; align-items: center;
    justify-content: center; cursor: pointer; color: var(--ink);
    transition: background-color 0.15s ease;
}
.nav-burger:hover { background: var(--tint); }
.burger-close { display: none; }
body.nav-open .burger-open { display: none; }
body.nav-open .burger-close { display: inline-flex; }

.mobile-nav { background: var(--surface); border-bottom: 1px solid var(--border); padding: 18px 0 26px; }
.mobile-nav__group + .mobile-nav__group { margin-top: 10px; }
.mobile-nav__heading {
    display: flex; width: 100%; align-items: center; justify-content: space-between;
    font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
    color: var(--ink); background: var(--tint);
    border: 0; border-radius: 12px; padding: 13px 16px; cursor: pointer;
}
.mobile-nav__list { list-style: none; margin: 4px 0 0; padding: 0 4px; }
.mobile-nav__link { display: block; padding: 10px 10px; color: var(--ink); font-size: 0.93rem; border-bottom: 1px solid var(--hairline); border-radius: 8px; }
.mobile-nav__link:hover { background: var(--accent-tint-2); text-decoration: none; }
.mobile-nav__link.is-active { font-weight: 700; background: var(--accent-tint-2); color: var(--accent-ink); }
.mobile-nav .btn { margin-top: 16px; }

/* language switcher (bilingual contract; monolingual never renders it) */
.lang-switch { display: inline-flex; gap: 4px; }
.lang-switch__list { display: inline-flex; list-style: none; gap: 4px; margin: 0; padding: 0; }
.lang-switch__link {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; padding: 6px 11px; border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-pill); color: var(--ink);
}
.lang-switch__link.is-active { background: var(--ink); color: #FFFFFF; }
.lang-switch__full { display: none; }
.lang-switch__code { display: inline; }
.lang-switch--footer { margin-top: 10px; }

/* ---------- hero (home) ---------- */
.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: radial-gradient(ellipse at 96% 20%, var(--accent-tint), transparent 52%),
        linear-gradient(155deg, var(--bg) 32%, var(--accent-tint-2));
    border-bottom: 1px solid var(--border);
}
.home-hero .hero__bg {
    position: absolute;
    inset: -60px 0 0;
    z-index: 0;
    pointer-events: none;
}
.home-hero .hero__bg::before {
    content: "";
    position: absolute;
    inset: 0 0 0 35%;
    background-image: linear-gradient(to right, rgba(179, 52, 24, .08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(179, 52, 24, .08) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(105deg, transparent 5%, #000 64%);
}
.home-hero .hero__bg::after {
    content: "";
    position: absolute;
    top: 18px;
    right: -14vw;
    width: clamp(380px, 56vw, 850px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 43px, rgba(255, 92, 57, .2) 44px 45px, transparent 46px 66px);
    mask-image: radial-gradient(circle, transparent 12%, #000 38%, #000 62%, transparent 72%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    grid-template-areas: "headline form" "copy form";
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: clamp(16px, 2vw, 24px) clamp(30px, 6vw, 84px);
    padding-block: clamp(42px, 5.5vw, 78px);
}
.hero-intro { grid-area: headline; min-width: 0; }
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px;
    margin: 0 0 15px;
    border: 1px solid rgba(179, 52, 24, .16);
    border-radius: var(--radius-pill);
    background: var(--accent-tint-2);
    color: var(--accent-ink);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hero-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-headline {
    margin: 0;
    font-size: clamp(2.35rem, 4.25vw, 4.45rem);
    line-height: 1.02;
    letter-spacing: -.046em;
    text-wrap: balance;
}
.hero-promise { display: block; }
/* coral underline on the key word (drawn by hero.js) */
.hero-bar { position: relative; display: inline-block; padding: 0 0.04em 0.1em; white-space: nowrap; }
.hero-bar__bg {
    position: absolute; left: -0.04em; right: -0.04em; bottom: 0; height: 0.16em;
    background: var(--accent); border-radius: var(--radius-pill);
    transform-origin: 0 50%; z-index: 0;
}
.hero-bar__word { position: relative; z-index: 1; }
.hero-copy { grid-area: copy; min-width: 0; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.14rem); color: var(--muted); max-width: 50ch; }
.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    max-width: 540px;
    margin: 22px 0 10px;
    padding: 1px;
    border-radius: var(--radius-input);
    background: var(--border);
    overflow: hidden;
}
.hero-facts > div { display: flex; flex-direction: column-reverse; gap: 3px; padding: clamp(9px, 1.2vw, 16px); background: var(--surface); }
.hero-facts dt { font-size: clamp(.7rem, 1.2vw, .83rem); line-height: 1.2; color: var(--muted); }
.hero-facts dd { margin: 0; font-size: clamp(1rem, 1.65vw, 1.32rem); font-weight: 750; line-height: 1.2; color: var(--accent-ink); white-space: nowrap; }
.hero-risk { margin: 0 0 20px; color: var(--muted); font-size: .8rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 20px 0 18px; }
.stat-chip {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: -0.005em;
    background: var(--tint); color: var(--ink);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 7px 14px;
}
.stat-chip::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
}
.offices {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    font-size: 0.86rem; color: var(--muted); margin-bottom: 20px;
}
.flag-chip {
    display: inline-flex; align-items: center; gap: 8px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    padding: 5px 14px 5px 6px; color: var(--ink); font-weight: 600; font-size: 0.84rem;
}
.flag-chip svg { display: block; border-radius: 6px; }
.flag-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; display: inline-block; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-link {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
    padding: 7px 18px 7px 8px; color: var(--ink);
    font-size: 0.86rem; font-weight: 600;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.trust-link:hover {
    text-decoration: none; transform: translateY(-1px);
    box-shadow: var(--shadow-md); border-color: rgba(255, 92, 57, 0.4);
}
.trust-link .icon-badge { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; }
.hero-form { grid-area: form; align-self: center; width: 100%; min-width: 0; }
.home-hero .hero-form {
    border-top: 4px solid var(--accent);
    box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255, 92, 57, .07);
    padding: clamp(20px, 2.8vw, 38px);
}
.hero-form .form-block { margin: 0; }
.hero-form .form-block__heading {
    display: block;
    margin: 0 0 6px;
    padding: 0;
    background: transparent;
    color: var(--ink);
    font-size: clamp(1.48rem, 2.2vw, 1.92rem);
    line-height: 1.12;
    text-transform: none;
    letter-spacing: -.035em;
}
.hero-form .form-block__intro { margin-bottom: 18px; }
.hero-form .form-block form input[type="submit"] { min-height: 52px; box-shadow: 0 7px 18px rgba(255, 92, 57, .22); }

/* ---------- forms ---------- */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: 0 8px 30px rgba(11, 18, 32, 0.08);
    padding: clamp(18px, 2.5vw, 28px);
}
.form-block { position: relative; z-index: 1; }
.form-block--extra { margin-top: 0; }
.form-block__heading {
    font-size: 0.76rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--accent-ink);
    background: var(--accent-tint);
    border-radius: var(--radius-pill);
    display: inline-block; padding: 6px 14px; margin: 0 0 14px;
}
.form-block__intro { font-size: 0.93rem; color: var(--muted); margin-bottom: 12px; }
/* coral pill submit (overrides the formFactory base at higher specificity) */
.form-block form input[type="submit"] {
    height: 50px; width: 100%;
    background-color: var(--accent);
    color: var(--ink);
    font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
    letter-spacing: -0.01em;
    border: 0; border-radius: var(--radius-pill);
    padding: 0 20px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.form-block form input[type="submit"]:hover {
    background-color: var(--accent-hover); color: var(--ink);
    transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.form-note {
    font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--hairline);
    border-radius: 0; padding-top: 10px; margin: 12px 0 0;
}
.form-legal { font-size: 0.78rem; color: var(--muted); margin: 8px 0 0; }
.form-legal a { color: var(--accent-ink); font-weight: 600; }

/* ---------- home: exchanges ---------- */
.exchanges { padding-block: clamp(28px, 4vw, 52px); }
.exchanges__kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.exchanges__heading { font-size: clamp(1.5rem, 2.8vw, 2.45rem); line-height: 1.12; margin: 0; text-wrap: balance; }
.exchanges__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; color: var(--ink); counter-reset: exchange; }
.exchanges__list li { counter-increment: exchange; min-width: 0; margin: 0; padding: clamp(12px, 1.35vw, 20px); font-size: clamp(.86rem, 1.2vw, 1rem); font-weight: 700; overflow-wrap: anywhere; }
.exchanges__head { margin-bottom: clamp(16px, 2vw, 24px); }
.exchanges { background: var(--bg); }
.exchanges__inner { background: var(--accent-tint-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(20px, 3.2vw, 40px); }
.exchanges__kicker { color: var(--accent-ink); background: var(--accent-tint); border-radius: var(--radius-pill); padding: 5px 11px; }
.exchanges__list { gap: 1px; padding: 1px; background: var(--border); border-radius: var(--radius-card); overflow: hidden; }
.exchanges__list li { display: grid; gap: 9px; background: var(--surface); font-family: var(--font-display); }
.exchanges__list li::before { content: counter(exchange, decimal-leading-zero) / ""; color: var(--accent-ink); font-size: 1.22rem; line-height: 1; letter-spacing: -.04em; }
@media (max-width: 760px) { .exchanges__list { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 510px) {
    .exchanges__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .exchanges__list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- home: calculator band ---------- */
.calc-section { position: relative; background: var(--bg); }
.calc-frame {
    position: relative; border: 1px solid var(--border); background: var(--surface);
    border-radius: 20px; box-shadow: var(--shadow-md);
    padding: clamp(18px, 3vw, 34px); overflow: hidden;
}
.calc-motif { position: absolute; right: -6px; bottom: -10px; width: 380px; height: 150px; opacity: 0.5; pointer-events: none; }
.calc-motif rect { rx: 10px; stroke-width: 2px; }
.calc-motif rect:nth-of-type(odd) { fill: #FFFFFF; stroke: rgba(11, 18, 32, 0.20); }
.calc-motif rect:nth-of-type(even) { fill: #FFDCD1; stroke: rgba(11, 18, 32, 0.20); }
.calc-frame .section-head { position: relative; }

.calc-section .calc-widget {
    /* The calculator reads this color when painting the filled part of the sliders. */
    --calc-accent: var(--accent) !important;
    --calc-skeleton-bg: var(--accent-tint);
    position: relative;
    min-width: 0;
    padding: clamp(16px, 2.5vw, 30px);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--accent-tint-2);
    text-align: left;
}

.calc-section .calc-widget__title {
    margin: 0 0 6px;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.calc-section .calc-widget__subtitle {
    margin: 0 0 22px;
    font-size: .94rem;
}

.calc-section .calc-widget__wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    margin: 0;
}

.calc-section .calc-widget__controls { gap: 12px; }

.calc-section .calc-widget__control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 8px 12px;
    padding: clamp(12px, 1.7vw, 22px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-input);
    background: var(--surface);
}

.calc-section .calc-widget__label {
    font-size: .9rem;
    font-weight: 600;
}

.calc-section .calc-widget__value {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-variant-numeric: tabular-nums;
    text-align: end;
}

.calc-section .calc-widget__range,
.calc-section .calc-widget__minmax { grid-column: 1 / -1; }

.calc-section .calc-widget__range {
    min-width: 0;
    height: 26px;
    margin: 0;
    padding-block: 9px;
    background-clip: content-box !important;
    border-radius: 999px;
    cursor: pointer;
}

.calc-section .calc-widget__minmax {
    gap: 8px;
    margin: 0;
    font-size: .78rem;
}

.calc-section .calc-widget__result {
    display: grid;
    align-content: center;
    gap: clamp(14px, 2.5vw, 26px);
    padding: clamp(14px, 2.1vw, 26px);
    border-color: rgba(179, 52, 24, .28);
    border-radius: var(--radius-input);
    background: linear-gradient(150deg, var(--accent-tint), transparent 72%), var(--surface);
    backdrop-filter: none;
}

.calc-section .calc-widget__result-head {
    gap: 8px;
    margin: 0;
    text-align: left;
}

.calc-section .calc-widget__result-title,
.calc-section .calc-widget__stat-label {
    font: 600 .75rem/1.35 var(--font-mono);
    letter-spacing: .04em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.calc-section .calc-widget__total {
    color: var(--accent-ink);
    font-size: clamp(1.9rem, 4vw, 3.5rem);
    line-height: 1.08;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.calc-section .calc-widget__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.calc-section .calc-widget__stat {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    background: var(--surface);
}

.calc-section .calc-widget__stat-value {
    font-size: clamp(.98rem, 1.9vw, 1.4rem);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.calc-section .calc-widget__disclaimer {
    margin: 16px 0 0;
    font-size: .84rem;
}

.calc-section .calc-widget__cta {
    justify-content: center;
    min-height: 44px;
    margin: 18px 0 0 auto;
    padding: 10px 20px;
    font: 700 .9rem/1.3 var(--font-body);
}

.calc-section .calc-widget__range:focus-visible,
.calc-section .calc-widget__cta:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.calc-section .calc-widget[data-calc-skeleton] {
    --calc-skeleton-height: 242px;
}

.calc-section .calc-widget[data-calc-skeleton] .calc-widget__control {
    height: calc((var(--calc-skeleton-height) - 12px) / 2);
}

.calc-section .calc-widget__result-title, .calc-section .calc-widget__stat-label { color: var(--muted); }
.calc-section .calc-widget__stat-value { color: var(--ink); }
.calc-section .calc-motif { top: 8px; right: 8px; bottom: auto; width: min(300px, 28%); opacity: .4; }
@media (max-width: 760px) { .calc-section .calc-motif { opacity: .18; } }

@media (max-width: 760px) {
    .calc-section .calc-widget__wrapper { grid-template-columns: minmax(0, 1fr); }
    .calc-section .calc-widget__stats { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
    .calc-section .calc-widget__stat-label { font-size: clamp(.6rem, 2.7vw, .75rem); letter-spacing: .015em; }
    .calc-section .calc-widget__cta { width: 100%; }
}
@media (max-width: 390px) {
    .calc-section .calc-widget { padding: 12px; }
    .calc-section .calc-widget__control { gap: 8px; }
    .calc-section .calc-widget__stat { padding: 8px; }
}

/* ---------- home: steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
    padding: 24px; position: relative;
    transition: transform 0.16s ease, box-shadow 0.16s 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; background: var(--accent);
    border-radius: 50%;
    font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
    color: var(--ink); margin-bottom: 14px;
}
.step h3 {
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.06rem; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 8px;
}
.step p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ---------- home: comparison ---------- */
.compare-wrap {
    border: 1px solid var(--border); border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm); background: var(--surface);
    overflow-x: auto;
}
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--hairline); }
.compare thead th {
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.92rem; letter-spacing: -0.01em;
    background: var(--tint); border-bottom: 1px solid var(--border-strong);
}
.compare thead th.col-us { background: var(--accent); color: var(--ink); }
.compare thead th.col-them { color: var(--muted); }
.compare tbody tr:nth-child(even) td { background: #FAFAF8; }
.compare td.col-them { color: var(--muted); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 600; }
.col-us { background: var(--accent-tint-2); }
.yes { color: var(--accent-ink); font-weight: 800; font-size: 1.05rem; }
.no { color: rgba(11, 18, 32, 0.32); font-weight: 800; font-size: 1.05rem; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
    padding: 24px;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
a.card:hover, .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 {
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.04rem; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 8px;
}
.card p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.icon-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; background: var(--accent-tint);
    border-radius: 14px; color: var(--accent-hover); flex-shrink: 0;
}
.icon-badge--navy { background: #E9EBEF; color: #3D4859; }
.card .icon-badge { margin-bottom: 14px; }

/* ---------- home: reviews ---------- */
.review {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
    padding: 22px; position: relative;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.review:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.review__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.review__ava {
    width: 64px; height: 64px; flex-shrink: 0;
    border: 2px solid var(--accent-tint);
    border-radius: 50%;
    object-fit: cover; display: block; background: var(--tint);
}
.review__name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; margin: 0; color: var(--accent-ink); }
.review__role { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 2px 0 0; }
.review__stars { display: inline-flex; gap: 2px; color: var(--accent-hover); margin-left: auto; }
.review__stars .icon { fill: currentColor; }
.review p:last-child { margin-bottom: 0; }
.review__stats { display: flex; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--hairline); margin-top: 14px; padding-top: 12px; }
.review__stat { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.review__stat strong { color: var(--accent-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.reviews-note {
    margin-top: 22px; font-size: 0.82rem; color: var(--muted);
    border: 1px solid var(--border); border-radius: 14px;
    background: var(--tint); padding: 12px 16px;
}

/* ---------- home: company block ---------- */
.company-grid {
    display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 4vw, 48px); align-items: start;
}
.company-facts {
    border: 1px solid var(--border); background: var(--surface);
    border-radius: var(--radius-card); box-shadow: var(--shadow-sm); overflow: hidden;
}
.company-facts__row { display: grid; grid-template-columns: 150px 1fr; border-bottom: 1px solid var(--hairline); }
.company-facts__row:last-child { border-bottom: 0; }
.company-facts__row dt {
    font-size: 0.74rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.07em; color: var(--muted); padding: 13px 16px;
    background: #FAFAF8;
}
.company-facts__row dd { padding: 13px 16px; margin: 0; font-size: 0.92rem; }
.company-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.company-link {
    display: flex; flex-direction: column; gap: 12px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
    padding: 18px; color: var(--ink);
    font-size: 0.88rem; font-weight: 600;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.company-link:hover {
    text-decoration: none; transform: translateY(-2px);
    box-shadow: var(--shadow-md); border-color: rgba(255, 92, 57, 0.4);
}

/* ---------- home: FAQ ---------- */
.faq { max-width: 860px; }
.faq-item {
    border: 1px solid var(--border); background: var(--surface);
    border-radius: 16px; box-shadow: var(--shadow-sm);
    transition: box-shadow 0.16s ease;
}
.faq-item.is-open { box-shadow: var(--shadow-md); }
.faq-item + .faq-item { margin-top: 12px; }
.faq-q {
    display: flex; width: 100%; align-items: center; gap: 14px;
    background: transparent; border: 0; cursor: pointer; text-align: left;
    padding: 17px 20px; color: var(--ink); border-radius: 16px;
    font-family: var(--font-display); font-weight: 700;
    font-size: 1rem; line-height: 1.3; letter-spacing: -0.01em;
}
.faq-q:hover { background: var(--accent-tint-2); }
.faq-q__mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; flex-shrink: 0;
    background: var(--accent-tint); border-radius: 50%;
    font-size: 17px; font-weight: 700; color: var(--accent-ink);
    transition: transform 0.16s ease;
}
.faq-item.is-open .faq-q__mark { transform: rotate(45deg); background: var(--accent); color: var(--ink); }
.faq-a { padding: 0 20px 18px 62px; color: var(--muted); }
.faq-a p { margin: 0; }
.faq-a a { font-weight: 600; }

/* ---------- inner pages ---------- */
.page-hero {
    position: relative; background:
        radial-gradient(560px 380px at 88% 0%, rgba(255, 92, 57, 0.07), transparent 70%),
        linear-gradient(180deg, #FBFBF9 0%, #FFFFFF 100%);
    border-bottom: 1px solid var(--border); overflow: hidden;
}
.page-hero::after {
    content: ""; position: absolute; top: -30px; right: -60px; width: 340px; height: 340px;
    background-image: radial-gradient(rgba(255, 92, 57, 0.30) 1.6px, transparent 1.7px);
    background-size: 13px 13px;
    -webkit-mask-image: radial-gradient(#000 35%, transparent 72%);
    mask-image: radial-gradient(#000 35%, transparent 72%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__grid {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: clamp(24px, 4vw, 56px); align-items: start;
    padding: clamp(38px, 5vw, 68px) 0 clamp(44px, 5vw, 72px);
}
.page-hero h1 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.06;
    letter-spacing: -0.025em; margin: 0 0 0.45em; max-width: 22ch;
}
.page-hero .lead { font-size: clamp(0.98rem, 1.5vw, 1.12rem); }
.page-hero--plain .page-hero__grid { grid-template-columns: 1fr; }

.breadcrumbs { border-bottom: 1px solid var(--border); background: var(--tint); }
.breadcrumbs ol {
    display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 10px 0;
    font-size: 0.78rem; font-weight: 600;
    color: var(--muted);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--accent); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }

.table-wrap {
    border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-sm); background: var(--surface);
    overflow-x: auto; max-width: 100%;
    margin: 18px 0 26px;
}
.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th {
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; text-align: left; color: var(--muted);
    background: var(--tint); padding: 12px 14px; border-bottom: 1px solid var(--border-strong);
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--hairline); font-size: 0.92rem; vertical-align: top; }
.table tbody tr:nth-child(even) td { background: #FAFAF8; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td strong { font-variant-numeric: tabular-nums; }

.map-embed {
    position: relative; width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    background: var(--tint); max-width: 900px; aspect-ratio: 16 / 9;
    min-height: 320px; margin: 18px 0 26px; overflow: hidden;
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 560px) {
    .map-embed { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- special offer ---------- */
.offer-strip { background: var(--accent); color: var(--ink); border-bottom: 1px solid rgba(11, 18, 32, 0.12); }
.offer-strip .container { display: flex; flex-wrap: wrap; gap: 10px 34px; padding-top: 12px; padding-bottom: 12px; }
.offer-strip .stat {
    font-size: 0.82rem; font-weight: 500; color: var(--ink);
}
.offer-strip .stat strong { color: var(--ink); font-weight: 800; }
.offer-band {
    background: var(--footer-ink); color: #FFFFFF;
    border-radius: 28px 28px 0 0;
}
.offer-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.offer-band h2 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.08;
    letter-spacing: -0.02em; margin: 0;
}
.offer-band p { color: rgba(255, 255, 255, 0.75); margin: 8px 0 0; max-width: 52ch; }
.countdown { display: inline-flex; gap: 10px; align-items: baseline; }
.countdown__seg {
    font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.5rem);
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 14px; box-shadow: var(--shadow-sm);
    padding: 8px 14px; min-width: 3.2ch; text-align: center;
    font-variant-numeric: tabular-nums;
}
.countdown__sep { font-size: 1.8rem; font-weight: 700; color: var(--accent); }

.modal-overlay {
    position: fixed; inset: 0; z-index: 300; display: none;
    background: rgba(11, 18, 32, 0.55);
    align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal-card {
    position: relative; width: min(480px, 100%); background: var(--surface);
    border: 1px solid var(--border); border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: clamp(22px, 4vw, 34px); text-align: center;
}
.modal-card h3 {
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 12px;
}
.modal-card img, .modal-card svg { margin: 0 auto 14px; display: block; }
.modal-card p { color: var(--muted); font-size: 0.95rem; }
.modal-close {
    position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: 50%;
    font-size: 18px; font-weight: 700; color: var(--ink); cursor: pointer;
    transition: background-color 0.15s ease;
}
.modal-close:hover { background: var(--accent-tint); }
body.modal-open { overflow: hidden; }

/* ---------- footer (ink-dark base, rounded top, coral accents) ---------- */
.site-footer {
    background: var(--footer-ink); color: #FFFFFF;
    border-radius: 28px 28px 0 0; margin-top: 4px;
}
.site-footer :focus-visible { outline-color: #FFFFFF; }
.footer-top {
    display: grid; grid-template-columns: minmax(260px, 1.2fr) repeat(4, minmax(150px, 1fr));
    gap: clamp(22px, 3.5vw, 40px); padding: clamp(44px, 5vw, 68px) 0 34px;
}
.footer-brand .brand svg { height: 34px; }
.footer-mission { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; margin: 16px 0; max-width: 34ch; }
.footer-contact { font-size: 0.88rem; color: rgba(255, 255, 255, 0.80); }
.footer-contact .icon { color: var(--accent); vertical-align: -3px; margin-right: 6px; }
.footer-contact a { color: var(--accent); }
.footer-col h3 {
    font-size: 0.76rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--accent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-bottom: 8px; margin-bottom: 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: rgba(255, 255, 255, 0.78); font-size: 0.86rem; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 20px 0;
}
.footer-disclaimer h3 {
    font-size: 0.76rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--accent); margin-bottom: 8px;
}
.footer-disclaimer p { color: rgba(255, 255, 255, 0.60); font-size: 0.78rem; line-height: 1.6; max-width: 110ch; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 16px 0 22px; }
.footer-bottom p { margin: 0; font-size: 0.78rem; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.55); }

/* ---------- reveal (scroll) ---------- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
    [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; }
    [data-reveal].is-revealed { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
    .site-nav, .btn-header { display: none; }
    .nav-burger { display: inline-flex; }
    .header-inner { justify-content: space-between; }
    .footer-top { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .company-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "headline" "form" "copy";
        grid-template-rows: auto;
        gap: 24px;
        padding-block: 36px 44px;
    }
    .hero-headline { font-size: clamp(2rem, 6vw, 3.35rem); }
    .hero-kicker { display: none; }
    .home-hero .hero-form { max-width: 580px; }
    .home-hero .hero__bg::before { inset-inline-start: 15%; opacity: .7; }
    .home-hero .hero__bg::after { top: 0; right: -200px; opacity: .65; }
    .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .faq-a { padding-left: 20px; }
    .company-facts__row { grid-template-columns: 1fr; }
    .company-facts__row dt { border-bottom: 0; background: transparent; padding-bottom: 4px; }
}
@media (max-width: 560px) {
    .brand svg { height: 32px; }
    .steps, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .compare th, .compare td { padding: 10px 10px; font-size: 0.85rem; }
    .offer-strip .container { gap: 6px 18px; }
    .hero-trust { flex-direction: column; align-items: stretch; }
    .trust-link { justify-content: flex-start; }
    .countdown__seg { font-size: 1.35rem; padding: 6px 10px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
    .btn:hover, .card:hover, .step:hover, .trust-link:hover, .company-link:hover, .review:hover { transform: none; }
    .hero__bg { transform: none !important; }
}

/* print: white base */
@media print {
    .site-header, .site-footer, .nav-burger, .offer-strip, .modal-overlay { display: none !important; }
    body { background: #FFFFFF; }
}

/* widest pt-BR CTA labels must still fit pill buttons at 375px */
@media (max-width: 480px) {
    .btn { padding: 12px 16px; font-size: 0.82rem; }
}

/* Widgets and homepage layout */
.tv-ticker-wrapper {
    padding-top: 0 !important;
    height: 58px !important;
}
.iti__selected-country, .iti__selected-dial-code {
    color: rgb(24, 33, 47) !important;
}
.iti .iti__selected-country { background: #f2f5fa !important; }
.reviews-grid, .reviews {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 24px);
}
.review { min-width: 0; }
.review__head { flex-wrap: wrap; }
img.review__ava { object-fit: cover; flex: none; border-radius: 50%; }
@media (max-width: 960px) {
    .reviews-grid, .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
    .reviews-grid, .reviews { grid-template-columns: minmax(0, 1fr); }
}

