/* =========================================
   Kaby landing — design tokens
   Mirrors the actual Kaby Flutter app palette
   (see lib/core/theme/movi_colors.dart)
   ========================================= */
:root {
  /* Brand pink (10% accent in the app) */
  --pink-500: #e91e63;
  --pink-600: #d81b60;
  --pink-700: #c2185b;
  --pink-surface: #fce4ec;
  --pink-tint: rgba(233, 30, 99, 0.08);

  /* Ink hierarchy (matches MoviColors) */
  --ink-900: #0d0f12;
  --ink-800: #1a1f28;
  --ink-700: #3d4556;
  --ink-500: #5c6678;
  --ink-400: #727e90;
  --ink-300: #8a94a6;

  /* Surfaces (60% in the app) */
  --bg: #ffffff;
  --bg-tint: #f6f7fa;
  --bg-sunken: #eceef3;
  --bg-app: #f1f3f8;

  /* Lines */
  --line: #e8ebf0;
  --line-strong: #d5dae3;

  /* Shadows — match kabyHomeCardShadows */
  --shadow-sm: 0 1px 2px rgba(13, 15, 18, 0.06);
  --shadow-md: 0 6px 20px rgba(13, 15, 18, 0.08);
  --shadow-lg: 0 24px 60px rgba(13, 15, 18, 0.16);

  /* Radii — match app (14 for buttons, 16-20 for cards) */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1140px;
  --gutter: clamp(16px, 4vw, 32px);

  /* Single-tone pink gradient — the app does NOT mix pink with blue */
  --gradient-brand: linear-gradient(135deg, var(--pink-500) 0%, var(--pink-700) 100%);
  --gradient-hero: linear-gradient(135deg, #151820 0%, #232833 100%);
}

/* =========================================
   Base
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, 'Noto Sans', system-ui, sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.nav-open {
  overflow: hidden;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--pink-600);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
}
h3 {
  font-size: 1.1rem;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
  color: var(--ink-700);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--ink-900);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus {
  top: 8px;
}

/* =========================================
   Layout helpers
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding: clamp(56px, 8vw, 96px) 0;
}
.section-tint {
  background: var(--bg-tint);
  border-block: 1px solid var(--line);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-sub {
  color: var(--ink-500);
  font-size: 1.05rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-600);
  background: var(--pink-surface);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.eyebrow-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}
.gradient-text {
  color: var(--pink-500);
}

/* =========================================
   Header
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  z-index: 50;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(12px, 2vw, 28px);
  min-height: 64px;
  padding-block: 0;
}
/* Brand left, actions always right — never stretch middle-column CTAs */
.header-inner > .brand {
  grid-column: 1;
  justify-self: start;
}
.header-inner > .site-nav {
  grid-column: 2;
  justify-self: center;
}
.header-inner > .header-actions,
.header-inner > .btn,
.header-inner > .nav-toggle {
  grid-column: -1;
  justify-self: end;
  width: auto;
  max-width: max-content;
}
.header-inner .btn {
  width: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-900);
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand:hover {
  text-decoration: none;
}
.brand-name {
  font-size: 1.2rem;
}
.brand-mark {
  display: inline-flex;
  flex-shrink: 0;
}
.header-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* Social — inline Simple Icons, high contrast (no CSS mask) */
.social-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.social-link {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  text-decoration: none !important;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.social-link > span:not(.sr-only) {
  display: none;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #fff;
}
.social-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.social-instagram .social-icon {
  color: #e4405f;
}
.social-facebook .social-icon {
  color: #1877f2;
}
.social-tiktok .social-icon {
  color: #111111;
}
.social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(13, 15, 18, 0.14);
}
.social-link:hover .social-icon {
  color: #fff;
}
.social-instagram:hover {
  background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af);
  border-color: transparent;
}
.social-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}
.social-tiktok:hover {
  background: #010101;
  border-color: #010101;
}
.social-link:focus-visible {
  outline: 3px solid rgba(233, 30, 99, 0.4);
  outline-offset: 2px;
}

