/* ============================================================================
   Ebinex Trader — site stylesheet
   One accent, one dark theme, one radius and shadow scale (design.md §1).
   Sections: tokens · base · layout primitives · buttons, chips, cards · header and
   navigation · hero · forms · calculator · content blocks · prose and tables ·
   footer · dialog · motion. Hand-written; no framework.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
    --bg: #0b0d10;
    --surface: #12151a;
    --surface-2: #191d24;
    --surface-3: #20262e;
    --border: #262c35;
    --border-strong: #353d48;
    --text: #eef1f4;
    --muted: #a7b0bc;
    --accent: #c2ef39;
    --accent-hover: #b3e22c;
    --accent-ink: #0b0d10;
    --accent-tint: rgba(194, 239, 57, 0.10);
    --accent-tint-strong: rgba(194, 239, 57, 0.24);
    --danger: #ff8a8a;

    --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", "Segoe UI Mono", Menlo, Consolas, "Liberation Mono", monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(3, 6, 12, 0.55);
    --shadow-md: 0 1px 2px rgba(3, 6, 12, 0.6), 0 14px 34px rgba(3, 6, 12, 0.45);
    --shadow-lg: 0 2px 6px rgba(3, 6, 12, 0.6), 0 28px 70px rgba(3, 6, 12, 0.6);
    --glow: 0 0 0 1px rgba(194, 239, 57, 0.3), 0 10px 30px rgba(194, 239, 57, 0.16);

    --pad: clamp(16px, 4vw, 40px);
    --header-h: 72px;
    --ease: cubic-bezier(0.2, 0.6, 0.2, 1);

    --grid-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M48 0H0v48' fill='none' stroke='%23ffffff' stroke-opacity='0.045' stroke-width='1'/%3E%3C/svg%3E");
    --mesh-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23c2ef39' stroke-opacity='0.07'%3E%3Cpath d='M0 120 40 80 80 96 120 48 160 64'/%3E%3Cpath d='M0 60 40 40 80 64 120 20 160 36'/%3E%3C/g%3E%3Cg fill='%23c2ef39' fill-opacity='0.16'%3E%3Ccircle cx='40' cy='80' r='2'/%3E%3Ccircle cx='80' cy='96' r='2'/%3E%3Ccircle cx='120' cy='48' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------- base -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}
img, svg, iframe, video, canvas { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(34px, 1.3vw + 26px, 56px); line-height: 1.04; letter-spacing: -0.022em; }
h2 { font-size: clamp(26px, 1vw + 20px, 38px); }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.icon { flex-shrink: 0; vertical-align: middle; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; 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: -100px; z-index: 100; padding: 12px 18px; background: var(--accent); color: var(--accent-ink); font-weight: 700; border-radius: var(--radius-sm); text-decoration: none; transition: top 0.16s var(--ease); }
.skip-link:focus { top: 12px; color: var(--accent-ink); }

/* --------------------------------------------------------------- layout -- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(56px, 7vw, 96px); position: relative; }
.section--tight { padding-block: clamp(32px, 4vw, 48px); }
.section--band { background: var(--surface); }
.section--tint { background: radial-gradient(60% 80% at 80% 0%, var(--accent-tint), transparent 70%), var(--surface); }
.section--texture { background-image: var(--grid-texture); }
.section--mesh { background-image: var(--mesh-texture), var(--grid-texture); background-size: 320px 320px, 48px 48px; }
.section--edge { border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--wide { max-width: 920px; }
.section-foot { margin: 28px 0 0; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 12.5px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); }
.lead { font-size: clamp(17px, 0.4vw + 16px, 19px); line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }
.m-0 { margin: 0; }
.w-760 { max-width: 760px; }
.w-560 { max-width: 560px; }
.doc-date { font-size: 14px; margin: 0; }
.card h2.risk-card-title { font-size: 22px; margin-bottom: 12px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c6 { grid-column: span 6; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }

/* ----------------------------------------------- buttons, chips, cards -- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--radius-md); font: 600 16px/1 var(--font-sans); text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.16s var(--ease); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); transform: translateY(-1px); box-shadow: var(--glow); }
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); transform: translateY(-1px); }
.btn-secondary:active { transform: translateY(0); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; padding-block: 4px; }
.text-link:hover { text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 10px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 600; color: var(--text); }
.chip .icon { color: var(--accent); }

.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(22px, 2.4vw, 30px); }
.card--lift { transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease); }
.card--lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: 15.5px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover h3 { color: var(--accent); }
.card-note { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }
.card-note .icon { color: var(--accent); margin-top: 2px; }

.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--accent-tint); color: var(--accent); flex-shrink: 0; }
.icon-badge--sm { width: 44px; height: 44px; }
.icon-badge--solid { background: var(--accent); color: var(--accent-ink); }
.icon-badge--outline { background: transparent; border: 1px solid var(--accent-tint-strong); }
.card .icon-badge { margin-bottom: 18px; }

.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 22px 26px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.banner p { margin: 0; color: var(--accent-ink); font-weight: 600; }
.banner .btn-secondary { border-color: rgba(11, 13, 16, 0.5); color: var(--accent-ink); }
.banner .btn-secondary:hover { background: rgba(11, 13, 16, 0.12); border-color: var(--accent-ink); color: var(--accent-ink); }

/* ------------------------------------------------------- header and nav -- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(11, 13, 16, 0.88); -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); border-bottom: 1px solid var(--border); transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease); }
.site-header.is-scrolled { box-shadow: var(--shadow-md); background: rgba(11, 13, 16, 0.97); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 6px; }
.brand-logo { display: block; width: 150px; height: 34px; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.nav { position: relative; }
.nav-list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; }
.nav-trigger { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 13px; background: none; border: 0; border-radius: var(--radius-sm); color: var(--text); font: 500 15px/1 var(--font-sans); cursor: pointer; transition: color 0.16s, background-color 0.16s; }
.nav-trigger:hover, .nav-item.is-current > .nav-trigger { color: var(--accent); background: var(--accent-tint); }
.nav-caret { color: var(--muted); transition: transform 0.16s var(--ease); }
.nav-item.is-open > .nav-trigger .nav-caret { transform: rotate(180deg); color: var(--accent); }
.nav-submenu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 70; min-width: 280px; margin: 0; padding: 8px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translate(var(--nav-shift, 0px), 4px); transition: opacity 0.16s var(--ease), transform 0.16s var(--ease); }
.nav-submenu::before { content: ""; position: absolute; top: -6px; left: 22px; width: 11px; height: 11px; background: var(--surface); border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg); }
.nav-item:last-child > .nav-submenu::before { left: auto; right: 22px; }
.nav-item:hover > .nav-submenu, .nav-item:focus-within > .nav-submenu, .nav-item.is-open > .nav-submenu { opacity: 1; pointer-events: auto; transform: translate(var(--nav-shift, 0px), 0); }
.nav-item.is-escaped:not(.is-open):hover > .nav-submenu { opacity: 0; pointer-events: none; }
.nav-subitem { margin: 0; }
.nav-link { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color 0.14s, color 0.14s; }
.nav-link:hover, .nav-link:focus-visible, .nav-link[aria-current="page"] { background: var(--accent-tint); color: var(--accent); }
.nav-icon { color: var(--accent); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: none; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text); cursor: pointer; }
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle-open, .nav-toggle-close { display: none; line-height: 0; }
.nav-toggle-close, html.nav-open .nav-toggle-open { display: none; }
html.nav-open .nav-toggle-close { display: block; }

@media (max-width: 1023.98px) {
    .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0; padding: 8px var(--pad) 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
    html.nav-open .nav { display: block; }
    html.nav-open body { overflow: hidden; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-item { border-bottom: 1px solid var(--border); }
    .nav-trigger { width: 100%; justify-content: space-between; height: 54px; padding: 0 6px; font-size: 16px; border-radius: 0; }
    .nav-trigger:hover { background: transparent; }
    .nav-submenu { position: static; min-width: 0; padding: 0 0 10px 10px; background: transparent; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
    .nav-submenu::before { display: none; }
    .nav-item:hover > .nav-submenu, .nav-item:focus-within > .nav-submenu { display: none; }
    .nav-item.is-open > .nav-submenu { display: block; opacity: 1; visibility: visible; transform: none; }
    .nav-link { min-height: 46px; font-size: 16px; }
    .nav-toggle { display: inline-flex; }
    .nav-toggle-open { display: block; }
    .header-cta { min-height: 42px; }
}
@media (max-width: 379.98px) {
    .brand-logo { width: 34px; height: 34px; object-fit: cover; object-position: left; }
}

/* ----------------------------------------------------------- breadcrumbs -- */
.breadcrumbs { background: var(--surface); border-bottom: 1px solid var(--border); font-size: 13.5px; }
.breadcrumbs-list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 10px 0; list-style: none; color: var(--muted); }
.breadcrumbs-item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs-item a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; padding-block: 5px; }
.breadcrumbs-item a:hover { color: var(--accent); }
.breadcrumbs-item[aria-current] { color: var(--text); }
.breadcrumbs-sep { color: var(--border-strong); }

