/* ==========================================================================
   Ñundoluma — design system (geo-adapted profile, dark graphite + sol gold)
   ========================================================================== */

:root {
    --bg:          #16130f;
    --bg-2:        #1b1712;
    --surface:     #1f1a14;
    --surface-2:   #262019;
    --border:      #342c22;
    --border-soft: #2b241c;
    --text:        #f4efe6;
    --text-muted:  #b3a893;
    --text-faint:  #8d8371;

    --accent:       #f2b33d;
    --accent-hover: #ffc65c;
    --accent-tint:  rgba(242, 179, 61, 0.13);
    --accent-line:  rgba(242, 179, 61, 0.32);
    --celeste:      #7fb6c9;   /* guiño al celeste de la bandera, sólo acentos finos */
    --up:           #7fc98f;
    --down:         #e08a76;

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

    --shadow-sm: 0 1px 2px rgba(10, 8, 4, 0.5), 0 2px 8px rgba(10, 8, 4, 0.28);
    --shadow-md: 0 1px 2px rgba(10, 8, 4, 0.55), 0 10px 28px rgba(10, 8, 4, 0.34);
    --shadow-lg: 0 2px 6px rgba(10, 8, 4, 0.6), 0 24px 56px rgba(10, 8, 4, 0.45);

    --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

    --header-h: 72px;
}

/* ---------- base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(1100px 520px at 85% -8%, rgba(242, 179, 61, 0.07), transparent 60%),
        radial-gradient(900px 640px at -10% 22%, rgba(127, 182, 201, 0.05), transparent 55%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 0.55em; font-weight: 650; letter-spacing: -0.012em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.17rem; }
p  { margin: 0 0 1em; }
a  { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

.icon { width: 22px; height: 22px; flex: none; }
.icon-xs { width: 16px; height: 16px; }

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

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

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

.section { padding-block: clamp(48px, 7vw, 88px); position: relative; }
.section-tint { background: linear-gradient(180deg, var(--bg-2), rgba(27, 23, 18, 0.35)); }
.section-tint-2 {
    background:
        radial-gradient(760px 380px at 12% 0%, rgba(127, 182, 201, 0.06), transparent 62%),
        var(--surface);
    border-block: 1px solid var(--border-soft);
}

.section-head { max-width: 760px; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head h2 { margin-bottom: 0.35em; }
.section-head .lead { color: var(--text-muted); font-size: 1.06rem; }

.eyebrow {
    display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}

/* mesh texture for decorative bands */
.mesh-band {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23f2b33d' stroke-opacity='0.07'%3E%3Cpath d='M0 35h140M0 70h140M0 105h140M35 0v140M70 0v140M105 0v140'/%3E%3C/g%3E%3C/svg%3E");
}

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 650; line-height: 1;
    border-radius: 12px; padding: 14px 22px; border: 1px solid transparent;
    cursor: pointer; transition: transform 0.16s ease, box-shadow 0.16s ease,
        background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent); color: #1c1608;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-hover); color: #1c1608; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
    background: transparent; color: var(--text);
    border-color: var(--accent-line);
}
.btn-secondary:hover { background: var(--accent-tint); color: var(--accent-hover); border-color: var(--accent); }
.btn-sm { padding: 10px 16px; font-size: 0.95rem; border-radius: 10px; }
.btn-block { width: 100%; }

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

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(22, 19, 15, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); background: rgba(22, 19, 15, 0.96); }

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

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-word { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.02em; }

.site-nav { margin-left: auto; margin-right: 8px; }
.nav-groups { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }

.nav-trigger {
    display: inline-flex; align-items: center; gap: 6px;
    font: inherit; font-size: 0.97rem; font-weight: 600; color: var(--text);
    background: none; border: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: var(--accent-tint); color: var(--accent); }
.nav-trigger .icon { transition: transform 0.16s ease; }
.nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }

.nav-drop {
    position: absolute; top: calc(100% + 10px); left: 0;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-md);
    padding: 8px; min-width: 260px; max-width: 340px;
    opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
    z-index: 110;
}
.nav-drop::before {
    content: ""; 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);
}
.nav-drop.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-group { position: relative; }
.nav-group.align-right .nav-drop { left: auto; right: 0; }
.nav-group.align-right .nav-drop::before { left: auto; right: 22px; }
.nav-drop ul { list-style: none; margin: 0; padding: 0; }
.nav-drop a {
    display: block; padding: 10px 12px; border-radius: 8px;
    color: var(--text); font-size: 0.95rem; font-weight: 550;
}
.nav-drop a:hover, .nav-drop a:focus-visible { background: var(--accent-tint); color: var(--accent-hover); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-nav + .header-actions { margin-left: 0; }

.nav-toggle {
    display: none; background: none; border: 1px solid var(--border);
    border-radius: 10px; padding: 9px; color: var(--text); cursor: pointer;
}
.nav-toggle .icon-menu-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu-close { display: block; }

.mobile-menu { border-top: 1px solid var(--border-soft); padding-block: 14px 20px; }
.mobile-group { border-bottom: 1px solid var(--border-soft); }
.mobile-group-trigger {
    display: flex; width: 100%; align-items: center; justify-content: space-between;
    font: inherit; font-weight: 650; color: var(--text);
    background: none; border: 0; padding: 13px 2px; cursor: pointer;
}
.mobile-group-trigger .icon { transition: transform 0.16s ease; }
.mobile-group-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-group-items ul { list-style: none; margin: 0 0 8px; padding: 0; }
.mobile-group-items a {
    display: block; padding: 9px 10px; border-radius: 8px;
    color: var(--text-muted); font-size: 0.97rem;
}
.mobile-group-items a:hover { background: var(--accent-tint); color: var(--accent-hover); }
.mobile-menu .btn { margin-top: 14px; }

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

.breadcrumbs { border-bottom: 1px solid var(--border-soft); background: rgba(27, 23, 18, 0.5); }
.breadcrumbs ol {
    display: flex; flex-wrap: wrap; gap: 6px; list-style: none;
    margin: 0; padding: 11px 0; font-size: 0.88rem; color: var(--text-faint);
}
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--text-faint); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-hover); }

/* ---------- hero (home) ---------- */

.hero {
    position: relative; overflow: hidden;
    padding-block: clamp(44px, 6vw, 84px) clamp(40px, 6vw, 76px);
}
.hero-bg {
    position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(1000px 500px at 78% 10%, rgba(242, 179, 61, 0.16), transparent 62%),
        radial-gradient(800px 600px at 8% 90%, rgba(127, 182, 201, 0.1), transparent 60%),
        linear-gradient(165deg, #1d1811 0%, #16130f 55%, #141109 100%);
}
.hero-bg-img {
    position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
    object-fit: cover; opacity: 0.5;
}
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; }

.hero-grid {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero-copy h1 { margin-bottom: 0.4em; }
.hero-copy .hero-sub { color: var(--text-muted); font-size: 1.08rem; max-width: 58ch; margin-bottom: 1.1em; }

.hero-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.hero-flags .flag-label { font-size: 0.93rem; color: var(--text-muted); margin-right: 4px; }
.flag-chip {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--border); border-radius: 999px;
    padding: 5px 12px 5px 6px; background: rgba(31, 26, 20, 0.72);
    font-size: 0.86rem; color: var(--text-muted);
}
.flag-chip .flag { width: 26px; height: 18px; border-radius: 3px; display: block; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.trust-link {
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 10px 14px; color: var(--text); font-weight: 600; font-size: 0.93rem;
    background: rgba(31, 26, 20, 0.6);
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.trust-link:hover { border-color: var(--accent-line); color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.trust-link .icon { color: var(--accent); }

.hero-form-note {
    display: flex; align-items: flex-start; gap: 8px;
    color: var(--text-muted); font-size: 0.9rem; margin: 12px 2px 0;
}
.hero-form-note .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--accent); }

.hero-visual { position: relative; }
.hero-form-card {
    background: rgba(31, 26, 20, 0.92);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); padding: 22px 22px 18px;
    position: relative;
}
.hero-form-card::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
    background: linear-gradient(140deg, rgba(242, 179, 61, 0.35), transparent 40%);
}