.social-follow {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.social-follow-label {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.social-follow-cta {
  margin-top: 1.35rem;
}
.social-links-cta .social-link {
  width: auto;
  height: 44px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: none;
}
.social-links-cta .social-link > span:not(.sr-only) {
  display: inline;
  color: #fff;
}
.social-links-cta .social-instagram .social-icon,
.social-links-cta .social-facebook .social-icon,
.social-links-cta .social-tiktok .social-icon {
  color: #fff;
}
.social-links-cta .social-link:hover .social-icon {
  color: #fff;
}

.social-follow-footer {
  margin-top: 20px;
}
.social-follow-footer .social-follow-label {
  width: 100%;
  color: rgba(255, 255, 255, 0.45);
}
.social-links-footer {
  width: 100%;
}
.social-links-footer .social-link {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}
.social-links-footer .social-instagram .social-icon {
  color: #ff6b9d;
}
.social-links-footer .social-facebook .social-icon {
  color: #5ba3ff;
}
.social-links-footer .social-tiktok .social-icon {
  color: #ffffff;
}
.social-links-footer .social-link:hover .social-icon {
  color: #fff;
}

.site-nav {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.4vw, 22px);
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--ink-700);
}
.site-nav a {
  color: inherit;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 0;
  text-decoration: none !important;
}
.site-nav a:hover {
  color: var(--ink-900);
  text-decoration: none !important;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  width: 0;
  margin-inline: auto;
  background: var(--pink-500);
  transition: width 0.2s ease;
}
.site-nav a:hover::after {
  width: 100%;
}
.header-actions .header-cta {
  display: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink-900);
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars {
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before {
  top: -6px;
}
.nav-toggle-bars::after {
  top: 6px;
}
.nav-toggle.is-open .nav-toggle-bars {
  background: transparent;
}
.nav-toggle.is-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}
.mobile-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 49;
  padding: 12px var(--gutter) calc(20px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  max-height: min(80vh, 640px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.is-open,
.mobile-nav:not([hidden]) {
  display: block;
}
.mobile-nav[hidden] {
  display: none !important;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav-links a {
  display: block;
  padding: 14px 12px;
  border-radius: var(--radius-md);
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--ink-900);
  text-decoration: none !important;
}
.mobile-nav-links a:hover,
.mobile-nav-links a:focus-visible {
  background: var(--pink-surface);
  color: var(--pink-700);
}
.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.mobile-nav-actions .btn {
  width: 100%;
}
/* Compact socials in the top bar only */
.social-links-header {
  gap: 6px !important;
}
.social-links-header .social-link {
  width: 34px !important;
  height: 34px !important;
  box-shadow: none;
}
.social-links-header .social-icon {
  width: 16px;
  height: 16px;
}
@media (min-width: 980px) {
  .site-nav {
    display: inline-flex;
  }
  .header-actions .header-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none !important;
  }
  .mobile-nav {
    display: none !important;
  }
}
@media (max-width: 1120px) {
  .header-actions .social-links-header {
    display: none !important;
  }
}
@media (max-width: 979px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: space-between;
    column-gap: 12px;
    min-height: 56px;
  }
  .site-nav {
    display: none;
  }
  .header-actions .header-cta {
    display: none;
  }
  .header-actions .social-links-header {
    display: none !important;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header-actions {
    gap: 6px;
  }
  .header-inner .btn-sm {
    padding: 8px 12px;
    font-size: 0.84rem;
    min-height: 40px;
  }
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  padding: 15px 22px;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1;
  letter-spacing: -0.2px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background-color 0.15s ease,
    color 0.15s ease;
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn:focus-visible {
  outline: 3px solid rgba(233, 30, 99, 0.4);
  outline-offset: 2px;
}
.btn-primary {
  color: #fff;
  background: var(--pink-500);
  box-shadow: 0 4px 14px rgba(233, 30, 99, 0.35);
}
.btn-primary:hover {
  background: var(--pink-600);
  box-shadow: 0 8px 22px rgba(233, 30, 99, 0.42);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-ghost {
  color: var(--ink-900);
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}
.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.08);
}
.btn-sm {
  padding: 10px 16px;
  font-size: 0.88rem;
}
.btn-block {
  width: 100%;
}

/* =========================================
   Hero
   ========================================= */
.hero {
  position: relative;
  overflow: clip;
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 120px);
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(233, 30, 99, 0.14), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(233, 30, 99, 0.06), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8f9fc 45%, var(--bg-app) 100%);
}
.hero-inner {
  display: grid;
  gap: clamp(32px, 6vw, 56px);
  grid-template-columns: 1fr;
  align-items: center;
}
.hero-copy {
  max-width: 620px;
}
.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin-bottom: 18px;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--ink-700);
  max-width: 540px;
  margin-bottom: 28px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  color: var(--ink-500);
  font-size: 0.95rem;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-trust svg {
  color: var(--pink-600);
}

