/* ===========================================================================
   Calvero Spark — design system
   Theme: dark "ignition ink" · Accent: spark amber #F5A524 · Profile: animation-led
   =========================================================================== */

:root {
  --bg: #0F1216;
  --surface: #161B22;
  --surface-2: #1D242E;
  --border: #2A3340;
  --border-strong: #39455466;
  --text: #E9EDF3;
  --text-muted: #9BA8B7;
  --accent: #F5A524;
  --accent-hover: #FFB84D;
  --accent-ink: #231604;
  --accent-tint: rgba(245, 165, 36, .13);
  --accent-tint-2: rgba(245, 165, 36, .07);
  --down: #F26D6D;
  --shadow-sm: 0 1px 2px rgba(4, 7, 12, .5), 0 2px 8px rgba(4, 7, 12, .35);
  --shadow-md: 0 2px 4px rgba(4, 7, 12, .45), 0 10px 28px rgba(4, 7, 12, .4);
  --shadow-lg: 0 4px 8px rgba(4, 7, 12, .5), 0 20px 48px rgba(4, 7, 12, .5);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* --- Base ------------------------------------------------------------------ */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .4em; }
strong { color: var(--text); font-weight: 600; }

:is(a, button, input, select, summary):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);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --- Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--font-sans);
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent-hover); color: var(--accent-ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--accent-tint); color: var(--accent-hover); transform: translateY(-1px); }
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.06rem; }

/* --- Header / nav ----------------------------------------------------------- */

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

.header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }

.header-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.header-logo:hover { color: var(--text); }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__word { font-size: 1.18rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.logo__word em { font-style: normal; color: var(--accent); font-weight: 500; }

.site-nav { margin-inline-end: auto; }
.nav-list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }

.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 .95rem/1 var(--font-sans); color: var(--text);
  background: none; border: 0; padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background-color .16s var(--ease), color .16s var(--ease);
}
.nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: var(--surface-2); color: var(--accent); }
.nav-caret { transition: transform .16s var(--ease); }
.nav-trigger[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.dropdown {
  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: 270px; max-width: 340px;
  opacity: 0; transform: translateY(4px); visibility: hidden;
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
  z-index: 110;
}
.dropdown::before {
  content: ""; position: absolute; top: -5px; left: 24px; width: 10px; height: 10px;
  background: var(--bg); border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.dropdown.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
.dropdown.align-right { left: auto; right: 0; }
.dropdown.align-right::before { left: auto; right: 24px; }

.nav-item { position: relative; }
.dropdown__list { list-style: none; margin: 0; padding: 0; max-height: min(62vh, 480px); overflow-y: auto; }
.dropdown__link {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--text); font-size: .93rem; line-height: 1.35;
}
.dropdown__link:hover, .dropdown__link:focus-visible { background: var(--accent-tint); color: var(--text); }
.dropdown__link.is-active { color: var(--accent); background: var(--accent-tint-2); }

.header-actions { display: flex; align-items: center; gap: 12px; }

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

.mobile-nav { border-top: 1px solid var(--border); background: var(--bg); padding: 14px 0 22px; max-height: 78vh; overflow-y: auto; }
.mobile-nav__group { border-bottom: 1px solid var(--border); }
.mobile-nav__trigger {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  background: none; border: 0; color: var(--text); font: 600 1rem/1.3 var(--font-sans);
  padding: 14px 0; cursor: pointer;
}
.mobile-nav__trigger[aria-expanded="true"] { color: var(--accent); }
.mobile-nav__panel ul { list-style: none; padding: 0 0 12px; margin: 0; }
.mobile-nav__panel a { display: block; padding: 9px 2px; color: var(--text-muted); font-size: .95rem; }
.mobile-nav__panel a:hover, .mobile-nav__panel a.is-active { color: var(--accent); }
.mobile-nav .btn { margin-top: 16px; }

/* --- Ticker row (auto-injected by the addon) -------------------------------- */

main { display: block; }

/* --- Hero ------------------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(245, 165, 36, .16), transparent 62%),
    radial-gradient(760px 480px at -8% 108%, rgba(245, 165, 36, .08), transparent 60%),
    linear-gradient(180deg, #12161d 0%, var(--bg) 88%);
  border-bottom: 1px solid var(--border);
}
.hero__decor { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.hero__decor svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 56px); align-items: start;
  padding-block: clamp(48px, 7vw, 96px) clamp(44px, 6vw, 76px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .74rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-tint);
  border: 1px solid rgba(245, 165, 36, .25);
  padding: 8px 14px; border-radius: 999px; margin-bottom: 18px;
}

.hero h1 { margin-bottom: .45em; max-width: 15ch; }
.hero .hero__lead { font-size: 1.08rem; color: var(--text-muted); max-width: 54ch; margin-bottom: 22px; }

.hero__flags { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.hero__flags .flag-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px 6px 8px; font-size: .9rem; color: var(--text);
  box-shadow: var(--shadow-sm);
}
.flag-chip svg { border-radius: 3px; display: block; }

.hero__icons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.icon-link {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 16px; color: var(--text); font-size: .93rem; font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.icon-link:hover { transform: translateY(-2px); border-color: rgba(245, 165, 36, .5); box-shadow: var(--shadow-md); color: var(--text); }
.icon-link .icon-badge { flex: none; }

/* icon badge (design.md §6) */
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  background: var(--accent-tint); color: var(--accent);
}
.icon-badge--sm { width: 38px; height: 38px; border-radius: 11px; }

