/* ==========================================================================
   BUMDES Saku — Landing Design System
   Tokens mirrored 1:1 from mobile_user/lib/core/theme/app_theme.dart
   (AppColors / AppTheme / AppRadius) so the web and mobile app read as one
   product. See mobile_user/lib/core/widgets/app_widgets.dart (MenuGridItem)
   for the colored icon-tile pattern reused across this stylesheet.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* AppColors */
  --primary: #0f9d58;
  --primary-dark: #0b7a43;
  --primary-light: #34c37a;
  --secondary: #1a73e8;
  --accent: #ffb703;
  --danger: #e5484d;

  /* AppColors.*Light */
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-2: #eaf1ed;
  --text: #16211a;
  --text-muted: #5a6b62;
  --line: rgba(22, 33, 26, 0.09);
  --line-strong: rgba(22, 33, 26, 0.16);
  --glass: rgba(255, 255, 255, 0.78);
  --glass-brd: rgba(255, 255, 255, 0.9);

  /* icon tint used for secondary/neutral icon badges (login logo, bell, avatars) */
  --tint-bg: rgba(15, 157, 88, 0.1);
  --tint-fg: var(--primary);
  --accent-text: var(--primary);

  /* Cards in the app use elevation: 0 — shadows here stay light, never glowing */
  --shadow-sm: 0 1px 2px rgba(22, 33, 26, .05), 0 3px 10px rgba(22, 33, 26, .05);
  --shadow-md: 0 6px 20px rgba(22, 33, 26, .08);
  --shadow-lg: 0 18px 44px -10px rgba(22, 33, 26, .16);

  /* AppRadius */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;

  /* AppTheme balance-card gradient: primaryDark → primary → primaryLight */
  --grad-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: .16s var(--ease);
  --t: .26s var(--ease);

  --maxw: 1200px;
  --nav-h: 74px;

  color-scheme: light;
}

/* Dark theme — AppColors.*Dark, default when the OS prefers it, or forced via data-theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1512;
    --surface: #17201a;
    --surface-2: #1e2a22;
    --text: #e9f3ec;
    --text-muted: #9db3a6;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --glass: rgba(15, 21, 18, .72);
    --glass-brd: rgba(255, 255, 255, .09);
    --tint-bg: rgba(52, 195, 122, .16);
    --tint-fg: var(--primary-light);
    --accent-text: var(--primary-light);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 8px 26px rgba(0, 0, 0, .45);
    --shadow-lg: 0 22px 50px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1512;
  --surface: #17201a;
  --surface-2: #1e2a22;
  --text: #e9f3ec;
  --text-muted: #9db3a6;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --glass: rgba(15, 21, 18, .72);
  --glass-brd: rgba(255, 255, 255, .09);
  --tint-bg: rgba(52, 195, 122, .16);
  --tint-fg: var(--primary-light);
  --accent-text: var(--primary-light);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 26px rgba(0, 0, 0, .45);
  --shadow-lg: 0 22px 50px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* One typeface everywhere, same as GoogleFonts.plusJakartaSansTextTheme() in the app */
h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }
button, input { font-family: inherit; }

::selection { background: rgba(15,157,88,.24); color: var(--text); }

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

/* ---------- Ambient background ----------
   Flat scaffold background, same as Scaffold(backgroundColor: AppColors.bg*) —
   no orbs, no grid overlay, no neon glow. */
.ambient {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: var(--bg);
}

/* Scroll progress */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--primary); z-index: 200;
  transition: width .1s linear;
}

/* ---------- Buttons ----------
   Mirrors ElevatedButtonTheme / OutlinedButtonTheme in app_theme.dart:
   pill radius, elevation 0, no shimmer/glow. */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer;
  font-weight: 700; font-size: .93rem; letter-spacing: -.01em; white-space: nowrap;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t), color var(--t);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 17px; height: 17px; }

.btn-primary {
  background: var(--primary); color: #ffffff;
  box-shadow: 0 6px 16px -4px rgba(15,157,88,.4);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 22px -6px rgba(15,157,88,.45); }

.btn-ghost {
  background: transparent; color: var(--primary);
  border: 1.4px solid var(--primary);
}
.btn-ghost:hover { background: rgba(15,157,88,.08); transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: .86rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 0 28px;
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t), box-shadow var(--t), height var(--t);
}
.navbar.scrolled {
  height: 64px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; font-weight: 800; font-size: 1.06rem; letter-spacing: -.02em; }