/* =========================================
   Phone mockup — replica of the real Kaby app
   (home_screen + CarTierSelectionPanel)
   ========================================= */
.hero-visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 360px;
}
.phone {
  position: relative;
  margin: 0 auto;
  width: 100%;
  aspect-ratio: 9 / 18.5;
  border-radius: 44px;
  background: linear-gradient(160deg, #1a1f2e, #0b1020);
  padding: 12px;
  box-shadow:
    0 30px 60px -20px rgba(13, 15, 18, 0.45),
    0 0 0 2px rgba(255, 255, 255, 0.04) inset;
  transform: rotate(-2deg);
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background: #0b1020;
  border-radius: 0 0 18px 18px;
  z-index: 5;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: var(--bg-app);
  overflow: hidden;
}

/* —— Map area (top half) —— */
.app-map {
  position: absolute;
  inset: 0 0 47% 0;
  background:
    linear-gradient(180deg, #e8edf4 0%, #dde4ee 100%);
  overflow: hidden;
}
.app-map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(13, 15, 18, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 15, 18, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}
.app-map-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.app-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(13, 15, 18, 0.3);
}
.app-pin-origin {
  background: var(--pink-500);
  top: 12%;
  left: 14%;
}
.app-pin-dest {
  background: var(--ink-900);
  bottom: 8%;
  right: 14%;
}

/* —— Toolbar (TopAppBarWidget replica) —— */
.app-toolbar {
  position: absolute;
  top: 38px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.app-toolbar-chip {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  border: 1px solid rgba(13, 15, 18, 0.08);
  box-shadow: 0 4px 14px rgba(13, 15, 18, 0.08);
}
.app-toolbar-spacer {
  flex: 1;
}
.app-toolbar-chip-lang {
  width: auto;
  padding: 0 10px;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.04em;
}

/* —— Bottom sheet (CarTierSelectionPanel replica) —— */
.app-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 34%, #f7f8fa 66%, #f2f4f7 100%);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  padding: 10px 16px 16px;
  box-shadow: 0 -10px 30px rgba(13, 15, 18, 0.12);
}
.app-sheet-handle {
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(13, 15, 18, 0.18);
  margin: 0 auto 12px;
}

.app-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #ffffff 0%, #fdfdfe 46%, #ffffff 82%, #f4f5f8 100%);
  border: 1px solid rgba(13, 15, 18, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(13, 15, 18, 0.06);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 10px;
}
.app-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-700);
}
.app-meta-chip svg {
  color: var(--pink-500);
}
.app-meta-dot {
  width: 3px;
  height: 3px;
  background: rgba(13, 15, 18, 0.25);
  border-radius: 50%;
}

.app-sheet-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--ink-900);
}
.app-sheet-sub {
  margin: 2px 0 12px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-500);
}

.app-tier {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.app-tier-selected {
  border-color: var(--pink-500);
  background: var(--pink-tint);
}
.app-tier-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pink-surface);
  color: var(--pink-600);
  flex-shrink: 0;
}
.app-tier-icon-muted {
  background: var(--bg-sunken);
  color: var(--ink-500);
}
.app-tier-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.app-tier-body strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.2px;
}
.app-tier-body small {
  font-size: 0.66rem;
  color: var(--ink-500);
  font-weight: 500;
}
.app-tier-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.2px;
}

.app-cta {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  background: var(--pink-500);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: default;
  box-shadow: 0 4px 14px rgba(233, 30, 99, 0.35);
  margin-top: 4px;
}
.app-cta-fare {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.35px;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}
.hero-blob-1 {
  width: 280px;
  height: 280px;
  background: rgba(233, 30, 99, 0.28);
  top: -40px;
  right: -60px;
}
.hero-blob-2 {
  width: 320px;
  height: 320px;
  background: rgba(252, 228, 236, 0.7);
  bottom: -80px;
  left: -40px;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* =========================================
   Stats strip
   ========================================= */
.stats {
  background: var(--ink-900);
  color: #fff;
  border-block: 1px solid rgba(255, 255, 255, 0.04);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-block: 28px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pink-500);
  letter-spacing: -0.5px;
}
.stat span {
  color: #94a3b8;
  font-size: 0.92rem;
}
@media (min-width: 760px) {
  .stats-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================================
   Steps
   ========================================= */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.step-num {
  position: absolute;
  top: -18px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pink-500);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(233, 30, 99, 0.35);
}
.step h3 {
  margin-top: 6px;
  font-size: 1.15rem;
}
.step p {
  margin: 0;
  color: var(--ink-500);
}
@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================
   Features grid
   ========================================= */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.feature p {
  margin: 0;
  color: var(--ink-500);
}
.feature-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--pink-surface);
  color: var(--pink-600);
  margin-bottom: 14px;
}
@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================
   Drivers
   ========================================= */