.form-block-heading { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; }
.form-block-sub { color: var(--text-muted); font-size: 0.87rem; margin-bottom: 12px; }

/* inner-page hero */
.hero-inner { position: relative; overflow: hidden; padding-block: clamp(40px, 5.5vw, 72px); }
.hero-inner .hero-grid { align-items: center; }
.hero-inner .hero-sub { max-width: 62ch; }

/* ---------- formFactory wrapper ---------- */

.form-block { position: relative; }
.form-block__intro { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 12px; }
.form-legal { font-size: 0.82rem; color: var(--text-faint); margin: 10px 2px 0; }
.form-legal a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.form-legal a:hover { color: var(--accent-hover); }

/* ---------- steps ---------- */

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
    padding: 22px; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--accent); color: #1c1608; font-weight: 700; font-size: 0.95rem;
    margin-bottom: 12px;
}
.step-card h3 { margin-bottom: 0.35em; font-size: 1.06rem; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ---------- comparison table ---------- */

.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td { padding: 13px 16px; text-align: left; }
.compare-table thead th {
    background: var(--surface-2); font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}
.compare-table thead th:first-child { border-top-left-radius: var(--radius-md); }
.compare-table thead th:last-child { border-top-right-radius: var(--radius-md); }
.compare-table tbody tr:nth-child(odd) { background: rgba(38, 32, 25, 0.45); }
.compare-table tbody tr:nth-child(even) { background: rgba(31, 26, 20, 0.45); }
.compare-table tbody tr:hover { background: var(--accent-tint); }
.compare-table td:first-child { font-weight: 600; }
.compare-table .cell-brand { color: var(--accent); font-weight: 700; }
.tick { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; }
.tick-yes { background: rgba(127, 201, 143, 0.16); color: var(--up); }
.tick-no  { background: rgba(224, 138, 118, 0.14); color: var(--down); }

.table-wrap {
    overflow-x: auto; border: 1px solid var(--border);
    border-radius: var(--radius-md); background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.table-wrap table { margin: 0; min-width: 560px; }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; font-size: 0.95rem; }
.table-wrap thead th { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.table-wrap tbody tr + tr { border-top: 1px solid var(--border-soft); }

/* ---------- icon cards ---------- */

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.icon-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 22px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.icon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.icon-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; border-radius: 13px;
    background: var(--accent-tint); color: var(--accent); margin-bottom: 14px;
}
.icon-badge .icon { width: 24px; height: 24px; }
.icon-card h3 { font-size: 1.05rem; margin-bottom: 0.35em; }
.icon-card p { color: var(--text-muted); font-size: 0.94rem; margin: 0; }
.icon-card .icon-card-link { display: inline-flex; margin-top: 12px; font-weight: 600; font-size: 0.92rem; }

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

.reviews-note {
    display: flex; gap: 10px; align-items: flex-start;
    background: var(--accent-tint); border: 1px solid var(--accent-line);
    border-radius: var(--radius-md); padding: 12px 16px;
    color: var(--text); font-size: 0.9rem; margin-bottom: 24px;
}
.reviews-note .icon { color: var(--accent); margin-top: 2px; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.review-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 20px;
    display: flex; flex-direction: column; gap: 12px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--accent-tint); color: var(--accent); border: 1px solid var(--accent-line);
    flex: none;
}
.review-avatar .icon { width: 22px; height: 22px; }
.review-who { font-weight: 650; }
.review-who small { display: block; font-weight: 500; color: var(--text-muted); font-size: 0.84rem; }
.review-text { color: var(--text-muted); font-size: 0.95rem; margin: 0; flex: 1; }
.review-figures { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.88rem; }
.review-figures span { color: var(--text-faint); }
.review-figures strong { color: var(--text); font-weight: 650; }

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