.brand-mark {
  position: relative; width: 40px; height: 40px; border-radius: var(--radius-sm); padding: 2px;
  background: var(--primary); flex: none;
}
.brand-mark img { width: 100%; height: 100%; border-radius: 9px; object-fit: cover; background: var(--primary); }
.brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); line-height: 1.4; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  padding: 5px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
}
.nav-links a {
  display: block; padding: 9px 17px; border-radius: 999px;
  font-size: .89rem; font-weight: 600; color: var(--text-muted);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--primary); background: var(--tint-bg); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-muted);
  cursor: pointer; transition: var(--t); flex: none;
}
.icon-btn:hover { color: var(--primary); border-color: rgba(15,157,88,.35); }
.icon-btn svg { width: 18px; height: 18px; }

/* theme icon swap: moon shown in light mode, sun shown in dark mode */
.icon-sun { display: none; }
.icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }

.nav-toggle { display: none; }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 110;
  background: var(--glass); backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  padding: 18px 24px 26px; display: none; flex-direction: column; gap: 4px;
  animation: dropIn .22s var(--ease);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 13px 14px; border-radius: var(--radius-sm); font-weight: 600; color: var(--text); }
.mobile-menu a:hover { background: var(--surface-2); color: var(--primary); }
.mobile-menu .btn { margin-top: 10px; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Pills / chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px 7px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .8rem; font-weight: 600; color: var(--text);
}
.pill .tag {
  padding: 4px 11px; border-radius: 999px; font-size: .67rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--primary); color: #fff;
}
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); position: relative; flex: none; margin-left: 8px; }
.dot-live::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--primary); animation: ping 1.8s var(--ease) infinite; opacity: .8;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 60px) 0 90px; }
.hero .container {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem); font-weight: 800; margin: 22px 0 20px;
}
.hero h1 .grad { color: var(--accent-text); }
.hero-lead { font-size: 1.08rem; color: var(--text-muted); max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars span {
  width: 34px; height: 34px; border-radius: 50%; margin-left: -10px;
  display: grid; place-items: center; font-size: .76rem; font-weight: 800; color: #fff;
  border: 2px solid var(--bg); background: var(--primary);
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: var(--secondary); }
.avatars span:nth-child(3) { background: var(--accent); color: #4a3300; }
.avatars span:nth-child(4) { background: var(--text-muted); }
.hero-trust small { color: var(--text-muted); font-size: .85rem; line-height: 1.45; }
.hero-trust b { color: var(--text); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto); gap: 34px; margin-top: 40px;
  justify-content: start;
}
.hero-stats > div { position: relative; padding-left: 16px; }
.hero-stats > div::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px;
  background: var(--primary); opacity: .8;
}
.stat-num {
  font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--accent-text);
}
.stat-label { font-size: .82rem; color: var(--text-muted); font-weight: 500; }

/* ---------- Phone mockup ----------
   Reproduces mobile_user/lib/features/home/screens/dashboard_screen.dart:
   light scaffold, header greeting + notification tile, gradient balance
   card with a single "Top Up" action, 4x2 colored menu grid, nearby-map
   banner, and an announcement preview — the actual dashboard, not a
   reinvented one. */
.hero-visual { position: relative; display: grid; place-items: center; }

.phone-mock {
  position: relative; width: 300px; padding: 10px; border-radius: 40px;
  background: #1b1f1d;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06);
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.phone-mock .notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 20px; border-radius: 999px; background: #0b0d0c; z-index: 3;
}
.phone-mock .screen {
  position: relative; border-radius: 30px; overflow: hidden; min-height: 560px;
  background: var(--bg); color: var(--text); padding: 44px 16px 18px;
}

.ph-header { display: flex; justify-content: space-between; align-items: flex-start; }
.ph-header h6 { font-size: .95rem; font-weight: 800; letter-spacing: -.01em; }
.ph-header p { font-size: .68rem; color: var(--text-muted); margin-top: 2px; }
.bell {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--tint-bg); color: var(--tint-fg); flex: none;
}
.bell svg { width: 18px; height: 18px; }

.balance-card {
  position: relative; margin-top: 16px; padding: 18px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--grad-primary); color: #fff;
  box-shadow: 0 14px 28px -10px rgba(15,157,88,.45);
}
.balance-card .label { font-size: .7rem; opacity: .85; font-weight: 600; }
.balance-card .amount { font-size: 1.5rem; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; }
.balance-card .row { display: flex; gap: 8px; margin-top: 16px; }
.balance-card .row a {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  flex: none; font-style: normal; font-size: .72rem; font-weight: 700;
  padding: 8px 16px; border-radius: 999px; border: 1.2px solid rgba(255,255,255,.6); color: #fff;
}
.balance-card .row a svg { width: 14px; height: 14px; }

