/* MyEventMitra marketing site — tokens mirror the real product's
   app/lib/core/theme/app_colors.dart ("Violet + Gold, premium but restrained"). */
:root {
  --violet: #7C3AED;
  --violet-dark: #5B21B6;
  --violet-deep: #4C1D95;
  --violet-magenta: #A855F7;
  --brand-orange: #FC5601;
  --brand-orange-light: #FF8A3D;
  --footer-bg: #1D1542; /* sampled from the approved mockup layout's footer */
  --ink: #1A1330;
  --ink-muted: #4B4166;
  --canvas: #FBFAFF;
  --violet-wash: #F1ECFE;
  --lavender: #EDE9FE;
  --surface: #FFFFFF;
  --border: #E5E1F0;
  --divider: #EEEBF6;
  --green: #2E7D32;

  --font-heading: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --shadow-card: 0 8px 30px rgba(76, 29, 149, 0.08);
  --shadow-lift: 0 16px 40px rgba(76, 29, 149, 0.14);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--ink); margin: 0 0 .5em; line-height: 1.15; }
p { line-height: 1.65; color: var(--ink-muted); margin: 0 0 1em; }
a { color: var(--violet); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--brand-orange-light), var(--brand-orange));
  color: #fff; font-weight: 800; box-shadow: 0 10px 24px rgba(252,86,1,.38);
}
.btn--primary:hover { box-shadow: 0 16px 34px rgba(252,86,1,.5); filter: brightness(1.04); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--violet); color: var(--violet); }
.btn--ghost-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,.22); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn--lg { padding: 16px 32px; font-size: 16px; }

/* ── Header ──────────────────────────────────────────────────────── */
/* backdrop-filter lives on ::before, not on .site-header itself: a `filter`/
   `backdrop-filter`/`transform` on an element makes IT the containing block
   for any `position: fixed` descendant (like the mobile .site-nav panel),
   instead of the viewport. That silently widened the whole document's
   scrollable area at narrow widths — the cause of the global mobile
   horizontal-overflow bug. Keeping the same blur on a non-ancestor pseudo
   preserves the visual with no side effect on fixed-position descendants. */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--divider); }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251,250,255,.9); backdrop-filter: blur(8px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-header__logo { display: flex; align-items: center; gap: 10px; }
.logo-word { font-family: var(--font-heading); font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.01em; }
.logo-word em { color: var(--brand-orange); font-style: normal; }
.logo-word--light { color: #fff; }
.site-footer__logo { display: flex; align-items: center; gap: 10px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--violet); }
.site-nav__cta { display: flex; align-items: center; gap: 12px; margin-left: 12px; }
.nav-toggle-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle-btn span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--violet-deep) 0%, var(--violet) 45%, var(--violet-magenta) 100%);
  color: #fff; padding: 80px 0 100px; position: relative; overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: center; }
