/* ==========================================================================
   Transaqo — Main stylesheet
   Depends on tokens.css. Vanilla CSS, no build step.
   ========================================================================== */

/* --- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; border-radius: 3px; }

/* --- Layout helpers ------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.divider-top { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-blue));
}
.section-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: 18px; }
.section-head p { color: var(--text-muted); font-size: var(--fs-body-lg); text-wrap: pretty; }
.lead { color: var(--text-muted); font-size: var(--fs-body-lg); text-wrap: pretty; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--brand-gradient); color: var(--text-on-brand); box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -12px rgba(47, 143, 220, 0.7); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--brand-blue); color: #fff; }
.btn--ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); }
.btn--sm { padding: 9px 16px; font-size: 0.9rem; }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.textlink { color: var(--brand-blue); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.textlink:hover { color: #fff; }
.textlink:hover .btn-arrow { transform: translateX(3px); }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { background: rgba(39, 39, 37, 0.92); backdrop-filter: blur(10px); }
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 70px;
}
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { width: 142px; height: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav__link {
  display: inline-flex; align-items: center;
  padding: 9px 14px; border-radius: var(--r-sm);
  color: var(--text); font-size: 0.96rem; font-weight: 500;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover { color: var(--brand-blue-strong); background: rgba(255,255,255,0.04); }
.nav__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav__login { color: var(--text-muted); font-weight: 500; padding: 9px 6px; transition: color var(--dur) var(--ease); }
.nav__login:hover { color: #fff; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
}
.nav__burger span { display: block; position: relative; width: 18px; height: 2px; background: var(--text); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); transition: transform var(--dur) var(--ease); }
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }

/* --- Mobile menu --------------------------------------------------------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--nav);
  display: flex; flex-direction: column;
  padding: 20px var(--gutter) 40px;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  overflow-y: auto;
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 50px; margin-bottom: 24px; }
.mobile-menu__close { width: 44px; height: 44px; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--text); font-size: 22px; line-height: 1; }
.mobile-menu__links { display: flex; flex-direction: column; }
.mobile-menu__links a { padding: 16px 4px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu__links a:active { color: var(--brand-blue); }
.mobile-menu__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
body.menu-open { overflow: hidden; }

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 78% 18%, rgba(92,152,255,0.10), transparent 70%),
    radial-gradient(45% 45% at 15% 90%, rgba(7,194,108,0.07), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(64px, 8vw, 110px);
}
.hero__copy { max-width: 620px; }
.hero h1 { font-size: var(--fs-h1); margin-bottom: 22px; text-wrap: balance; }
.hero h1 .grad { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: var(--fs-body-lg); color: var(--text-muted); margin-bottom: 30px; max-width: 560px; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__signals {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint);
  letter-spacing: 0.01em;
}
.hero__signals li { display: inline-flex; align-items: center; gap: 8px; }
.hero__signals li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-green); }

/* Hub animation visual */
.hub { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 540px; margin-inline: auto; }
.hub__canvas { width: 100%; height: 100%; display: block; }
.hub__static { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }

/* --- Integrations strip -------------------------------------------------- */
.integrations { border-block: 1px solid var(--line); background: var(--bg-2); }
.integrations__head { text-align: center; margin-bottom: 30px; }
.integrations__head p { color: var(--text-muted); font-size: 0.98rem; }
.integrations__head .eyebrow { margin-bottom: 10px; }
.logo-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.logo-chip {
  display: flex; align-items: center; justify-content: center;
  height: 64px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.logo-chip:hover { color: var(--text); border-color: var(--line-strong); }
.integrations__note { text-align: center; margin-top: 22px; font-size: 0.84rem; color: var(--text-faint); }

/* --- Product overview ---------------------------------------------------- */
.overview__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.feature-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.feature-card__icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-gradient-soft); border: 1px solid var(--line);
  margin-bottom: 18px; color: var(--brand-green);
}
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: var(--fs-h4); margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.98rem; }