/* --- Form block ------------------------------------------------------------- */

.form-block {
  position: relative; z-index: 2;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 26px clamp(18px, 2.6vw, 30px) 22px;
}
.form-block__heading { font: 600 1.02rem/1.35 var(--font-sans); margin: 0 0 14px; color: var(--text); }
.form-block__intro { color: var(--text-muted); font-size: .95rem; margin: -6px 0 14px; }
.form-block__note {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .88rem; color: var(--text-muted); margin: 14px 0 0;
}
.form-block__note svg { flex: none; margin-top: 2px; color: var(--accent); }
.form-legal { font-size: .82rem; color: var(--text-muted); margin: 10px 0 0; }
.form-legal a { text-decoration: underline; }

/* --- Sections ---------------------------------------------------------------- */

.section { padding-block: clamp(52px, 7vw, 92px); position: relative; }
.section--tint { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-block: 1px solid var(--border); }
.section--mesh { background: radial-gradient(900px 420px at 50% -220px, var(--accent-tint-2), transparent 70%), var(--bg); }
.section--panel { background: var(--surface); border-block: 1px solid var(--border); }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head p { color: var(--text-muted); font-size: 1.02rem; margin: 0; }
.section-head > div { max-width: 640px; }

/* --- Cards / grids ------------------------------------------------------------ */

.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid--tight { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card-grid--pair { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(245, 165, 36, .4); }
.card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card p { color: var(--text-muted); margin: 0; font-size: .96rem; }
.card--flat:hover { transform: none; }

.card-link { display: block; color: var(--text); }
.card-link:hover { color: var(--text); }

/* asymmetric feature grid (anti-generic §2) */
.feature-grid { display: grid; gap: 18px; grid-template-columns: repeat(6, 1fr); }
.feature-grid .card:nth-child(1) { grid-column: span 4; }
.feature-grid .card:nth-child(2) { grid-column: span 2; }
.feature-grid .card:nth-child(3) { grid-column: span 2; }
.feature-grid .card:nth-child(4) { grid-column: span 4; }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid .card:nth-child(1), .feature-grid .card:nth-child(4) { grid-column: span 2; }
  .feature-grid .card:nth-child(2), .feature-grid .card:nth-child(3) { grid-column: span 1; }
}
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } .feature-grid .card { grid-column: span 1 !important; } }

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

.steps-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.step-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.step-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font: 700 .95rem/1 var(--font-mono); margin-bottom: 14px;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: .95rem; 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); -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
thead th {
  text-align: left; background: var(--surface-2); color: var(--text);
  font: 600 .82rem/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-muted); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: rgba(29, 36, 46, .4); }
tbody td:first-child { color: var(--text); font-weight: 500; }