/* ------------------------------------------------------------------ hero -- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); }
.hero-field {
    position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background-image:
        radial-gradient(ellipse at 70% 100%, rgba(149, 193, 36, .23), transparent 56%),
        radial-gradient(ellipse at 0% 4%, rgba(33, 87, 89, .43), transparent 58%),
        var(--grid-texture),
        linear-gradient(130deg, #131f22, #080c12 72%);
}
.hero-parallax { position: absolute; inset: 0; will-change: transform; }
.hero-parallax svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "panel" "rest"; row-gap: 28px; padding-inline: var(--pad); padding-block: clamp(36px, 6vw, 56px) clamp(44px, 6vw, 64px); }
.hero-title { grid-area: title; max-width: 760px; margin: 0; }
.hero-title .hero-accent { color: var(--accent); }
.hero-panel { grid-area: panel; display: flex; align-items: center; width: 100%; max-width: 560px; }
.hero-form { width: 100%; }
.hero-rest { grid-area: rest; max-width: 760px; display: grid; gap: 24px; }
.hero-lead { font-size: 18px; line-height: 1.6; color: #e0e7ed; margin: 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); font-weight: 600; font-size: 14.5px; text-decoration: none; transition: border-color 0.16s, transform 0.16s var(--ease), box-shadow 0.16s; }
.trust-link:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--text); }
.trust-link .icon { color: var(--accent); }
.region-line { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.hero .region-line { color: #e0e7ed; text-shadow: 0 1px 3px #080c11; }
.region-line img { width: 24px; height: 17px; border-radius: 2px; display: block; }

@media (min-width: 1180px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) clamp(440px, 33.333%, 560px);
        grid-template-rows: 1fr auto auto 1fr;
        grid-template-areas: ". panel" "title panel" "rest panel" ". panel";
        column-gap: 48px; row-gap: 32px;
        padding-inline: max(var(--pad), calc((100% - 1200px) / 2 + var(--pad))) 0;
        padding-block: 0;
        min-height: max(680px, calc(100vh - var(--header-h) - 140px));
    }
    .hero-panel { position: relative; max-width: none; padding: 40px; background: #07080a; border-left: 1px solid var(--border); box-shadow: -24px 0 60px rgba(3, 6, 12, 0.45); }
    .hero-panel::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 1px; background: linear-gradient(180deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent); opacity: 0.6; }
    .hero-rest { max-width: 720px; }
}

/* Inner pages: heading + lead on one side, the form on the other */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(40px, 6vw, 76px); background: radial-gradient(70% 90% at 100% 0%, var(--accent-tint), transparent 65%), var(--bg); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--mesh-texture), var(--grid-texture); background-size: 320px 320px, 48px 48px; background-position: right -40px top, 0 0; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.page-hero__copy { max-width: 680px; }
.page-hero__copy p { color: var(--muted); font-size: 17.5px; }
.page-hero__copy .fact-list { margin: 18px 0 0; }
.page-hero__form { width: 100%; max-width: 520px; }
@media (min-width: 1024px) {
    .page-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(360px, 440px); column-gap: clamp(32px, 5vw, 80px); }
    .page-hero__form { justify-self: end; }
}

