/* altovo — Travel commerce platform
   Brand system: Abyss / Navy / Marine / Signal / Paper · Sora type
   Tokens live on :root so Tweaks can mutate them live. */
:root {
  /* Brand palette */
  --abyss: #06152B;
  --navy:  #0A1E3D;
  --marine:#1A3A6B;
  --signal:#3D6FBE;
  --paper: #F5F3EE;

  /* Semantic */
  --ink:    #0E1116;
  --ink-2:  #0A1E3D;
  --ink-3:  rgba(14,17,22,0.60);
  --ink-4:  rgba(14,17,22,0.50);
  --ink-5:  #A6ADBE;
  --line:   rgba(14,17,22,0.10);
  --line-2: rgba(14,17,22,0.07);
  --bg:     #F5F3EE;
  --bg-elev:#FBFAF7;
  --bg-tint:#EFECE5;
  --mist:   #E6EAF2;
  --white:  #FFFFFF;

  --accent:      #3D6FBE;
  --accent-ink:  #2D55A0;
  --accent-soft: #E5EBF6;
  --accent-glow: rgba(61,111,190,0.16);

  --success: #1E8761;
  --warn:    #B5651D;

  /* Type — altovo brand */
  --font-sans:    "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(6,21,43,0.05);
  --shadow-sm: 0 2px 6px rgba(6,21,43,0.05), 0 1px 2px rgba(6,21,43,0.04);
  --shadow-md: 0 12px 30px -12px rgba(6,21,43,0.16), 0 4px 10px -4px rgba(6,21,43,0.07);
  --shadow-lg: 0 32px 80px -24px rgba(6,21,43,0.24), 0 8px 24px -8px rgba(6,21,43,0.10);
}

* { box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17.5px;
  line-height: 1.6;
  letter-spacing: -0.005em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* Type — Sora wordmark scale */
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.2vw, 80px); line-height: 1.0; letter-spacing: -0.04em; font-weight: 600; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 600; }
h3 { font-size: 22px; line-height: 1.28; font-weight: 600; letter-spacing: -0.02em; }
h4 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
p  { margin: 0; color: var(--ink-3); }
.lead { font-size: 20.5px; line-height: 1.62; color: var(--ink-3); text-wrap: pretty; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em;
  color: var(--ink-4);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 20px; height: 1.5px; background: var(--signal); flex-shrink: 0;
}

/* Logo (chrome) */
.altovo-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); height: 28px;
}
.altovo-logo .mark { width: 24px; height: 24px; color: var(--ink); flex-shrink: 0; }
.altovo-logo .rule {
  width: 1px; height: 16px; background: var(--ink-5);
}
.altovo-logo .wordmark {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 600; letter-spacing: -0.04em;
  color: var(--ink); line-height: 1;
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; border: 1px solid transparent; transition: all .18s ease; white-space: nowrap; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--abyss); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--signal); color: var(--white); }
.btn-accent:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-4); }
.btn-link { color: var(--ink); font-weight: 500; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.btn-link:hover { color: var(--accent-ink); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow, .btn-link:hover .arrow { transform: translateX(2px); }

/* Hairline divider */
.rule { height: 1px; background: var(--line); }

/* Background textures (Tweaks) — gradients disabled per brand */
.bg-grid::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(6,21,43,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6,21,43,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 75%);
}
.bg-dots::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(6,21,43,0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
}
.bg-glow::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--paper);
}
.bg-plain::before { content: none; }

/* Page hero — shared dark header used across main pages */
section.page-hero {
  position: relative;
  padding: 80px 0;
  min-height: calc(100vh - 64px);
  background: #06152B;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background: center right / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
}
.page-hero__bg--product {
  background-size: auto 85%;
  background-position: center right;
}
.page-hero__bg--product::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #06152B 18%, rgba(6,21,43,0.82) 42%, transparent 68%);
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
}

/* Hero image link */
.hero-img-link { display:block; cursor:pointer; transform:scale(1.3); transform-origin:left center; transition:transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.4s ease; }
.hero-img-link img { width:100%; height:auto; display:block; border-radius:14px; }
.hero-img-link:hover { transform:scale(1.33) translateY(-4px); box-shadow:0 28px 56px rgba(6,21,43,0.28); }
@media (prefers-reduced-motion: reduce) { .hero-img-link, .hero-img-link:hover { transition:none; transform:scale(1.3); } }