.section-drivers {
  background:
    radial-gradient(800px 500px at 0% 0%, rgba(233, 30, 99, 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-app) 100%);
}
.drivers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.drivers-copy h2 {
  margin-top: 4px;
}
.drivers-app-name {
  margin: 8px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--pink-500);
}
.drivers-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.drivers-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.drivers-cta .btn-icon {
  flex-shrink: 0;
}
.drivers-cta-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-500);
  max-width: 36rem;
}
.drivers-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink-700);
}
.drivers-perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.drivers-perks svg {
  color: var(--pink-600);
  margin-top: 3px;
  flex-shrink: 0;
}
.drivers-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}
.drivers-card header {
  margin-bottom: 16px;
}
.drivers-card h3 {
  font-size: 1.3rem;
}
.drivers-card dl {
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.drivers-card div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.drivers-card div:last-child {
  border-bottom: none;
}
.drivers-card dt {
  color: var(--ink-500);
  font-size: 0.95rem;
}
.drivers-card dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink-900);
}
.drivers-card-total dt,
.drivers-card-total dd {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-900);
}
.drivers-card-total dd {
  color: var(--pink-500);
}
.drivers-card small {
  display: block;
  margin-top: 10px;
  color: var(--ink-400);
  font-size: 0.78rem;
}
@media (min-width: 900px) {
  .drivers-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* =========================================
   Coverage
   ========================================= */
.coverage {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.coverage li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  color: var(--ink-900);
}
.badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
}
.badge-live {
  background: #ecfdf5;
  color: #047857;
}
.badge-soon {
  background: #eff6ff;
  color: #1d4ed8;
}
@media (min-width: 720px) {
  .coverage {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================
   CTA section
   ========================================= */
.section-cta {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(800px 400px at 90% 10%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(135deg, var(--ink-900) 0%, #232833 100%);
  color: #fff;
}
.section-cta h2,
.section-cta h3 {
  color: #fff;
}
.section-cta p {
  color: rgba(255, 255, 255, 0.78);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.cta-form input {
  flex: 1 1 240px;
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 0.98rem;
  color: var(--ink-900);
}
.cta-form input::placeholder {
  color: var(--ink-400);
}
.cta-form .btn-primary {
  background: var(--pink-500);
  color: #fff;
  box-shadow: 0 6px 22px rgba(233, 30, 99, 0.45);
}
.cta-form .btn-primary:hover {
  background: var(--pink-600);
  color: #fff;
}
.cta-fineprint {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
}
.store-badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 14px 18px;
  color: #fff;
  text-decoration: none;
}
a.store-badge:visited,
a.store-badge:hover,
a.store-badge:active,
a.store-badge:focus-visible {
  color: #fff;
  text-decoration: none;
}
.store-badge svg {
  color: #fff;
}
.store-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.store-badge small {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.store-badge strong {
  font-size: 1rem;
}
@media (min-width: 880px) {
  .cta-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .store-badges {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================
   FAQ
   ========================================= */
.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-inline: auto;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq details[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--pink-600);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  content: '−';
}
.faq p {
  margin: 12px 0 0;
  color: var(--ink-500);
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 24px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}
.site-footer a:hover {
  color: #fff;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.footer-brand .brand {
  color: #fff;
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
  max-width: 320px;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.footer-links h4 {
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-links a {
  display: block;
  font-size: 0.95rem;
  padding: 4px 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
}
.footer-admin {
  padding: 0 0 28px;
  text-align: center;
}
.footer-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.footer-admin-link:hover {
  background: rgba(233, 30, 99, 0.2);
  border-color: rgba(233, 30, 99, 0.55);
  color: #fff;
  text-decoration: none;
}
.brand-footer .brand-name {
  color: #fff;
}
@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1.05fr 1.5fr;
  }
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================
   Reduced motion
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .phone {
    transform: none;
  }
}

/* =========================================
   Legal pages
   ========================================= */
.legal {
  padding: clamp(48px, 8vw, 80px) 0 80px;
}
.legal article {
  max-width: 760px;
  margin: 0 auto;
}
.legal h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 8px;
}
.legal .updated {
  color: var(--ink-500);
  font-size: 0.92rem;
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 1.3rem;
  margin: 36px 0 10px;
}
.legal h3 {
  font-size: 1.05rem;
  margin: 22px 0 6px;
}
.legal p,
.legal li {
  color: var(--ink-700);
}
.legal ul {
  padding-left: 22px;
}
.legal a:not(.btn) {
  color: var(--pink-600);
}
.legal a.btn.btn-primary,
.legal a.btn.btn-primary:visited,
.legal a.btn.btn-primary:hover,
.legal a.btn.btn-primary:focus,
.legal a.btn.btn-primary:active {
  color: #fff;
  text-decoration: none;
}

/* =========================================
   Agents program (landing + portal shell)
   ========================================= */
.agents-body {
  background: var(--bg);
}
.agents-hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.agents-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(233, 30, 99, 0.55), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(194, 24, 91, 0.4), transparent 50%),
    linear-gradient(160deg, #0d0f12 0%, #1a1220 45%, #2a0f1c 100%);
  animation: agents-hero-shift 14s ease-in-out infinite alternate;
}
@keyframes agents-hero-shift {
  from {
    filter: saturate(1);
    transform: scale(1);
  }
  to {
    filter: saturate(1.08);
    transform: scale(1.03);
  }
}
.agents-hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(4.5rem, 12vh, 7rem) 0 clamp(3.5rem, 8vh, 5rem);
  max-width: 720px;
}
.agents-kicker {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.agents-hero-title {
  margin: 0;
  font-size: clamp(3rem, 9vw, 5.2rem);
  font-weight: 860;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #fff;
}
.agents-hero-line {
  display: block;
  margin-top: 0.35em;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.92);
}
.agents-hero-sub {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
.agents-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.85rem;
}
.btn-ghost-light {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none !important;
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  text-decoration: none !important;
}
.btn-lg {
  padding: 14px 22px;
  font-size: 1.02rem;
}
.agents-steps h2 {
  margin-bottom: 0.35em;
}
.agents-section-lead {
  margin: 0 0 2rem;
  color: var(--ink-500);
  max-width: 36rem;
}
.agents-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.agents-step-list-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.agents-step-list h3 {
  margin: 0.4em 0 0.35em;
  font-size: 1.2rem;
}
.agents-step-list p {
  margin: 0;
  color: var(--ink-500);
}
.agents-step-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--pink-500);
}
.agents-fine {
  margin: 2.5rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-400);
}
.agents-close {
  background: var(--gradient-brand);
  color: #fff;
  padding: clamp(3rem, 8vw, 5rem) 0;
  text-align: center;
}
.agents-close h2 {
  color: #fff;
  margin-bottom: 0.4em;
}
.agents-close p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.88);
}
.agents-close .btn-primary {
  background: #fff;
  color: var(--pink-700) !important;
  border-color: #fff;
}
.agents-close .btn-primary:hover {
  background: var(--pink-surface);
  color: var(--pink-700) !important;
}