.ph-section-title { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 14px; }
.ph-section-title span { font-size: .86rem; font-weight: 800; }
.ph-section-title small { font-size: .68rem; font-weight: 700; color: var(--primary); }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
.quick-item { text-align: center; }
.quick-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md); margin: 0 auto 6px;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 14px -5px var(--tile-shadow, rgba(0,0,0,.3));
}
.quick-icon svg { width: 20px; height: 20px; }
.quick-item span {
  display: block; font-size: .56rem; font-weight: 600; line-height: 1.25; color: var(--text);
}

/* Colored icon tiles — exact palette from _buildMenuGrid() in dashboard_screen.dart,
   reused for the marketing feature grid further down the page. */
.tile-primary   { background: linear-gradient(135deg, var(--primary), var(--primary-light));      --tile-shadow: rgba(15,157,88,.4); }
.tile-secondary { background: linear-gradient(135deg, var(--secondary), #5b9bf2);                  --tile-shadow: rgba(26,115,232,.4); }
.tile-accent    { background: linear-gradient(135deg, var(--accent), #ffd166); color: #4a3300;     --tile-shadow: rgba(255,183,3,.4); }
.tile-orange    { background: linear-gradient(135deg, #ff5722, #ff8a50);                           --tile-shadow: rgba(255,87,34,.4); }
.tile-indigo    { background: linear-gradient(135deg, #3f51b5, #7986cb);                           --tile-shadow: rgba(63,81,181,.4); }
.tile-pink      { background: linear-gradient(135deg, #e91e63, #f06292);                           --tile-shadow: rgba(233,30,99,.4); }
.tile-purple    { background: linear-gradient(135deg, #9c27b0, #ba68c8);                           --tile-shadow: rgba(156,39,176,.4); }
.tile-teal      { background: linear-gradient(135deg, #009688, #4db6ac);                           --tile-shadow: rgba(0,150,136,.4); }
.tile-brown     { background: linear-gradient(135deg, #795548, #a1887f);                            --tile-shadow: rgba(121,85,72,.4); }

.nearby-banner {
  height: 108px; border-radius: var(--radius-md); overflow: hidden; position: relative;
  background: linear-gradient(135deg, rgba(26,115,232,.85), rgba(15,157,88,.85));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: #fff; text-align: center; padding: 0 20px;
}
.nearby-banner svg { width: 26px; height: 26px; }
.nearby-banner span { font-size: .68rem; font-weight: 700; line-height: 1.3; }

.announce-row {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  padding: 10px; border-radius: var(--radius-sm); background: var(--surface);
}
.announce-row .ic {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--tint-bg); color: var(--tint-fg); display: grid; place-items: center;
}
.announce-row .ic svg { width: 16px; height: 16px; }
.announce-row .meta b { display: block; font-size: .68rem; font-weight: 700; }
.announce-row .meta span { font-size: .58rem; color: var(--text-muted); }

/* Floating toasts around the phone — flat cards, same shape language as
   SnackBarThemeData (floating, radius 14, no glass blur). */
.float-card {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); font-size: .76rem; font-weight: 700; color: var(--text);
  animation: floatCard 7s ease-in-out infinite;
}
.float-card .fi {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: var(--tint-bg); color: var(--tint-fg); flex: none; font-size: .95rem;
}
.float-card small { display: block; font-size: .66rem; font-weight: 500; color: var(--text-muted); }
.fc-1 { top: 4%; left: -12%; animation-delay: -1s; }
.fc-2 { bottom: 22%; right: -10%; animation-delay: -3.5s; }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden; padding: 22px 0;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scrollX 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: .85rem; font-weight: 600; color: var(--text-muted); white-space: nowrap;
}
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--tint-bg); border: 1px solid rgba(15,157,88,.22); color: var(--primary);
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 800; margin-top: 16px; }
.section-head h2 .grad { color: var(--accent-text); }
.section-head p { color: var(--text-muted); margin-top: 14px; font-size: 1.02rem; }

/* ---------- Bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card {
  position: relative; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  padding: 26px;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-4px); border-color: rgba(15,157,88,.3); box-shadow: var(--shadow-md); }

.feature-card { grid-column: span 3; }
.feature-card.wide { grid-column: span 6; }

.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md); display: grid; place-items: center;
  font-size: 1.35rem; margin-bottom: 18px; color: #fff;
  box-shadow: 0 8px 18px -6px var(--tile-shadow, rgba(0,0,0,.3));
}
.feature-card h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 9px; }
.feature-card p { color: var(--text-muted); font-size: .91rem; }
.feature-card .chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.feature-card .chips i {
  font-style: normal; font-size: .72rem; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
}

/* mini preview inside wide cards */
.mini-rows { margin-top: 18px; display: grid; gap: 9px; }
.mini-row {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line);
}
.mini-row .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--tint-bg); color: var(--tint-fg); font-size: .82rem; flex: none; }
.mini-row .t { flex: 1; font-size: .82rem; font-weight: 700; }
.mini-row .t small { display: block; font-weight: 500; font-size: .7rem; color: var(--text-muted); }
.mini-row .v { font-size: .8rem; font-weight: 800; color: var(--primary); }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 92px; margin-top: 20px; }
.bars i { flex: 1; border-radius: 8px 8px 4px 4px; background: var(--primary); opacity: .28; }
.bars i:nth-child(5), .bars i:nth-child(7) { opacity: 1; }

/* ---------- Map ---------- */
.map-shell {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-md); padding: 12px;
}
.map-wrap { position: relative; border-radius: calc(var(--radius-lg) - 10px); overflow: hidden; height: 520px; }
#osm-map { width: 100%; height: 100%; background: var(--surface-2); }
.leaflet-container { font-family: inherit; }
.map-legend {
  position: absolute; bottom: 18px; left: 18px; z-index: 500;
  display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: var(--radius-sm);
  background: var(--glass); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(16px); box-shadow: var(--shadow-md); font-size: .82rem; font-weight: 600;
}
.map-legend .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(15,157,88,.2); display: inline-block; }
.map-badges { position: absolute; top: 18px; right: 18px; z-index: 500; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.map-badges span {
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: .78rem; font-weight: 700;
  background: var(--glass); border: 1px solid var(--glass-brd); backdrop-filter: blur(16px);
}

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps::before {
  content: ''; position: absolute; top: 34px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent); opacity: .4;
}
.step { position: relative; text-align: center; padding: 8px 12px; }
.step-num {
  position: relative; width: 68px; height: 68px; border-radius: var(--radius-md); margin: 0 auto 20px;
  display: grid; place-items: center; font-weight: 800; font-size: 1.22rem;
  color: #fff; background: var(--grad-primary);
  box-shadow: 0 12px 26px -10px rgba(15,157,88,.5);
}
.step-num::after { content: ''; position: absolute; inset: -7px; border-radius: calc(var(--radius-md) + 7px); border: 1px solid var(--line); }
.step h4 { font-size: 1.04rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: .9rem; }

/* ---------- Trust strip ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item {
  display: flex; gap: 13px; align-items: flex-start; padding: 22px;
  border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line);
  transition: border-color var(--t), transform var(--t);
}
.trust-item:hover { border-color: rgba(15,157,88,.28); transform: translateY(-3px); }
.trust-item .ic { width: 38px; height: 38px; flex: none; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--tint-bg); color: var(--tint-fg); font-size: 1rem; }
.trust-item b { display: block; font-size: .92rem; margin-bottom: 3px; }
.trust-item span { font-size: .82rem; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface);
  overflow: hidden; transition: border-color var(--t), background var(--t);
}
.faq-item.open { border-color: rgba(15,157,88,.3); background: var(--surface-2); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: none; border: none; cursor: pointer; text-align: left;
  font-size: .97rem; font-weight: 700; color: var(--text); letter-spacing: -.01em;
}
.faq-q .chev { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: transform var(--t), background var(--t); font-size: .85rem; }
.faq-item.open .chev { transform: rotate(45deg); background: var(--tint-bg); color: var(--primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 24px 22px; color: var(--text-muted); font-size: .92rem; }

/* ---------- CTA ---------- */
.cta-section {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  border-radius: var(--radius-lg); padding: 76px 40px;
  background: var(--grad-primary);
  box-shadow: 0 20px 46px -16px rgba(15,157,88,.5);
}
.cta-section h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 18px 0 14px; }
.cta-section p { opacity: .92; max-width: 560px; margin: 0 auto 30px; }
.cta-section .pill { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.24); color: #fff; }
.cta-section .btn-primary { background: #fff; color: var(--primary-dark); box-shadow: 0 12px 28px -12px rgba(0,0,0,.4); }
.cta-section .btn-primary:hover { background: #fff; color: var(--primary-dark); }
.cta-section .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); }
.cta-section .btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 20px; font-size: .82rem; opacity: .8; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 64px 0 30px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 44px; margin-bottom: 44px; }
.footer-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; margin-bottom: 14px; font-size: 1.02rem; }
.footer-about { color: var(--text-muted); font-size: .9rem; max-width: 320px; }
.socials { display: flex; gap: 9px; margin-top: 18px; }
.socials a {
  width: 36px; height: 36px; border-radius: var(--radius-sm); display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-muted); transition: var(--t);
}
.socials a:hover { color: var(--primary); border-color: rgba(15,157,88,.35); }
footer h5 { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; color: var(--text-muted); }
footer ul li { margin-bottom: 11px; font-size: .9rem; color: var(--text); }
footer ul li a { transition: color var(--t-fast); }
footer ul li a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 24px; font-size: .84rem; color: var(--text-muted);
}