.tick-yes { color: #6FCF97; }
.tick-no { color: var(--down); }
.tick-yes svg, .tick-no svg { vertical-align: -3px; }

/* comparison table highlight column */
.compare-table col.hl, .compare-table th.hl, .compare-table td.hl { background: rgba(245, 165, 36, .08); }
.compare-table thead th.hl { color: var(--accent); }

/* --- Reviews ------------------------------------------------------------------ */

.review-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.review-card { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.review-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.review-card img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid rgba(245, 165, 36, .45); background: var(--surface-2);
}
.review-card__body { min-width: 0; }
.review-card__name { font-weight: 700; margin: 0 0 2px; }
.review-card__role { font-size: .85rem; color: var(--text-muted); margin: 0 0 10px; }
.review-card__stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 10px; padding: 0; list-style: none; font-family: var(--font-mono); font-size: .8rem; }
.review-card__stats b { color: var(--accent); font-weight: 600; }
.review-card__stats li { margin: 0; }
.review-card p { font-size: .94rem; color: var(--text-muted); margin: 0; }
.reviews-note { font-size: .84rem; color: var(--text-muted); margin-top: 18px; }

/* --- Exchange chips -------------------------------------------------------------- */

.exchange-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.exchange-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 104px; height: 76px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); box-shadow: var(--shadow-sm);
  transition: color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.exchange-chip:hover { color: var(--accent); border-color: rgba(245, 165, 36, .45); transform: translateY(-2px); }

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

.faq-list { display: grid; gap: 12px; max-width: 860px; }
.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 {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none; padding: 16px 20px;
  font-weight: 600; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: none; color: var(--accent); transition: transform .18s var(--ease); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item__body { padding: 0 20px 18px; color: var(--text-muted); font-size: .96rem; }
.faq-item__body p { margin: 0; }

/* --- Company block ---------------------------------------------------------------- */

.company-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.company-facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.company-facts li { display: flex; gap: 12px; align-items: flex-start; margin: 0; color: var(--text-muted); font-size: .96rem; }
.company-facts svg { flex: none; color: var(--accent); margin-top: 2px; }
.company-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.company-links .card { display: flex; gap: 14px; align-items: center; padding: 18px; }
.company-links h3 { font-size: .98rem; margin: 0; }

/* --- Calculator ------------------------------------------------------------------- */

.calc-section .calc-widget { margin-inline: auto; }
.home-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 920px) { .home-form-grid { grid-template-columns: 1fr; } }

/* --- Page hero (inner pages) ------------------------------------------------------- */

.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -20%, rgba(245, 165, 36, .14), transparent 60%),
    linear-gradient(180deg, #12161d, var(--bg));
  border-bottom: 1px solid var(--border);
}
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(28px, 4vw, 56px); align-items: start; padding-block: clamp(40px, 5.5vw, 72px); }
.page-hero h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: .4em; }
.page-hero .lead { color: var(--text-muted); font-size: 1.05rem; max-width: 62ch; }

.page-body { padding-block: clamp(40px, 5vw, 72px); }
.page-body h2 { margin-top: 1.6em; }
.page-body > .container > h2:first-child { margin-top: 0; }
.page-body p, .page-body li { color: var(--text-muted); }
.page-body strong { color: var(--text); }
.page-body .lead { font-size: 1.05rem; color: var(--text-muted); }

