/* ==========================================================================
   YouCloud Merchant Website — Design System
   Emerging-markets vibrant · warm off-white · coral-orange primary
   ========================================================================== */

:root {
  /* ==== YOUCLOUD BRAND SYSTEM ====
     Ink navy #0B1D3A · Coral #F96167
     Supporting: #E8EEF9, #CADCFC, #FDD2D4
     Slate: #4A5878, #6B7A99
     Type: Calibri
     =============================== */

  /* Core palette — brand-locked to youcloud spec */
  --ink: #0B1D3A;           /* PRIMARY · brand ink navy */
  --ink-2: #1a2c4d;
  --muted: #4A5878;         /* SUPPORTING · slate */
  --muted-2: #6B7A99;       /* SUPPORTING · slate light */
  --line: #E8EEF9;          /* SUPPORTING · pale blue */
  --line-2: #EEF3FB;

  --bg: #FFFFFF;
  --bg-2: #F5F7FC;
  --bg-3: #E8EEF9;          /* SUPPORTING · pale blue */
  --card: #FFFFFF;

  /* Brand accent — coral */
  --brand: #F96167;         /* PRIMARY · brand coral */
  --brand-ink: #C63840;
  --brand-soft: #FDD2D4;    /* SUPPORTING · pale coral */
  --brand-soft-2: #FBB4B8;
  --brand-blue: #CADCFC;    /* SUPPORTING · brand mid-blue */

  /* Product accents — tuned to harmonise with brand */
  --shop: #E8873A;          /* warm amber, complements coral */
  --shop-soft: #FCE8D4;
  --resto: #F96167;         /* uses brand coral directly */
  --resto-soft: #FDD2D4;
  --qr: #6366F1;            /* indigo — complements navy */
  --qr-soft: #E0E4FE;
  --pay: #0B1D3A;           /* uses brand navy directly */
  --pay-soft: #E8EEF9;

  /* Enterprise dark shell */
  --ent-bg: #050B18;
  --ent-bg-2: #0B1D3A;      /* brand navy for enterprise BG */
  --ent-line: #1B2E4E;
  --ent-ink: #E8EEF9;       /* brand pale blue for text */
  --ent-muted: #6B7A99;     /* brand slate light */
  --ent-accent: #F96167;    /* brand coral accent */
  --ent-accent-2: #CADCFC;  /* brand mid-blue */

  /* Type scale */
  --f-display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-logo: "Nunito", "Calibri", "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06), 0 1px 3px rgba(11, 31, 58, 0.04);
  --shadow-md: 0 4px 12px rgba(11, 31, 58, 0.06), 0 2px 4px rgba(11, 31, 58, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(11, 31, 58, 0.12), 0 8px 16px rgba(11, 31, 58, 0.05);
  --shadow-brand: 0 20px 40px -12px rgba(249, 97, 103, 0.35);

  /* Layout */
  --max: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Safety net: prevents unexpected horizontal-scroll from any stray overflowing element */
body { overflow-x: hidden; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

/* Typography — Calibri is our brand font.
   Calibri has softer, more rounded letterforms than Inter/Bricolage so we bump
   weight up slightly and tighten letter-spacing less aggressively. */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6.2vw, 80px); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.018em; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.01em; }
h4 { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }

.mono { font-family: var(--f-mono); font-feature-settings: "tnum" 1, "zero" 1; }

/* Brand names (youShop, youResto, youQR, youPay, youcloud) — always Calibri
   for consistency with the youcloud wordmark. */
.brand-name {
  font-family: var(--f-logo);
  font-weight: 700;
  letter-spacing: -0.005em;
}
/* Product card titles already are effectively brand names */
.product-card-name,
.mp-panel-title,
.nav-mega-title,
.chip-shop, .chip-resto, .chip-qr, .chip-pay,
.p-hero .accent { font-family: var(--f-logo); font-weight: 700; }
/* But mp-panel-title uses a long descriptive phrase, not just the brand — restore its normal font */
.mp-panel-title { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; }
/* Same for hero accent — usually a descriptive phrase */
.p-hero .accent { font-family: var(--f-display); font-weight: 600; font-style: italic; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-ink);
  padding: 6px 10px;
  background: var(--brand-soft);
  border-radius: var(--r-pill);
  font-weight: 500;
}
.eyebrow.neutral {
  color: var(--muted);
  background: var(--bg-2);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

/* Layout helpers */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-tight { padding: clamp(48px, 7vw, 88px) 0; }
.grid { display: grid; gap: 24px; }

/* ===== Navigation ============================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 242, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(11, 31, 58, 0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  gap: 24px;
  /* Anchor the mobile dropdown so absolute-positioned .nav-links (in the open
     state) drops beneath the visible nav bar instead of the viewport. */
  position: relative;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-logo);
  font-weight: 700; font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
