/* ==========================================================================
   Gainverance — design system
   Profile: geo-adapted. Theme: light. Accent: maple red #c8102e.
   Fonts: Space Grotesk (display) + Inter (body), self-hosted.
   ========================================================================== */

/* ---- Tokens ---- */
:root {
  --bg: #f7f6f3;
  --surface: #fdfcf9;
  --surface-2: #efece5;
  --border: #e2ddd2;
  --border-strong: #d4cec0;
  --text: #1c2430;
  --text-muted: #5b6572;
  --accent: #c8102e;
  --accent-hover: #a30d26;
  --accent-tint: #f8e9ea;
  --ink: #1c2430;
  --ink-soft: #2c3a4e;
  --paper: #f7f6f3;

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

  --shadow-sm: 0 1px 2px rgba(28, 36, 48, 0.06), 0 2px 6px rgba(28, 36, 48, 0.05);
  --shadow-md: 0 1px 2px rgba(28, 36, 48, 0.06), 0 8px 24px rgba(28, 36, 48, 0.09);
  --shadow-lg: 0 2px 6px rgba(28, 36, 48, 0.08), 0 18px 44px rgba(28, 36, 48, 0.14);

  --font-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container-w: 1200px;
  --header-h: 72px;
}

/* ---- Fonts ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-700.woff2') format('woff2');
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img, svg, iframe, video, canvas { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.18; margin: 0 0 0.6em; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.05rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }
strong { color: var(--text); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.2em 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--ink); color: #fdfcf9; padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: #fdfcf9; text-decoration: none; }

/* ---- Layout primitive ---- */
.container { width: 100%; max-width: var(--container-w); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.section { padding: clamp(44px, 6vw, 76px) 0; position: relative; }
.section-tint { background: var(--surface-2); }
.section-surface { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 12px 22px; border-radius: var(--radius-md);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fdfcf9; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); color: #fdfcf9; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent-tint); color: var(--accent-hover); text-decoration: none; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-soft); color: var(--text); text-decoration: none; background: var(--surface-2); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); background: rgba(247, 246, 243, 0.97); }
.header-inner { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-footer .brand-logo { height: 44px; }

.site-nav { margin-left: auto; }
.nav-groups { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-group { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-size: 0.94rem; font-weight: 600;
  color: var(--text); padding: 10px 12px; border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-trigger:hover, .nav-trigger:focus-visible { background: var(--accent-tint); color: var(--accent-hover); }
.nav-trigger .icon { transition: transform 0.16s ease; }
.nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }

.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 110;
  min-width: 268px; max-width: 340px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 8px; opacity: 0; transform: translateY(4px); visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav-menu::before {
  content: ''; position: absolute; top: -5px; left: 22px;
  width: 10px; height: 10px; background: var(--surface);
  border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.nav-group-right .nav-menu { left: auto; right: 0; }
.nav-group-right .nav-menu::before { left: auto; right: 22px; }
.nav-group.is-open .nav-menu, .nav-menu.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
.nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.93rem; text-decoration: none;
}
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--accent-tint); color: var(--text); text-decoration: none; }
.nav-menu a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-burger {
  display: none; background: none; border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 7px; cursor: pointer; color: var(--text);
  align-items: center; justify-content: center;
}
.nav-burger:hover { border-color: var(--ink-soft); }
.nav-burger .burger-close { display: none; }
.nav-burger[aria-expanded="true"] .burger-open { display: none; }
.nav-burger[aria-expanded="true"] .burger-close { display: inline-flex; }

.mobile-menu { border-top: 1px solid var(--border); background: var(--surface); padding: 14px 0 22px; }
.mobile-menu .btn { margin-top: 14px; }
.mobile-group { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 8px; background: var(--paper); }
.mobile-group summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; padding: 12px 14px; font-family: var(--font-display); font-weight: 600;
}
.mobile-group summary::-webkit-details-marker { display: none; }
.mobile-group[open] summary .icon { transform: rotate(180deg); }
.mobile-group summary .icon { transition: transform 0.16s ease; }
.mobile-group ul { list-style: none; margin: 0; padding: 2px 8px 8px; }
.mobile-group a { display: block; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--text); font-size: 0.94rem; text-decoration: none; }
.mobile-group a:hover { background: var(--accent-tint); text-decoration: none; }

/* ---- Breadcrumbs ---- */
.breadcrumbs { background: var(--surface); border-bottom: 1px solid var(--border); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 12px 0; font-size: 0.86rem; color: var(--text-muted); }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--border-strong); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 500; }