/* --- Feature rows (screenshot-led) --------------------------------------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(64px, 8vw, 116px); }
.feature-row--rev .feature-row__media { order: -1; }
.feature-row__copy { max-width: 480px; }
.feature-row__copy h3 { font-size: var(--fs-h3); margin-bottom: 16px; }
.feature-row__copy p { color: var(--text-muted); font-size: var(--fs-body-lg); margin-bottom: 22px; text-wrap: pretty; }
.feature-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 1rem; }
.feature-list li svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 3px; color: var(--brand-green); }

/* App frame "screenshot" placeholder */
.appframe {
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  background: var(--surface-2); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.appframe__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-3); }
.appframe__dots { display: flex; gap: 6px; }
.appframe__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.appframe__title { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-faint); margin-left: 8px; }
.appframe__body { padding: 20px; position: relative; min-height: 300px; }

/* Schematic UI bits inside frames */
.ui-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin-bottom: 10px; }
.ui-row__bar { height: 9px; border-radius: 4px; background: var(--line-strong); }
.ui-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.ui-dot--g { background: var(--brand-green); }
.ui-dot--b { background: var(--brand-blue); }
.ui-pill { font-family: var(--font-mono); font-size: 0.72rem; padding: 4px 9px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--text-muted); white-space: nowrap; }
.ui-pill--g { color: var(--brand-green); border-color: rgba(7,194,108,0.4); background: var(--green-tint); }
.ui-pill--b { color: var(--brand-blue); border-color: rgba(92,152,255,0.4); background: var(--blue-tint); }
.ui-label { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }

/* Cascade visualization */
.cascade { display: flex; flex-direction: column; gap: 0; }
.cascade__node { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); position: relative; }
.cascade__connector { width: 1px; height: 16px; margin-left: 26px; background: var(--line-strong); }
.cascade__num { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.78rem; flex-shrink: 0; border: 1px solid var(--line-strong); color: var(--text-muted); }
.cascade__node--ok .cascade__num { background: var(--green-tint); border-color: rgba(7,194,108,0.5); color: var(--brand-green); }
.cascade__name { font-weight: 500; }
.cascade__status { margin-left: auto; font-family: var(--font-mono); font-size: 0.72rem; }
.cascade__status--declined { color: var(--text-faint); }
.cascade__status--approved { color: var(--brand-green); }

/* mini chart bars */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 10px; }
.chart__bar { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--brand-blue), rgba(92,152,255,0.25)); }

/* --- Trust band (fraud/auth/token) intro stat row ------------------------ */
.tri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tri-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; }
.tri-card .feature-card__icon { color: var(--brand-blue); }
.tri-card h3 { font-size: var(--fs-h4); margin-bottom: 10px; }
.tri-card p { color: var(--text-muted); font-size: 0.98rem; }

/* --- Solutions cards ----------------------------------------------------- */
.solutions__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.solution-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color var(--dur) var(--ease);
}
.solution-card:hover { border-color: var(--line-strong); }
.solution-card__role { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-blue); }
.solution-card h3 { font-size: 1.18rem; }
.solution-card p { color: var(--text-muted); font-size: 0.96rem; }

/* --- Deployment ---------------------------------------------------------- */
.deploy__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.deploy-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 22px; }
.deploy-card__icon { color: var(--brand-green); margin-bottom: 16px; }
.deploy-card__icon svg { width: 26px; height: 26px; }
.deploy-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.deploy-card p { color: var(--text-muted); font-size: 0.93rem; }

