/* ---------- FYNIX Design Tokens ---------- */
:root {
  /* Brand */
  --brand-red:      #D6212F;   /* FYNIX F-mark red (top) */
  --brand-red-deep: #A61521;   /* deeper red (mid bar) */
  --brand-red-soft: #FF5B67;   /* highlight */
  --brand-graphite: #1E1E22;   /* F-mark base color */

  /* Neutrals — cool slate palette for fintech authority */
  --ink-900: #0B1220;
  --ink-800: #111827;
  --ink-700: #1F2937;
  --ink-600: #374151;
  --ink-500: #4B5563;
  --ink-400: #6B7280;
  --ink-300: #9CA3AF;
  --ink-200: #D1D5DB;
  --ink-100: #E5E7EB;
  --ink-50:  #F3F4F6;
  --bg:      #FAFAF8;
  --bg-warm: #F6F5F1;
  --bg-white:#FFFFFF;

  /* Accent for data — cool teal complement */
  --accent:  #1F7A8C;
  --accent-2:#0F4C5C;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.875rem;
  --text-3xl:  2.5rem;
  --text-hero: clamp(2.75rem, 6vw, 5rem);
  --text-hero-lg: clamp(3.25rem, 7vw, 6.25rem);

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem; --sp-12: 3rem;
  --sp-16: 4rem; --sp-20: 5rem; --sp-24: 6rem; --sp-32: 8rem;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
  --shadow:    0 8px 30px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
  --shadow-lg: 0 20px 60px rgba(15,23,42,0.12), 0 4px 12px rgba(15,23,42,0.06);

  --container: 1200px;
  --container-wide: 1360px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink-800);
  background: var(--bg);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: 'DM Sans', system-ui, sans-serif; letter-spacing: -0.02em; color: var(--ink-900); line-height: 1.08; margin: 0; font-weight: 700; }
.eyebrow { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; color: var(--brand-red); }
.section-title { font-size: var(--text-3xl); line-height: 1.1; margin-bottom: var(--sp-4); }
.section-lede { font-size: var(--text-lg); color: var(--ink-600); max-width: 62ch; margin: 0 0 var(--sp-10); }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-6); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--sp-6); }
.section { padding: clamp(var(--sp-16), 8vw, var(--sp-24)) 0; }
.section-tight { padding: clamp(var(--sp-12), 6vw, var(--sp-16)) 0; }
.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.header.scrolled { border-bottom-color: var(--ink-100); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: var(--sp-8);
}
.logo-link { display: inline-flex; align-items: center; gap: 10px; }
.logo-link img { height: 40px; width: auto; }
.logo-wordmark { font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink-900); }
.logo-wordmark .dot { color: var(--brand-red); }

.nav { display: flex; align-items: center; gap: var(--sp-6); }
.nav a { font-size: var(--text-sm); font-weight: 500; color: var(--ink-700); transition: color .2s ease; padding: 6px 2px; position: relative; }
.nav a:hover { color: var(--brand-red); }
.nav a.active { color: var(--ink-900); }
.nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--brand-red);
}