/* ---- Hero (home) ---- */
.hero {
  position: relative; overflow: hidden;
  background: var(--paper);
  padding: clamp(40px, 5.5vw, 84px) 0 clamp(48px, 6vw, 92px);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(247, 246, 243, 0.96) 0%, rgba(247, 246, 243, 0.82) 34%, rgba(247, 246, 243, 0.28) 72%, rgba(247, 246, 243, 0.05) 100%);
}
#hero-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 420px); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy h1 { margin-bottom: 0.45em; max-width: 15ch; }
.hero-copy > p { font-size: 1.08rem; color: var(--text-muted); max-width: 54ch; margin-bottom: 1.2em; }

.hero-flags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hero-flags .flag-label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.flag { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px 4px 5px; font-size: 0.8rem; color: var(--text-muted); box-shadow: var(--shadow-sm); }
.flag svg { display: block; border-radius: 3px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.trust-link {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 16px 10px 12px;
  color: var(--text); font-weight: 600; font-size: 0.92rem; text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.trust-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); color: var(--text); }
.trust-link .icon-badge { width: 38px; height: 38px; }
.trust-link small { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.78rem; line-height: 1.3; }

/* ---- Hero (inner pages) ---- */
.page-hero {
  position: relative; overflow: hidden; background: var(--paper);
  padding: clamp(36px, 5vw, 72px) 0;
  border-bottom: 1px solid var(--border);
}
.page-hero .hero-bg::after {
  background: linear-gradient(100deg, rgba(247, 246, 243, 0.97) 0%, rgba(247, 246, 243, 0.86) 40%, rgba(247, 246, 243, 0.3) 75%, rgba(247, 246, 243, 0.08) 100%);
}
.page-hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 410px); gap: clamp(24px, 4vw, 52px); align-items: start; }
.page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.page-hero .hero-copy > p { font-size: 1.02rem; }

/* ---- Form block ---- */
.form-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
  padding: clamp(20px, 2.6vw, 30px);
  position: relative; z-index: 2;
}
.form-block__heading { font-size: 1.18rem; margin-bottom: 0.5em; }
.form-block__intro { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 1em; }
.form-legal { font-size: 0.8rem; color: var(--text-muted); margin: 12px 0 0; }
.form-legal a { text-decoration: underline; }
.form-note { display: flex; align-items: center; gap: 7px; font-size: 0.86rem; font-weight: 600; color: var(--text); margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--border-strong); }
.form-note .icon { color: var(--accent); flex-shrink: 0; }

/* ---- Cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: clamp(18px, 2.2vw, 26px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 0.5em; }
.card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--accent-tint); color: var(--accent);
}
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge--ink { background: #e8ebee; color: var(--ink); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.grid-cards-stagger { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: step; }
.step-card { position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fdfcf9;
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
  margin-bottom: 12px;
}
.step-card h3 { display: block; }
.step-card p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
thead th {
  background: var(--surface-2); text-align: left; font-family: var(--font-display);
  font-weight: 600; font-size: 0.86rem; letter-spacing: 0.02em;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td, tbody th { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(239, 236, 229, 0.4); }
.table-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 10px; }
.tick-yes { color: #1c7a3d; }
.tick-no { color: var(--accent); }
.tick { display: inline-flex; vertical-align: middle; }

/* ---- Comparison table ---- */
.compare-table col.ours { background: rgba(200, 16, 46, 0.05); }
.compare-table th:first-child { width: 40%; }

/* ---- Reviews ---- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review-card { display: flex; flex-direction: column; gap: 12px; }
.review-head { display: flex; align-items: center; gap: 14px; }
.review-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); box-shadow: var(--shadow-sm); background: var(--surface-2); }
.review-name { font-family: var(--font-display); font-weight: 600; margin: 0; font-size: 1rem; }
.review-role { color: var(--text-muted); font-size: 0.84rem; margin: 0; }
.review-body { font-size: 0.95rem; color: var(--text); margin: 0; flex-grow: 1; }
.review-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.review-chip { background: var(--surface-2); border-radius: 999px; padding: 5px 12px; font-size: 0.78rem; color: var(--text); font-weight: 500; }
.review-chip strong { color: var(--accent); }
.reviews-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 18px; }

/* ---- Company block ---- */
.company-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.company-facts { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(18px, 2.4vw, 28px); box-shadow: var(--shadow-sm); }
.company-facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 0.93rem; }
.company-facts dt { font-family: var(--font-display); font-weight: 600; color: var(--text); }
.company-facts dd { margin: 0; color: var(--text-muted); }
.company-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.company-link {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; box-shadow: var(--shadow-sm); font-weight: 600; font-size: 0.94rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.company-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); text-decoration: none; color: var(--text); }