.company-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(24px, 4vw, 48px); align-items: start;
}
.company-facts { list-style: none; margin: 18px 0 0; padding: 0; }
.company-facts li {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 10px 0; border-bottom: 1px solid var(--border-soft);
    color: var(--text-muted); font-size: 0.96rem;
}
.company-facts .icon { color: var(--accent); width: 19px; height: 19px; margin-top: 3px; }
.company-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.company-link-card {
    display: flex; gap: 12px; align-items: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 14px 16px;
    color: var(--text); font-weight: 600; font-size: 0.94rem;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.company-link-card:hover { transform: translateY(-2px); border-color: var(--accent-line); color: var(--text); box-shadow: var(--shadow-md); }
.company-link-card .icon-badge { width: 42px; height: 42px; margin: 0; border-radius: 11px; }
.company-link-card .icon-badge .icon { width: 20px; height: 20px; }

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

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

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

.faq-list { max-width: 820px; }
.faq-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin-bottom: 12px;
    overflow: hidden;
}
.faq-q {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px;
    font: inherit; font-weight: 650; text-align: left; color: var(--text);
    background: none; border: 0; padding: 16px 18px; cursor: pointer;
}
.faq-q .icon { color: var(--accent); transition: transform 0.16s ease; }
.faq-q[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq-a { padding: 0 18px 16px; color: var(--text-muted); }
.faq-a[hidden] { display: none; }

/* ---------- prose (content pages) ---------- */

.prose { max-width: 820px; }
.prose-wide { max-width: 980px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3em; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose .callout {
    background: var(--accent-tint); border: 1px solid var(--accent-line);
    border-radius: var(--radius-md); padding: 14px 18px; margin: 0 0 1.2em;
}
.prose .callout p { margin: 0; color: var(--text); font-size: 0.96rem; }
.prose .callout .icon { color: var(--accent); vertical-align: -4px; margin-right: 8px; }

.page-split {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: clamp(24px, 4vw, 52px); align-items: center;
}

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

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

/* ---------- decorative canvas ---------- */

.spark-wrap {
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: rgba(31, 26, 20, 0.6); box-shadow: var(--shadow-sm);
    padding: 10px; max-width: 980px;
}
.spark-wrap canvas { width: 100%; height: 190px; display: block; }

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

.offer-band {
    background:
        radial-gradient(600px 300px at 85% 20%, rgba(242, 179, 61, 0.18), transparent 65%),
        linear-gradient(140deg, #241d13, #17130d);
    border-block: 1px solid var(--accent-line);
}
.offer-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.exit-link-note {
    font-size: 0.86rem; color: var(--text-faint);
    border-top: 1px solid var(--border-soft); margin-top: 40px; padding-top: 16px;
}
.exit-link-note a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }

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

.site-footer {
    border-top: 1px solid var(--border-soft);
    background:
        radial-gradient(900px 400px at 90% 0%, rgba(242, 179, 61, 0.05), transparent 60%),
        #141109;
    padding-top: clamp(40px, 5vw, 64px);
}
.footer-top {
    display: grid; grid-template-columns: minmax(240px, 1.2fr) repeat(4, minmax(150px, 1fr));
    gap: 28px 22px; padding-bottom: 34px;
}
.brand-footer { margin-bottom: 12px; }
.footer-note { color: var(--text-muted); font-size: 0.92rem; }
.footer-contact { font-size: 0.88rem; color: var(--text-faint); line-height: 2; }
.footer-contact .icon { width: 14px; height: 14px; color: var(--accent); vertical-align: -2px; margin-right: 6px; }
.footer-contact a { color: var(--text-muted); }
.footer-col h3 { font-size: 0.86rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a {
    display: inline-block; padding: 3.5px 0; color: var(--text-muted); font-size: 0.92rem;
}
.footer-col a:hover { color: var(--accent-hover); }

.footer-disclaimer {
    border-top: 1px solid var(--border-soft);
    padding-top: 22px; color: var(--text-faint); font-size: 0.84rem; line-height: 1.7;
}
.footer-bottom {
    display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
    padding-block: 18px 26px; color: var(--text-faint); font-size: 0.86rem;
}
.footer-bottom p { margin: 0; }
.footer-offer-link { display: flex; align-items: center; gap: 10px; }
.footer-offer-link a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-offer-note { color: var(--text-faint); font-size: 0.78rem; }

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

.reveal { opacity: 0; transform: translateY(10px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1); }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
    .footer-top { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
    .site-nav { display: none; }
    .nav-toggle { display: inline-flex; align-items: center; }
    .hero-grid, .page-split, .company-grid { grid-template-columns: 1fr; }
    .hero-form-card { max-width: 560px; }
}

@media (max-width: 640px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .hero-flags .flag-label { width: 100%; }
    .header-actions .btn span { display: none; }
    .header-actions .btn { padding: 10px 12px; }
    .header-inner { gap: 10px; }
    .brand-mark { width: 34px; height: 34px; }
    .brand-word { font-size: 1.06rem; }
}

/* keep the injected ticker row inside the viewport on small screens */
.tv-ticker-host,
tv-ticker-tape {
    max-width: 100%;
    overflow: hidden;
}

/* hero canvas is decoration only; the animated layer never runs below 768px */
@media (max-width: 767px) {
    .hero-canvas { display: none; }
}

@media (max-width: 420px) {
    .footer-top { grid-template-columns: 1fr; }
    .exchange-chip { width: 148px; height: 54px; }
    .exchange-chip img { height: 24px; }
}

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

/* Homepage composition and desktop navigation */
.market-hero { background: linear-gradient(90deg, #311f2bf5, #311f2bbb 50%, #311f2b66), url("../images/market-hero.webp") center / cover no-repeat; color: #fff; isolation: isolate; padding-block: clamp(3rem, 7vw, 7rem); }
.market-hero > :is(.hero-bg,.hero-bg-wrap,.hero-canvas) { visibility: hidden; }
.market-hero .hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: clamp(1.55rem, 4.4vw, 4.3rem); }
.market-hero .hero-copy { min-width: 0; }
.market-hero h1 { color: #fff; font-size: clamp(2.15rem, 4.1vw, 4.35rem); line-height: 1.07; margin: 0 0 1.15rem; text-wrap: balance; }
.market-hero .market-hero__accent { color: #ffbf9d; }
.market-hero .hero-copy :is(p, .flag-label, .hero__flags-label), .market-hero .hero-aux :is(p, .flag-label) { color: #f0edf4; }
.market-hero :is(.badge-link, .hero-trust a, .hero-pill, .hero-icon-link, .flag-chip, .hero-flags .flag) { background-color: #552e3b; color: #fff; border-color: #ffffff45; }
.market-hero :is(.badge-link, .hero-trust a, .hero-pill, .hero-icon-link) :is(span, small) { color: #fff; }
.market-hero .hero-form-card { background: #fff; color: #18212f; border-radius: 24px 6px 24px 6px; padding: clamp(1rem, 2.6vw, 2rem); min-width: 0; width: 100%; box-sizing: border-box; box-shadow: 0 20px 58px #0005; border-bottom: 4px solid #ffbf9d; }
.market-hero .hero-form-card :is(h2, .form-heading, .form-block-heading, .form-block__title) { color: #18212f; }
.market-hero .hero-form-card :is(.form-sub, .form-block-sub, .hero-note, .hero-form-note) { color: #374151; }
.market-section { padding-block: clamp(3rem, 6vw, 6rem); }
.market-section--1, .market-section--4, .market-section--8 { background-color: #fbefe9; }
.market-scenarios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 2vw, 1.65rem); }
.market-scenarios :is(.review-card, .review) { min-width: 0; height: 100%; border-top: 3px solid #ffbf9d; }
.market-scenarios :is(.review-avatar, .review-card__avatar) { display: block; flex: 0 0 52px; width: 52px; height: 52px; padding: 0; border-radius: 50%; overflow: hidden; }
.market-scenarios .market-scenarios__photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.iti .iti__selected-country { background-color: #fff; color: #18212f !important; border-radius: 5px; }
.iti .iti__selected-dial-code { color: #18212f !important; }
.iti .iti__dropdown-content, .iti .iti__country-list { background: #fff; color: #18212f; }
.iti .iti__country-name { color: #0c1118 !important; }
.iti .iti__country.iti__highlight { background-color: #e5edf7; }
@media (min-width: 1025px) {
  .site-header :is(.main-nav, .site-nav) { margin-inline: auto; }
  .site-header :is(.main-nav__list, .nav-list, .nav-groups) { column-gap: clamp(.25rem, 1vw, .85rem); }
  .site-header :is(.main-nav__trigger, .nav-trigger, .nav-group__link) { padding: .67rem .8rem; border-radius: 8px; white-space: nowrap; }
  .site-header :is(.main-nav__trigger, .nav-trigger, .nav-group__link):is(:hover, :focus-visible, [aria-expanded="true"]) { background: #fbefe9; color: #311f2b; }
  .site-header .market-header-cta { min-height: 44px; padding-inline: 1.25rem; border-radius: 24px 6px 24px 6px; background: #552e3b; color: #fff; border: 1px solid #552e3b; box-shadow: 0 5px 0 #ffbf9d; white-space: nowrap; }
  .site-header .market-header-cta:is(:hover, :focus-visible) { background: #311f2b; color: #fff; box-shadow: 0 2px 0 #ffbf9d; }
}
@media (max-width: 820px) {
  .market-hero { padding-block: 2.75rem; background-image: linear-gradient(#311f2ba8, #311f2bef), url("../images/market-hero.webp"); }
  .market-hero .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .market-hero .hero-copy { display: contents; }
  .market-hero .hero-copy > h1 { order: -3; grid-column: 1; grid-row: auto; margin: 0; }
  .market-hero .hero-form-card { order: -2; grid-column: 1; grid-row: auto; }
  .market-hero .hero-aux { grid-column: 1; grid-row: auto; }
  .market-scenarios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 570px) { .market-scenarios { grid-template-columns: minmax(0, 1fr); } }

section.market-hero h1 { font-size: clamp(2rem, 3.7vw, 4rem); }
@media (max-width: 820px) {
  section.market-hero { padding-block: 2.25rem; min-height: 0; }
  section.market-hero .hero-grid {
    grid-template-areas: none;
    grid-template-rows: none;
    row-gap: 1.125rem;
    padding-block: 0;
  }
  section.market-hero .hero-grid h1 {
    grid-area: 1 / 1 !important;
    order: -3 !important;
    font-size: clamp(2rem, 8vw, 3rem);
    margin: 0;
  }
  section.market-hero .hero-grid .hero-form-card {
    grid-area: 2 / 1 !important;
    order: -2 !important;
  }
}

@media (max-width: 820px) {
  section.market-hero .hero-grid > .hero-visual { display: contents; }
}

.market-hero .hero-form-card .form-legal a { color: #543347; text-decoration: underline; } .market-section:is(.market-section--4, .market-section--8) .section-head h2 { color: #311f2b; } .market-section:is(.market-section--4, .market-section--8) .section-head .lead { color: #51404c; }

.tv-ticker-wrapper {
  padding-top: 0px !important;
  height: 58px !important;
}