/* TravelDesk hero preview — hover overlay */
.traveldesk-preview-link { display:block; position:relative; overflow:hidden; border-radius:14px; cursor:pointer; }
.traveldesk-preview-link img { width:100%; height:auto; display:block; transition:transform 0.3s ease; }
.traveldesk-preview-link:hover img { transform:scale(1.02); }
.traveldesk-preview-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(6,21,43,0.72) 0%, rgba(6,21,43,0.10) 48%, transparent 70%);
  display:flex; align-items:flex-end; justify-content:center;
  padding-bottom:32px;
  opacity:0; transition:opacity 0.25s ease;
}
.traveldesk-preview-link:hover .traveldesk-preview-overlay { opacity:1; }
.traveldesk-preview-overlay span {
  display:inline-flex; align-items:center; gap:8px;
  background:#fff; color:var(--abyss);
  font-family:var(--font-sans); font-size:13.5px; font-weight:600;
  padding:10px 20px; border-radius:8px; letter-spacing:-0.01em;
  transform:translateY(10px); transition:transform 0.25s ease;
  white-space:nowrap;
}
.traveldesk-preview-link:hover .traveldesk-preview-overlay span { transform:translateY(0); }

/* Nav */
#site-nav { height: 102px; } /* 38px announce bar + 64px nav header */
.nav {
  position: fixed; top: 38px; left: 0; right: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(245,243,238,0.85);
  border-bottom: 1px solid var(--line);
  transition: top 0.2s ease;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-left { display: flex; align-items: center; gap: 36px; }
.nav-logo { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-link {
  position: relative;
  font-size: 15px; color: var(--ink-3); padding: 7px 11px; border-radius: 6px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px; letter-spacing: -0.005em;
}
.nav-link:hover { color: var(--ink); background: var(--bg-elev); }
/* Active section indicator — subtle underline under the current section's link */
.nav-link.active { color: var(--ink); font-weight: 600; }
.nav-link.active::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 1px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.nav-drawer-link.active { color: var(--accent-ink); font-weight: 700; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.chev { width: 10px; height: 10px; opacity: .55; }

/* Sections */
section { padding: 96px 0; position: relative; }
section.tight { padding: 72px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 16px; }
.section-head .lead { max-width: 620px; }

/* Pill chip */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 500; color: var(--ink-2); letter-spacing: -0.005em;
}
.pill .tag { background: var(--ink); color: var(--white); font-family: var(--font-mono); font-size: 10px; padding: 2px 8px; border-radius: 999px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; white-space: nowrap; flex-shrink: 0; }

/* Card */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.card:hover { border-color: rgba(14,17,22,0.16); transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Audience cards */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.audience-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; overflow: hidden; min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color .18s ease;
}
.audience-card:hover { border-color: rgba(14,17,22,0.16); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.audience-card .ic {
  width: 40px; height: 40px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center;
}
.audience-card h3 { margin-top: 22px; }
.audience-card .desc { margin-top: 10px; color: var(--ink-3); }
.audience-card .link { margin-top: 24px; color: var(--accent-ink); font-weight: 500; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-display); font-size: 52px; line-height: 1; letter-spacing: -0.045em; font-weight: 700; color: var(--ink); }
.stat .lbl { margin-top: 10px; color: var(--ink-3); font-size: 14px; }

/* Marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 72px; width: max-content; animation: slide 38s linear infinite; align-items: center; }
.marquee img { height: 32px; width: auto; opacity: .55; filter: saturate(0) contrast(0.9); transition: opacity .18s, filter .18s; }
.marquee img:hover { opacity: 1; filter: none; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Footer */
footer { padding: 88px 0 64px; border-top: 1px solid rgba(255,255,255,0.12); background: var(--abyss); color: #fff; }
footer .altovo-logo { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 56px; padding-bottom: 16px; }
.foot-grid h5 {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em; color: rgba(255,255,255,0.50); font-weight: 500;
}
.foot-grid a { display: block; padding: 8px 0; color: rgba(255,255,255,0.75); font-size: 15px; }
.foot-grid a:hover { color: var(--signal); }
.foot-bottom { margin-top: 0; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,0.45); font-size: 14px; }

/* Mock UI */
.mock {
  border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--line-2); background: var(--bg-elev); }
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #D8DEE8; }
.mock-bar .dot.r { background: #E8C5C5; } .mock-bar .dot.y { background: #E8DEB8; } .mock-bar .dot.g { background: #C5E0CD; }
.mock-bar .url { margin-left: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

/* Utility */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-4); }
.divider-v { width: 1px; background: var(--line); }

/* Mobile nav */
.nav-ham {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--ink); margin-left: auto;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-ham span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: opacity 0.15s; }
.nav-drawer {
  position: fixed; inset: 0; z-index: 200;
  background: var(--white);
  display: flex; flex-direction: column;
  padding: 0;
  transform: translateX(100%); transition: transform 0.24s ease;
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 64px;
  border-bottom: 1px solid var(--line);
}
.nav-drawer-close {
  background: none; border: none; cursor: pointer;
  font-size: 24px; color: var(--ink); padding: 4px 8px; line-height: 1;
}
.nav-drawer-links {
  display: flex; flex-direction: column; padding: 16px 20px; gap: 2px;
}
.nav-drawer-link {
  display: block; padding: 12px 4px;
  font-size: 17px; font-weight: 500; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--line-2);
}
.nav-drawer-link:last-child { border-bottom: none; }
.nav-drawer-foot {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px;
  border-top: 1px solid var(--line); margin-top: auto;
}