/* Main landing — agents band */
.section-agents {
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(233, 30, 99, 0.14), transparent 60%),
    var(--bg-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.agents-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.agents-band-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-600);
}
.agents-band h2 {
  margin-bottom: 0.45em;
}
.agents-band-copy > p {
  margin: 0 0 1.35rem;
  color: var(--ink-500);
  font-size: 1.08rem;
  max-width: 34rem;
}
.agents-band-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.agents-band-panel {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 28px 26px;
}
.agents-band-panel strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35em;
}
.agents-band-panel p {
  margin: 0;
  color: var(--ink-500);
}
.agents-form-shell {
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) 0 4rem;
}
.agents-form-shell h1 {
  margin-bottom: 0.35em;
}
.agents-form-shell .updated {
  margin-bottom: 1.5rem;
}
.agents-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-700);
}
.agents-field > input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 500;
  color: var(--ink-900);
  background: #fff;
}
.agents-field > input:focus {
  outline: 3px solid rgba(233, 30, 99, 0.25);
  border-color: var(--pink-500);
}
/* Password = one control: field + eye as a single bordered unit */
.agents-password-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}
.agents-password-wrap:focus-within {
  outline: 3px solid rgba(233, 30, 99, 0.25);
  border-color: var(--pink-500);
}
.agents-password-wrap input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  font: inherit;
  font-weight: 500;
  color: var(--ink-900);
  background: transparent;
}
.agents-password-wrap input:focus {
  outline: none;
  border: 0;
  box-shadow: none;
}
.agents-password-toggle {
  flex: 0 0 48px;
  width: 48px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg-tint);
  color: var(--ink-500);
  cursor: pointer;
  line-height: 0;
}
.agents-password-toggle:hover {
  color: var(--ink-900);
  background: var(--bg-sunken);
}
.agents-password-toggle:focus-visible {
  outline: 3px solid rgba(233, 30, 99, 0.35);
  outline-offset: -3px;
  z-index: 1;
}
.agents-password-toggle .eye-icon {
  display: none;
  width: 20px;
  height: 20px;
}
.agents-password-toggle[aria-pressed='false'] .eye-icon-show,
.agents-password-toggle[aria-pressed='true'] .eye-icon-hide {
  display: block;
}
.agents-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 20px;
  font-weight: 500;
  color: var(--ink-700);
}
.agents-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.agents-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.agents-invoice {
  margin-top: 20px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--pink-surface);
  border: 1px solid rgba(233, 30, 99, 0.2);
}
.agents-qr-card {
  display: flex;
  flex-direction: column;
}
.agents-qr-frame {
  width: 236px;
  max-width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.agents-qr-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  background: #fff;
}
.agents-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.agents-invite {
  padding: clamp(3rem, 12vh, 5rem) 0 4rem;
  text-align: center;
  max-width: 28rem;
  margin-inline: auto;
}
.agents-invite h1 {
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  margin-bottom: 0.75rem;
}
.agents-invite .btn {
  width: min(100%, 320px);
  margin-top: 0.5rem;
}

