/* ============================================================================
   Airial for Travel Businesses — shared stylesheet
   Tokens, nav, hero, CTAs, sections and the mockup primitives used by every
   stakeholder page. Mirrors the tokens of the live /travel-businesses page
   (now the travel-agents page) so the family reads as one site.
   ============================================================================ */

@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-Variable-ADS.woff2') format('woff2-variations');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #6A57C8;
  --brand-light: #D2CAFA;
  --brand-deep: #2E265C;
  --brand-mid: #4C39AD;
  --accent: #FF6B1A;            /* the deck accent: one per composition, for the payoff only */
  --neutral-lightest: #FFFBFA;
  --neutral-lighter: #F5ECEB;
  --neutral-light: #E9DBD7;
  --neutral: #D9C6C0;
  --neutral-dark: #8A7A74;
  --neutral-darker: #6F5A52;
  --neutral-darkest: #2A1813;
  --white: #FFFFFF;
  --lav-1: #FDFCFE;
  --lav-2: #F4F1FD;
  --lav-3: #EDE8FB;
  --bg: var(--neutral-lightest);
  --bg-soft: var(--neutral-lighter);
  --text: var(--neutral-darkest);
  --text-secondary: var(--neutral-darker);
  --text-tertiary: var(--neutral-dark);
  --text-headline: var(--brand-deep);
  --border-subtle: #2E265C0D;
  --border-strong: #2E265C26;
  --green: #0E7A5F;
  --wa: #075E54;
  --wa-bubble: #DCF8C6;
  --radius-sm: 16px; --radius-md: 24px; --radius-lg: 32px; --radius-button: 999px;
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.10);
  --shadow-md: 0 2px 4px -2px rgba(0,0,0,0.06), 0 4px 8px -2px rgba(0,0,0,0.10);
  --shadow-lg: 0 4px 6px -2px rgba(0,0,0,0.03), 0 12px 16px -4px rgba(0,0,0,0.08);
  --shadow-card: 0 8px 24px rgba(46,38,92,0.10), 0 2px 6px rgba(46,38,92,0.06);
  --shadow-float: 0 28px 60px rgba(46,38,92,0.16), 0 8px 20px rgba(46,38,92,0.08);
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 32px; --s-6: 48px; --s-7: 64px; --s-8: 96px; --s-9: 128px;
}

* { box-sizing: border-box; }
html {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.5; color: var(--text);
  background: var(--bg); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body { margin: 0; padding: 0 var(--s-4); position: relative; display: flow-root; }
.wrap { max-width: 1280px; margin: 0 auto; }

/* Hero halo — the lavender radial the current page carries, painted behind the cover */
body::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100vw; height: 1100px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, transparent calc(100% - 160px), var(--bg)),
    radial-gradient(ellipse 52% 55% at 50% 38%, rgba(210,202,250,0.95) 0%, rgba(210,202,250,0.55) 45%, rgba(255,251,250,0) 72%),
    linear-gradient(180deg, #FDF8F5 0%, #FBF5F8 100%);
}