/* ---------- Modal ----------
   Mirrors login_screen.dart: tinted logo tile, filled inputs (radius 16,
   subtle border, focus ring in primary), pill submit button. */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(10, 20, 15, .5);
}
.modal-overlay.open { display: flex; animation: fadeIn .2s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.modal-card {
  position: relative; width: 100%; max-width: 420px; padding: 32px 28px;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--bg); box-shadow: var(--shadow-lg);
  animation: popIn .25s var(--ease);
  max-height: calc(100vh - 40px); overflow-y: auto;
}
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-logo {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: var(--radius-md); padding: 10px;
  background: var(--tint-bg); margin-bottom: 18px;
}
.modal-logo img { border-radius: 8px; width: 100%; height: 100%; object-fit: contain; }
.modal-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.modal-card .sub { color: var(--text-muted); font-size: .89rem; margin-bottom: 22px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 7px; color: var(--text-muted); }
.field input {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(15,157,88,.15); background: var(--bg); color: var(--text);
  font-size: .94rem; transition: var(--t-fast);
}
.field input::placeholder { color: var(--text-muted); opacity: .7; }
.field input:focus { outline: none; border-color: var(--primary); }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: grid; place-items: center; cursor: pointer; color: var(--text-muted);
  border: 1px solid var(--line); background: var(--surface); transition: var(--t-fast); z-index: 2;
  font-size: .9rem;
}
.modal-close:hover { color: var(--text); background: var(--surface-2); }
.form-msg { font-size: .85rem; padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; display: none; font-weight: 600; }
.form-msg.error { display: block; background: rgba(229,72,77,.1); color: var(--danger); border: 1px solid rgba(229,72,77,.25); }
.form-msg.success { display: block; background: var(--tint-bg); color: var(--primary); border: 1px solid rgba(15,157,88,.25); }
.modal-foot { text-align: center; margin-top: 18px; font-size: .87rem; color: var(--text-muted); }
.modal-foot a { color: var(--primary); font-weight: 700; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature-card { grid-column: span 4; }
  .feature-card.wide { grid-column: span 6; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-actions .btn-ghost { display: none; }
  .float-card { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero .container { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-cta, .hero-trust, .hero-stats { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(3, auto); gap: 22px; }
  .hero-stats > div { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-about { max-width: none; }
}
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .bento { gap: 14px; }
  .feature-card, .feature-card.wide { grid-column: span 12; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps::before { display: none; }
  .map-wrap { height: 400px; }
  .cta-section { padding: 56px 24px; }
}
@media (max-width: 520px) {
  .navbar { padding: 0 16px; }
  .container { padding: 0 18px; }
  .hero h1 { font-size: 2.15rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .trust-grid { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .nav-actions .btn-primary { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .phone-mock { width: 100%; max-width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Leaflet skin ---------- */
.leaflet-control-attribution {
  background: var(--glass) !important; color: var(--text-muted) !important;
  backdrop-filter: blur(10px); border-radius: 8px 0 0 0; font-size: .68rem !important;
}
.leaflet-control-attribution a { color: var(--primary) !important; }
.leaflet-bar a {
  background: var(--glass) !important; color: var(--text) !important;
  border-color: var(--line) !important; backdrop-filter: blur(10px);
}
.leaflet-bar a:hover { background: var(--surface-2) !important; color: var(--primary) !important; }
.leaflet-popup-content-wrapper {
  background: var(--bg) !important; color: var(--text) !important;
  border: 1px solid var(--line-strong); border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
}
.leaflet-popup-content { margin: 14px 16px !important; font-size: .84rem !important; line-height: 1.5 !important; }
.leaflet-popup-content b { font-size: .92rem; }
.leaflet-popup-tip { background: var(--bg) !important; }
.leaflet-popup-close-button { color: var(--text-muted) !important; }

.map-pin { position: relative; }
.map-pin i {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--primary); border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.map-pin i::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--primary); animation: ping 2.2s var(--ease) infinite;
}

/* Tone the light OSM tiles down so they sit inside a dark UI */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(.92) contrast(.9) saturate(.75); }
}
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(.92) contrast(.9) saturate(.75); }
:root[data-theme="light"] .leaflet-tile-pane { filter: none; }