/* Agent panel — toolkit dashboard */
.agents-panel-page {
  background:
    radial-gradient(ellipse 70% 40% at 10% 0%, rgba(233, 30, 99, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 10%, rgba(233, 30, 99, 0.05), transparent 50%),
    var(--bg-app);
  min-height: 100vh;
}
.agents-error {
  color: #c62828;
  margin: 1rem auto;
}
.agents-loading {
  padding: 3rem 0;
  color: var(--ink-500);
}
.agents-welcome {
  position: relative;
  overflow: hidden;
  color: #fff;
  margin-bottom: 0;
}
.agents-welcome-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 15% 20%, rgba(233, 30, 99, 0.55), transparent 55%),
    linear-gradient(145deg, #12151c 0%, #1c1422 48%, #2a1020 100%);
  animation: agents-hero-shift 16s ease-in-out infinite alternate;
}
.agents-welcome-inner {
  position: relative;
  z-index: 1;
  padding: clamp(2.25rem, 6vw, 3.25rem) 0 2rem;
}
.agents-welcome-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.agents-welcome h1 {
  margin: 0;
  font-size: clamp(2rem, 5.5vw, 2.85rem);
  font-weight: 860;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
}
.agents-welcome-sub {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  font-size: 1.08rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}
.agents-welcome-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}
.agents-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.agents-status-badge--approved {
  background: rgba(46, 180, 110, 0.25);
  border-color: rgba(120, 220, 160, 0.45);
}
.agents-status-badge--pending {
  background: rgba(255, 193, 7, 0.22);
  border-color: rgba(255, 213, 79, 0.45);
}
.agents-panel-main {
  padding: 1.25rem 0 4.5rem;
}
.agents-pending {
  margin-top: 1rem;
}
.agents-pending p {
  margin: 0.5rem 0 0;
  color: var(--ink-500);
}
.agents-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 0.5rem 0 1.25rem;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  animation: agents-next-in 0.55s ease both;
}
.agents-next--urgent {
  border-color: rgba(233, 30, 99, 0.45);
  background: linear-gradient(135deg, #fff 0%, var(--pink-surface) 100%);
}
.agents-next-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-600);
}
.agents-next h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.agents-next p {
  margin: 0;
  color: var(--ink-500);
  max-width: 40rem;
}
@keyframes agents-next-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.agents-toolnav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0;
  margin: 0 0 0.5rem;
  background: linear-gradient(var(--bg-app) 70%, transparent);
  -webkit-overflow-scrolling: touch;
}
.agents-toolnav a {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink-700);
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.agents-toolnav a:hover,
.agents-toolnav a.is-active {
  color: var(--pink-700);
  border-color: rgba(233, 30, 99, 0.35);
  background: var(--pink-surface);
}
.agents-section {
  scroll-margin-top: 72px;
  margin: 1.75rem 0 2.25rem;
}
.agents-section-head {
  margin-bottom: 1rem;
}
.agents-section-head h2 {
  margin: 0 0 0.3rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.agents-section-head p {
  margin: 0;
  color: var(--ink-500);
  max-width: 40rem;
}
.agents-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.agents-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 96px;
}
.agents-kpi span {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ink-400);
  line-height: 1.3;
}
.agents-kpi strong {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.agents-kpi--accent {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
}
.agents-kpi--accent span {
  color: rgba(255, 255, 255, 0.78);
}
.agents-kpi--accent strong {
  color: #fff;
}
.agents-tip-live {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 1rem 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px dashed rgba(233, 30, 99, 0.35);
  color: var(--ink-700);
}
.agents-tip-live-label {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink-600);
}
#tipRotate {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#tipRotate.is-swap {
  opacity: 0;
  transform: translateY(4px);
}
.agents-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}
.agents-card-lead {
  margin: 0 0 1rem;
  color: var(--ink-500);
  font-size: 0.95rem;
}
.agents-code-line {
  margin: 0 0 1rem;
}
.agents-share-url {
  margin: 1rem 0 0.75rem;
  word-break: break-all;
  font-size: 0.92rem;
}
.agents-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.1rem;
}
.agents-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
}
.agents-social--wa {
  background: #1f9e57;
}
.agents-social--tg {
  background: #229ed9;
}
.agents-social--fb {
  background: #1877f2;
}
.agents-social--x {
  background: #111;
}
.agents-pitch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.agents-pitch-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.agents-pitch-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.agents-pitch-list strong {
  display: block;
  font-size: 0.95rem;
}
.agents-pitch-list span {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-400);
}
.agents-copy-btn.is-copied,
.btn.is-copied {
  color: var(--pink-700) !important;
}
.agents-bill-card {
  margin-bottom: 1rem;
}
.agents-payee-list {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
}
.agents-payee-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.agents-payee-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--ink-400);
  margin-bottom: 2px;
}
.agents-payee-value {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink-900);
  word-break: break-word;
}
.agents-checklist {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-700);
}
.agents-checklist li {
  margin-bottom: 0.45rem;
}
.agents-card-foot {
  margin: 1rem 0 0;
  font-size: 0.92rem;
}
.agents-invoice-idle {
  background: var(--bg-tint);
}
.agents-invoice-idle p {
  margin: 0.45rem 0 0;
  color: var(--ink-500);
}
.agents-invoice h3 {
  margin: 0 0 0.5rem;
}
.agents-invoice-meta {
  margin: 0 0 1rem;
  font-weight: 650;
}
.agents-file-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 120px;
  margin-bottom: 1rem;
  padding: 20px;
  border: 2px dashed rgba(233, 30, 99, 0.35);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  text-align: center;
}
.agents-file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.agents-file-drop-title {
  font-weight: 750;
  color: var(--ink-900);
}
.agents-file-drop-sub {
  font-size: 0.85rem;
  color: var(--ink-400);
}
.agents-upload-status {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-700);
}
.agents-upload-status.is-ok {
  color: #1b7a45;
}
.agents-upload-status.is-error {
  color: #c62828;
}
.agents-tips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.agents-tips-grid p {
  margin: 0;
  color: var(--ink-500);
}
.agents-tips-ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-700);
}
.agents-tips-ul li {
  margin-bottom: 0.45rem;
}
.agents-empty {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
}
.agents-empty p {
  margin: 0.45rem 0 0;
  color: var(--ink-500);
}
.agents-settle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.agents-settle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.agents-settle-meta {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--ink-400);
}
.agents-settle-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.agents-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--bg-sunken);
  color: var(--ink-700);
}
.agents-badge--pending_invoice {
  background: var(--pink-surface);
  color: var(--pink-700);
}
.agents-badge--paid {
  background: #e8f7ee;
  color: #1b7a45;
}
.agents-badge--forfeited {
  background: #fdecea;
  color: #b71c1c;
}
.agents-reminder {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: none;
  justify-content: center;
  pointer-events: none;
}
.agents-reminder.is-open {
  display: flex;
  animation: agents-next-in 0.4s ease both;
}
.agents-reminder[hidden] {
  display: none !important;
}
.agents-reminder-inner {
  pointer-events: auto;
  width: min(520px, 100%);
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: #12151c;
  color: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.agents-reminder-inner p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}