/* Desktop responsive grid classes (mobile overrides via media queries below) */
.rg-split    { display: grid; grid-template-columns: 1.05fr 1.25fr; gap: 64px; align-items: center; }
.rg-4        { display: grid; grid-template-columns: repeat(4, 1fr); }
.rg-3        { display: grid; grid-template-columns: repeat(3, 1fr); }
.rg-2        { display: grid; grid-template-columns: 1fr 1fr; }
.rg-eco      { display: grid; grid-template-columns: 1.1fr 1fr; }
.rg-eco-feat { display: grid; grid-template-columns: 1fr 1fr; }
.rg-cta      { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; }
.rg-showcase { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center; }
.rg-logo     { display: grid; grid-template-columns: repeat(5, 1fr); }
.rg-partners { display: grid; grid-template-columns: repeat(6, 1fr); }

/* FAQ accordion */
details { border-radius: 14px; }
details[open] summary svg { transform: rotate(180deg); }
details summary::-webkit-details-marker { display: none; }
details summary { user-select: none; }
details summary svg { transition: transform 0.22s ease; }
details + details { margin-top: 0; }

/* responsive */
@media (max-width: 1060px) {
  .audience-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-ham { display: flex; }
}

/* Announce bar overflow guard */
#announce-bar { overflow: hidden; }
#announce-bar .container > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 0; }

/* Dark hero — platform and info sub-pages */
.hero-dark {
  background: var(--abyss) url('/assets/backgroundmain.jpg') center / cover no-repeat;
  min-height: calc(100vh - 102px);
  display: flex;
  align-items: center;
  padding: 80px 0;
}
.hero-dark .eyebrow { color: rgba(255,255,255,0.55); }
.hero-dark h1 { color: #fff; }
.hero-dark .lead { color: rgba(255,255,255,0.68); }
.hero-dark p { color: rgba(255,255,255,0.68); }
.hero-dark .btn-primary { background: #fff; color: var(--abyss); border-color: #fff; }
.hero-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.25); }