/* ------------------------------------------------------------------ forms -- */
.form-block { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(22px, 2.4vw, 30px); scroll-margin-top: calc(var(--header-h) + 24px); }
.form-block:focus { outline: none; }
.form-block__intro { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: var(--muted); }
:is(.form-block, .calc-modal) form { display: grid; gap: 14px; }
:is(.form-block, .calc-modal) form > div { margin: 0; }
:is(.form-block, .calc-modal) label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--text); }
:is(.form-block, .calc-modal) label:has(> input[type="checkbox"]) { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-weight: 400; color: var(--muted); line-height: 1.45; cursor: pointer; }
:is(.form-block, .calc-modal) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), :is(.form-block, .calc-modal) select, :is(.form-block, .calc-modal) textarea { width: 100%; min-height: 48px; padding: 11px 14px; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text); font: 400 16px/1.3 var(--font-sans); transition: border-color 0.16s, box-shadow 0.16s; }
:is(.form-block, .calc-modal) input::placeholder, :is(.form-block, .calc-modal) textarea::placeholder { color: var(--muted); opacity: 0.7; }
:is(.form-block, .calc-modal) input:focus-visible, :is(.form-block, .calc-modal) select:focus-visible, :is(.form-block, .calc-modal) textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint-strong); }
:is(.form-block, .calc-modal) input[aria-invalid="true"], :is(.form-block, .calc-modal) select[aria-invalid="true"] { border-color: var(--danger); }
:is(.form-block, .calc-modal) input[type="checkbox"], :is(.form-block, .calc-modal) input[type="radio"] { width: 24px; height: 24px; margin: 0; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
:is(.form-block, .calc-modal) p[id$="-error"], :is(.form-block, .calc-modal) [role="alert"], :is(.form-block, .calc-modal) [id$="-error"] { color: var(--danger); font-size: 13.5px; line-height: 1.45; font-weight: 500; margin: 6px 0 0; }
:is(.form-block, .calc-modal) [role="status"] { margin: 0; padding: 12px 14px; background: var(--accent-tint); border: 1px solid var(--accent-tint-strong); border-radius: var(--radius-sm); color: var(--text); font-size: 14px; }
:is(.form-block, .calc-modal) button[type="submit"], :is(.form-block, .calc-modal) form > button { width: 100%; min-height: 50px; padding: 0 20px; border: 0; border-radius: var(--radius-md); background: var(--accent) !important; color: var(--accent-ink) !important; font: 700 16px/1.2 var(--font-sans) !important; white-space: nowrap; cursor: pointer; box-shadow: var(--shadow-sm); transition: background-color 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.16s var(--ease); }
:is(.form-block, .calc-modal) button[type="submit"]:hover, :is(.form-block, .calc-modal) form > button:hover { background: var(--accent-hover) !important; transform: translateY(-1px); box-shadow: var(--glow); }
:is(.form-block, .calc-modal) button[type="submit"]:active, :is(.form-block, .calc-modal) form > button:active { transform: translateY(0); }
:is(.form-block, .calc-modal) [hidden] { display: none !important; }
.form-legal { margin: 16px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.form-legal a { color: var(--text); padding-block: 5px; }

/* The simulator's lead form lives in its modal, outside .form-block: same field language. */
:is(.form-block, .calc-modal) label:has(> input[type="checkbox"]) { flex-wrap: wrap; }
:is(.form-block, .calc-modal) label:has(> input[type="checkbox"]) > span:first-of-type { flex: 1 1 0; min-width: 0; }
:is(.form-block, .calc-modal) label > [id$="-error"] { flex: 0 0 100%; margin-left: 36px; }

/* -------------------------------------------------------------- calculator -- */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.calc-aside { display: grid; gap: 16px; }
.calc-chart { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 18px 18px 14px; }
.calc-chart canvas { display: block; width: 100%; height: 220px; }
.calc-chart__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; list-style: none; font: 500 12.5px/1.4 var(--font-mono); color: var(--muted); }
.calc-chart__legend li { display: inline-flex; align-items: center; gap: 8px; }
.calc-chart__legend i { width: 14px; height: 2px; display: inline-block; }
.calc-chart__caption { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
@media (min-width: 1024px) {
    .calc-layout { grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.6fr); column-gap: clamp(32px, 5vw, 72px); }
    .calc-layout .calc-aside { order: -1; }   /* visually left, after the widget heading in the DOM */
}
/* Sizing of the module's widget inside this design system (colours come from its config.php) */
.calc-widget { font-family: var(--font-sans); }
.calc-widget .calc-widget__title { font-size: clamp(26px, 2.2vw, 36px); line-height: 1.15; margin-bottom: 12px; }
.calc-widget .calc-widget__subtitle { font-size: 15.5px; line-height: 1.55; max-width: 620px; margin: 0 auto 40px; }
.calc-widget .calc-widget__wrapper { gap: 48px; }
.calc-widget .calc-widget__controls { gap: 28px; }
.calc-widget .calc-widget__label { font-size: 15px; font-weight: 600; }
.calc-widget .calc-widget__value { font-size: 26px; margin: 8px 0 14px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.calc-widget .calc-widget__result { backdrop-filter: none; border-color: var(--border); }
.calc-widget .calc-widget__result-head { gap: 8px; margin-bottom: 28px; text-align: left; }
.calc-widget .calc-widget__result-title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.calc-widget .calc-widget__total { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.calc-widget .calc-widget__stats { flex-direction: column; gap: 14px; }
.calc-widget .calc-widget__stat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.calc-widget .calc-widget__stat-label { font-weight: 600; margin-bottom: 0; font-size: 15px; white-space: nowrap; }
.calc-widget .calc-widget__stat-value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-widget .calc-widget__disclaimer { font-size: 14px; line-height: 1.55; margin-bottom: 24px; }
.calc-widget .calc-widget__cta { min-height: 50px; padding: 0 26px; font-family: var(--font-sans); font-weight: 700; }
.calc-widget .calc-widget__cta:focus-visible, .calc-widget .calc-widget__range:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* 6px track from the module, 24px tall touch target: the padding extends the hit area only. */
.calc-widget .calc-widget__range { height: 24px; padding-block: 9px; border: 0; background-clip: content-box; }
.calc-modal .calc-modal__legal a { color: var(--accent); }
.calc-modal .calc-modal__close { min-width: 40px; min-height: 40px; font-size: 28px; top: 2px; right: 4px; }
.calc-modal .calc-modal__title { font-family: var(--font-sans); font-size: 17px; line-height: 1.45; text-align: left; }
.calc-modal .calc-modal__legal { text-align: left; font-family: var(--font-sans); }
.calc-modal .calc-modal__content { border-radius: var(--radius-lg); border: 1px solid var(--border-strong); }

/* ------------------------------------------------------------- logos band -- */
.logos { padding-block: 36px; background: var(--surface); border-block: 1px solid var(--border); }
.logos-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.logos-title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.logos-note { margin: 0; font-size: 14px; color: var(--muted); }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.exchange-chip { display: flex; align-items: center; justify-content: center; width: 168px; height: 60px; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); background: #ffffff; }
.exchange-chip--dark { background: #0f172a; }
.exchange-chip img { display: block; width: auto; height: 28px; max-width: 100%; }

/* ------------------------------------------------------------------ steps -- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 44px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--accent-tint-strong), var(--accent)); opacity: 0.7; }
.step { position: relative; z-index: 1; padding: 26px 24px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 15px/1 var(--font-mono); }
.step h3 { font-size: 18.5px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }
.step__icon { position: absolute; top: 26px; right: 22px; color: var(--accent); opacity: 0.9; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* -------------------------------------------------------------- comparison -- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--surface-2); font-weight: 700; font-size: 15px; }
.compare thead th:first-child { border-top-left-radius: var(--radius-md); }
.compare thead th:last-child { border-top-right-radius: var(--radius-md); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.018); }
.compare .col-offer { background: var(--accent-tint) !important; }
.compare td.mark { text-align: center; width: 20%; white-space: nowrap; }
.compare .mark-yes { color: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.compare .mark-no { color: var(--danger); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.table-wrap .compare caption { text-align: left; caption-side: bottom; padding: 14px 16px; font-size: 13.5px; color: var(--muted); background: transparent; font-weight: 400; border-bottom: 0; }

/* -------------------------------------------------------------- audiences -- */
.audience-card { display: flex; flex-direction: column; height: 100%; }
.audience-card h3 { font-size: 20px; }
.audience-card p { font-size: 15.5px; }

/* ---------------------------------------------------------------- company -- */
.company { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: start; }
.company h2 { margin-bottom: 14px; }
.company__text p { color: var(--muted); font-size: 16.5px; }
.fact-list { margin: 20px 0 0; display: grid; gap: 12px; }
.fact-list > div { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); }
.fact-list dt { color: var(--muted); font-size: 13.5px; margin: 0 0 2px; }
.fact-list dd { margin: 0; font-weight: 600; font-size: 15px; }
.fact-list .icon { color: var(--accent); margin-top: 2px; }
.fact-list a { color: var(--text); }
.company-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.company-link { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); color: var(--text); font-weight: 600; text-decoration: none; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s; }
.company-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent-tint-strong); color: var(--accent); }
.company-link .arrow { margin-left: auto; color: var(--muted); }
.company-link:hover .arrow { color: var(--accent); }
@media (min-width: 900px) {
    .company { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 56px; }
    .company-link { font-size: 15px; }
}
@media (min-width: 1024px) {
    .step h3 { min-height: 2.5em; }
}