/* Brand mark: inline SVG (droplet + coral pill) injected via site.js */
.nav-logo-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.nav-logo-mark svg {
  width: 100%; height: 100%;
  display: block;
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
  font-size: 14.5px; font-weight: 500;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: var(--r-pill);
  color: var(--ink-2);
  font-family: inherit; font-size: inherit; font-weight: inherit;
  background: none; border: 0; cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.nav-link:hover { background: rgba(11, 31, 58, 0.06); color: var(--ink); }
.nav-link.active { color: var(--brand-ink); background: var(--brand-soft); }

.nav-item.nav-has-mega { position: relative; }
.nav-mega {
  position: absolute; top: calc(100% + 8px); left: -8px;
  min-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 60;
}
.nav-item.open > .nav-mega {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-mega-inner { display: grid; gap: 2px; }
.nav-mega-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  color: var(--ink);
  transition: background 0.15s;
}
.nav-mega-item:hover { background: var(--bg-2); }
.nav-mega-item.active { background: var(--brand-soft); }
.nav-mega-dot {
  width: 10px; height: 10px; border-radius: 50%;
  margin-top: 6px; flex-shrink: 0;
}
.nav-mega-title {
  font-weight: 600; font-size: 14.5px;
  color: var(--ink);
}
.nav-mega-desc {
  font-size: 12.5px; color: var(--muted); margin-top: 2px;
  line-height: 1.4;
}

.nav-cta { display: flex; gap: 10px; align-items: center; }
/* Hide hamburger on desktop. !important because .btn { display: inline-flex }
   has equal specificity but declares its rule later; without !important the
   hamburger leaks onto desktop. */
.nav-toggle { display: none !important; }

@media (max-width: 1080px) {
  .nav-links { gap: 0; }
  .nav-link { padding: 8px 10px; }
}
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-ghost-nav { display: none !important; }
  .nav-toggle { display: inline-flex !important; }

  /* Mobile nav bar layout: [ Logo ] --- [ Start free ] [ Hamburger ]
     .nav-cta and .nav-toggle both sit right — Start free just left of hamburger. */
  .nav-inner {
    gap: 10px;
    padding: 10px 16px;
    /* Give the right side (cta + toggle) auto-margin so they collapse together */
  }
  .nav-cta {
    gap: 6px;
    margin-left: auto;    /* pushes cta all the way right, sibling toggle sits directly after */
  }
  .nav-cta .btn-primary {
    padding: 8px 14px;
    font-size: 13px;
  }
  /* Ensure hamburger sits IMMEDIATELY after Start free (no space-between gap) */
  .nav-toggle {
    margin-left: 0;
  }

  body.nav-open .nav-links {
    display: flex !important;
    flex-direction: column !important;
    position: absolute;
    top: calc(100% + 1px);         /* just below the sticky nav bar */
    left: 0; right: 0;
    background: var(--card);
    padding: 12px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px -12px rgba(11, 31, 58, 0.2);
    align-items: stretch;
    gap: 4px;
    z-index: 100;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  body.nav-open .nav-link,
  body.nav-open .nav-item {
    width: 100%;
    justify-content: flex-start;
  }
  body.nav-open .nav-item.nav-has-mega { display: flex; flex-direction: column; }
  body.nav-open .nav-mega {
    position: static;
    box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
    padding: 4px 0 4px 12px;
    border: 0;
    min-width: 0;
    background: transparent;
    display: block;
  }
  /* Toggle indicator: change hamburger to X when open */
  body.nav-open .nav-toggle::before { content: "✕"; }
  body.nav-open .nav-toggle { font-size: 0; }
  body.nav-open .nav-toggle::before { font-size: 18px; }
}

/* ===== Buttons ================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 8px 20px -6px rgba(249, 97, 103, 0.5);
}
.btn-primary:hover { background: var(--brand-ink); box-shadow: 0 10px 24px -6px rgba(249, 97, 103, 0.6); }

.btn-dark {
  background: var(--ink); color: #fff;
}
.btn-dark:hover { background: #172A4A; }

.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-ghost-nav {
  color: var(--ink); font-weight: 500;
  padding: 10px 14px;
}
.btn-ghost-nav:hover { background: rgba(11, 31, 58, 0.06); }

.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.btn-arrow::after {
  content: "→"; font-weight: 400; transform: translateX(0);
  transition: transform 0.2s;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ===== Chips / Pills ========================================== */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 8px;
  border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600;
  background: var(--bg-2); color: var(--ink-2);
}
.chip-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}
.chip.chip-shop { background: var(--shop-soft); color: #8A4A15; }
.chip.chip-resto { background: var(--resto-soft); color: #A11623; }
.chip.chip-qr { background: var(--qr-soft); color: #4C1D95; }
.chip.chip-pay { background: var(--pay-soft); color: #0B6E6D; }
.chip.chip-brand { background: var(--brand-soft); color: var(--brand-ink); }

/* ===== Cards ================================================== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-flat {
  background: var(--bg-2);
  border-radius: var(--r-lg);
  padding: 24px;
}

/* ===== Stat blocks ============================================ */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat-strip .stat {
  padding: 26px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.stat-strip .stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(32px, 3.4vw, 44px); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-num .unit { font-size: 0.6em; margin-left: 2px; opacity: 0.7; }
.stat-label {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-top: 10px; opacity: 0.65;
}
@media (max-width: 800px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat:nth-child(2) { border-right: 0; }
  .stat-strip .stat:nth-child(1), .stat-strip .stat:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* ===== Feature grid item ====================================== */
.feature {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--line);
}
.feature-num {
  font-family: var(--f-mono); font-size: 12px;
  color: var(--muted); letter-spacing: 0.1em;
}
.feature h4 { font-family: var(--f-display); font-weight: 600; }
.feature p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.feature-tag {
  align-self: flex-start; margin-top: auto;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-ink); background: var(--brand-soft);
  padding: 4px 8px; border-radius: 4px;
}

/* ===== Image placeholder ======================================
   Warm illustrated blocks used across the site */
.imgph {
  position: relative;
  background:
    linear-gradient(135deg, var(--brand-soft) 0%, var(--bg-3) 50%, #F0E9DC 100%);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid; place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  isolation: isolate;
}
.imgph::before, .imgph::after {
  content: ""; position: absolute; border-radius: 50%;
  z-index: -1; filter: blur(28px); opacity: 0.7;
}
.imgph::before { width: 200px; height: 200px; background: var(--brand); top: -60px; right: -40px; }
.imgph::after { width: 240px; height: 240px; background: var(--pay); bottom: -80px; left: -60px; opacity: 0.35; }
.imgph.shop::before { background: var(--shop); } .imgph.shop::after { background: var(--brand); }
.imgph.resto::before { background: var(--resto); } .imgph.resto::after { background: var(--brand); }
.imgph.qr::before { background: var(--qr); } .imgph.qr::after { background: var(--brand); }
.imgph.pay::before { background: var(--pay); } .imgph.pay::after { background: var(--brand); }
.imgph-label {
  position: absolute; bottom: 14px; left: 16px;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); background: rgba(255,255,255,0.85);
  padding: 5px 10px; border-radius: 6px;
  backdrop-filter: blur(8px);
}

/* ===== CTA banner (shared across pages) ======================== */
.cta-banner { padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 88px); }
.cta-inner {
  background:
    radial-gradient(circle at 15% 30%, rgba(249, 97, 103, 0.18) 0, transparent 45%),
    radial-gradient(circle at 90% 70%, rgba(202, 220, 252, 0.06) 0, transparent 50%),
    linear-gradient(135deg, #0B1D3A 0%, #050F1F 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 40px; align-items: center;
  position: relative; overflow: hidden;
  border: 1px solid rgba(249, 97, 103, 0.2);
}
.cta-inner::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px; background: var(--brand);
  box-shadow: 0 0 30px rgba(249, 97, 103, 0.5);
}
.cta-inner h2 { color: #fff; }
.cta-inner .eyebrow {
  background: rgba(249, 97, 103, 0.18);
  color: #FBB4B8;
  border: 1px solid rgba(249, 97, 103, 0.3);
}
.cta-inner p { color: rgba(255,255,255,0.75); margin-top: 16px; font-size: 17px; max-width: 460px; }
.cta-inner .cta-buttons { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.cta-inner .btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 10px 24px -6px rgba(249, 97, 103, 0.55);
}
.cta-inner .btn-primary:hover { background: #FF7A80; }
.cta-inner .btn-ghost {
  border-color: rgba(255,255,255,0.3); color: #fff; background: transparent;
}
.cta-inner .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
.cta-visual { display: grid; place-items: center; }
.cta-visual-inner {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(249, 97, 103, 0.25);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  font-family: var(--f-mono); font-size: 13px;
  color: rgba(255,255,255,0.9);
  min-width: 280px;
  position: relative;
}
.cta-visual-inner strong {
  display: block; margin-bottom: 12px;
  font-family: var(--f-body);   /* Match the 'y' style used in hw-card-name and product feature cards */
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(249, 97, 103, 0.25);
}
.cta-visual-inner ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.cta-visual-inner ul li {
  display: flex; align-items: baseline; gap: 10px;
  color: rgba(255,255,255,0.88);
}
.cta-visual-inner ul li::before { content: "→"; color: var(--brand); font-weight: 600; }
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; } }

/* ===== Footer ================================================= */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 72px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(5, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
.footer h5 {
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer-brand {
  font-family: var(--f-logo); font-size: 22px; font-weight: 700;
  color: #fff; margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 10px;
}
/* On dark footer, swap in the light-variant logo (white droplet + coral pill) */
.footer-brand .brand-mark-img {
  content: url("../assets/logo-youcloud-dark.png");
}
.footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 12px;
  color: rgba(255,255,255,0.45);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Scroll animations ====================================== */
[data-anim] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-anim].in {
  opacity: 1; transform: translateY(0);
}
[data-anim="fade"] { transform: none; }
[data-anim-delay="1"] { transition-delay: 0.08s; }
[data-anim-delay="2"] { transition-delay: 0.16s; }
[data-anim-delay="3"] { transition-delay: 0.24s; }
[data-anim-delay="4"] { transition-delay: 0.32s; }
[data-anim-delay="5"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1; transform: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== Marquee (used for markets / logos) ====================== */
.marquee {
  overflow: hidden; position: relative;
  padding: 20px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-item {
  font-family: var(--f-display); font-size: 22px; font-weight: 600;
  color: var(--ink-2); letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
}
.marquee-item::after {
  content: "★"; color: var(--brand); font-size: 10px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ===== Utilities ============================================== */
.text-muted { color: var(--muted); }
.text-brand { color: var(--brand); }
.mt-lg { margin-top: 40px; }
.mt-xl { margin-top: 64px; }
.mt-md { margin-top: 24px; }
.mt-sm { margin-top: 12px; }
.divider {
  border: 0; height: 1px; background: var(--line);
  margin: 0;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE SAFETY NET — applied at ≤600px
   Defensive rules to prevent common mobile-view issues across
   the whole site without touching per-page overrides.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Prevent pre / long-word content overflowing, but keep natural wrapping.
     Only long unbreakable tokens (URLs, big numbers) break — normal words stay whole. */
  body {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Ensure interactive elements meet 44px touch target */
  .btn, .nav-links a, .footer a, button, [role="button"] {
    min-height: 44px;
  }
  .btn {
    padding: 12px 20px;
  }

  /* Section padding tighter on mobile (many pages use clamp() — this catches
     the ones that don't) */
  section > .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Any full-width horizontal scroll strips need to reset */
  .stat-strip {
    grid-template-columns: 1fr 1fr !important;
  }

  /* H1 sizes: most pages already use clamp() for responsive scaling.
     No global cap needed here — let per-page rules handle it. */

  /* Footer 6-column grid: force to 1 column on the smallest mobiles */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .footer-grid > div:first-child { grid-column: auto !important; }

  /* Ensure images never blow out */
  img { height: auto; max-width: 100%; }

  /* Cards & pills: prevent tight overflow at edges */
  .card, .chip, .btn { max-width: 100%; }

  /* Buttons: allow text to wrap on very narrow screens rather than overflow.
     Only affects extraordinarily long button labels — normal ones stay single-line. */
  .btn { white-space: normal; text-align: center; line-height: 1.3; }
}

/* Slightly bigger phones (600–768px) — light adjustments only */
@media (max-width: 768px) and (min-width: 601px) {
  h1 { font-size: clamp(38px, 6.5vw, 56px); }
}