/* ---- Type ---- */
h1, h2, h3, h4 { color: var(--text-headline); font-weight: 700; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: 92px; line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: 56px; line-height: 1.04; }
h3 { font-size: 40px; line-height: 1.08; }
h4 { font-size: 22px; line-height: 1.25; font-weight: 600; }
p { font-size: 19px; line-height: 1.5; margin: 0; color: var(--text-secondary); }
p strong { color: var(--text); font-weight: 600; }
a { color: var(--brand); text-decoration: none; }
.accent { color: var(--brand); }
.payoff { color: var(--accent); }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--brand); background: var(--lav-2); padding: 6px 14px; border-radius: var(--radius-button); margin-bottom: 14px;
}
.meta-tag { font-size: 12px; color: var(--brand); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.small { font-size: 15px; line-height: 1.45; color: var(--text-tertiary); }

/* ---- Top nav (same shape as the live page) ---- */
.topnav {
  position: sticky; top: 16px; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 24px auto var(--s-6); padding: 8px 0; border-radius: 999px; background: transparent;
  transition: max-width .35s cubic-bezier(.4,0,.2,1), padding .35s cubic-bezier(.4,0,.2,1), box-shadow .35s, background .35s;
}
.topnav.scrolled {
  max-width: 1180px; padding: 10px 20px; background: rgba(255,251,250,0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(46,38,92,0.10), 0 4px 12px rgba(46,38,92,0.06);
}
.topnav-brand { display: flex; align-items: center; gap: var(--s-3); }
.topnav-brand a { display: flex; align-items: center; gap: var(--s-3); color: inherit; }
.wordmark { height: 52px; width: auto; display: block; transition: height .35s; }
.topnav.scrolled .wordmark { height: 40px; }
.for-business {
  white-space: nowrap; font-size: 13px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1.04px; font-weight: 500;
  padding-left: var(--s-3); border-left: 1px solid var(--border-strong);
}
.topnav-links { display: flex; align-items: center; gap: 4px; }
.topnav-links a { font-size: 14.5px; font-weight: 500; color: var(--text); padding: 9px 12px; border-radius: 999px; white-space: nowrap; }
.topnav-links a:hover, .topnav-links a.current { background: var(--lav-2); color: var(--text-headline); }
.topnav-cta { display: flex; align-items: center; gap: var(--s-2); }
.topnav-cta .login { display: inline-block; white-space: nowrap; padding: 11px 22px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 15px; font-weight: 500; color: var(--text); }
.topnav-cta .cta-primary { padding: 12px 24px; font-size: 15px; }
.topnav.scrolled .topnav-cta .login, .topnav.scrolled .topnav-cta .cta-primary { padding: 9px 18px; font-size: 14px; }

/* ---- CTAs ---- */
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin: var(--s-4) 0; }
.cta-primary, .cta-secondary, .cta-tertiary {
  font-family: inherit; font-size: 16px; font-weight: 500; letter-spacing: -0.16px; padding: 14px 28px;
  border-radius: 999px; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s; cursor: pointer;
}
.cta-primary { background: var(--brand); color: var(--white); border-color: var(--brand); box-shadow: 0 1px 2px rgba(46,38,92,0.08); }
.cta-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--white); box-shadow: 0 6px 16px rgba(46,38,92,0.18); transform: translateY(-1px); }
.cta-secondary { background: var(--white); color: var(--text-headline); border-color: var(--border-strong); }
.cta-secondary:hover { background: var(--neutral-lightest); border-color: var(--brand-deep); transform: translateY(-1px); }
.cta-tertiary { background: var(--lav-2); color: var(--text-headline); padding: 11px 20px; font-size: 15px; }
.cta-tertiary:hover { background: var(--brand-light); }
.cta-arrow { display: inline-block; transition: transform .18s; }
.cta-primary:hover .cta-arrow, .cta-secondary:hover .cta-arrow, .cta-tertiary:hover .cta-arrow, .panel-cta:hover .cta-arrow { transform: translateX(3px); }

/* ---- Cover ---- */
.cover { text-align: center; max-width: 980px; margin: var(--s-7) auto var(--s-6); }
.cover h1 { margin-bottom: var(--s-4); }
.cover p { font-size: 24px; line-height: 1.4; max-width: 800px; margin: 0 auto var(--s-5); }
.cover .cta-row { justify-content: center; }
.cover .kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--brand); margin-bottom: var(--s-4); }
.cover .kicker::before, .cover .kicker::after { content: ''; width: 28px; height: 1px; background: var(--brand-light); }

/* ---- Sections ---- */
section { padding: var(--s-8) 0; }
section.tight { padding: var(--s-6) 0; }
.section-head { max-width: 820px; margin: 0 auto var(--s-6); text-align: center; }
.section-head h2 { font-size: 52px; margin-bottom: 14px; }
.section-head p { font-size: 20px; }
.section-head.left { text-align: left; margin-left: 0; }

/* Full-bleed lavender band (the activity-library treatment on the live page) */
.band {
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw;
  padding: var(--s-8) calc(50vw - 50%); background: var(--brand-light);
}
.band.deep { background: var(--brand-deep); }
.band.deep h2, .band.deep h3, .band.deep h4 { color: var(--white); }
.band.deep p { color: rgba(255,255,255,0.78); }
.band.deep .eyebrow { background: rgba(255,255,255,0.12); color: var(--brand-light); }
.band.soft { background: var(--lav-2); }
.band > .wrap { padding: 0 var(--s-4); }