/* ---- Exchange chips ---- */
.exchange-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.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);
}
.exchange-chip--light { background: #ffffff; }
.exchange-chip--dark { background: #0f172a; }
.exchange-chip img { height: 28px; width: auto; max-width: 120px; }

/* ---- Calculator section ---- */
.calc-section { background: var(--surface-2); }
.calc-decor { display: block; width: 100%; height: 120px; margin: 26px auto 0; opacity: 0.9; }

/* ---- FAQ ---- */
.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 14px; align-items: center;
  padding: 15px 18px; font-family: var(--font-display); font-weight: 600; font-size: 0.99rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex-shrink: 0; color: var(--accent); transition: transform 0.16s ease; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item .faq-answer { padding: 0 18px 16px; color: var(--text-muted); font-size: 0.94rem; }
.faq-item .faq-answer p { margin: 0; }

/* ---- Articles ---- */
.article-card { margin-bottom: 26px; }
.article-card .tag { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; font-family: var(--font-display); }
.article-card p { color: var(--text-muted); }

/* ---- Prose (documents/legal) ---- */
.prose { max-width: 860px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--text); font-size: 0.97rem; }
.prose .lead { font-size: 1.06rem; color: var(--text-muted); }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 1.4em 0; }

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

/* ---- CTA band ---- */
.cta-band { background: var(--ink); color: #f1efe9; border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 20%, rgba(200, 16, 46, 0.28), transparent 65%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fdfcf9; }
.cta-band p { color: #c9cdd4; max-width: 60ch; }
.cta-band .btn-primary { background: var(--accent); }

/* ---- Special offer ---- */
.urgency-strip { background: var(--ink); color: #f1efe9; font-size: 0.85rem; }
.urgency-strip .container { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; padding-top: 9px; padding-bottom: 9px; }
.urgency-strip span { display: inline-flex; align-items: center; gap: 7px; }
.urgency-strip .icon { color: #ff5f70; }
.offer-hero { background: linear-gradient(180deg, #f8e9ea 0%, var(--paper) 70%); }
.countdown { display: inline-flex; gap: 8px; margin: 18px 0 8px; }
.countdown .cd-seg {
  background: var(--ink); color: #fdfcf9; border-radius: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.7rem;
  min-width: 68px; padding: 10px 8px; text-align: center; letter-spacing: 0.04em;
}
.countdown .cd-seg small { display: block; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #c9cdd4; }
.countdown .cd-seg.flash { animation: cd-flash 1s steps(2, jump-none) infinite; }
@keyframes cd-flash { 50% { color: #ff8f9b; } }

.so-modal { position: fixed; inset: 0; z-index: 300; display: none; }
.so-modal.is-open { display: block; }
.so-modal__overlay { position: absolute; inset: 0; background: rgba(28, 36, 48, 0.55); }
.so-modal__content {
  position: relative; z-index: 1; background: var(--surface); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); max-width: 460px; margin: 8vh auto 0; padding: 28px 26px 26px;
  text-align: center;
}
.so-modal__close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--paper);
  color: var(--text); font-size: 1.15rem; cursor: pointer; line-height: 1;
}
.so-modal__close:hover { background: var(--accent-tint); border-color: var(--accent); }
.so-modal__content h3 { font-size: 1.5rem; margin: 12px 0 6px; }
.so-modal__content p { color: var(--text-muted); font-size: 0.94rem; }
.so-modal .countdown { justify-content: center; }
.so-modal .countdown .cd-seg { font-size: 1.35rem; min-width: 58px; }

/* ---- 404 ---- */
.error-wrap { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.error-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 12vw, 7rem); color: var(--accent); line-height: 1; margin-bottom: 10px; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #c9cdd4; margin-top: 0; }
.footer-top { display: flex; align-items: center; gap: 24px; padding: clamp(28px, 4vw, 44px) 0 22px; border-bottom: 1px solid rgba(253, 252, 249, 0.12); flex-wrap: wrap; }
.footer-lead { margin: 0; max-width: 60ch; font-size: 0.9rem; color: #9aa3ae; }
.footer-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px; padding: 30px 0; }
.footer-col h3 { color: #fdfcf9; font-size: 0.92rem; letter-spacing: 0.04em; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; font-size: 0.88rem; }
.footer-col a { color: #c9cdd4; }
.footer-col a:hover { color: #fdfcf9; }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; color: #9aa3ae; }
.footer-contact .icon { flex-shrink: 0; margin-top: 3px; color: #ff5f70; }
.footer-disclaimer { border-top: 1px solid rgba(253, 252, 249, 0.12); padding: 22px 0; }
.footer-disclaimer h3 { font-size: 0.9rem; color: #fdfcf9; margin-bottom: 8px; }
.footer-disclaimer p { font-size: 0.78rem; color: #9aa3ae; margin: 0; line-height: 1.55; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(253, 252, 249, 0.12); padding: 18px 0 26px; font-size: 0.8rem; color: #9aa3ae; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #c9cdd4; }

/* brand logo text needs to stay dark on the light header/footer inverse? */
.brand-footer .brand-logo text { fill: #fdfcf9; }

/* ---- Reveal ---- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal, .no-js .reveal.is-visible { opacity: 1; transform: none; }

/* ---- Decorative section background ---- */
.deco-band {
  background:
    radial-gradient(520px 260px at 8% 12%, rgba(200, 16, 46, 0.05), transparent 60%),
    radial-gradient(640px 320px at 92% 88%, rgba(28, 36, 48, 0.05), transparent 65%),
    var(--surface);
}
.deco-mesh {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cpath d='M0 36 36 0M-9 9 9-9M27 45 45 27' stroke='%231c2430' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
}

/* ---- Responsive ---- */
@media (max-width: 1020px) {
  .grid-cards-stagger { grid-template-columns: repeat(2, 1fr); }
  .span-3, .span-2 { grid-column: auto; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-burger { display: inline-flex; }
  .header-actions .btn { display: none; }
  .hero .container, .page-hero .container { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: none; }
  .company-block { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-cards-stagger { grid-template-columns: 1fr; }
  .exchange-chip { width: 140px; height: 54px; }
  .exchange-chip img { height: 26px; }
}

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

/* Trimmed flat nav (special-offer page) */
.nav-groups-flat { gap: 2px; }
.nav-group-flat .nav-trigger { text-decoration: none; }
@media (max-width: 780px) {
  .nav-groups-flat { display: none; }
}

/* Beacon ticker host is 40px wider than 100% by design; keep it inside the
   viewport on phones so the page never scrolls horizontally (QA 6). */
@media (max-width: 520px) {
  .tv-ticker-host { width: 100% !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: rgb(24, 33, 47) !important;
}

@media (max-width: 1023px) {
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .reviews-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Homepage layout and site header action */
.home-hero {
  isolation: isolate;
  padding-block: clamp(52px, 6vw, 94px);
  background: #f4f1ed;
}

.home-hero .hero-bg::after { content: none; }
.home-hero .hero-media {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}
.home-hero .hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 54%;
}
.home-hero .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f4f1edf7 2%, #f4f1edc9 43%, #f4f1ed20 87%);
}
.home-hero .hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  grid-template-rows: auto 1fr;
  grid-template-areas: "headline registration" "details registration";
  column-gap: clamp(34px, 5vw, 82px);
  row-gap: clamp(14px, 2vw, 24px);
  align-items: start;
  padding-block: 0;
}
.home-hero .hero-title {
  grid-area: headline;
  min-width: 0;
}
.home-hero .hero-title h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.25rem, 4.15vw, 4.1rem);
  line-height: 1.08;
  text-wrap: balance;
}
.home-hero .hero-title h1 span { color: #873d2a; }
.home-hero .hero-details {
  grid-area: details;
  min-width: 0;
  max-width: 60ch;
  margin: 0;
  display: grid;
  justify-items: start;
  gap: clamp(14px, 1.7vw, 22px);
}
.home-hero .hero-details > * { margin: 0; }
.home-hero .hero-details .hero-flags { flex-wrap: wrap; }
.home-hero .hero-details > .lead,
.home-hero .hero-details > .hero__sub { line-height: 1.6; }
.home-hero .hero-form-panel {
  grid-area: registration;
  min-width: 0;
  padding: clamp(18px, 2.4vw, 32px);
  background: #fbf9f5;
  border: 1px solid #ddc0b2;
  border-block-start: 3px solid #873d2a;
  border-radius: 18px 34px 18px 18px;
  box-shadow: 0 18px 48px #0b16202b;
}
.home-hero .hero-form-panel .form-block,
.home-hero .hero-form-panel > .form-card {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.account-cta {
  gap: 9px;
  min-height: 44px;
  padding-block: 6px;
  padding-inline: 13px;
  border: 1px solid #873e2a;
  border-radius: 7px 17px 7px 7px;
  background: #9a432a;
  color: #fffaf4;
  box-shadow: 0 4px 12px #0b17152d;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.account-cta__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 25px;
  height: 25px;
  border-radius: 4px 10px 4px 4px;
  background: #ffffff30;
}
.account-cta__icon svg { width: 16px; height: 16px; stroke-width: 2; }
.account-cta:hover {
  background: #77301f;
  color: #fffaf4;
  text-decoration: none;
  box-shadow: 0 7px 18px #0b171542;
  transform: translateY(-1px);
}
.account-cta:focus-visible {
  outline: 2px solid #873e2a;
  outline-offset: 3px;
}
.account-cta:active { transform: translateY(0); }

@media (max-width: 900px) {
  .home-hero { padding-block: clamp(26px, 6.5vw, 50px) 42px; }
  .home-hero .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "headline" "registration" "details";
    gap: clamp(18px, 4.5vw, 28px);
    max-width: 660px;
  }
  .home-hero .hero-title h1 { max-width: 24ch; font-size: clamp(2rem, 7.6vw, 3.2rem); }
  .home-hero .hero-media { inset-block-end: auto; height: clamp(460px, 120vw, 720px); }
  .home-hero .hero-media img { object-position: 50% 35%; }
  .home-hero .hero-media::after { background: linear-gradient(180deg, #f4f1ede3, #f4f1ed55 40%, #f4f1ed 100%); }
  .home-hero .hero-form-panel { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .account-cta { transition: none; }
}

/* Canadian field guide */
.home-hero .hero-title { padding-inline-start: clamp(14px,2vw,30px); border-inline-start: 8px solid #c8102e; }
.home-hero .hero-title h1 { font-weight: 850; letter-spacing: -.05em; }
.home-security { background: #fffaf5; border-block-end: 1px solid #dacdc2; }
.home-security .card { background: transparent; border: 0; border-block-start: 3px solid #b81732; border-radius: 0; box-shadow: none; padding-inline: 0; }
.home-company .company-facts { border-inline-start: 4px solid #ba1632; padding-inline-start: 20px; }
@media (min-width: 901px) {
  .home-hero .hero-layout { grid-template-areas: "headline registration" "details registration"; column-gap: 7%; }
  .home-security > .container { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.7fr); gap: 6%; }
  .home-security .grid-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Homepage reading rhythm and registration link */
:is(.home-markets,.home-company,.home-security,.home-steps,.home-advantages,.home-comparison,.home-reviews) { padding-block: clamp(36px, 6vw, 80px); }
.home-hero .hero-details p { max-inline-size: 65ch; }
:is(.home-markets,.home-security,.home-steps,.home-advantages,.home-comparison,.home-reviews) .section-head { margin-block: 0 clamp(18px, 2.3vw, 32px); }
:is(.home-markets,.home-security,.home-steps,.home-advantages,.home-comparison,.home-reviews) .section-head h2 { margin-block: 0; text-wrap: balance; }
:is(.home-markets,.home-security,.home-steps,.home-advantages,.home-comparison,.home-reviews) .section-head h2 + p { margin-block: 10px 0; }
.home-steps .steps-enquiry { display: inline-flex; align-items: center; justify-content: center; justify-self: start; min-height: 46px; max-width: 100%; padding: 10px 22px; margin-block-start: 24px; border-radius: 6px; background: #a7122b; color: #ffffff; font-weight: 700; text-decoration: none; line-height: 1.35; }
.home-steps .steps-enquiry:hover { text-decoration: underline; text-underline-offset: .2em; }
.home-steps .steps-enquiry:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
#homepage-enquiry { scroll-margin-block-start: 108px; }
@media (max-width: 600px) {
  .home-steps .steps-enquiry { width: 100%; }
}

/* Homepage registration panels */
.home-hero .enquiry-panel, .section .enquiry-panel {
  position: relative; min-width: 0; box-sizing: border-box; padding: clamp(18px,2.4vw,32px);
  border: 1px solid #c8c3ba;
  border-radius: 3px;
  background: linear-gradient(100deg,#f9e3e1 0 14px,#fffaf4 14px);
  box-shadow: 4px 4px 0 #fffaf4, 5px 5px 0 #aaa199;
  padding-inline-start: clamp(29px,3vw,42px);
}
.section .enquiry-panel .form-block { margin: 0; max-width: none; padding: 0; border: 0; background: transparent; box-shadow: none; }
.enquiry-panel::before { content: ""; display: block; height: 9px; width: 76px; background: #a7122b; margin-block: -5px 16px; }