/* ------------------------------------------------------------- advantages -- */
.adv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.adv-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.adv-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; }
.adv-item h3 { font-size: 18px; margin-bottom: 4px; }
.adv-item p { margin: 0; color: var(--muted); font-size: 15px; }
.adv-visual { display: grid; gap: 20px; }
.phone-illustration { display: block; width: 100%; height: auto; }
@media (min-width: 900px) { .adv { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); column-gap: 64px; } }

/* ---------------------------------------------------------------- CTA band -- */
.cta-band { position: relative; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(28px, 4vw, 48px); }
.cta-band::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; border-radius: 4px; background: var(--accent); }
.cta-band__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted); font-size: 16.5px; margin: 0; }
.cta-band .facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 18px 0 0; padding: 0; list-style: none; font: 600 14px/1.4 var(--font-mono); color: var(--text); }
.cta-band .facts li { display: inline-flex; align-items: center; gap: 8px; }
.cta-band .facts .icon { color: var(--accent); }
@media (min-width: 1024px) { .cta-band__grid { grid-template-columns: minmax(0, 1.1fr) minmax(360px, 440px); column-gap: 56px; } }

/* --------------------------------------------------------------------- FAQ -- */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: border-color 0.16s; }
.faq-item:has(.faq-toggle[aria-expanded="true"]) { border-color: var(--accent-tint-strong); }
.faq-question { margin: 0; font-size: inherit; }
.faq-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; padding: 14px 18px; background: none; border: 0; border-radius: var(--radius-md); color: var(--text); font: 600 16.5px/1.4 var(--font-sans); text-align: left; cursor: pointer; }
.faq-toggle:hover { color: var(--accent); }
.faq-chevron { color: var(--accent); transition: transform 0.2s var(--ease); }
.faq-toggle[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.22s var(--ease); }
.faq-panel.is-collapsed { grid-template-rows: 0fr; }
.faq-panel-inner { min-height: 0; overflow: hidden; padding: 0 18px; }
.faq-panel-inner > :last-child { margin-bottom: 0; padding-bottom: 18px; }
.faq-panel-inner > * { margin-top: 0; }
.faq-panel-inner > p, .faq-panel-inner > ul, .faq-panel-inner > ol { padding-bottom: 0; }
.faq-panel-inner > ul, .faq-panel-inner > ol { margin-bottom: 0; }
.faq-panel-inner p, .faq-panel-inner li { color: var(--muted); font-size: 15.5px; }
.faq-group { margin-bottom: 36px; }
.faq-group > h2 { font-size: 24px; margin-bottom: 14px; }