.header-cta { display: flex; align-items: center; gap: var(--sp-3); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 600; transition: all .25s var(--ease-out); border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--brand-red); color: white; }
.btn-primary:hover { background: var(--brand-red-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(214, 33, 47, 0.28); }
.btn-ghost { color: var(--ink-800); border-color: var(--ink-200); background: white; }
.btn-ghost:hover { border-color: var(--ink-900); }
.btn-dark { background: var(--ink-900); color: white; }
.btn-dark:hover { background: var(--ink-800); transform: translateY(-1px); }
.btn-lg { padding: 14px 26px; font-size: var(--text-base); }
.btn-link { color: var(--brand-red); font-weight: 600; font-size: var(--text-sm); display: inline-flex; align-items: center; gap: 6px; }
.btn-link:hover { gap: 10px; transition: gap .2s ease; }

/* Mobile nav */
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 8px; align-items: center; justify-content: center; border: 1px solid var(--ink-200); background: white; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink-800); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink-800); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open { display: flex; position: absolute; top: 76px; left: 0; right: 0; background: white; flex-direction: column; padding: var(--sp-6); gap: var(--sp-4); border-bottom: 1px solid var(--ink-100); box-shadow: var(--shadow); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(var(--sp-16), 10vw, var(--sp-32)) 0 clamp(var(--sp-20), 12vw, var(--sp-32));
  overflow: hidden;
  background: linear-gradient(180deg, #FDFCFA 0%, #F6F5F1 100%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 12% 22%, rgba(214,33,47,0.06), transparent 45%),
                    radial-gradient(circle at 85% 78%, rgba(31, 122, 140, 0.05), transparent 40%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--sp-16); align-items: center; }
@media (max-width: 1000px) { .hero-inner { grid-template-columns: 1fr; gap: var(--sp-12); } }

.hero h1 { font-size: var(--text-hero-lg); font-weight: 700; letter-spacing: -0.035em; margin-bottom: var(--sp-6); }
.hero h1 .accent { color: var(--brand-red); }
.hero-sub { font-size: var(--text-lg); color: var(--ink-600); max-width: 58ch; margin: 0 0 var(--sp-8); line-height: 1.55; }
.hero-badges { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-8); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); background: white; border: 1px solid var(--ink-100); font-size: var(--text-xs); font-weight: 500; color: var(--ink-600); box-shadow: var(--shadow-sm); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-red); }

.hero-visual { position: relative; }
.hero-cta { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }

/* Live status pill */
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(214, 33, 47, 0.08); border: 1px solid rgba(214, 33, 47, 0.2); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.02em; color: var(--brand-red-deep); margin-bottom: var(--sp-6); }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-red); box-shadow: 0 0 0 4px rgba(214, 33, 47, 0.15); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(214, 33, 47, 0.15); } 50% { box-shadow: 0 0 0 8px rgba(214, 33, 47, 0.05); } }

/* ---------- Card ---------- */
.card {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  transition: transform .3s var(--ease-out), border-color .3s ease, box-shadow .3s var(--ease-out);
  height: 100%;
}
.card:hover { transform: translateY(-3px); border-color: var(--ink-200); box-shadow: var(--shadow); }
.card h3 { font-size: var(--text-xl); margin-bottom: var(--sp-3); color: var(--ink-900); }
.card p { color: var(--ink-600); font-size: var(--text-base); margin: 0; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-deep) 100%); color: white; margin-bottom: var(--sp-5); }
.card-icon svg { width: 22px; height: 22px; }
.card-tag { font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-red); margin-bottom: var(--sp-3); display: inline-block; }
.card-meta { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--ink-100); display: flex; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--text-xs); color: var(--ink-500); }
.card-meta strong { color: var(--ink-800); }

/* Dark card variant */
.card-dark { background: var(--ink-900); color: white; border-color: var(--ink-800); }
.card-dark h3 { color: white; }
.card-dark p { color: var(--ink-300); }

/* ---------- Sections ---------- */
.dark-section {
  background: var(--ink-900);
  color: white;
  position: relative;
  overflow: hidden;
}
.dark-section h1, .dark-section h2, .dark-section h3, .dark-section h4 { color: white; }
.dark-section .section-lede { color: var(--ink-300); }
.dark-section .eyebrow { color: var(--brand-red-soft); }

.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: center; }
@media (max-width: 900px) { .split-section { grid-template-columns: 1fr; } }

