/* ==========================================================================
   brenvalaine.com — design system (light, cool surface, deep petrol accent)
   Profile: animation-led. One accent / radius / shadow / type scale everywhere.
   ========================================================================== */

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/manrope-latin-var.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #f3f7f9;
    --surface: #ffffff;
    --surface-2: #eaf1f4;
    --border: #d5e0e5;
    --text: #0f1f26;
    --muted: #4a5d66;
    --accent: #0d5c66;
    --accent-hover: #0a4a52;
    --tint: #e3f0f2;
    --tint-2: #eef6f7;
    --success: #1d7a4f;
    --danger: #b3261e;
    --on-accent: #ffffff;

    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(15, 35, 46, .06), 0 1px 3px rgba(15, 35, 46, .05);
    --shadow-md: 0 1px 2px rgba(15, 35, 46, .06), 0 10px 28px rgba(15, 35, 46, .10);
    --shadow-lg: 0 2px 6px rgba(15, 35, 46, .08), 0 24px 60px rgba(15, 35, 46, .16);

    --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --container: 1200px;
    --header-h: 72px;
    --ease: cubic-bezier(.2, .6, .2, 1);

    /* decorative textures (data-URI SVG, accent-tinted, low contrast) */
    --tex-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Ccircle cx='1.5' cy='1.5' r='1.2' fill='%230d5c66' fill-opacity='.13'/%3E%3C/svg%3E");
    --tex-grid: 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='%230d5c66' stroke-opacity='.09' stroke-width='1'/%3E%3C/svg%3E");
    --tex-mesh: 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='%230d5c66' stroke-opacity='.14' stroke-width='1.2'%3E%3Cpath d='M20 140L80 30L140 110'/%3E%3Cpath d='M0 60L80 30L160 60'/%3E%3C/g%3E%3Cg fill='%230d5c66' fill-opacity='.28'%3E%3Ccircle cx='20' cy='140' r='3'/%3E%3Ccircle cx='80' cy='30' r='3'/%3E%3Ccircle cx='140' cy='110' r='3'/%3E%3Ccircle cx='0' cy='60' r='2'/%3E%3Ccircle cx='160' cy='60' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, iframe, video, canvas { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.015em; font-weight: 800; color: var(--text); }
h1 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); line-height: 1.08; letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); color: var(--muted); line-height: 1.55; }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; transition: top .15s; }
.skip-link:focus { top: 12px; color: var(--on-accent); text-decoration: none; }
.icon { display: inline-block; vertical-align: middle; flex: none; }
[data-hidden], [hidden] { display: none !important; }

/* ---------- layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.section { padding: clamp(48px, 6vw, 88px) 0; position: relative; }
.section--tint { background: var(--tint-2); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-sm); }
/* JS enhancement (main.js): the inner div scrolls, the wrapper shows a fade while more columns remain to the right */
.table-wrap--js { overflow: hidden; position: relative; }
.table-wrap--js .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: inherit; }
.table-wrap--js.can-scroll::after { content: ''; position: absolute; top: 1px; right: 1px; bottom: 1px; width: 40px; pointer-events: none; border-radius: 0 var(--r-md) var(--r-md) 0; background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, .94)); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.note { background: var(--tint-2); border-left: 4px solid var(--accent); border-radius: var(--r-sm); padding: 14px 18px; color: var(--text); font-size: .95rem; }

/* ---------- buttons & badges ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 24px; border-radius: var(--r-md); border: 1.5px solid transparent;
    font: 700 .95rem/1 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); box-shadow: var(--shadow-md); }
.btn--secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--secondary:hover { background: var(--tint); color: var(--accent-hover); }
.btn--light { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--tint-2); color: var(--accent-hover); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .875rem; border-radius: var(--r-sm); }
.btn--block { width: 100%; }
.btn__icon { display: inline-flex; }
.icon-badge {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(13, 92, 102, .12);
}
.icon-badge--sm { width: 42px; height: 42px; border-radius: 12px; }
.icon-badge--solid { background: var(--accent); color: var(--on-accent); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--tint); color: var(--accent); font-size: .8rem; font-weight: 700; }
.tag { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); font-size: .75rem; font-weight: 700; }

/* ---------- cards ---------- */
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
    box-shadow: var(--shadow-sm); padding: 28px; height: 100%;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3, .card h2.card__title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 1.25rem; letter-spacing: -.01em; }