/* ------------------------------------------------------------------- prose -- */
.prose { max-width: 780px; }
.prose--wide { max-width: 1000px; }
.prose h2 { margin: 1.6em 0 0.5em; font-size: clamp(24px, 0.8vw + 20px, 32px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.4em 0 0.4em; font-size: 19px; }
.prose p, .prose li { color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--text); }
.prose a:hover { color: var(--accent); }
.prose strong { color: var(--text); }
.prose p a, .prose li a, .faq-panel-inner a, .card p a, .footer-note a { text-decoration: underline; padding-block: 5px; }
.fact-list a, .table-wrap a, .callout a, .footer-contact a, .plan-note a, .site-main a:not([class]) { padding-block: 5px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.check-list { list-style: none; padding: 0; }
.prose .check-list li, .check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.prose .check-list li::before, .check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-tint-strong); }
.callout { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 14px; margin: 22px 0; padding: 18px 20px; background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-md); }
.callout > .icon { grid-column: 1; grid-row: 1 / span 12; color: var(--accent); margin-top: 3px; }
.callout > p, .callout > ul, .callout > ol, .callout > div { grid-column: 2; }
.callout p { margin: 0; font-size: 15.5px; color: var(--text); }
.callout p + p { margin-top: 8px; color: var(--muted); }
.callout--risk { border-left-color: var(--danger); }
.callout--risk .icon { color: var(--danger); }