/* ---------- Stat row ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-8); padding: var(--sp-12) 0; border-top: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { }
.stat-value { font-size: var(--text-3xl); font-weight: 700; letter-spacing: -0.03em; color: var(--ink-900); line-height: 1; margin-bottom: var(--sp-2); }
.stat-value .unit { color: var(--brand-red); }
.stat-label { font-size: var(--text-sm); color: var(--ink-500); }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: var(--ink-300); padding: var(--sp-20) 0 var(--sp-8); }
.footer h4 { color: white; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--sp-4); letter-spacing: 0.02em; }
.footer a { color: var(--ink-300); font-size: var(--text-sm); display: block; padding: 4px 0; transition: color .2s; }
.footer a:hover { color: white; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--sp-10); margin-bottom: var(--sp-16); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--ink-400); font-size: var(--text-sm); max-width: 40ch; margin: var(--sp-4) 0 var(--sp-6); }
.footer-brand .logo-wordmark { color: white; }
.footer-bottom { border-top: 1px solid var(--ink-800); padding-top: var(--sp-6); display: flex; justify-content: space-between; align-items: center; font-size: var(--text-xs); color: var(--ink-500); flex-wrap: wrap; gap: var(--sp-4); }
.disclaimer { max-width: 90ch; margin-top: var(--sp-6); font-size: var(--text-xs); color: var(--ink-500); line-height: 1.6; }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: center; margin-bottom: var(--sp-24); }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { grid-template-columns: 1fr 1fr; }
.feature-row.reverse .feature-row-copy { order: 2; }
@media (max-width: 900px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: var(--sp-8); margin-bottom: var(--sp-16); }
  .feature-row.reverse .feature-row-copy { order: 0; }
}
.feature-row h3 { font-size: var(--text-2xl); margin-bottom: var(--sp-4); }
.feature-row p { color: var(--ink-600); font-size: var(--text-lg); line-height: 1.6; }
.feature-list { margin: var(--sp-6) 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: var(--sp-3); padding: 10px 0; font-size: var(--text-base); color: var(--ink-700); border-bottom: 1px solid var(--ink-100); }
.feature-list li:last-child { border-bottom: none; }
.feature-list .check { color: var(--brand-red); flex-shrink: 0; font-weight: 700; }

/* ---------- Corridor visual ---------- */
.corridor-map { position: relative; padding: var(--sp-8); background: white; border-radius: var(--radius-lg); border: 1px solid var(--ink-100); box-shadow: var(--shadow); }

/* ---------- Vertical hero cards (colored) ---------- */
.vertical-card { position: relative; background: white; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--ink-100); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); display: flex; flex-direction: column; height: 100%; }
.vertical-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.vertical-card-image { height: 220px; background-size: cover; background-position: center; position: relative; }
.vertical-card-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 18, 32, 0.35) 100%); }
.vertical-card-body { padding: var(--sp-6) var(--sp-6) var(--sp-8); flex: 1; display: flex; flex-direction: column; }
.vertical-card-status { position: absolute; top: 16px; left: 16px; z-index: 2; }
.vertical-card h3 { font-size: var(--text-xl); margin-bottom: var(--sp-2); }
.vertical-card p { color: var(--ink-600); font-size: var(--text-base); margin: 0 0 var(--sp-5); flex: 1; }
.vertical-card .badge-live { background: rgba(214, 33, 47, 0.95); color: white; }
.vertical-card .badge-live .dot { background: white; }
.vertical-card .badge-soon { background: rgba(255,255,255,0.9); backdrop-filter: blur(4px); color: var(--ink-700); }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(11, 18, 32, 0.55); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 100; padding: var(--sp-4); }
.modal-overlay.active { display: flex; }
.modal { background: white; border-radius: var(--radius-lg); padding: var(--sp-10); max-width: 460px; width: 100%; box-shadow: var(--shadow-lg); position: relative; }
.modal-close { position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-500); transition: background .2s; }
.modal-close:hover { background: var(--ink-50); color: var(--ink-800); }
.modal h2 { font-size: var(--text-2xl); margin-bottom: var(--sp-2); }
.modal-sub { color: var(--ink-500); font-size: var(--text-sm); margin-bottom: var(--sp-6); }