.card h3 .icon-badge, .card h2.card__title .icon-badge { margin-top: -4px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card--link { color: inherit; display: block; }
.card--link:hover { color: inherit; text-decoration: none; }
.card--link h3 { color: var(--text); }
.card--tint { background: var(--tint-2); }
.num-circle {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 1rem;
    box-shadow: 0 0 0 6px var(--tint);
}

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent; transition: box-shadow .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.site-header.is-scrolled { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 36px); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); flex: none; }
.brand:hover { text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { display: block; border-radius: 8px; }
.logo__text { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: var(--text); line-height: 1; }

.main-nav { margin-left: auto; }
.main-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav__item { position: relative; margin: 0; }
.main-nav__trigger {
    display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
    font: 600 .925rem/1 var(--font); color: var(--text); padding: 12px 14px; border-radius: var(--r-sm);
    transition: background-color .15s var(--ease), color .15s var(--ease);
}
.main-nav__trigger:hover, .main-nav__item.is-open .main-nav__trigger { background: var(--tint); color: var(--accent); }
.nav-caret { transition: transform .15s var(--ease); }
.main-nav__item.is-open .nav-caret { transform: rotate(180deg); }
.dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 268px; z-index: 50;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(4px);
    /* closing: stay visible until the fade has finished; opening: visible at once (so links are focusable immediately) */
    transition: opacity .15s var(--ease), transform .15s var(--ease), visibility 0s .15s;
}
.main-nav__item.is-open .dropdown { opacity: 1; visibility: visible; transform: none; transition: opacity .15s var(--ease), transform .15s var(--ease), visibility 0s 0s; }
.dropdown.is-right { left: auto; right: 0; }
.dropdown__notch {
    position: absolute; top: -5px; left: 22px; width: 10px; height: 10px; background: var(--bg);
    border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg); border-radius: 2px 0 0 0;
}
.dropdown.is-right .dropdown__notch { left: auto; right: 22px; }
.dropdown__list { list-style: none; margin: 0; padding: 0; max-height: min(70vh, 540px); overflow-y: auto; }
.dropdown__link {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm);
    color: var(--text); font-weight: 600; font-size: .9rem; transition: background-color .12s var(--ease), color .12s var(--ease);
}
.dropdown__link:hover, .dropdown__link:focus-visible { background: var(--tint); color: var(--accent); text-decoration: none; }
.dropdown__link.is-current { background: var(--tint); color: var(--accent); }
.dropdown__icon { display: inline-flex; color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; border-radius: var(--r-sm); color: var(--text); }
.nav-toggle:hover { background: var(--tint); color: var(--accent); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--surface); max-height: calc(100vh - var(--header-h)); overflow-y: auto; box-shadow: var(--shadow-md); }
.mobile-nav__group { border-bottom: 1px solid var(--border); }
.mobile-nav__trigger {
    width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: 0; cursor: pointer;
    padding: 14px 0; font: 700 1rem/1 var(--font); color: var(--text);
}
.mobile-nav__list { list-style: none; margin: 0 0 8px; padding: 0 0 0 12px; }
.mobile-nav__list a { display: block; padding: 10px 12px; border-radius: var(--r-sm); color: var(--muted); font-weight: 600; }
.mobile-nav__list a:hover, .mobile-nav__list a[aria-current="page"] { background: var(--tint); color: var(--accent); text-decoration: none; }
.mobile-nav__cta { margin: 16px 0 20px; }
.mobile-nav.is-open { display: block; }
.mobile-nav.is-open .mobile-nav__trigger svg { transition: transform .15s; }
.mobile-nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