.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.table-wrap table.plans { min-width: 900px; }
.table-wrap table:not(.plans):not(:has(th:nth-child(4))) { min-width: 0; }   /* 2-3 column tables fit a phone without scrolling */
.table-wrap th, .table-wrap td { overflow-wrap: normal; }   /* columns size to their longest word: no mid-word breaks */
.table-wrap th, .table-wrap td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table-wrap thead th { background: var(--surface-2); font-weight: 700; font-size: 14px; color: var(--text); }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.018); }
.table-wrap td { color: var(--muted); }
.table-wrap td:first-child { color: var(--text); font-weight: 600; }
.table-wrap caption { caption-side: top; text-align: left; padding: 12px 16px; font-weight: 700; color: var(--text); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.table-wrap .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.table-wrap .mark { text-align: center; width: 18%; }
.table-wrap .mark-yes { color: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.table-wrap .mark-no { color: var(--danger); display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.table-wrap .mark-dash { color: var(--muted); }

/* Glossary grids and icon lists used by documentation pages */
.point-list { display: grid; gap: 18px; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: point; }
.point-list > li { counter-increment: point; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.point-list > li::before { content: counter(point, decimal-leading-zero); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--accent); color: var(--accent-ink); font: 700 15px/1 var(--font-mono); }
.point-list h3 { margin: 0 0 6px; font-size: 18px; }
.point-list p { margin: 0 0 8px; color: var(--muted); font-size: 15.5px; }
.point-list p:last-child { margin: 0; }
.point-list .tip { font-size: 14px; color: var(--text); display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--border-strong); }
.point-list .tip .icon { color: var(--accent); margin-top: 2px; }
.def-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 28px; margin: 0 0 24px; }
.def-grid dt { font-weight: 700; color: var(--text); margin-top: 10px; }
.def-grid dd { margin: 2px 0 0; color: var(--muted); font-size: 15.5px; }
@media (min-width: 760px) { .def-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; counter-reset: flow; }
.flow li { counter-increment: flow; position: relative; padding: 14px 16px 14px 52px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--muted); font-size: 15px; }
.flow li::before { content: counter(flow); position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 13px/1 var(--font-mono); }
.flow li strong { color: var(--text); }
@media (min-width: 760px) { .flow { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }

/* ---------------------------------------------------------------- careers -- */
.role-list { display: grid; gap: 16px; }
.role { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.role__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 8px; }
.role h3 { margin: 0; font-size: 19px; }
.role p { margin: 0 0 12px; color: var(--muted); font-size: 15.5px; }
.role__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.role__tags li { font: 500 13px/1 var(--font-mono); color: var(--muted); padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 999px; }
.role__action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
@media (min-width: 900px) { .role { grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr); align-items: center; column-gap: 32px; } .role__action { justify-content: flex-end; } }