.form-field { margin-bottom: var(--sp-4); }
.form-field label { display: block; font-size: var(--text-sm); font-weight: 500; color: var(--ink-700); margin-bottom: 6px; }
.form-field input, .form-field select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--ink-200); background: white; font-size: var(--text-base); transition: border-color .2s, box-shadow .2s; color: var(--ink-900);
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--brand-red); box-shadow: 0 0 0 3px rgba(214,33,47,0.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.form-submit { width: 100%; margin-top: var(--sp-2); padding: 14px; font-size: var(--text-base); }
.form-alt { text-align: center; font-size: var(--text-sm); color: var(--ink-500); margin-top: var(--sp-5); }
.form-alt a { color: var(--brand-red); font-weight: 600; }
.form-legal { font-size: var(--text-xs); color: var(--ink-400); text-align: center; margin-top: var(--sp-4); line-height: 1.5; }
.form-tabs { display: flex; padding: 4px; background: var(--ink-50); border-radius: var(--radius); margin-bottom: var(--sp-6); }
.form-tabs button { flex: 1; padding: 10px 14px; border-radius: 6px; font-size: var(--text-sm); font-weight: 500; color: var(--ink-500); }
.form-tabs button.active { background: white; color: var(--ink-900); box-shadow: var(--shadow-sm); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.visible, .no-anim .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Rail logo strip */
.rail-strip { display: grid; grid-template-columns: auto repeat(6, 1fr); gap: var(--sp-8); align-items: center; padding: var(--sp-8) 0; }
@media (max-width: 900px) { .rail-strip { grid-template-columns: repeat(3, 1fr); } .rail-strip .rail-label { grid-column: 1 / -1; text-align: center; margin-bottom: var(--sp-4); } }
.rail-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-400); font-weight: 600; }
.rail-name { font-size: var(--text-lg); font-weight: 600; color: var(--ink-500); letter-spacing: -0.01em; text-align: center; opacity: 0.85; transition: opacity .2s, color .2s; }
.rail-name:hover { opacity: 1; color: var(--ink-800); }

/* Timeline */
.timeline { position: relative; padding-left: var(--sp-8); margin-top: var(--sp-8); }
.timeline::before { content: ''; position: absolute; left: 12px; top: 8px; bottom: 8px; width: 2px; background: var(--ink-100); }
.timeline-item { position: relative; padding-bottom: var(--sp-8); }
.timeline-item::before { content: ''; position: absolute; left: -30px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: white; border: 3px solid var(--brand-red); }
.timeline-item h4 { font-size: var(--text-lg); margin-bottom: 4px; }
.timeline-item p { color: var(--ink-600); margin: 0; }
.timeline-item .when { font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-red); margin-bottom: 4px; display: block; }

/* Highlight box */
.callout { padding: var(--sp-8); border-radius: var(--radius-lg); border-left: 4px solid var(--brand-red); background: white; box-shadow: var(--shadow-sm); }
.callout h4 { font-size: var(--text-lg); margin-bottom: var(--sp-2); }
.callout p { color: var(--ink-600); margin: 0; }

/* Page hero (interior pages) */
.page-hero { padding: clamp(var(--sp-16), 8vw, var(--sp-20)) 0 clamp(var(--sp-12), 6vw, var(--sp-16)); background: linear-gradient(180deg, #FDFCFA 0%, #F6F5F1 100%); border-bottom: 1px solid var(--ink-100); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); letter-spacing: -0.03em; margin-bottom: var(--sp-4); }
.page-hero p { font-size: var(--text-lg); color: var(--ink-600); max-width: 62ch; }
.page-hero::before { content: ''; position: absolute; top: -80px; right: -80px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(214,33,47,0.06) 0%, transparent 70%); border-radius: 50%; }

/* Country list */
.country-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
@media (max-width: 700px) { .country-grid { grid-template-columns: repeat(2, 1fr); } }
.country-tag { padding: 10px 14px; border: 1px solid var(--ink-100); border-radius: var(--radius); background: white; font-size: var(--text-sm); display: flex; align-items: center; gap: 8px; color: var(--ink-700); }
.country-tag .flag { font-size: 1rem; }
.country-tag.launch { border-color: rgba(214,33,47,0.3); background: rgba(214,33,47,0.03); }
.country-tag.launch::after { content: 'Launch'; margin-left: auto; font-size: 10px; font-weight: 600; color: var(--brand-red); background: rgba(214,33,47,0.1); padding: 2px 6px; border-radius: 3px; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- Chat Panel ---------- */
.chat-panel {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--ink-100);
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-deep) 100%);
  color: white;
}
.chat-avatar {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-avatar svg { width: 22px; height: 22px; }
.chat-title { font-weight: 700; font-size: var(--text-base); line-height: 1.2; }
.chat-status {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.85);
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 2px;
}
.chat-status .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 rgba(74,222,128,0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.7); }
  70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.chat-body {
  flex: 1;
  padding: var(--sp-6);
  overflow-y: auto;
  background: var(--bg-warm);
  max-height: 380px;
}
.chat-msg {
  margin-bottom: var(--sp-4);
  max-width: 90%;
}
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { margin-left: auto; }
.chat-msg p {
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: 14px 14px 14px 4px;
  font-size: var(--text-sm);
  color: var(--ink-800);
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}
.chat-msg.user p {
  background: var(--brand-red);
  color: white;
  border-color: transparent;
  border-radius: 14px 14px 4px 14px;
}
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--sp-4);
}
.chat-chip {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--ink-100);
  background: white;
  color: var(--ink-700);
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}
.chat-chip:hover {
  background: var(--brand-red);
  color: white;
  border-color: var(--brand-red);
  transform: translateY(-1px);
}
.chat-input {
  display: flex;
  gap: 8px;
  padding: var(--sp-4);
  border-top: 1px solid var(--ink-100);
  background: white;
}
.chat-input input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--ink-200);
  font-family: inherit;
  font-size: var(--text-sm);
  outline: none;
  transition: border-color .15s;
}
.chat-input input:focus { border-color: var(--brand-red); }
.chat-send {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--brand-red);
  color: white;
  border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.chat-send svg { width: 18px; height: 18px; }