/* ---- Panel rows: text + big visual ---- */
.panel {
  display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-7); align-items: center; margin: var(--s-9) 0;
}
.panel.reverse { grid-template-columns: 7fr 5fr; }
.panel.reverse .panel-text { order: 2; }
.panel.reverse .panel-visual { order: 1; }
.panel:first-child { margin-top: var(--s-6); }
.panel-text h3 { font-size: 42px; margin: 0 0 var(--s-3); }
.panel-text p { font-size: 19px; margin: 0 0 var(--s-3); }
.panel-text ul { padding-left: 0; list-style: none; margin: var(--s-4) 0 0; display: grid; gap: 12px; }
.panel-text li { font-size: 17px; line-height: 1.45; color: var(--text-secondary); padding-left: 26px; position: relative; }
.panel-text li::before { content: ''; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-light); box-shadow: 0 0 0 3px var(--lav-2); }
.panel-text li strong { color: var(--text-headline); font-weight: 600; }
.panel-visual { min-width: 0; }
.panel-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s-3); font-weight: 600; color: var(--brand); font-size: 17px; }

/* A visual stage: rounded, lavender ground, holds mockups */
.stage {
  position: relative; width: 100%; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(135deg, #F2EEFD 0%, #F8F1F0 100%); border: 1px solid var(--border-subtle);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}
.stage.tall { aspect-ratio: 4 / 3; }
.stage.wide { aspect-ratio: 16 / 10; }
.stage.hero { aspect-ratio: 16 / 8.2; margin: var(--s-7) auto 0; border-radius: var(--radius-lg); }
.stage.photo-ground { background-size: cover; background-position: center; }
.scene { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.scene > .anim { position: absolute; inset: 0; }
.scene .abs { position: absolute; }
.stage .glow { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 70%; height: 90%; background: radial-gradient(ellipse at center, rgba(106,87,200,0.16) 0%, transparent 65%); pointer-events: none; }

/* ---- Hub: stakeholder panels ---- */
.hub-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-3); margin: var(--s-6) auto 0; }
.hub-chip {
  display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.72);
  border: 1px solid var(--border-subtle); box-shadow: var(--shadow-card); color: var(--text-headline); text-align: left;
  transition: transform .25s, box-shadow .25s;
}
.hub-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.hub-chip .ph { aspect-ratio: 16 / 10; border-radius: 10px; background-size: cover; background-position: center; }
.hub-chip b { font-size: 16px; font-weight: 600; line-height: 1.2; }
.hub-chip span { font-size: 13px; color: var(--text-tertiary); }

.hub-panel {
  display: grid; grid-template-columns: 4fr 8fr; gap: var(--s-7); align-items: center;
  padding: var(--s-8) 0; border-top: 1px solid var(--border-subtle);
}
.hub-panel.reverse { grid-template-columns: 8fr 4fr; }
.hub-panel.reverse .hub-text { order: 2; }
.hub-panel.reverse .hub-visual { order: 1; }
.hub-text h2 { font-size: 44px; margin: 0 0 var(--s-3); }
.hub-text p { font-size: 18px; margin: 0 0 var(--s-4); }
.hub-visual .stage { aspect-ratio: 16 / 10; }