/* ---------------------------------------------------------------- contact -- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.map-embed { max-width: 100%; aspect-ratio: 16 / 9; min-height: 320px; margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; background: var(--surface); }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-caption { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: 48px; } }

/* ------------------------------------------------------- articles, products -- */
.article { padding: clamp(24px, 3vw, 36px); }
.article h2 { font-size: 24px; }
.article .meta { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 12.5px/1 var(--font-mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.tile { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.tile .icon-badge { margin-bottom: 20px; }
.tile h3 { font-size: 22px; }
.tile p { font-size: 15.5px; }
.tile__foot { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; color: var(--accent); font-weight: 600; }
.plan-note { font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------- special offer -- */
.so-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); }
.so-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: so; }
.so-steps li { counter-increment: so; position: relative; padding: 22px 22px 22px 76px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.so-steps li::before { content: counter(so); position: absolute; left: 22px; top: 22px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 15px/1 var(--font-mono); }
.so-steps h3 { margin: 0 0 6px; font-size: 18px; }
.so-steps p { margin: 0; color: var(--muted); font-size: 15px; }
@media (min-width: 760px) { .so-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ dialog -- */
.exit-modal { width: min(480px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); font-family: var(--font-sans); }
.exit-modal::backdrop { background: rgba(5, 7, 10, 0.74); }
.exit-modal-inner { padding: 32px 28px 28px; display: grid; gap: 12px; }
.exit-modal h2 { font-size: 24px; margin: 0; }
.exit-modal p { margin: 0; color: var(--muted); font-size: 15.5px; }
.exit-modal ul { margin: 4px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 15px; }
.exit-modal .btn { margin-top: 10px; }
.exit-modal-close { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); cursor: pointer; }
.exit-modal-close:hover { border-color: var(--accent); color: var(--accent); }
.exit-modal-illustration { width: 100%; height: auto; display: block; margin-bottom: 4px; border-radius: var(--radius-md); }

/* ------------------------------------------------------------------ footer -- */
.site-footer { background: #07080a; border-top: 1px solid var(--border); padding-top: clamp(44px, 6vw, 72px); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; padding-bottom: 40px; }
.footer-brand { grid-column: 1 / -1; max-width: 480px; }
.footer-note { margin: 16px 0 14px; color: var(--muted); font-size: 14.5px; }
.footer-contact { margin: 0 0 20px; display: grid; gap: 6px; }
.footer-contact dt { font: 600 12.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 4px; }
.footer-contact dd { margin: 0; color: var(--muted); font-size: 14.5px; }
.footer-contact a { color: var(--text); overflow-wrap: anywhere; padding-block: 5px; }
.footer-col .footer-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); margin: 0 0 10px; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 0; }
.footer-links a { display: flex; align-items: center; min-height: 40px; color: var(--muted); font-size: 14.5px; text-decoration: none; transition: color 0.14s; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--accent); }
.footer-legal { padding: 24px 0 32px; border-top: 1px solid var(--border); }
.footer-legal-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px; }
.footer-legal p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 12px; max-width: 1000px; }
.footer-copy { font-family: var(--font-mono); }
@media (min-width: 900px) {
    .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
    .footer-brand { grid-column: auto; }
}