.chat-send:hover { background: var(--brand-red-deep); }
.chat-foot {
  font-size: var(--text-xs);
  color: var(--ink-400);
  padding: 10px var(--sp-4) var(--sp-4);
  background: white;
  text-align: center;
  border-top: 1px solid var(--ink-100);
}

/* Rich bot answer bubble (inline FAQ answers with sources + related chips) */
.chat-msg.bot.rich {
  max-width: 92%;
}
.chat-msg.bot.rich p {
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: inherit;
}
.chat-answer-body {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--ink-800);
  font-size: var(--text-sm);
  line-height: 1.6;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.chat-answer-body strong { color: var(--ink-900); font-weight: 600; }
.chat-answer-body a { color: var(--brand-red); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.chat-answer-body a:hover { color: var(--brand-red-deep); }

.chat-sources {
  margin-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-sources-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  font-weight: 600;
  margin-right: 2px;
}
.chat-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: white;
  color: var(--brand-red);
  border: 1px solid var(--ink-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.chat-source:hover {
  background: var(--brand-red);
  color: white;
  border-color: var(--brand-red);
}

.chat-related {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.chat-related-label {
  width: 100%;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  font-weight: 600;
  margin-bottom: 2px;
}
.chat-related-chip {
  padding: 6px 12px;
  background: transparent;
  color: var(--ink-700);
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  line-height: 1.35;
  font-family: inherit;
  transition: all 0.15s ease;
}
.chat-related-chip:hover {
  background: var(--brand-red);
  color: white;
  border-color: var(--brand-red);
}

/* ---------- Beta badges ---------- */
.beta-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  margin-left: 10px;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-red);
  background: rgba(214, 33, 47, 0.08);
  border: 1px solid rgba(214, 33, 47, 0.22);
  border-radius: 999px;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
}
.btn-with-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-inline-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  line-height: 1;
}
@media (max-width: 640px) {
  .beta-pill {
    margin-left: 8px;
    font-size: 9.5px;
    height: 20px;
    padding: 0 7px;
  }
}

/* ---------- Vertical CTA rows ---------- */
.vertical-cta {
  margin-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
}
.vertical-cta .btn {
  min-height: 44px;
}
.vertical-cta-signin {
  color: var(--ink-800);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: -0.005em;
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.vertical-cta-signin:hover {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}
.vertical-cta-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-600);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.vertical-cta-app:hover {
  color: var(--ink-900);
  border-bottom-color: var(--ink-300);
}
.vertical-cta-app svg {
  opacity: 0.7;
}
.vertical-cta-note {
  margin-top: var(--sp-3);
  font-size: var(--text-xs);
  color: var(--ink-500);
  font-style: italic;
}