/* Tablet + phone (≤768px) */
@media (max-width: 768px) {
  section.page-hero--home {
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    min-height: calc(100vh - 64px) !important;
    padding: 64px 0 80px !important;
  }
  section.page-hero--home .page-hero__bg--product {
    display: block !important;
    background-size: auto 72%;
    background-position: center bottom 6%;
    opacity: 0.55;
  }
  section.page-hero--home .page-hero__bg--product::after {
    background: linear-gradient(to bottom, #06152B 0%, rgba(6,21,43,0.94) 30%, rgba(6,21,43,0.55) 55%, transparent 75%);
  }
  .hero-dark { min-height: 0; padding: 72px 0; }
  .rg-4  { grid-template-columns: 1fr 1fr !important; }
  .rg-3, .rg-2, .rg-split, .rg-cta, .rg-eco, .rg-showcase
         { grid-template-columns: 1fr !important; }
  .rg-logo     { grid-template-columns: repeat(3, 1fr) !important; }
  .rg-partners { grid-template-columns: repeat(3, 1fr) !important; }
  .rg-eco-feat { grid-template-columns: 1fr 1fr !important; }
  .rg-split    { gap: 40px !important; }
  .section-pad-lg { padding: 48px 24px !important; }
  .foot-grid { gap: 32px; }
  .container { padding: 0 20px; }
  .stat { padding: 28px 20px; }
  .stat .num { font-size: 38px; }
  section { padding: 56px 0; }
  section.tight { padding: 40px 0; }
  .section-head { margin-bottom: 40px; }
  h3 { font-size: 20px; }
  .lead { font-size: 18.5px; }
  .card { padding: 20px; }
  .audience-card { min-height: 0; padding: 20px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* ── Inline grid overrides (inline styles can't be reached by class media queries) ── */
  [style*="grid-template-columns:repeat(5"],
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }
  [style*="grid-template-columns:1fr 2.1fr"],
  [style*="grid-template-columns:2.1fr 1fr"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns:auto 1fr auto auto"],
  [style*="grid-template-columns:1.1fr 1fr 1.2fr 0.8fr 1fr"],
  [style*="grid-template-columns:1.4fr 0.8fr 0.8fr 0.8fr"],
  [style*="grid-template-columns:2fr 1fr 1fr 1fr 1fr"],
  [style*="grid-template-columns:200px 1fr 1fr"],
  [style*="grid-template-columns:220px 1fr"],
  [style*="grid-template-columns:64px 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Hero sections: consistent mobile treatment */
  .hero-section {
    min-height: auto !important;
    padding-top: 100px !important;
    padding-bottom: 48px !important;
    flex-direction: column !important;
  }
  .hero-section [style*="background:url"] {
    opacity: 0.25 !important;
  }
  /* TravelDesk hero image: pull out of absolute overlay, show below text */
  .hero-section [style*="position:absolute;right:1%"] {
    position: static !important;
    width: 100% !important;
    transform: none !important;
    order: 1;
    padding: 28px 20px 0;
  }
  .hero-section img[src*="herotraveldesk"] {
    display: block !important;
    opacity: 1 !important;
    border-radius: 10px 10px 0 0;
    width: 100%;
    height: auto;
  }
  .hero-section > .container {
    order: 0;
  }

  /* Home hero: text first, mockup below */
  .home-hero {
    padding-top: 96px !important;
    padding-bottom: 48px !important;
    min-height: auto !important;
    align-items: flex-start !important;
  }

  /* Reset the 1.3× zoom that overflows the section on mobile */
  .hero-img-link {
    transform: none !important;
  }
  .hero-img-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 40px rgba(6,21,43,0.28) !important;
  }

  /* Platform architecture card: remove fixed min-height and tighten padding */
  [style*="min-height:420px"] {
    min-height: 0 !important;
    padding: 20px !important;
  }

  /* Partner logo grid: reduce cell height */
  .rg-logo > div {
    height: 68px !important;
    padding: 0 16px !important;
  }

  /* CTA containers: reduce large inline padding */
  [style*="padding:72px 64px"],
  [style*="padding:64px 56px"] {
    padding: 44px 24px !important;
  }
  [style*="padding:36px 40px"] {
    padding: 28px 24px !important;
  }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
  section.page-hero--home {
    padding: 56px 0 72px !important;
  }
  section.page-hero--home .page-hero__bg--product {
    background-size: auto 68%;
    background-position: center bottom 4%;
  }
  .rg-4, .rg-partners
         { grid-template-columns: 1fr !important; }
  .rg-logo { grid-template-columns: repeat(2, 1fr) !important; }
  /* Compact logo cells on small phones */
  .rg-logo > div {
    height: 56px !important;
    padding: 0 12px !important;
  }
  /* Center lone last logo (BonusLink) when it's the only item in its row */
  .rg-logo > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: none !important;
  }
  .rg-eco-feat { grid-template-columns: 1fr !important; }
  .rg-split    { gap: 28px !important; }
  .foot-grid   { grid-template-columns: 1fr !important; }
  .section-pad-lg { padding: 36px 16px !important; }
  .stat { padding: 22px 16px; }
  .stat .num { font-size: 32px; }
  section { padding: 40px 0; }
  section.tight { padding: 32px 0; }
  .section-head { margin-bottom: 28px; }
  h3 { font-size: 18px; }
  .lead { font-size: 17px; }
  .card { padding: 16px; }
  .audience-card { padding: 16px; }

  /* ── Hero trust badges: allow wrap on narrow screens ── */
  .hero-trust-badges {
    flex-wrap: wrap !important;
    gap: 8px 14px !important;
  }

  /* ── Inline grid overrides: collapse all remaining multi-col to 1-col ── */
  [style*="grid-template-columns:repeat(5"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════
   CREATIVE DIRECTOR PASS — P2
   ═══════════════════════════════════════════════════════ */

/* Live indicator — pulsing dot for "In production" */
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(34,197,94,0.60); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0);    }
  100% { box-shadow: 0 0 0 0   rgba(34,197,94,0);    }
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22C55E; display: inline-block; flex-shrink: 0;
  animation: live-pulse 2.4s ease-out infinite;
}

/* Stats dark band (navy background variant) */
.stats-dark { border-color: rgba(255,255,255,0.08); }
.stats-dark .stat { border-color: rgba(255,255,255,0.10); }
.stats-dark .stat .num { color: #fff; }
.stats-dark .stat .lbl { color: rgba(255,255,255,0.50); font-size: 13.5px; }

/* Flow steps — three-pane connected card for "How it works" */
.flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.flow-card {
  background: var(--white);
  padding: 40px 32px 36px;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
}
.flow-card:last-child { border-right: 0; }
.flow-card .f-step {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--accent); font-weight: 500; margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 10px;
}
.flow-card .f-step::before {
  content: ""; width: 18px; height: 1.5px; background: var(--accent);
}
.flow-card h3 { font-size: 20px; margin-bottom: 10px; }
.flow-card p  { font-size: 14.5px; line-height: 1.62; color: var(--ink-3); }
.flow-card .f-stat {
  margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px;
}
.flow-card .f-num {
  font-family: var(--font-display); font-size: 32px; font-weight: 700;
  letter-spacing: -0.04em; color: var(--ink); line-height: 1.1;
}
.flow-card .f-lbl { font-size: 12px; color: var(--ink-4); margin-top: 2px; }

/* Dark testimonials */
.testi-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px; padding: 36px;
  display: flex; flex-direction: column;
  transition: border-color 0.22s ease;
}
.testi-dark:hover { border-color: rgba(255,255,255,0.18); }
.testi-dark .q-mark {
  font-family: var(--font-display); font-size: 80px; line-height: 0.6;
  color: rgba(61,111,190,0.28); font-weight: 700;
  display: block; margin-bottom: 20px; user-select: none;
}
.testi-dark .q-text {
  font-size: 15px; line-height: 1.72; color: rgba(255,255,255,0.85); flex: 1;
}
.testi-dark .q-attr {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.09);
}
.testi-dark .q-name { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.95); }
.testi-dark .q-role { font-size: 12.5px; color: rgba(255,255,255,0.45); margin-top: 3px; }

/* Audience card segment accents */
.ac-airlines { border-top: 2.5px solid var(--signal) !important; }
.ac-agents   { border-top: 2.5px solid var(--marine) !important; }
.ac-loyalty  { border-top: 2.5px solid #9B7D3E !important; }

/* Feature icon — unified accent treatment */
.feat-ic {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; flex-shrink: 0;
}

/* Responsive overrides for new components */
@media (max-width: 1060px) {
  .stats-dark .stat:nth-child(-n+2) { border-bottom-color: rgba(255,255,255,0.10); }
}
@media (max-width: 768px) {
  .flow-grid { grid-template-columns: 1fr !important; }
  .flow-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-card:last-child { border-bottom: 0; }
  .stats-dark .stat .num { font-size: 38px; }
}
@media (max-width: 480px) {
  .flow-card { padding: 28px 20px; }
  .stats-dark .stat .num { font-size: 32px; }
}