/* ---- Mockup primitives ---- */
.ui { position: absolute; background: var(--white); border: 1px solid rgba(46,38,92,0.08); border-radius: var(--r-md); box-shadow: var(--shadow-card); font-size: 13px; line-height: 1.4; color: var(--text); overflow: hidden; }
.ui.flat { box-shadow: var(--shadow-sm); }
.ui.lift { box-shadow: var(--shadow-float); }
.ui .ui-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border-subtle); font-size: 12px; font-weight: 600; color: var(--text-headline); }
.ui .ui-body { padding: 12px 14px; }
.ui .tag { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.ui .tag.green { color: var(--green); }
.ui .tag.accent { color: var(--accent); }
.ui .tag.muted { color: var(--text-tertiary); }
.photo { background-size: cover; background-position: center; display: block; }
.ph-tile { border-radius: 10px; background-size: cover; background-position: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--lav-2); color: var(--text-headline); white-space: nowrap; }
.pill.green { background: #E3F4EC; color: var(--green); }
.pill.accent { background: #FFEBDE; color: #C24D08; }
.pill.dark { background: var(--brand-deep); color: var(--white); }
.pill.white { background: var(--white); border: 1px solid var(--border-strong); }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.num { font-variant-numeric: tabular-nums; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; }
.bubble.me { align-self: flex-end; background: var(--brand-deep); color: var(--white); border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--lav-2); color: var(--text); border-bottom-left-radius: 4px; }
.bubble .src { display: block; margin-top: 6px; font-size: 10.5px; color: var(--text-tertiary); }
.bubble .src b { color: var(--brand); font-weight: 600; }
.wa .bubble.me { background: var(--wa-bubble); color: #111; }
.wa .bubble.them { background: var(--white); color: #111; box-shadow: var(--shadow-sm); }
.wa { background: #ECE5DD; }
.wa .ui-head { background: var(--wa); color: var(--white); border: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11.5px; font-weight: 500; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--white); color: var(--text-headline); }
.chip.on { background: var(--brand); color: var(--white); border-color: var(--brand); }
.ask { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1.5px solid var(--brand-light); border-radius: 999px; background: var(--white); font-size: 13px; color: var(--text-tertiary); }
.ask .mic { width: 20px; height: 20px; border-radius: 50%; background: var(--brand); flex-shrink: 0; position: relative; }
.ask .mic::after { content: ''; position: absolute; left: 7px; top: 5px; width: 6px; height: 9px; border-radius: 3px; background: #fff; }
.ask .send { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-deep); flex-shrink: 0; }

/* Tables / sheets */
.sheet { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.sheet th { text-align: left; font-weight: 600; color: var(--text-tertiary); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--border-strong); background: #FAF7F6; }
.sheet td { padding: 6px 8px; border-bottom: 1px solid var(--border-subtle); color: var(--text); white-space: nowrap; }
.sheet td.r { text-align: right; font-variant-numeric: tabular-nums; }
.sheet tr.hl td { background: #FFF1E8; }
.sheet.grid td, .sheet.grid th { border-right: 1px solid var(--border-subtle); }

/* Itinerary bits */
.route { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: var(--text-headline); }
.route .stop { padding: 5px 9px; border-radius: 999px; background: var(--lav-2); }
.route .stop small { font-weight: 500; color: var(--text-tertiary); margin-left: 4px; }
.route .arr { color: var(--brand-light); }
.day { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: start; }
.day .t { font-size: 12px; font-weight: 600; color: var(--text-headline); padding-top: 2px; }
.day .d { font-size: 12.5px; color: var(--text); }
.day .d small { display: block; color: var(--text-tertiary); font-size: 11px; }
.stat { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; color: var(--text-headline); line-height: 1; }
.stat.accent { color: var(--accent); }
.bar { height: 7px; border-radius: 999px; background: var(--lav-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--brand); }

/* Phone crop (a legible element crop, never a whole phone) */
.phone {
  position: absolute; width: 300px; border-radius: 34px; background: #111; padding: 10px; box-shadow: var(--shadow-float);
}
.phone .screen { border-radius: 26px; overflow: hidden; background: var(--white); position: relative; }
.phone .notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; border-radius: 12px; background: #111; z-index: 2; }

/* Panels without bullet lists: one title, one short paragraph */
.panel-text p.lede { font-size: 20px; }
/* A stage can hold a running animation of its own (no caption line unless beats carry one) */
.stage .anim { position: absolute; inset: 0; }
/* ---- Trusted-by band: a full-bleed lavender strip with one slow marquee of logos ---- */
.trusted { margin: var(--s-7) 0 0; width: 100vw; margin-left: calc(50% - 50vw); background: var(--lav-2); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); padding: 34px 0 30px; text-align: center; }
.trusted .line { font-size: 20px; font-weight: 500; color: var(--text-secondary); margin-bottom: 22px; }
.trusted .line b { color: var(--text-headline); font-weight: 600; }
.marquee { position: relative; overflow: hidden; width: 100%; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; align-items: center; gap: 56px; width: max-content; animation: marquee var(--marquee-s, 110s) linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee img { height: 44px; width: auto; max-width: 160px; object-fit: contain; flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 24px 40px; padding: 0 24px; } .marquee .track img:nth-child(n+25) { display: none; } }
/* ---- Closing statement (the only-travel-AI line) ---- */
.only { text-align: center; max-width: 980px; margin: 0 auto var(--s-6); font-size: 34px; line-height: 1.25; font-weight: 600; color: var(--text-headline); letter-spacing: -0.02em; }
.only b { color: var(--brand); font-weight: 600; }
/* ---- Trust block ---- */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; }
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.founder { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm); }
.founder img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.founder b { display: block; font-size: 16px; color: var(--text-headline); }
.founder span { font-size: 13px; color: var(--text-tertiary); display: block; }
.logos-line { font-size: 15px; color: var(--text-tertiary); margin-top: var(--s-3); }
.logos-line b { color: var(--text-headline); font-weight: 600; }
.quote { font-size: 22px; line-height: 1.4; color: var(--text-headline); font-weight: 500; }
.quote cite { display: block; font-style: normal; font-size: 14px; color: var(--text-tertiary); margin-top: 10px; }

/* ---- Closing CTA + footer ---- */
.close-cta { text-align: center; padding: var(--s-8) var(--s-4); border-radius: var(--radius-lg); background: var(--brand-deep); color: var(--white); position: relative; overflow: hidden; }
.close-cta::before { content: ''; position: absolute; inset: auto -20% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(210,202,250,0.35), transparent 65%); }
.close-cta h2 { color: var(--white); font-size: 48px; margin-bottom: 12px; position: relative; }
.close-cta p { color: rgba(255,255,255,0.78); max-width: 640px; margin: 0 auto var(--s-4); position: relative; }
.close-cta .cta-row { justify-content: center; position: relative; }
.close-cta .cta-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.close-cta .cta-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
footer { margin-top: var(--s-8); padding: var(--s-5) 0 var(--s-6); border-top: 1px solid var(--border-subtle); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); }
footer p { font-size: 15px; color: var(--text-tertiary); }
footer nav { display: flex; gap: var(--s-3); flex-wrap: wrap; }
footer nav a { font-size: 15px; color: var(--text-secondary); }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