.agents-reminder-actions {
  display: flex;
  gap: 8px;
}
.agents-reminder .btn-ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 960px) {
  .agents-step-list-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .agents-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .agents-step-list,
  .agents-step-list-4,
  .agents-band,
  .agents-panel-grid,
  .agents-tips-grid {
    grid-template-columns: 1fr;
  }
  .agents-settle-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .agents-settle-right {
    align-items: flex-start;
    text-align: left;
  }
}

/* =========================================
   Mobile-first polish (phones)
   ========================================= */
@media (max-width: 720px) {
  :root {
    --gutter: max(16px, env(safe-area-inset-left, 0px));
  }
  .container {
    padding-inline: max(16px, env(safe-area-inset-left, 0px))
      max(16px, env(safe-area-inset-right, 0px));
  }
  .hero {
    padding: 36px 0 48px;
  }
  .hero-title {
    font-size: clamp(2rem, 9vw, 2.6rem);
    word-break: break-word;
  }
  .hero-cta,
  .agents-hero-cta,
  .agents-band-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn,
  .agents-hero-cta .btn,
  .agents-band-cta .btn {
    width: 100%;
  }
  .agents-hero {
    min-height: auto;
  }
  .agents-hero-inner {
    padding: 5.5rem 0 2.75rem;
  }
  .agents-hero-title {
    font-size: clamp(2.4rem, 14vw, 3.4rem);
  }
  .agents-hero-line {
    font-size: clamp(1.15rem, 5.2vw, 1.45rem);
  }
  .agents-step-list,
  .agents-step-list-4 {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .agents-form-shell {
    padding: 1.5rem 0 3rem;
  }
  .agents-form-shell h1 {
    font-size: 1.65rem;
  }
  .agents-welcome-inner {
    padding: 1.75rem 0 1.35rem;
  }
  .agents-welcome h1 {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
  }
  .agents-welcome-sub {
    font-size: 0.98rem;
  }
  .agents-panel-main {
    padding: 0.85rem 0 calc(5rem + env(safe-area-inset-bottom, 0px));
  }
  .agents-next {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px;
  }
  .agents-next .btn {
    width: 100%;
  }
  .agents-toolnav {
    top: 0;
    margin: 0 -4px 0.75rem;
    padding: 8px 4px;
    gap: 6px;
  }
  .agents-toolnav a {
    padding: 10px 12px;
    font-size: 0.86rem;
    min-height: 40px;
  }
  .agents-section {
    scroll-margin-top: 108px;
    margin: 1.25rem 0 1.75rem;
  }
  .agents-section-head h2 {
    font-size: 1.25rem;
  }
  .agents-kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .agents-kpi {
    min-height: 88px;
    padding: 14px 12px;
  }
  .agents-kpi strong {
    font-size: 1.1rem;
  }
  .agents-kpi--accent {
    grid-column: 1 / -1;
  }
  .agents-card {
    padding: 16px;
  }
  .agents-qr-frame {
    width: min(220px, 100%);
    margin-inline: auto;
  }
  .agents-qr-card {
    align-items: stretch;
    text-align: left;
  }
  .agents-qr-actions {
    width: 100%;
  }
  .agents-qr-actions .btn,
  .agents-qr-actions a.btn {
    flex: 1 1 calc(50% - 6px);
    min-height: 44px;
  }
  .agents-social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .agents-social {
    width: 100%;
    min-height: 44px;
  }
  .agents-pitch-list li {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .agents-pitch-list .btn {
    width: 100%;
    min-height: 44px;
  }
  .agents-payee-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .agents-payee-row .btn {
    width: 100%;
    min-height: 44px;
  }
  .agents-file-drop {
    min-height: 112px;
  }
  .agents-reminder {
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
  .agents-reminder-actions {
    flex-wrap: wrap;
  }
  .agents-reminder-actions .btn {
    flex: 1 1 auto;
    min-height: 44px;
  }
  .legal .container {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
  .legal h1 {
    font-size: 1.65rem;
    line-height: 1.15;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 1.05rem;
  }
  .header-actions .btn-sm {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  .agents-kpi-grid {
    grid-template-columns: 1fr;
  }
  .agents-kpi--accent {
    grid-column: auto;
  }
}