/* --- Developers / API / Test mode ---------------------------------------- */
.dev { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.dev__copy { max-width: 480px; }
.dev__copy h2 { font-size: var(--fs-h2); margin-bottom: 18px; }
.dev__copy p { color: var(--text-muted); font-size: var(--fs-body-lg); margin-bottom: 24px; }
.dev__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.code-card { border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; background: #0b0b09; box-shadow: var(--shadow-lg); }
.code-card__bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--surface-3); }
.code-card__bar .appframe__title { margin-left: 4px; }
.code-card pre { margin: 0; padding: 22px 24px; overflow-x: auto; }
.code-card code { font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.7; color: #cdd2cb; white-space: pre; }
.tok-key { color: #5c98ff; } .tok-str { color: #07c26c; } .tok-com { color: #6a6b63; } .tok-fn { color: #d9b46b; } .tok-punc { color: #8a8c83; }

/* --- Final CTA ----------------------------------------------------------- */
.final-cta { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); }
.final-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, rgba(47,143,220,0.12), transparent 70%); }
.final-cta__inner { position: relative; z-index: 1; text-align: center; max-width: 720px; margin-inline: auto; }
.final-cta h2 { font-size: var(--fs-h2); margin-bottom: 18px; text-wrap: balance; }
.final-cta p { color: var(--text-muted); font-size: var(--fs-body-lg); margin-bottom: 30px; }
.final-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* --- Reveal on scroll ---------------------------------------------------
   Resting state is always fully visible so static captures (preview pane,
   screenshots, PDF export) and no-JS loads never hide content. The fade-up
   is applied as a pure enhancement only when JS confirms a live, animating
   context (see site.js, which adds .anim-ready to <html>). */
.reveal { opacity: 1; transform: none; }
html.anim-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.anim-ready .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav__links { gap: 0; }
  .nav__link { padding: 9px 10px; font-size: 0.9rem; }
}
@media (max-width: 940px) {
  .nav__links, .nav__login { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__actions .btn--primary { display: none; }
  .nav__actions { margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 440px; margin-inline: auto; width: 100%; }
  .feature-row, .feature-row--rev .feature-row__media { grid-template-columns: 1fr; }
  .feature-row__media { order: 0 !important; }
  .dev { grid-template-columns: 1fr; }
  .overview__grid, .tri-grid { grid-template-columns: 1fr 1fr; }
  .deploy__grid { grid-template-columns: 1fr 1fr; }
  .solutions__grid { grid-template-columns: 1fr 1fr; }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(2.1rem, 7vw, 2.6rem); }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .overview__grid, .tri-grid, .deploy__grid, .solutions__grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .final-cta__actions, .dev__actions { flex-direction: column; }
  .final-cta__actions .btn, .dev__actions .btn { width: 100%; }
}

/* --- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hub__canvas { display: none; }
  .hub__static { display: flex; }
}

/* ==========================================================================
   Nav v2 — dropdown panels, mobile accordion, shared inner-page components,
   footer email link. Added at end; no overrides to existing rules above.
   ========================================================================== */

/* --- Dropdown item positioning ------------------------------------------ */
.nav__item { position: static; }
.nav__item--has-drop { position: relative; }

/* --- Dropdown trigger (semantic button styled as nav link) -------------- */
.nav__drop-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: none; cursor: pointer;
  padding: 9px 14px; border-radius: var(--r-sm);
  color: var(--text); font-size: 0.96rem; font-weight: 500;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__drop-trigger:hover {
  color: var(--brand-blue-strong); background: rgba(255,255,255,0.04);
}
@media (max-width: 1080px) {
  .nav__drop-trigger { padding: 9px 10px; font-size: 0.9rem; }
}

/* --- Chevron ------------------------------------------------------------ */
.nav__chevron {
  width: 14px; height: 14px; flex-shrink: 0; pointer-events: none;
  transition: transform var(--dur) var(--ease);
}
.nav__drop-trigger[aria-expanded="true"] .nav__chevron,
.mobile-menu__group-trigger[aria-expanded="true"] .nav__chevron {
  transform: rotate(180deg);
}

/* --- Active trigger / link state ---------------------------------------- */
.nav__link--active { color: var(--brand-blue) !important; }
.nav__drop-trigger.nav__link--active:hover { color: var(--brand-blue) !important; }

/* --- Dropdown panel ----------------------------------------------------- */
.nav__dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 212px; padding: 6px; margin: 0; list-style: none;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: 0 20px 44px -12px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.03);
  display: none; z-index: 400;
}
.nav__item--has-drop.is-open > .nav__dropdown { display: block; }

/* Right-aligned variant keeps Company dropdown inside viewport */
.nav__item--drop-right .nav__dropdown { left: auto; right: 0; }

@media (prefers-reduced-motion: no-preference) {
  .nav__item--has-drop.is-open > .nav__dropdown {
    animation: navDropIn 0.14s var(--ease) both;
  }
}
@keyframes navDropIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}