/* ============================================================================
   Animation protocol — the story stage
   One .anim holds N .beat children. tb.js shows one beat at a time, in order,
   for the time in data-ms (default 3200), then loops. Elements inside a beat
   can carry .enter (fade-rise) with --d (delay) for staggered arrival. A beat
   stays fully legible on its own: a reader who lands on any beat should
   understand it without the others. Out of view: paused. Reduced motion:
   the last beat is shown statically.
   ============================================================================ */
.anim { position: relative; }
.anim .beat { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .55s ease; }
.anim .beat.on { opacity: 1; pointer-events: auto; }
.anim .beat.leaving { opacity: 0; }
.anim .enter { opacity: 0; transform: translateY(14px); }
.anim .beat.on .enter { animation: enter .6s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes enter { to { opacity: 1; transform: none; } }
.anim .beat.on .pop { animation: pop .5s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); opacity: 0; transform: scale(.92); }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
.anim .caption { display: none; }
/* The caption of the active beat is mirrored by tb.js into .anim-caption, placed right after the stage:
   normal page text, never scaled with the scene, so it stays readable at every width. */
.anim-caption { text-align: center; font-size: 24px; line-height: 1.35; font-weight: 500; color: var(--text-headline); margin: 18px auto 0; max-width: 980px; min-height: 1.35em; transition: opacity .35s ease; }
.anim-caption b { color: var(--brand); font-weight: 600; }
.anim-caption.fade { opacity: 0; }
.anim-dots { position: absolute; right: 18px; top: 16px; z-index: 6; display: flex; gap: 6px; }
.anim-dots i { width: 22px; height: 4px; border-radius: 999px; background: rgba(46,38,92,0.14); overflow: hidden; display: block; position: relative; }
.anim-dots i::after { content: ''; position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.anim-dots i.done::after { transform: scaleX(1); }
.anim-dots i.now::after { animation: fill var(--ms, 3200ms) linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.typing::after { content: ''; display: inline-block; width: 2px; height: 1em; background: currentColor; margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.counter { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .anim .beat { transition: none; }
  .anim .beat.on .enter, .anim .beat.on .pop { animation: none; opacity: 1; transform: none; }
}

/* ---- Responsive ---- */
@media (max-width: 1500px) {
  .for-business { display: none; }
}
@media (max-width: 1180px) {
  .topnav-links a { font-size: 13.5px; padding: 8px 9px; }
  .topnav-cta .login { white-space: nowrap; padding: 10px 16px; font-size: 14px; }
  .topnav-cta .cta-primary { padding: 10px 18px; font-size: 14px; }
}
@media (max-width: 1100px) {
  h1 { font-size: 64px; }
  .hub-strip { grid-template-columns: repeat(3, 1fr); }
  .section-head h2, .hub-text h2 { font-size: 40px; }
  .panel-text h3 { font-size: 32px; }
  .hub-strip { grid-template-columns: repeat(3, 1fr); }
}
/* Below 1100px (tablets, large phones in landscape, narrow windows) every panel stacks:
   text and subtext first, then the visual at the full width of the column. */
@media (max-width: 1100px) {
  .panel, .panel.reverse, .hub-panel, .hub-panel.reverse, .trust { grid-template-columns: 1fr; gap: var(--s-5); }
  .panel.reverse .panel-text, .hub-panel.reverse .hub-text { order: 0; }
  .panel.reverse .panel-visual, .hub-panel.reverse .hub-visual { order: 1; }
  .panel-text, .hub-text { max-width: 760px; }
  .panel-visual, .hub-visual { width: 100%; }
}
@media (max-width: 860px) {
  body { padding: 0 var(--s-3); }
  h1 { font-size: 44px; }
  .cover p { font-size: 19px; }
  .topnav-links, .for-business, .topnav-cta .login { display: none; }
  .topnav { margin: 12px auto var(--s-4); top: 8px; }
  .topnav.scrolled { padding: 8px 14px; }
  .wordmark { height: 40px; }
  .topnav-cta .cta-primary { padding: 10px 18px; font-size: 14px; }
  .panel, .panel.reverse, .hub-panel, .hub-panel.reverse, .trust { grid-template-columns: 1fr; gap: var(--s-4); }
  /* no left/right splits on phones: every page-level grid stacks */
  .steps, .kpis, .stats, .who-grid, .three-up, .modes-grid { grid-template-columns: 1fr !important; }
  .panel-text h3 { font-size: 30px; }
  .hub-text h2 { font-size: 32px; }
  .section-head h2 { font-size: 32px; }
  .panel-text, .hub-text { text-align: left; }
  .cta-row { gap: 10px; }
  .cta-primary, .cta-secondary { width: 100%; justify-content: center; }
  .topnav-cta .cta-primary { width: auto; }
  .close-cta { padding: var(--s-6) var(--s-3); }
  .panel.reverse .panel-text, .hub-panel.reverse .hub-text { order: 0; }
  .panel.reverse .panel-visual, .hub-panel.reverse .hub-visual { order: 1; }
  .panel { margin: var(--s-7) 0; }
  .stage.wide, .hub-visual .stage { aspect-ratio: 4 / 5; }
  .hub-strip { grid-template-columns: repeat(2, 1fr); }
  .anim-caption { font-size: 17px; margin-top: 12px; }
  .founders { grid-template-columns: 1fr; }
  .close-cta h2 { font-size: 34px; }
  .only { font-size: 22px; }
  .marquee .track { gap: 36px; --marquee-s: 60s; } .marquee img { height: 30px; max-width: 120px; }
  .trusted .line { font-size: 16px; }
  .hub-strip { grid-template-columns: repeat(2, 1fr); }
  /* page-level grids that stakeholder pages share by convention */
  .kpis, .steps, .stats { grid-template-columns: 1fr !important; }
  .section-head h2 { font-size: 34px; }
}