.hero__eyebrow {
  display: inline-block; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 700; font-size: 13px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { color: #fff; font-size: 48px; font-weight: 800; letter-spacing: -.02em; overflow-wrap: break-word; word-break: break-word; }
.hero__sub { color: rgba(255,255,255,.85); font-size: 18px; max-width: 100%; overflow-wrap: break-word; word-break: break-word; }
.hero__inner > div:first-child { min-width: 0; }
.hero__actions { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.hero__quickstart { margin-top: 28px; max-width: 460px; }
.hero__quickstart-group {
  display: flex; align-items: center; gap: 2px;
  background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px;
  box-shadow: 0 14px 34px rgba(20,8,45,.28);
}
.hero__quickstart-prefix {
  font-weight: 700; color: var(--ink-muted); font-size: 15px;
  padding-right: 10px; border-right: 1px solid var(--border); flex-shrink: 0;
}
.hero__quickstart-input {
  flex: 1 1 auto; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 15px; font-weight: 600; color: var(--ink); padding: 11px 10px;
}
.hero__quickstart-input::placeholder { color: #9C93B5; font-weight: 500; }
.hero__quickstart-btn { flex-shrink: 0; border-radius: 999px; padding: 12px 20px; font-size: 14px; white-space: nowrap; }
.hero__quickstart-error {
  color: #FFE3E3; background: rgba(192,57,43,.3); border: 1px solid rgba(255,255,255,.25);
  padding: 7px 14px; border-radius: 10px; font-size: 12.5px; font-weight: 600; margin: 10px 0 0;
}
.hero__quickstart-hint { color: rgba(255,255,255,.7); font-size: 12.5px; margin: 10px 0 0; }
/* ── Hero phone-mockup composition ──────────────────────────────────
   Built as real HTML/CSS (not a raster image) so it blends transparently
   into the purple hero gradient with no surrounding white card, and so
   the composition can genuinely reflow per breakpoint instead of just
   scaling a flat picture. */
.hero__art {
  display: flex; align-items: center; justify-content: center;
  padding: 30px 0; min-height: 500px; max-width: 100%; overflow: hidden;
}
.phone-mock {
  --phone-w: 172px;
  width: var(--phone-w); aspect-ratio: 9 / 19; flex-shrink: 0;
  background: #0C0A14; border-radius: calc(var(--phone-w) * .16);
  padding: calc(var(--phone-w) * .045);
  box-shadow: 0 30px 60px -15px rgba(10,5,25,.55), 0 0 0 1px rgba(255,255,255,.06);
  position: relative;
}
.phone-mock:not(:first-child) { margin-left: calc(var(--phone-w) * -0.34); }
.phone-mock--a { --phone-w: 178px; transform: rotate(-10deg) translateY(22px); z-index: 1; }
.phone-mock--b { --phone-w: 214px; transform: rotate(-3deg) translateY(-10px); z-index: 3; }
.phone-mock--c { --phone-w: 214px; transform: rotate(4deg) translateY(-6px); z-index: 4; }
.phone-mock--d { --phone-w: 178px; transform: rotate(11deg) translateY(24px); z-index: 2; }
.pm-notch {
  position: absolute; top: calc(var(--phone-w) * .045); left: 50%; transform: translateX(-50%);
  width: 34%; height: calc(var(--phone-w) * .065); background: #0C0A14; border-radius: 0 0 10px 10px; z-index: 5;
}
.pm-screen {
  width: 100%; height: 100%; background: #fff; border-radius: calc(var(--phone-w) * .13);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
}
.pm-statusbar { display: flex; justify-content: space-between; padding: 6px 12px 0; font-size: 8px; font-weight: 800; color: #16101F; }
.pm-header { display: flex; align-items: center; gap: 6px; padding: 7px 11px; background: #fff; border-bottom: 1px solid #F1EDF9; }
.pm-header__title { font-size: 10.5px; font-weight: 800; color: #1A1330; line-height: 1.2; }
.pm-header__sub { font-size: 6.5px; color: #8B849C; margin-top: 1px; }
.pm-back { font-size: 12px; color: #5B21B6; font-weight: 800; }
.pm-body { flex: 1; background: #FBFAFF; padding: 9px 11px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; }
.pm-card { background: #fff; border: 1px solid #EFEAF9; border-radius: 10px; padding: 7px 9px; }
.pm-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pm-stat { background: #fff; border: 1px solid #EFEAF9; border-radius: 10px; padding: 7px 8px; text-align: left; }
.pm-stat__icon { width: 15px; height: 15px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 8px; margin-bottom: 4px; }
.pm-stat__num { font-size: 11.5px; font-weight: 800; color: #1A1330; line-height: 1; }
.pm-stat__label { font-size: 6px; color: #8B849C; margin-top: 2px; }
.pm-row { display: flex; align-items: center; gap: 6px; }
.pm-row--between { justify-content: space-between; }
.pm-bar { height: 5px; border-radius: 3px; background: #EFEAFB; overflow: hidden; flex: 1; }
.pm-bar__fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7C3AED, #A855F7); }
.pm-badge { font-size: 6px; font-weight: 800; padding: 2px 6px; border-radius: 999px; white-space: nowrap; }
.pm-badge--violet { background: #EDE9FE; color: #5B21B6; }
.pm-badge--green { background: #E6F4EA; color: #1E7A34; }
.pm-badge--red { background: #FDECEC; color: #C0392B; }
.pm-badge--orange { background: #FFE9DA; color: #B84300; }
.pm-btn {
  background: linear-gradient(135deg, #7C3AED, #5B21B6); color: #fff; font-size: 8px; font-weight: 800;
  text-align: center; padding: 7px; border-radius: 8px; margin-top: auto;
}
.pm-navbar { display: flex; justify-content: space-around; padding: 6px 0; border-top: 1px solid #F1EDF9; background: #fff; }
.pm-navbar span { font-size: 5.5px; color: #8B849C; }
.pm-navbar span.is-active { color: #7C3AED; font-weight: 800; }
.pm-tabs { display: flex; gap: 4px; padding: 7px 11px 0; }
.pm-tab { font-size: 6.5px; font-weight: 700; padding: 4px 8px; border-radius: 999px; color: #8B849C; }
.pm-tab.is-active { background: #EDE9FE; color: #5B21B6; }
.pm-banner { height: 44px; border-radius: 10px; background: linear-gradient(135deg, #FFC98A, #FC5601); }
.pm-avatar {
  width: 17px; height: 17px; border-radius: 999px; flex-shrink: 0;
  background: linear-gradient(135deg, #7C3AED, #5B21B6); color: #fff; font-size: 8px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.pm-text { font-size: 7.5px; font-weight: 700; color: #1A1330; }
.pm-muted { font-size: 6px; color: #8B849C; }
.pm-amount { font-size: 13px; font-weight: 800; color: #1A1330; line-height: 1; }

/* ── Sections ────────────────────────────────────────────────────── */
section { padding: 72px 0; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.eyebrow { display: inline-block; color: var(--violet); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin-bottom: 12px; }
.section__head h2 { font-size: 34px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-card);
}
.card h3 { font-size: 19px; }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--violet-wash);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 22px;
}

.flow-strip { background: var(--violet-wash); border-radius: 24px; padding: 40px 48px; }
.flow-steps { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.flow-step { flex: 1; min-width: 140px; text-align: center; }
.flow-step__num { width: 40px; height: 40px; border-radius: 999px; background: var(--violet); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 10px; }
.flow-arrow { color: var(--violet); font-size: 22px; opacity: .5; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 20px; box-shadow: var(--shadow-card); border: 1px solid var(--border); }
.split__phone { display: flex; align-items: center; justify-content: center; padding: 16px 0; }
.split__phone .phone-mock { --phone-w: 272px; transform: rotate(-2deg); }
.pm-thumbs { display: flex; gap: 6px; }
.pm-thumb { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; }
.pm-section-label { font-size: 7px; font-weight: 800; letter-spacing: .04em; color: #8B849C; text-transform: uppercase; }
.check-list { list-style: none; padding: 0; margin: 20px 0; }
.check-list li { display: flex; gap: 10px; margin-bottom: 12px; color: var(--ink); font-weight: 500; }
.check-list li::before { content: "✓"; color: var(--green); font-weight: 800; }

/* ── Trust section (why event businesses choose us) ────────────────── */
.testimonials { background: var(--violet-wash); padding: 78px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 32px 28px; box-shadow: var(--shadow-card);
}
.trust-card__icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--violet-wash);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 22px;
}
.trust-card h3 { font-size: 17px; margin-bottom: 8px; }
.trust-card p { font-size: 14px; margin: 0; }

.video-section { background: var(--ink); color: #fff; padding: 80px 0; }
.video-section .section__head h2 { color: #fff; }
.video-section .container { max-width: 1280px; }
.video-frame {
  position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lift);
  border: 1px solid rgba(255,255,255,.1); aspect-ratio: 16/9; background: #12091f;
  display: flex; align-items: center; justify-content: center;
}
.app-showcase { display: flex; justify-content: center; align-items: center; margin-top: 12px; }
.app-showcase__phone { position: relative; }
.app-showcase__phone .phone-mock { --phone-w: 208px; }
.app-showcase__phone:not(:first-child) { margin-left: calc(var(--phone-w) * -0.12); }
.app-showcase__phone--a { transform: rotate(-5deg) translateY(16px); z-index: 1; }
.app-showcase__phone--b { transform: translateY(-10px); z-index: 3; }
.app-showcase__phone--c { transform: rotate(5deg) translateY(16px); z-index: 2; }
.app-showcase__captions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center;
  max-width: 760px; margin: 26px auto 0;
}
.app-showcase__captions h4 { font-size: 15px; margin-bottom: 4px; }
.app-showcase__captions p { font-size: 13px; margin: 0; }

.hero__proof { display: flex; gap: 24px; margin-top: 32px; flex-wrap: wrap; align-items: center; }
.hero__proof span { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }

.persona-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.persona-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 22px; text-align: left; box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.persona-chip__icon {
  width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--violet), var(--violet-dark));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(76,29,149,.25);
}
.persona-chip__icon svg { width: 24px; height: 24px; }
.persona-chip__title { font-weight: 800; font-size: 15px; align-self: stretch; min-width: 0; }
.persona-chip__desc {
  font-weight: 400; font-size: 13px; line-height: 1.5; color: var(--ink-muted);
  align-self: stretch; min-width: 0;
}
.persona-chip, .persona-chip:visited { color: var(--ink); text-decoration: none; }
.persona-chip:hover, .persona-chip:hover:visited {
  border-color: var(--violet); box-shadow: var(--shadow-lift); transform: translateY(-3px);
}
.persona-chip:hover .persona-chip__title, .persona-chip:hover:visited .persona-chip__title { color: var(--violet); }

#final-cta { padding: 88px 0; }
.cta-band {
  background: linear-gradient(120deg, var(--violet-deep), var(--violet));
  border-radius: 28px; padding: 64px; text-align: center; color: #fff;
  box-shadow: 0 24px 60px rgba(76,29,149,.35);
}
.cta-band h2 { color: #fff; font-size: 36px; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer__tagline { color: rgba(255,255,255,.6); margin-top: 14px; font-size: 14px; }
.site-footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.site-footer__col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.site-footer__col a { display: block; color: rgba(255,255,255,.65); font-size: 14px; margin-bottom: 10px; }
.site-footer__col a:hover { color: var(--brand-orange-light); }
.site-footer__bottom { padding: 20px 0; font-size: 13px; color: rgba(255,255,255,.45); }
.site-footer__bottom a { color: rgba(255,255,255,.6); }
.site-footer__bottom a:hover { color: var(--brand-orange-light); }

/* ── Auth pages ──────────────────────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - 76px);
  background: linear-gradient(180deg, var(--violet-deep) 0%, var(--violet) 35%, var(--lavender) 100%);
  display: flex; align-items: center; justify-content: center; padding: 56px 24px;
}
.auth-card {
  width: 100%; max-width: 440px; background: var(--surface); border-radius: 22px;
  box-shadow: var(--shadow-lift); padding: 40px 36px;
}
.auth-card h1 { font-size: 24px; }
.auth-card__sub { margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--border);
  font-size: 15px; font-family: var(--font-body); background: var(--canvas); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-wash); }
.field__hint { font-size: 12px; color: var(--ink-muted); margin-top: 6px; }
.auth-alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; }
.auth-alert--error { background: #FDECEC; color: #C62828; }
.auth-alert--success { background: #E9F6EC; color: #2E7D32; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 14px; }
.step-indicator { display: flex; gap: 6px; margin-bottom: 24px; }
.step-indicator span { height: 4px; flex: 1; border-radius: 999px; background: var(--divider); }
.step-indicator span.is-active { background: var(--violet); }

/* ── Solutions / Features list ──────────────────────────────────── */
.page-hero { background: var(--violet-wash); padding: 64px 0; text-align: center; }
.page-hero h1 { font-size: 36px; }
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-card);
}
.tile h3 { color: var(--ink); }
.tile:hover { border-color: var(--violet); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.faq-contact-grid .faq-list { max-width: none; margin: 0; }
.contact-card h3 { font-size: 19px; margin-bottom: 6px; }
.contact-card > p { font-size: 14px; margin-bottom: 20px; }
.contact-card .field:last-of-type { margin-bottom: 20px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 0 22px; box-shadow: var(--shadow-card); transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: var(--violet); box-shadow: 0 10px 26px rgba(76,29,149,.12); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 0; font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__badge {
  width: 30px; height: 30px; border-radius: 999px; background: var(--violet-wash); color: var(--violet);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.faq-item summary > span:first-child { display: flex; align-items: center; gap: 14px; }
.faq-item[open] .faq-item__badge { background: var(--violet); color: #fff; }
.faq-item__chevron { flex-shrink: 0; color: var(--ink-muted); transition: transform .25s ease; }
.faq-item[open] .faq-item__chevron { transform: rotate(180deg); color: var(--violet); }
.faq-item__answer { padding: 0 0 20px 44px; margin: -6px 0 0; }
.faq-item__answer p { margin: 0; }

@media (max-width: 900px) {
  .hero__inner, .split { grid-template-columns: minmax(0, 1fr); }
  /* Stacked single-column .split (Customer Requirements): the 56px column
     gutter reads as a tall blank strip once stacked vertically on mobile —
     tighten it, and the phone wrapper's own vertical padding, once stacked. */
  .split { gap: 28px; }
  .split__phone { padding: 4px 0; }
  .pillars, .persona-grid, .tile-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { flex-direction: column; }
  /* Tablet/mobile: the video section's wider container is a desktop-only touch. */
  .video-section .container { max-width: 1180px; }
  /* Tablet: keep the fan of 4 but ease off the largest sizes/rotation a touch. */
  .hero__art { min-height: 440px; padding: 24px 0; }
  .phone-mock--a { --phone-w: 160px; }
  .phone-mock--b, .phone-mock--c { --phone-w: 194px; }
  .phone-mock--d { --phone-w: 160px; }
  /* Tablet: keep the 3-phone showcase in one row, just smaller and less overlap. */
  .app-showcase__phone .phone-mock { --phone-w: 160px; }
  .app-showcase__phone:not(:first-child) { margin-left: calc(var(--phone-w) * -0.16); }
  .app-showcase__phone--a { transform: rotate(-4deg) translateY(12px); }
  .app-showcase__phone--c { transform: rotate(4deg) translateY(12px); }
}
@media (max-width: 720px) {
  .nav-toggle-btn { display: flex; }
  .site-nav {
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--surface);
    flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px;
    transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
  }
  .nav-toggle-input:checked ~ .site-nav { transform: translateX(0); }
  .site-nav__cta { flex-direction: column; width: 100%; margin-left: 0; }
  .hero h1 { font-size: 34px; }
  .hero__quickstart-group { flex-wrap: wrap; border-radius: 20px; }
  .hero__quickstart-btn { flex: 1 0 100%; margin-top: 6px; }
  .flow-steps { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .pillars, .persona-grid, .tile-grid, .trust-grid { grid-template-columns: 1fr; }
  .faq-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cta-band { padding: 40px 24px; }
  /* Mobile: don't cram 4 phones into a tiny row — show 2 prominent ones. */
  .hero__art { min-height: 380px; padding: 16px 0; }
  .phone-mock--a, .phone-mock--d { display: none; }
  .phone-mock--b { --phone-w: 189px; transform: rotate(-6deg) translateX(14px); }
  .phone-mock--c { --phone-w: 189px; transform: rotate(6deg) translateX(-14px); margin-left: calc(var(--phone-w) * -0.5); }
  /* Mobile: stack the 3 showcase phones — the safest way to guarantee no
     horizontal overflow at narrow widths (see hero__inner min-content note below). */
  .app-showcase { flex-direction: column; gap: 20px; }
  .app-showcase__phone .phone-mock { --phone-w: 172px; }
  .app-showcase__phone:not(:first-child) { margin-left: 0; }
  .app-showcase__phone--a, .app-showcase__phone--b, .app-showcase__phone--c { transform: none; }
  .app-showcase__captions { grid-template-columns: 1fr; gap: 20px; max-width: 320px; }
}
/* Guards a CSS Grid min-content blowout under 720px: the hero's single-column
   track can be forced wider than the viewport by content that won't shrink,
   pushing the H1/paragraph past the edge. A calc()/vw-based max-width does
   NOT reliably prevent this in testing — only a literal pixel value does —
   so this is stepped across common phone widths rather than computed. */
@media (max-width: 720px) {
  .hero__inner > div:first-child { max-width: 662px !important; }
}
@media (max-width: 480px) {
  .hero__inner > div:first-child { max-width: 422px !important; }
}
@media (max-width: 380px) {
  .hero__inner > div:first-child { max-width: 322px !important; }
}