/* --- Dropdown item links ------------------------------------------------ */
.nav__drop-link {
  display: block; padding: 9px 12px; border-radius: var(--r-sm);
  color: var(--text-muted); font-size: 0.93rem; font-weight: 500;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__drop-link:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav__drop-link:focus-visible {
  outline: 2px solid var(--brand-blue); outline-offset: 2px; border-radius: var(--r-sm);
}
.nav__drop-link--active { color: var(--brand-blue); }
.nav__drop-link--active:hover { color: var(--brand-blue); background: rgba(92,152,255,0.08); }

/* --- Mobile nav v2 ------------------------------------------------------ */
.mobile-menu__nav { display: flex; flex-direction: column; }

.mobile-menu__group { border-bottom: 1px solid var(--line); }

.mobile-menu__group-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 16px 4px; border: none; cursor: pointer;
  background: transparent; text-align: left;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 500;
  color: var(--text);
}
.mobile-menu__group-trigger .nav__chevron { width: 20px; height: 20px; }

.mobile-menu__sub { padding: 0 0 10px 12px; }

.mobile-menu__sub-link {
  display: block; padding: 11px 4px;
  color: var(--text-muted); font-size: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__sub-link:last-child { border-bottom: none; }
.mobile-menu__sub-link:active { color: var(--brand-blue); }

.mobile-menu__link {
  display: block; padding: 16px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 500;
  color: var(--text);
}
.mobile-menu__link:active { color: var(--brand-blue); }

.mobile-menu__loginlink {
  display: block; padding: 12px 6px; text-align: center;
  color: var(--text-muted); font-weight: 500; font-size: 1rem;
}
.mobile-menu__loginlink:hover { color: #fff; }

/* --- Shared inner-page hero (used by all inner pages) ------------------- */
.inner-hero { position: relative; overflow: hidden; background: var(--bg); }
.inner-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(55% 65% at 82% 14%, rgba(92,152,255,0.10), transparent 70%),
              radial-gradient(38% 48% at 10% 90%, rgba(7,194,108,0.07), transparent 70%);
  pointer-events: none;
}
.inner-hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(64px, 8vw, 108px);
}
.inner-hero--center .inner-hero__inner {
  grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; text-align: center;
}
.inner-hero h1 { font-size: var(--fs-h1); margin-bottom: 20px; text-wrap: balance; }
.inner-hero h1 .grad {
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.inner-hero__sub {
  font-size: var(--fs-body-lg); color: var(--text-muted);
  margin-bottom: 30px; max-width: 560px; text-wrap: pretty;
}
.inner-hero--center .inner-hero__sub { max-width: none; }
.inner-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.inner-hero--center .inner-hero__cta { justify-content: center; }

/* --- Shared breadcrumb -------------------------------------------------- */
.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-faint); transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--brand-blue); }
.breadcrumb__sep { color: var(--line-strong); }

/* --- inner-hero responsive ---------------------------------------------- */
@media (max-width: 940px) {
  .inner-hero__inner { grid-template-columns: 1fr; }
  .inner-hero__media { max-width: 480px; margin-inline: auto; width: 100%; }
}
@media (max-width: 600px) {
  .inner-hero h1 { font-size: clamp(2.1rem, 7vw, 2.6rem); }
  .inner-hero__cta { flex-direction: column; align-items: stretch; }
  .inner-hero__cta .btn { width: 100%; }
  .inner-hero--center .inner-hero__cta { align-items: center; }
}


/* Accessible buttons used instead of fragment-only links. */
button[data-scroll-target] { appearance: none; cursor: pointer; font: inherit; }
.form-error-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}
.form-error-link:hover { color: var(--brand-blue); }

/* ==========================================================================
   Footer v7 — shared brand and regulatory footer
   ========================================================================== */
.site-footer {
  background: var(--nav);
  border-top: 1px solid var(--line);
  padding-block: clamp(62px, 6vw, 76px) 28px;
}