/* beacon ticker row (injected after </header>) */
.tv-ticker-wrapper {
  border-bottom: 1px solid var(--border);
  padding-top: 0px !important;
  height: 58px !important;
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs { background: var(--surface); border-bottom: 1px solid var(--border); }
.breadcrumbs__list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 10px 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs__list li { display: flex; gap: 6px; margin: 0; }
.breadcrumbs__list li + li::before { content: '/'; color: var(--border); }
.breadcrumbs__list a { color: var(--muted); }
.breadcrumbs__list a:hover { color: var(--accent); }

/* ---------- forms (beacon formFactory inside our wrapper) ---------- */
.form-block {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
    padding: 28px 28px 22px; position: relative;
}
.form-block--primary { box-shadow: var(--shadow-lg); }
.form-block__intro { font-weight: 600; margin-bottom: 14px; }
.form-block .form-title { margin-bottom: 14px; }
.form-legal { font-size: .8rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form-legal a { font-weight: 600; }
.form-block form.wpcf7-101 { margin: 0; }
.form-block form.wpcf7-101 > div:first-child { gap: 12px; max-width: none; }
.form-block form.wpcf7-101 input[type="text"],
.form-block form.wpcf7-101 input[type="email"],
.form-block form.wpcf7-101 input[type="tel"] {
    height: 46px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface);
    font: 500 .95rem/1.2 var(--font); color: var(--text); padding: 0 12px; transition: border-color .15s, box-shadow .15s;
}
.form-block form.wpcf7-101 input[type="text"]:focus,
.form-block form.wpcf7-101 input[type="email"]:focus,
.form-block form.wpcf7-101 input[type="tel"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13, 92, 102, .22); }
.form-block form.wpcf7-101 input::placeholder { font-size: .9rem; color: var(--muted); }
.form-block form.wpcf7-101 .iti { display: block; }
.form-block form.wpcf7-101 input[type="tel"] { padding-left: 84px; }  /* reserves the flag space before intl-tel-input initialises (no CLS) */
.form-block form.wpcf7-101 input[type="submit"] {
    height: 48px; border-radius: var(--r-sm); font: 800 .95rem/1 var(--font); letter-spacing: .01em;
    background: var(--accent) !important; color: var(--on-accent) !important; border: 0; cursor: pointer;
    transition: background-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
    box-shadow: var(--shadow-sm);
}
.form-block form.wpcf7-101 input[type="submit"]:hover { background: var(--accent-hover) !important; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.form-block form.wpcf7-101 input[type="submit"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-block form.wpcf7-101 input[type="submit"][disabled] { cursor: not-allowed; }

/* ---------- HOME: hero (asymmetric split: copy left, market panel + form card right) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 72px) 0 clamp(56px, 7vw, 104px); background: var(--bg); }
.hero__bg { position: absolute; inset: -12% 0 0; z-index: 0; pointer-events: none;
    background-color: var(--bg); background-image: var(--tex-grid), radial-gradient(60% 50% at 85% 20%, rgba(13, 92, 102, .10), transparent 70%), radial-gradient(40% 40% at 10% 90%, rgba(13, 92, 102, .07), transparent 70%);
    background-size: 48px 48px, auto, auto; mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%); -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%); }
.hero__arcs { position: absolute; right: -140px; top: -60px; width: 620px; height: 620px; opacity: .55; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); grid-template-areas: "title panel" "desc panel" "trust panel"; grid-template-rows: auto auto 1fr; column-gap: clamp(32px, 5vw, 72px); row-gap: 24px; align-items: start; }
.hero__trust { align-self: end; }
.hero__title { grid-area: title; }
.hero__title h1 { max-width: 21ch; }
.hero__title h1 em { white-space: nowrap; }
.hero__title h1 em { font-style: normal; color: var(--accent); }
.hero__desc { grid-area: desc; max-width: 56ch; }
.hero__desc p { color: var(--muted); font-size: 1.05rem; }
.hero__desc ul { color: var(--muted); margin-bottom: 0; }
.check-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.check-list li { display: flex; align-items: center; gap: 10px; margin: 0; }
.check-list .icon { color: var(--accent); }
.main-nav__list > .is-last .dropdown { left: auto; right: 0; }
.main-nav__list > .is-last .dropdown__notch { left: auto; right: 22px; }
.hero__trust { grid-area: trust; display: flex; flex-direction: column; gap: 16px; }
.offices { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-weight: 600; font-size: .95rem; }
.offices__flags { display: inline-flex; gap: 6px; }
.flag { display: inline-block; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 35, 46, .12); }
.hero__links { display: flex; flex-wrap: wrap; gap: 12px; }
.icon-link {
    display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); color: var(--text); font-weight: 600; font-size: .9rem;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.icon-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); color: var(--text); }
.icon-link .icon-badge { width: 40px; height: 40px; border-radius: 10px; }
.icon-link span small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }

.hero__panel { grid-area: panel; display: flex; flex-direction: column; }
.market-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; position: relative; }
.market-panel__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; white-space: nowrap; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.market-panel__dots { display: inline-flex; gap: 5px; }
.market-panel__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); display: block; }
.market-panel__dots i:first-child { background: var(--accent); }
.market-panel__tabs { margin-left: auto; display: inline-flex; gap: 6px; }
.market-panel__tabs span { padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); }
.market-panel__tabs span.is-on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.market-panel__chart { position: relative; height: 300px; }
.market-panel__chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.market-panel__legend { position: absolute; left: 16px; top: 14px; display: flex; gap: 14px; font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.market-panel__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.hero__formcard { margin: -84px 24px 0 auto; width: min(100%, 460px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 24px 24px 20px; position: relative; z-index: 2; scroll-margin-top: calc(var(--header-h) + 16px); }
.hero__formcard .form-block { border: 0; box-shadow: none; padding: 0; background: transparent; }
.form-card__title { font-size: 1.3rem; margin-bottom: 14px; }
.form-card__note { margin: 14px 0 0; font-size: .9rem; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.form-card__note .icon-badge { width: 34px; height: 34px; border-radius: 10px; }

/* exchange logo chips */
.exchanges { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.exchanges__inner { display: flex; align-items: center; gap: 24px 40px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.exchanges__head { max-width: 340px; }
.exchanges__head h2 { font-size: 1.1rem; margin-bottom: 4px; }
.exchanges__head p { margin: 0; font-size: .9rem; }
.exchanges__chips { display: flex; flex-wrap: wrap; gap: 14px; margin-left: auto; justify-content: center; }
/* desktop: a 3 x 2 chip grid beside the heading (one wrapped row left a large empty area under the heading) */
@media (min-width: 1024px) {
    .exchanges__chips { display: grid; grid-template-columns: repeat(3, 160px); justify-content: end; }
    .exchanges__inner { flex-wrap: nowrap; }
}
.chip {
    width: 160px; height: 56px; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; background: #ffffff;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.chip--dark { background: #0f172a; border-color: #0f172a; }
.chip img { height: 28px; width: auto; max-width: 100%; display: block; }

/* calculator */
.calc-section { background: var(--tint-2); background-image: var(--tex-dots); }
.calc-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px 48px; align-items: end; margin-bottom: 32px; }
.calc-head p { color: var(--muted); margin-bottom: 0; }
.mini-chart { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden; position: relative; }
.mini-chart canvas { display: block; width: 100%; height: 150px; }
.mini-chart__legend { position: absolute; left: 12px; top: 10px; display: flex; gap: 12px; font-size: .7rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.mini-chart__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.calc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: clamp(20px, 4vw, 48px); }
.calc-widget { max-width: 72rem; margin: 0 auto; }
.calc-widget__title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); }
.calc-widget__subtitle { margin-bottom: 2rem; }
.calc-widget__wrapper { gap: 48px; }
.calc-widget__result { border-color: var(--border); }
.calc-widget__cta { padding: 14px 24px; font-weight: 700; font-size: .95rem; }
.calc-note { text-align: center; font-size: .85rem; color: var(--muted); margin: 18px 0 0; }

/* steps timeline */
.steps-section { background: var(--bg); background-image: var(--tex-mesh); background-size: 320px 320px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; list-style: none; margin: 0; padding: 0; }
.steps::before { content: ''; position: absolute; left: 5%; right: 5%; top: 48px; height: 2px; background: linear-gradient(90deg, var(--accent) 0%, var(--border) 100%); opacity: .5; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 28px 24px 24px; position: relative; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step__num { margin-bottom: 20px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* comparison table */
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 620px; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); font-size: .95rem; }
.compare-table thead th { background: var(--surface-2); font-weight: 800; font-size: .95rem; }
.compare-table thead th.col-you { background: var(--accent); color: var(--on-accent); }
.compare-table td.col-you { background: var(--tint-2); font-weight: 700; }
.compare-table th:first-child, .compare-table td:first-child { padding-left: 24px; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .mark { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; }
.compare-table .mark--yes { background: var(--accent); color: var(--on-accent); }
.compare-table .mark--no { background: #fbe9e7; color: var(--danger); }
.compare-table th:last-child, .compare-table td:last-child { color: var(--muted); }
.compare-table .you-name { display: inline-flex; align-items: center; gap: 8px; }

/* security split */
.security-section { background: var(--surface); }
.security-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.security-list li { display: flex; gap: 16px; align-items: flex-start; margin: 0; }
.security-list strong { display: block; margin-bottom: 2px; }
.security-list p { margin: 0; color: var(--muted); font-size: .95rem; }
.shield-panel { position: relative; background: linear-gradient(160deg, var(--tint) 0%, var(--tint-2) 100%); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 32px; overflow: hidden; }
.shield-panel svg.motif { display: block; width: 100%; height: auto; }
.shield-panel__caption { position: absolute; left: 32px; bottom: 28px; right: 32px; background: rgba(255, 255, 255, .92); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 18px; font-size: .9rem; color: var(--muted); box-shadow: var(--shadow-sm); }
.shield-panel__caption strong { color: var(--text); display: block; margin-bottom: 2px; }

/* reviews */
.reviews { columns: 3 300px; column-gap: 24px; }
.review { break-inside: avoid; -webkit-column-break-inside: avoid; display: inline-block; width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 22px; margin: 0 0 24px; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.review:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review__photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--tint); flex: none; }
.review__name { font-weight: 800; line-height: 1.2; }
.review__meta { font-size: .8rem; color: var(--muted); }
.review__flag { margin-left: auto; }
.review__text { font-size: .95rem; color: var(--text); }
.review__text p { margin-bottom: 10px; }
.review__text .drawback { color: var(--muted); font-size: .9rem; }
.review__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.review__stat small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.review__stat strong { font-size: .95rem; }
.review__strategy { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.reviews-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; font-size: .85rem; color: var(--muted); max-width: 820px; }

/* company block */
.company-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px 48px; }
.company-facts { display: grid; gap: 14px; margin-top: 20px; }
.company-fact { display: flex; gap: 14px; align-items: flex-start; font-size: .95rem; }
.company-fact strong { display: block; }
.company-fact .muted { font-size: .875rem; }
.company-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: center; }

/* benefits bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: 20px; }
.bento .card { padding: 26px; }
.bento__tall { grid-row: span 2; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.bento__tall h3, .bento__tall p { color: var(--on-accent); }
.bento__tall .icon-badge { background: rgba(255, 255, 255, .14); color: var(--on-accent); }
.bento__tall:hover { transform: translateY(-2px); }
.bento__tall svg.motif { width: 100%; height: auto; margin-top: 20px; }
.bento__wide { grid-column: span 2; }

/* CTA band (form before FAQ) */
.cta-band { background-image: var(--tex-dots), linear-gradient(135deg, var(--tint) 0%, var(--tint-2) 60%, var(--surface) 100%); }
.cta-band__inner { max-width: 560px; margin-inline: auto; text-align: center; }
.cta-band__inner p { color: var(--muted); }
.cta-band .form-block { text-align: left; margin-top: 28px; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px 56px; align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-aside p { color: var(--muted); }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item[open] { box-shadow: var(--shadow-md); }
.faq-item__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; font-size: 1rem; }
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q .icon { color: var(--accent); transition: transform .18s var(--ease); }
.faq-item[open] .faq-item__q .icon { transform: rotate(45deg); }
.faq-item__a { padding: 0 20px 18px; color: var(--muted); font-size: .95rem; }
.faq-item__a p { margin-bottom: .6em; }
.faq-item__a p:last-child { margin-bottom: 0; }

/* ---------- inner pages: page hero with form ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 64px) 0; background: var(--bg); }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: var(--tex-grid); background-size: 48px 48px; opacity: .7; mask-image: radial-gradient(70% 70% at 80% 20%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 80% 20%, #000, transparent); }
.page-hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px; border-radius: 50%; border: 48px solid var(--tint); opacity: .6; pointer-events: none; }
.page-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.page-hero__inner--narrow { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; text-align: center; }
.page-hero h1 { max-width: 20ch; }
.page-hero p { color: var(--muted); font-size: 1.05rem; }
.page-hero__form { scroll-margin-top: calc(var(--header-h) + 16px); }
.page-hero__form .form-block { box-shadow: var(--shadow-lg); }
.page-hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* generic inner components */
.vacancy { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 24px 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-bottom: 16px; transition: box-shadow .18s var(--ease), transform .18s var(--ease); }
.vacancy:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.vacancy h3 { margin-bottom: 6px; font-size: 1.1rem; }
.vacancy p { color: var(--muted); font-size: .95rem; margin-bottom: 10px; }
.vacancy__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.map-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.map-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 20px; }
.map-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.map-embed { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); max-width: 100%; aspect-ratio: 16 / 9; min-height: 260px; background: var(--surface-2); margin-top: 14px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 560px; }
.data-table th, .data-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: .95rem; vertical-align: top; }
.data-table th { background: var(--surface-2); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 26px; display: flex; flex-direction: column; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.plan--featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.plan h3 { font-size: 1.2rem; }
.plan__who { color: var(--muted); font-size: .9rem; min-height: 2.6em; }
.plan__price { font-size: 1.6rem; font-weight: 800; color: var(--accent); margin: 8px 0 2px; }
.plan__price small { font-size: .8rem; color: var(--muted); font-weight: 600; display: block; }
.plan ul { list-style: none; padding: 0; margin: 16px 0; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; margin-bottom: 8px; }
.plan li .icon { color: var(--accent); margin-top: 3px; }
.plan li .muted { color: var(--muted); }
.timeline { position: relative; padding-left: 36px; display: grid; gap: 28px; border-left: 2px solid var(--border); margin-left: 12px; }
.timeline__item { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 22px 26px; }
.timeline__item::before { content: ''; position: absolute; left: -46px; top: 26px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--tint); }
.timeline__year { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: clamp(24px, 4vw, 40px); margin-bottom: 24px; }
.article h2 { font-size: 1.5rem; }
.article p, .article li { color: var(--muted); }
.product-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 28px; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; color: inherit; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.product-tile:hover { text-decoration: none; color: inherit; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-tile h3 { margin-bottom: 8px; }
.product-tile p { color: var(--muted); margin: 0; font-size: .95rem; }
.product-tile__more { grid-column: 2; font-weight: 700; color: var(--accent); font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.callout { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; background: var(--tint-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px 24px; }
.callout p { margin: 0; color: var(--text); }
.facts-table th { width: 36%; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: clamp(40px, 5vw, 64px) 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin-top: 16px; }
.footer-facts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; font-size: .88rem; color: var(--muted); }
.footer-facts li { display: flex; gap: 10px; align-items: center; margin: 0; }
.footer-facts strong { color: var(--text); }
.footer-facts .icon { color: var(--accent); }
.footer-facts__flag { display: inline-flex; }
.footer-col__title { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--muted); font-size: .92rem; }
.footer-col a:hover, .footer-col a[aria-current="page"] { color: var(--accent); text-decoration: none; }
.footer-disclaimer { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; }
.footer-disclaimer__title { font-size: .95rem; margin-bottom: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; font-size: .82rem; color: var(--muted); }
.footer-bottom p { margin: 0; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 404 ---------- */
.nf { padding: clamp(56px, 8vw, 120px) 0; text-align: center; background: var(--tint-2); background-image: var(--tex-dots); }
.nf__code { font-size: clamp(4rem, 14vw, 9rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.nf p { color: var(--muted); max-width: 52ch; margin-inline: auto; }

/* ---------- special offer ---------- */
.urgency { background: var(--accent); color: var(--on-accent); font-size: .85rem; font-weight: 700; }
.urgency__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding-top: 9px; padding-bottom: 9px; }
.urgency__inner span { display: inline-flex; align-items: center; gap: 8px; }
.urgency__inner b { font-weight: 800; }
.so-hero { padding: clamp(36px, 5vw, 64px) 0; background: var(--bg); background-image: var(--tex-mesh); background-size: 360px 360px; }
.so-hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.so-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-pill); background: var(--tint); color: var(--accent); font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.so-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.so-cta { background: var(--accent); color: var(--on-accent); }
.so-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.so-cta h2, .so-cta p { color: var(--on-accent); margin-bottom: 0; }
.so-cta h2 { max-width: 24ch; }
.so-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.so-modal.is-open { display: flex; }
.so-modal__overlay { position: absolute; inset: 0; background: rgba(15, 35, 46, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.so-modal__card { position: relative; z-index: 1; width: min(100%, 440px); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 28px 28px 26px; text-align: center; animation: so-pop .2s var(--ease); }
@keyframes so-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.so-modal__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.so-modal__close:hover { background: var(--tint); }
.so-modal__art { width: 160px; height: auto; margin: 0 auto 8px; display: block; }
.so-modal__card h2 { font-size: 1.6rem; margin-bottom: 10px; }
.so-modal__card p { color: var(--muted); font-size: .95rem; }
.countdown { display: flex; justify-content: center; gap: 8px; margin: 18px 0 22px; font-variant-numeric: tabular-nums; }
.cd-box { background: var(--accent); color: var(--on-accent); border-radius: var(--r-sm); padding: 10px 8px; min-width: 64px; font-weight: 800; font-size: 1.5rem; letter-spacing: .04em; line-height: 1; box-shadow: var(--shadow-sm); }
.cd-sep { font-size: 1.5rem; font-weight: 800; color: var(--muted); align-self: center; }
.cd-label { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; display: block; margin-top: 6px; font-weight: 700; }

/* ---------- motion: reveal + parallax + reduced motion ---------- */
html.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js.reveal-off .reveal { opacity: 1; transform: none; transition: none; }
.hero__bg { transform: translate3d(0, 0, 0); }
.hero { background: #08182f; color: #f2f8ff; isolation: isolate; }
.hero__art { position: absolute; inset: 0; z-index: -1; 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(90deg, #08182f 0%, rgba(8, 24, 47, .94) 34%, rgba(8, 24, 47, .32) 69%, transparent),
                linear-gradient(0deg, rgba(8, 24, 47, .72), transparent 35%);
}
.hero__bg { background: transparent; opacity: .35; }
.hero__title h1 { color: #fff; }
.hero__title h1 em, .hero__desc .check-list .icon { color: #a0efed; }
.hero__desc p, .hero__desc ul { color: #e0edf7; }
.hero__formcard { color: var(--text); }
.cta-band.home-register {
    background: linear-gradient(90deg, #091b2d 5%, rgba(9, 27, 45, .85) 54%, rgba(9, 27, 45, .28)),
                #091b2d url("../images/home-market-network.webp") right center / cover no-repeat;
}
.home-register .cta-band__inner > h2 { color: #fff; }
.home-register .cta-band__inner > p { color: #e2edf7; }
.home-register .form-block { color: var(--text); }

@media (max-width: 767px) {
    .hero__art { bottom: auto; height: clamp(420px, 106vw, 700px); }
    .hero__art img { object-position: right top; }
    .hero__art::after { background: linear-gradient(180deg, rgba(8, 24, 47, .57), rgba(8, 24, 47, .3) 52%, #08182f); }
    .cta-band.home-register {
        background-image: linear-gradient(180deg, rgba(9, 27, 45, .76), #091b2d 350px),
                          url("../images/home-market-network.webp");
        background-position: center, right top;
        background-size: cover, auto 380px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    html.js .reveal { opacity: 1; transform: none; transition: none; }
    .hero__bg { transform: none !important; }
}

/* ---------- responsive ---------- */
/* desktop: tables take their container's width (no 16px scrollbar inside half-width grid columns);
   the wrapper still scrolls whenever the cells' own minimum width exceeds the container */
@media (min-width: 1024px) {
    .table-wrap .data-table { min-width: 0; }
}
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
    .main-nav__trigger { padding: 12px 10px; }
    .header-inner { gap: 14px; }
}
@media (max-width: 1023px) {
    .main-nav, .header-cta { display: none; }
    .nav-toggle { display: inline-flex; }
    .header-actions { margin-left: auto; }
    .hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "panel" "desc" "trust"; }
    .hero__title h1 { max-width: 22ch; }
    .hero__formcard { margin: -84px auto 0; }
    .page-hero__inner, .so-hero__inner, .calc-head { grid-template-columns: minmax(0, 1fr); }
    .calc-head { align-items: start; }
    .faq-layout { grid-template-columns: minmax(0, 1fr); }
    .faq-aside { position: static; }
    .company-card { grid-template-columns: minmax(0, 1fr); }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento__tall { grid-row: auto; grid-column: span 2; }
    .bento__wide { grid-column: span 2; }
    .plans { grid-template-columns: minmax(0, 1fr); }
    .plan__who { min-height: 0; }
    .exchanges__chips { margin-left: 0; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps::before { display: none; }
}
@media (max-width: 767px) {
    :root { --header-h: 64px; }
    .hero { padding-top: 24px; }
    .hero__panel { display: flex; flex-direction: column; }
    .hero__formcard { order: 1; margin: 16px 0 0; width: 100%; padding: 20px 18px 18px; }
    .market-panel { order: 2; margin-top: 20px; }
    .market-panel__chart { height: 150px; }
    .market-panel__tabs { display: none; }
    .market-panel__legend { display: none; }   /* the 150px fallback crop: the legend would sit on top of the candles */
    .shield-panel__caption { position: static; margin-top: 16px; }  /* narrow: caption under the shield, not over it */
    .split, .grid-2, .map-grid, .product-tiles { grid-template-columns: minmax(0, 1fr); }
    .steps, .so-steps { grid-template-columns: minmax(0, 1fr); }
    .bento, .bento__tall, .bento__wide { grid-template-columns: minmax(0, 1fr); grid-column: auto; }
    .company-links { grid-template-columns: minmax(0, 1fr); }
    .form-block { padding: 22px 18px 18px; }
    .section { padding: 44px 0; }
    .so-cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 639px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vacancy { grid-template-columns: minmax(0, 1fr); }
    .shield-panel { padding: 22px; }
    .shield-panel__caption { left: 22px; right: 22px; bottom: 18px; }
    .form-block form.wpcf7-101 > div:first-child > div { margin-bottom: 0; }
    .header-cta { display: none; }
}
@media (max-width: 479px) {
    .exchanges__chips { justify-content: center; }
    .chip { width: 140px; height: 52px; }
    .review__stats { grid-template-columns: repeat(3, 1fr); }
    .countdown { gap: 6px; }
    .cd-box { min-width: 56px; font-size: 1.3rem; }
}
@media (max-width: 359px) {
    /* stack the two name fields: the beacon grid becomes a single column */
    .form-block form.wpcf7-101 > div:first-child { display: block; }
    .form-block form.wpcf7-101 > div:first-child > div { margin-bottom: 12px; }
    .form-block form.wpcf7-101 > div:first-child > div:last-child { margin-bottom: 0; }
    .btn { padding: 0 16px; }
}

/* ---------- extra components ---------- */
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: left; }
.auth-points li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .92rem; color: var(--muted); }
.auth-points .icon { color: var(--accent); }
.main-nav--trimmed .main-nav__list { gap: 2px; }
.main-nav__item--plain .main-nav__trigger { text-decoration: none; }
.main-nav__item--plain .main-nav__trigger[aria-current="page"] { color: var(--accent); background: var(--tint); }
.so-form .form-block { box-shadow: var(--shadow-lg); }
.so-form .form-card__title { margin-bottom: 14px; }
.step .icon-badge { margin-bottom: 16px; }
.plan ul + .plan__price { margin-top: 0; }
.section-head h2 .flag { vertical-align: -6px; margin-right: 10px; }
.card h3 .num-circle { width: 34px; height: 34px; font-size: .9rem; box-shadow: 0 0 0 4px var(--tint); }
.prose table { min-width: 0; }
@media (max-width: 767px) { .auth-points { grid-template-columns: minmax(0, 1fr); } }

/* links inside running text are underlined (do not rely on colour alone) */
.prose a, .prose li a, .faq-item__a a, .note a, td a, .form-legal a, .callout a, .plan a, .step a, .hero__desc a, .footer-disclaimer a, .small a, .muted a, .review__text a, .auth-points a, p a:not(.btn), .prose li a, .check-list a, .footer-facts a, .company-fact a, .faq-aside a, .plan__price a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(13, 92, 102, .45); }
.btn, .icon-link, .card--link, .product-tile { text-decoration: none !important; }

/* reserve the form's final size so the beacon's inline styles (arriving after the form markup) cause no layout shift */
.form-block { min-height: 289px; }
.hero__formcard { min-height: 440px; }
@media (min-width: 768px) { .hero__formcard { min-height: 410px; } }
@media (max-width: 359px) { .form-block { min-height: 335px; } }