/* -------------------------------------------------------------------- 404 -- */
.notfound-code { margin: 0; font: 800 clamp(72px, 14vw, 160px)/1 var(--font-mono); letter-spacing: -0.06em; color: var(--accent); }
.notfound-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.notfound-card { padding: 20px; }
.notfound-card h2 { font-size: 16px; margin-bottom: 10px; }
.notfound-card ul { margin: 0; padding: 0; list-style: none; }
.notfound-card a { display: flex; align-items: center; min-height: 40px; color: var(--muted); text-decoration: none; font-size: 15px; }
.notfound-card a:hover { color: var(--accent); }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1023.98px) {
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps::before { display: none; }
    .steps--3 { grid-template-columns: minmax(0, 1fr); }
    .c3, .c4 { grid-column: span 3; }
}
@media (max-width: 719.98px) {
    .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .c2, .c3, .c4, .c6 { grid-column: span 2; }
    .split { grid-template-columns: minmax(0, 1fr); }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .company-links { grid-template-columns: minmax(0, 1fr); }
    .notfound-grid { grid-template-columns: minmax(0, 1fr); }
    .header-inner { gap: 10px; }
    .header-cta { padding: 0 14px; font-size: 14.5px; }
    .exchange-chip { width: 148px; height: 56px; }
    .banner { padding: 18px 20px; }
}

/* ------------------------------------------------------------------ motion -- */
[data-reveal] { transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
html.js-ready [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(10px); }
html.js-ready [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    html.js-ready [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
    .calc-widget[data-calc-skeleton] .calc-widget__control::after, .calc-widget[data-calc-skeleton] .calc-widget__result::after { animation: none; }
    .hero-parallax { transform: none !important; }
}

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

.iti__country-name {
color: #000 !important;
}

.iti__selected-country,
.iti__selected-dial-code {
    color: #fff !important;
}

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

/* Homepage background artwork */
.hero-art {
    position: absolute; inset: 0; z-index: -3; pointer-events: none;
}
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-art::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, transparent 15%, rgb(8 12 17 / 44%) 40%, rgb(8 12 17 / 32%) 56%, transparent 76%),
        linear-gradient(105deg, rgb(8 12 17 / 95%) 3%, rgb(8 12 17 / 63%) 42%, rgb(8 12 17 / 13%) 92%);
}
.hero-field { opacity: .22; }
@media (min-width: 1024px) {
    .hero-art { right: 33%; mask-image: linear-gradient(90deg, #000 86%, transparent); }
}
@media (max-width: 767px) {
    .hero-art { inset: auto 0 0; height: min(520px, 85vw); }
    .hero-art::after {
        background: linear-gradient(180deg, var(--bg), rgb(8 12 17 / 92%) 36%, rgb(8 12 17 / 66%) 63%, rgb(8 12 17 / 38%) 84%);
    }
    .hero-grid { padding-bottom: clamp(112px, 35vw, 200px); }
}

/* Account button in the site header and its mobile menu. */
.site-header .header-signup {
    min-height: 44px; gap: 8px; padding: 5px 7px 5px 15px;
    font-size: .875rem; font-weight: 700; line-height: 1.15;
    white-space: nowrap; text-align: center; text-decoration: none;
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
    color: #121808; background: linear-gradient(105deg, #def783, #b8eb34 75%);
    border: 1px solid #d9f570; border-radius: 10px;
    box-shadow: 0 3px 14px rgb(175 234 43 / 19%), inset 0 1px rgb(255 255 255 / 38%);
}
.site-header .header-signup__icon {
    display: grid; place-items: center; flex: none;
    width: 26px; height: 26px; border-radius: 6px;
    color: #e1fa91; background: #263913;
}
.site-header .header-signup__icon svg { display: block; width: 16px; height: 16px; transition: transform .18s ease; }
.site-header .header-signup:focus-visible { outline: 2px solid #def783; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .site-header .header-signup:hover {
    color: #121808; background: #d0f464; box-shadow: 0 5px 18px rgb(175 234 43 / 34%);
  }
  .site-header .header-signup:hover svg { transform: translateX(2px); }
}
@media (prefers-reduced-motion: reduce) {
    .site-header .header-signup, .site-header .header-signup:hover, .site-header .header-signup .header-signup__icon svg { transition: none; transform: none; }
}
@media (min-width: 380px) and (max-width: 430px) {
    .site-header .brand-logo { width: clamp(100px, 28vw, 122px); height: auto; }
}
@media (max-width: 719px) {
    .site-header .header-signup { gap: 6px; padding-inline: 10px 5px; }
    .site-header .header-signup__icon { width: 23px; height: 23px; }
}