.footer__overview {
  display: grid;
  grid-template-columns: minmax(290px, 31%) 1px minmax(0, 1fr);
  column-gap: clamp(38px, 4vw, 50px);
  align-items: stretch;
}

.footer__overview::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  width: 1px;
  height: 100%;
  background: var(--line);
}

.footer__brand-summary {
  grid-column: 1;
  min-width: 0;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
}

.footer__logo img {
  display: block;
  width: 142px;
  height: auto;
}

.footer__brand-summary p {
  max-width: 340px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.6;
  text-wrap: pretty;
}

.footer__regulatory {
  grid-column: 3;
  min-width: 0;
  max-width: 72ch;
  padding-top: 4px;
}

.footer__regulatory h2 {
  margin: 0 0 17px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__notice-copy {
  display: grid;
  gap: 12px;
}

.footer__regulatory p {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.6;
  text-wrap: pretty;
}

.footer__bottom--compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(52px, 5vw, 64px);
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.footer__bottom--compact .footer__copyright,
.footer__contact,
.footer__bottom--compact .footer__legal a {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.45;
}

.footer__bottom--compact .footer__copyright {
  min-width: 0;
  margin: 0;
  color: var(--text-muted);
  white-space: nowrap;
}

.footer__contact {
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.footer__bottom--compact .footer__legal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2vw, 26px);
  flex-wrap: wrap;
}

.footer__bottom--compact .footer__legal a {
  padding: 5px 0;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.footer__contact:hover,
.footer__contact:focus-visible,
.footer__bottom--compact .footer__legal a:hover,
.footer__bottom--compact .footer__legal a:focus-visible {
  color: var(--text);
}

@media (max-width: 1100px) {
  .footer__overview {
    grid-template-columns: minmax(280px, 31%) 1px minmax(0, 1fr);
    column-gap: clamp(30px, 3.5vw, 40px);
  }

  .footer__regulatory p {
    font-size: 0.94rem;
  }

  .footer__bottom--compact {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "copyright contact"
      "legal legal";
    gap: 14px 28px;
  }

  .footer__copyright { grid-area: copyright; }
  .footer__contact { grid-area: contact; }
  .footer__bottom--compact .footer__legal {
    grid-area: legal;
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .site-footer {
    padding-block: 50px 26px;
  }

  .footer__overview {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }

  .footer__overview::before {
    display: none;
  }

  .footer__brand-summary {
    grid-column: 1;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }

  .footer__regulatory {
    grid-column: 1;
    max-width: 72ch;
    padding-top: 0;
  }

  .footer__logo {
    margin-bottom: 19px;
  }

  .footer__regulatory h2 {
    margin-bottom: 15px;
  }

  .footer__regulatory p {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .footer__bottom--compact {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copyright"
      "contact"
      "legal";
    align-items: start;
    gap: 7px;
    margin-top: 38px;
    padding-top: 21px;
  }

  .footer__contact,
  .footer__bottom--compact .footer__legal a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
  }

  .footer__bottom--compact .footer__legal {
    justify-content: flex-start;
    gap: 4px 20px;
  }
}

@media (max-width: 440px) {
  .site-footer {
    padding-block: 44px 24px;
  }

  .footer__brand-summary {
    padding-bottom: 25px;
  }

  .footer__brand-summary p {
    font-size: 0.96rem;
    line-height: 1.58;
  }

  .footer__notice-copy {
    gap: 10px;
  }

  .footer__regulatory p {
    font-size: 0.91rem;
    line-height: 1.56;
  }

  .footer__bottom--compact .footer__legal {
    gap: 4px 18px;
  }
}


/* Policy consent fields */
.form-consents {
  display: grid;
  gap: 0.75rem;
  margin-block: 1.25rem;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.form-consent input {
  flex: 0 0 auto;
  margin-top: 0.2em;
}

.form-consent-error {
  min-height: 1em;
  margin: 0.25rem 0 0 1.625rem;
}

/* Mobile full-width safeguard: start */
html,
body {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
}

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 100%;
}

.site-header > .wrap,
main > .wrap,
.site-footer > .wrap {
  width: 100%;
}
/* Mobile full-width safeguard: end */