.prose-note {
  border-left: 3px solid var(--accent); background: var(--surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px; color: var(--text-muted); font-size: .95rem;
}

/* --- Breadcrumbs -------------------------------------------------------------------- */

.breadcrumbs { border-bottom: 1px solid var(--border); background: rgba(22, 27, 34, .5); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 10px 0; font-size: .82rem; color: var(--text-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* --- Map ------------------------------------------------------------------------------ */

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

/* --- Footer ------------------------------------------------------------------------------ */

.site-footer { background: #0B0E12; border-top: 1px solid var(--border); padding-top: clamp(44px, 6vw, 72px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.footer-brand__text { color: var(--text-muted); font-size: .93rem; margin: 16px 0 12px; max-width: 34ch; }
.footer-brand__contact { font-size: .88rem; color: var(--text-muted); }
.footer-brand__contact a { color: var(--text-muted); text-decoration: underline; }
.footer-brand__contact a:hover { color: var(--accent); }
.footer-brand__contact svg { vertical-align: -3px; color: var(--accent); margin-right: 4px; }
.footer-col h3 { font: 600 .8rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { display: inline-block; color: var(--text-muted); font-size: .9rem; padding: 4px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-disclaimer { border-top: 1px solid var(--border); margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; }
.footer-disclaimer h3 { font: 600 .8rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.footer-disclaimer p { font-size: .82rem; color: var(--text-muted); margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--border); margin-top: 22px; padding-block: 18px; }
.footer-bottom p { font-size: .8rem; color: var(--text-muted); margin: 0; }

/* --- Special offer page -------------------------------------------------------------------- */

.urgency-strip { background: var(--accent); color: var(--accent-ink); }
.urgency-strip .container { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: center; padding-block: 10px; font: 600 .84rem/1.4 var(--font-mono); letter-spacing: .04em; }

.offer-hero { position: relative; overflow: hidden; background: radial-gradient(900px 460px at 80% -10%, rgba(245, 165, 36, .2), transparent 60%), linear-gradient(180deg, #171310, var(--bg)); border-bottom: 1px solid var(--border); }
.offer-bonus { font-size: 1.05rem; color: var(--text); max-width: 52ch; }

.offer-steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.cta-band { background: linear-gradient(90deg, rgba(245, 165, 36, .16), rgba(245, 165, 36, .05)); border-block: 1px solid rgba(245, 165, 36, .35); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: clamp(28px, 4vw, 44px); }
.cta-band p { margin: 0; font-size: 1.15rem; font-weight: 600; }

.countdown { display: inline-flex; gap: 8px; font-family: var(--font-mono); }
.countdown span { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.countdown b {
  min-width: 58px; padding: 10px 6px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: 700 1.5rem/1 var(--font-mono); color: var(--accent);
}
.countdown i { font: 500 .66rem/1 var(--font-sans); font-style: normal; color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; }

.exit-modal { position: fixed; inset: 0; z-index: 300; display: none; }
.exit-modal.is-open { display: block; }
.exit-modal__overlay { position: absolute; inset: 0; background: rgba(6, 8, 11, .72); }
.exit-modal__card {
  position: relative; z-index: 2; width: min(480px, calc(100vw - 32px));
  margin: 10vh auto 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 30px 28px 28px; text-align: center;
}
.exit-modal__close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.exit-modal__close:hover { color: var(--accent); border-color: var(--accent); }
.exit-modal__art { margin: 4px auto 14px; }

/* --- formFactory phone-field widget readability (wrapper-level overrides) -------------------- */
.iti__selected-dial-code { color: rgb(24, 33, 47) !important; }
.iti__country-container button, .iti__selected-country { color: #3d4756; }
.form-block .iti { background: #f4f6f8; }

/* --- Reveal / motion ------------------------------------------------------------------------ */

.reveal { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* --- Responsive ------------------------------------------------------------------------------ */

@media (max-width: 1020px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 920px) {
  .site-nav { display: none; }
  .nav-burger { display: inline-flex; }
  .header-actions .btn { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero form-block { max-width: 560px; }
  .page-hero__grid { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .countdown b { min-width: 48px; font-size: 1.2rem; }
  .hero__icons { flex-direction: column; align-items: stretch; }
  .hero__icons .icon-link { width: 100%; }
}

/* Mobile hero order: heading, then form, then supporting text (checklist block 1). */
@media (max-width: 920px) {
  .hero-inner { display: flex; flex-direction: column; }
  .hero__copy { order: 0; }
  .hero .form-block { order: 1; }
  .hero__supporting { order: 2; }
}

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

.iti__selected-country,
.iti__selected-dial-code {
  color: rgb(24, 33, 47) !important;
}

.hero--market {
  background: linear-gradient(90deg, #12161df5 0%, #12161dc7 45%, #12161d38 100%), url("../images/hero-market.webp") right center / cover no-repeat #12161d;
}
.hero--market .hero__decor svg { opacity: .18; }

@media (max-width: 700px) {
  .hero--market {
    background-image: linear-gradient(180deg, #12161ded 0%, #12161dab 52%, #12161de8 100%), url("../images/hero-market.webp");
  }
}

.iti__country-name {
  color: #000;
}

/* Homepage registration, market sources and calculator */
.home-lead.hero--market {
  padding: clamp(38px, 7vw, 92px) 0;
  background: linear-gradient(110deg, #0f1216 6%, #0f1216d9 50%, #171d3d33 100%), url('../images/hero-redesign.webp') right center / cover no-repeat var(--bg);
}
.home-lead .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: center;
  padding-block: 0;
}
.home-lead h1 {
  max-width: none;
  font-size: clamp(2.45rem, 5vw, 4.45rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.home-lead h1 span { display: block; color: var(--accent); }
.home-lead .hero__copy { min-width: 0; }
.home-lead .redesign-form {
  min-width: 0;
  padding: clamp(14px, 2.4vw, 24px);
  border: 1px solid #69758a; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 16px 16px 0;
}
.home-lead .redesign-form > .form-block {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.home-lead .home-lead__form-title,
.home-lead .form-block__heading {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 2.15vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}
.home-lead .home-lead__risk { margin: 12px 0 0; font-size: .85rem; color: var(--text-muted); }
.home-lead .home-lead__jump { display: none; }
.home-lead #registration-form { scroll-margin-top: 92px; }

.home-market { padding: clamp(24px, 4vw, 52px) 0; border-block: 1px solid var(--border); background: var(--surface); }
.home-market > .container {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(15px, 3vw, 36px);
}
.home-market .section-head, .home-market .section__head, .home-market .exchange-caption, .home-market .exchanges__lead { margin: 0; }
.home-market h2 { font-size: clamp(1.35rem, 2.5vw, 1.95rem); }
.home-market .exchange-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.home-market .exchange-chip { background: var(--surface-2); border-radius: 3px; min-width: 0; }

.home-estimate { background: var(--bg); }
.home-estimate .calc-widget {
  padding: clamp(14px, 3vw, 32px);
  background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 6px;
}
.home-estimate .calc-widget__title, .home-estimate .calc-widget__subtitle { display: none; }
.home-estimate .calc-widget__wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(12px, 2.3vw, 26px);
  margin: 0 0 18px;
}
.home-estimate .calc-widget__controls { gap: 10px; }
.home-estimate .calc-widget__control, .home-estimate .calc-widget__result {
  min-width: 0;
  margin: 0;
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.home-estimate .calc-widget__control { background: var(--surface); }
.home-estimate .calc-widget__control .calc-widget__label,
.home-estimate .calc-widget__control .calc-widget__value,
.home-estimate .calc-widget__control .calc-widget__minmax { color: var(--text); }
.home-estimate .calc-widget__value { margin: 6px 0 10px; text-align: left; }
.home-estimate .calc-widget__result { background: #121923; color: #f9e7c8; border-color: #b87524; text-align: left; }
.home-estimate .calc-widget__result :is(.calc-widget__result-title, .calc-widget__total, .calc-widget__stat-label, .calc-widget__stat-value) { color: inherit; }
.home-estimate .calc-widget__total { line-height: 1.12; overflow-wrap: anywhere; }
.home-estimate .calc-widget__stats { gap: 12px; flex-wrap: wrap; }
.home-estimate .calc-widget__stat-value { overflow-wrap: anywhere; }
.home-estimate .calc-widget__range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.home-estimate .calc-widget__cta { min-height: 44px; justify-content: center; width: min(100%, 340px); font-weight: 700; border-radius: 5px; background: var(--accent); color: var(--accent-ink); }

.account-action {
  gap: 10px;
  min-height: 42px;
  padding: 5px 7px 5px 13px;
  border-radius: 5px; background: var(--accent); color: var(--accent-ink);
}
.account-action__arrow {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: var(--accent); background: var(--accent-ink); border-radius: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  .account-action__arrow svg { transition: transform .18s ease; }
  .account-action:hover .account-action__arrow svg,
  .account-action:focus-visible .account-action__arrow svg { transform: translateX(2px); }
}
@media (prefers-reduced-motion: reduce) {
  .account-action { transition: none; }
  .account-action:hover { transform: none; }
}
@media (max-width: 820px) {
  .home-lead.hero--market { background-position: 70% center; }
  .home-lead .hero-inner, .home-market > .container { grid-template-columns: minmax(0, 1fr); }
  .home-lead h1 { font-size: clamp(2rem, 7vw, 3.5rem); }
  .home-lead .home-lead__jump { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; }
}
@media (max-width: 635px) {
  .home-estimate .calc-widget__wrapper { grid-template-columns: minmax(0, 1fr); }
}

.home-lead h1 span { font-size: .67em; margin-top: .3em; letter-spacing: -.025em; }
.home-market .exchange-chip { width: 100%; }
.home-market .exchange-chip img { width: 40px; height: 40px; }
.home-estimate .calc-widget__total, .home-estimate .calc-widget__stat-value { font-family: ui-monospace, Consolas, monospace; }
.home-estimate .calc-widget__stats { border-top: 1px solid var(--border); padding-top: 14px; }

/* Distinct homepage composition */
.brand-exchanges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;list-style:none;margin:0;padding:0}
.brand-exchanges li{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:10px;margin:0;padding:14px 8px;border:1px solid var(--border);border-radius:4px;background:var(--surface);font-weight:600;min-width:0}
.brand-exchanges__icon{display:grid;place-items:center;width:52px;height:52px;flex:0 0 52px;background:#18212a;border-radius:10px}
.brand-exchanges img{display:block;width:36px;height:36px;object-fit:contain}
.brand-exchanges img[src*="bybit"]{width:44px}
.home-market>.container{grid-template-columns:1fr}
.home-lead .hero__copy{border-bottom:3px solid var(--accent);padding-bottom:22px}.home-estimate .calc-widget__wrapper{grid-template-columns:1fr}.home-estimate .calc-widget__controls{display:grid;grid-template-columns:1fr 1fr}.home-estimate .calc-widget__result{display:grid;grid-template-columns:1fr 1fr;align-items:center;border-radius:0}.home-estimate .calc-widget__control{border-left:3px solid var(--accent);border-radius:0}.account-action{border-radius:0;box-shadow:4px 4px 0 #654411}
@media(max-width:820px){
.home-lead .hero__grid{grid-template-columns:1fr;grid-template-areas:none}
.home-lead .hero__copy,.home-lead .hero__form{grid-column:auto;grid-row:auto}
.home-lead .hero__title,.home-lead .hero__formcol,.home-lead .hero__rest{grid-area:auto}
.brand-exchanges{grid-template-columns:repeat(3,minmax(0,1fr))}.brand-exchanges li{flex-direction:column;font-size:.85rem}
}
@media(max-width:635px){
.home-estimate .calc-widget__wrapper,.home-estimate .calc-widget__controls,.home-estimate .calc-widget__result{display:flex;flex-direction:column}
.home-estimate .calc-widget__wrapper{gap:14px}
.home-estimate .calc-widget__controls{padding:0}
.brand-exchanges{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Mobile lead order: heading, existing form, supporting content. */
@media (max-width: 820px) {
.hero.hero--market .hero-order-layout { display:flex; flex-direction:column; align-items:stretch; gap:20px; }
.hero.hero--market .hero-order-copy { display:contents; }
.hero.hero--market .hero-order-copy > h1 { order:-2; width:100%; max-width:none; margin:0; }
.hero.hero--market .hero-order-form { order:-1; width:100%; min-width:0; max-width:none; margin:0; align-self:stretch; }
.hero.hero--market .hero-order-copy > :not(h1) { order:0; margin-top:0; }
.hero.hero--market :is(.home-lead__jump,.hero__form-link) { display:none; }
}

/* Keep the calculator result aligned with its two input cards. */
.home-estimate .section-head { display:block; max-width:760px; }
.home-estimate .calc-widget__result { gap:24px; }
.home-estimate .calc-widget__result-head { margin:0; text-align:left; align-items:flex-start; gap:12px; min-width:0; }
.home-estimate .calc-widget__stats { margin:0; min-width:0; align-items:flex-start; }
@media(max-width:635px) {
.home-estimate .calc-widget__result { align-items:stretch; }
.home-estimate .calc-widget__controls,.home-estimate .calc-widget__control { width:100%; }
.home-estimate .calc-widget__stats { width:100%; }
}