/* Typing indicator */
.chat-msg.bot.typing p {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
}
.chat-msg.bot.typing .dot {
  width: 6px;
  height: 6px;
  background: var(--ink-400);
  border-radius: 50%;
  animation: chat-dot 1.2s infinite ease-in-out;
}
.chat-msg.bot.typing .dot:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.bot.typing .dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* ---------- Floating chat launcher (all pages) ---------- */
.chat-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  background: var(--brand-red);
  color: white;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(214,33,47,0.35), 0 4px 10px rgba(0,0,0,0.15);
  transition: transform .18s, box-shadow .18s;
}
.chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(214,33,47,0.42), 0 4px 12px rgba(0,0,0,0.18);
}
.chat-fab svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .chat-fab { bottom: 16px; right: 16px; padding: 10px 16px 10px 12px; } }

/* Floating chat panel (opens from FAB) */
.chat-fab-panel {
  position: fixed;
  bottom: 96px; right: 24px;
  z-index: 41;
  width: 380px;
  max-width: calc(100vw - 32px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  display: none;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}
.chat-fab-panel.open {
  display: block;
  opacity: 1;
  transform: none;
}
.chat-fab-panel .chat-panel {
  border: none;
  min-height: 0;
}
.chat-fab-panel .chat-body { max-height: 320px; }
@media (max-width: 640px) { .chat-fab-panel { bottom: 76px; right: 16px; left: 16px; width: auto; } }

/* ---------- Calendly Shell ---------- */
.calendly-shell {
  position: relative;
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 720px;
}
.calendly-shell iframe {
  width: 100%;
  border: 0;
  min-height: 720px;
  display: block;
  position: relative;
  z-index: 2;
}
.calendly-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: var(--sp-16) var(--sp-8);
  text-align: center;
  color: var(--ink-500);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--sp-3);
}
.calendly-fallback p { max-width: 480px; margin: 0; }
.calendly-fallback a { color: var(--brand-red); font-weight: 600; }

/* ---------- Contact Form ---------- */
.contact-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}
.contact-form .form-field label { color: var(--ink-300); }
.contact-form .form-field input,
.contact-form .form-field select,
.contact-form .form-field textarea {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: white;
}
.contact-form .form-field input::placeholder,
.contact-form .form-field textarea::placeholder { color: rgba(255,255,255,0.35); }
.contact-form .form-field input:focus,
.contact-form .form-field select:focus,
.contact-form .form-field textarea:focus {
  border-color: var(--brand-red-soft);
  background: rgba(255,255,255,0.09);
}
.contact-form select option { color: var(--ink-800); background: white; }
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--text-sm);
  resize: vertical;
  min-height: 100px;
}
.contact-success {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: var(--radius);
  color: #86efac;
  font-size: var(--text-sm);
}

/* Calendly placeholder (before real URL is wired in) */
.calendly-shell { min-height: 0; }
.calendly-shell iframe { min-height: 0; }
.calendly-placeholder {
  padding: var(--sp-16) var(--sp-8);
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-warm) 100%);
  text-align: center;
}
.calendly-placeholder-inner { max-width: 560px; margin: 0 auto; }
.calendly-icon {
  width: 68px; height: 68px;
  margin: 0 auto var(--sp-6);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-deep) 100%);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(214,33,47,0.28);
}
.calendly-icon svg { width: 32px; height: 32px; }
.calendly-placeholder h3 { font-size: var(--text-2xl); margin-bottom: var(--sp-3); }
.calendly-placeholder p { color: var(--ink-500); font-size: var(--text-base); }
.calendly-actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; margin: var(--sp-8) 0; }
.calendly-slots {
  display: grid; gap: 10px; margin-top: var(--sp-8);
  text-align: left; max-width: 460px; margin-left: auto; margin-right: auto;
}
.calendly-slots .slot {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  font-size: var(--text-sm);
}
.calendly-slots .day { font-weight: 600; color: var(--ink-800); }
.calendly-slots .time { color: var(--ink-500); }
