/* AMBUPAY — styled after the Ambu One landing page (same company, same design language) */
:root {
  --ink: #0F172A;          /* slate-900 */
  --ink-2: #1E293B;        /* slate-800 */
  --text: #475569;         /* slate-600 */
  --muted: #64748B;        /* slate-500 */
  --faint: #94A3B8;        /* slate-400 */
  --line: #E2E8F0;         /* slate-200 */
  --soft: #F1F5F9;         /* slate-100 */
  --bg-soft: #F8FAFC;      /* slate-50 */
  --night: #0A0F1E;

  --blue: #2563EB;
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-700: #1D4ED8;
  --indigo: #4F46E5;
  --emerald: #059669;
  --emerald-50: #ECFDF5;
  --emerald-100: #D1FAE5;
  --amber: #F59E0B;
  --red: #DC2626;
  --sky: #38BDF8;
  --cyan-300: #67E8F9;
  --orange: #F7841E;       /* AMBUPAY brand accent (from the logo) */
  --orange-dark: #C25E05;
  --orange-50: #FFF4EA;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-2: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", "Poppins", system-ui, sans-serif;
  color: var(--ink-2);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
button { font: inherit; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 14px; line-height: 1; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s, opacity .3s;
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(.97); }
.btn svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary { background: linear-gradient(90deg, var(--blue), var(--indigo)); color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .55); }
.btn-primary:hover { box-shadow: 0 14px 28px -10px rgba(79, 70, 229, .6); opacity: .94; }
.btn-light { background: #fff; color: var(--ink); border-radius: 4px; min-height: 40px; }
.btn-light:hover { background: var(--soft); }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 4px; min-height: 40px; }
.btn-outline-light:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.btn-outline { background: transparent; color: var(--ink-2); border: 1px solid rgba(15,23,42,.12); font-weight: 600; }
.btn-outline:hover { background: #fff; color: var(--blue); border-color: rgba(15,23,42,.16); box-shadow: 0 2px 6px rgba(15,23,42,.06); }

/* ───────── Header (floating glass pill) ───────── */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 12px 12px 0; }
@media (min-width: 640px) { .site-header { padding: 16px 24px 0; } }
.navbar {
  max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 6px 10px 6px 20px; border-radius: 999px;
  background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 10px 40px -12px rgba(15,23,42,.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  animation: navIn .8s var(--ease) .2s both;
}
@keyframes navIn { from { opacity: 0; transform: translateY(-24px); } }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); padding: 6px 0; transition: transform .3s var(--ease); }
.brand:hover { transform: scale(1.04); }
.brand img { height: 22px; width: auto; }
.brand-text { font-weight: 800; letter-spacing: .16em; font-size: 15px; line-height: 1.1; }
.brand-text small { display: block; font-size: 9.5px; letter-spacing: .08em; color: var(--muted); font-weight: 600; text-transform: none; margin-top: 2px; }
.nav-links { display: none; position: relative; align-items: center; gap: 2px; }
.nav-links a { position: relative; z-index: 1; padding: 8px 15px; border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: #4B5563; transition: color .25s; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue-700); }
.nav-pill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 999px; background: var(--blue-50); opacity: 0; z-index: 0;
  transition: transform .5s cubic-bezier(.34, 1.3, .64, 1), width .5s cubic-bezier(.34, 1.3, .64, 1), opacity .25s; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn-primary { display: none; }
.menu-btn { width: 44px; height: 44px; border: 0; background: none; border-radius: 999px; color: #374151; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn:hover { color: var(--blue); }
.menu-btn svg { width: 26px; height: 26px; }
.menu-btn .x { display: none; }
.menu-open .menu-btn .x { display: block; }
.menu-open .menu-btn .bars { display: none; }
.mobile-menu {
  max-width: var(--maxw); margin: 8px auto 0; padding: 12px; border-radius: 24px;
  background: rgba(255,255,255,.88); border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 10px 40px -12px rgba(15,23,42,.18);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; transform: translateY(-12px); pointer-events: none; visibility: hidden;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.mobile-menu a { display: block; padding: 12px 16px; border-radius: 16px; font-weight: 500; color: #374151; }
.mobile-menu a:hover, .mobile-menu a.active { background: var(--blue-50); color: var(--blue); }
.mobile-menu .btn { width: 100%; margin-top: 10px; }
@media (min-width: 640px) { .nav-actions .btn-primary { display: inline-flex; } .mobile-menu .btn { display: none; } }
@media (min-width: 1180px) { .nav-links { display: flex; } .menu-btn, .mobile-menu { display: none; } }

/* ───────── Hero (dark slider, parallax) ───────── */
.hero { position: relative; height: 82vh; min-height: 640px; max-height: 920px; overflow: hidden; background: var(--night); color: #fff; touch-action: pan-y; }
.hero-bg { position: absolute; inset: 0; will-change: transform, opacity; }
.hero-track { position: absolute; inset: 0; display: flex; transition: transform 1s var(--ease-2); will-change: transform; }
.hero-track.snap { transition: none; }
.slide { position: relative; min-width: 100%; height: 100%; overflow: hidden; }
.slide-art { position: absolute; inset: -2%; transition: transform 10s ease-out; }
.slide.is-active .slide-art { transform: scale(1.04); }
.slide-art::before { /* fine grid */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
}
.art-1 { background: radial-gradient(circle at 78% 28%, rgba(79,70,229,.75), transparent 45%), radial-gradient(circle at 60% 85%, rgba(37,99,235,.55), transparent 50%), linear-gradient(135deg, #0B1230, #111A44); }
.art-2 { background: radial-gradient(circle at 75% 30%, rgba(5,150,105,.7), transparent 45%), radial-gradient(circle at 55% 90%, rgba(56,189,248,.45), transparent 50%), linear-gradient(135deg, #04201C, #0B2A3A); }
.art-3 { background: radial-gradient(circle at 78% 30%, rgba(247,132,30,.7), transparent 45%), radial-gradient(circle at 58% 88%, rgba(220,38,38,.4), transparent 50%), linear-gradient(135deg, #241005, #2B1511); }
.slide-shade { position: absolute; inset: 0; background:
  linear-gradient(to right, rgba(10,15,30,.82) 0%, rgba(10,15,30,.45) 55%, rgba(10,15,30,.12) 100%),
  linear-gradient(to top, rgba(10,15,30,.75) 0%, transparent 50%); }

.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; padding: 0 24px; will-change: transform; }
@media (min-width: 640px) { .hero-content { padding: 0 48px; } }
@media (min-width: 1024px) { .hero-content { padding: 0 80px; } }
.hero-spacer { height: 88px; flex-shrink: 0; }
.hero-main { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 48px; max-width: 1360px; width: 100%; margin: 0 auto; }
.hero-copy { max-width: 640px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 3px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.hero-badge svg { width: 12px; height: 12px; stroke: rgba(255,255,255,.55); }
.hero h1 { margin-top: 18px; font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; text-shadow: 0 1px 16px rgba(0,0,0,.4); min-height: 2.2em; }
.hero h1 .hl { color: var(--orange); }
.hero h1.swap { animation: headIn .55s var(--ease-2) both; }
@keyframes headIn { from { opacity: 0; transform: translateY(16px); } }
.hero-lead { margin-top: 16px; font-size: clamp(15px, 1.4vw, 17px); color: rgba(255,255,255,.72); max-width: 520px; }
.hero-rule { margin-top: 20px; width: 48px; height: 1px; background: rgba(255,255,255,.2); }
.hero-ctas { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-by { margin-top: 26px; font-size: 12.5px; color: rgba(255,255,255,.5); }
.hero-by strong { color: rgba(255,255,255,.85); font-weight: 600; }

/* Floating QR card */
.qr-card { display: none; flex-shrink: 0; width: 300px; padding: 24px; border-radius: 28px; background: rgba(255,255,255,.96); color: var(--ink);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1);
  animation: cardIn 1.1s var(--ease) .5s both, bob 6s ease-in-out 1.6s infinite; }
@media (min-width: 960px) { .qr-card { display: block; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) rotate(4deg) scale(.94); } }
@keyframes bob { 50% { transform: translateY(-12px); } }
.qr-card .top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; letter-spacing: .12em; font-size: 13px; }
.qr-card .tag { font-size: 11px; letter-spacing: 0; font-weight: 700; background: var(--emerald-50); color: var(--emerald); padding: 5px 10px; border-radius: 999px; }
.qr-wrap { position: relative; margin: 18px 0 14px; border-radius: 14px; overflow: hidden; }
.qr-wrap svg { width: 100%; height: auto; }
.qr-wrap::after { /* scanning line */
  content: ""; position: absolute; left: 0; right: 0; height: 26%; top: -26%;
  background: linear-gradient(to bottom, transparent, rgba(37,99,235,.22) 70%, rgba(37,99,235,.7) 100%);
  border-bottom: 2px solid var(--blue); animation: scan 2.8s var(--ease-2) infinite;
}
@keyframes scan { 0% { top: -26%; } 60%, 100% { top: 100%; } }
.qr-card p { font-size: 12.5px; color: var(--muted); text-align: center; }
.qr-toast { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--emerald-50); color: #065F46; font-size: 12.5px; font-weight: 700; animation: toast 5.6s var(--ease) 1.8s infinite both; }
.qr-toast i { width: 26px; height: 26px; border-radius: 8px; background: var(--emerald); display: grid; place-items: center; flex-shrink: 0; }
.qr-toast svg { width: 14px; height: 14px; stroke: #fff; }
@keyframes toast { 0%, 8% { opacity: 0; transform: translateY(8px); } 16%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-4px); } }

.hero-dots { height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 12px; }
.dots { display: flex; align-items: center; gap: 8px; }
.dots button { width: 12px; height: 2px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.3); cursor: pointer; transition: width .5s, background .5s; position: relative; }
.dots button::before { content: ""; position: absolute; inset: -10px -2px; } /* bigger hit area */
.dots button:hover { background: rgba(255,255,255,.55); }
.dots button[aria-current="true"] { width: 32px; background: #fff; }
.arrow-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .3s, background .3s, color .3s, border-color .3s; }
.arrow-btn:hover { transform: scale(1.05); background: #fff; color: var(--ink); border-color: #fff; }
.arrow-btn:active { transform: scale(.95); }
.arrow-btn svg { width: 16px; height: 16px; transition: transform .3s; }
.arrow-btn.prev:hover svg { transform: translateX(-2px); }
.arrow-btn.next:hover svg { transform: translateX(2px); }
.hero-arrows { display: none; position: absolute; z-index: 3; bottom: 32px; right: 48px; gap: 12px; opacity: .8; transition: opacity .3s; }
.hero:hover .hero-arrows { opacity: 1; }
.hero-arrows .arrow-btn { width: 48px; height: 48px; }
.hero-arrows svg { width: 20px; height: 20px; }
@media (min-width: 640px) { .hero-arrows { display: flex; } .hero-dots .arrow-btn { display: none; } }
@media (min-width: 1024px) { .hero-arrows { right: 80px; } }

/* ───────── Stats strip (overlapping) ───────── */
.stats { position: relative; z-index: 4; margin-top: -56px; }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px 28px; box-shadow: 0 20px 50px -24px rgba(15,23,42,.25); transition: transform .35s var(--ease), box-shadow .35s; }
.stat:hover { transform: translateY(-6px); box-shadow: 0 28px 60px -24px rgba(15,23,42,.3); }
.stat b { display: block; font-size: clamp(32px, 4vw, 44px); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat b.o { color: var(--orange); }
.stat b.g { background: linear-gradient(90deg, var(--blue), var(--indigo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--text); }

/* ───────── Sections ───────── */
.section { padding: 80px 0; overflow: hidden; }
@media (min-width: 640px) { .section { padding: 112px 0; } }
.section.alt { background: var(--bg-soft); }
.heading { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.heading.left { margin-left: 0; text-align: left; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--emerald); }
.eyebrow.red { color: var(--red); }
.eyebrow.blue { color: var(--blue); }
.eyebrow.orange { color: var(--orange-dark); }
.eyebrow.cyan { color: var(--cyan-300); }
.title { margin-top: 12px; font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.035em; color: var(--ink-2); }
.desc { margin: 20px auto 0; max-width: 680px; font-size: 16px; line-height: 1.75; color: var(--text); }
.heading.left .desc { margin-left: 0; }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .g-2, .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mt-56 { margin-top: 56px; }

/* Cards */
.card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: 0 10px 30px -14px rgba(15,23,42,.18);
  transition: box-shadow .4s var(--ease), background .4s; }
.card:hover { box-shadow: 0 24px 50px -20px rgba(15,23,42,.28); }
.card.soft { background: var(--bg-soft); box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.card.soft:hover { background: #fff; box-shadow: 0 24px 50px -20px rgba(15,23,42,.25); }
.card h3 { font-size: 20px; font-weight: 800; color: var(--ink-2); margin-bottom: 10px; letter-spacing: -.02em; }
.card p, .card li { font-size: 14.5px; line-height: 1.7; color: var(--text); }
.card ul { margin: 12px 0 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 20px; }
.card li + li { margin-top: 6px; }
.card li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: currentColor; opacity: .35; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.card .num { font-size: 48px; font-weight: 800; line-height: 1; color: var(--soft); transition: color .4s; }
.card:hover .num { color: var(--blue-100); }
.label { font-size: 11.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }

.icon { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; background: var(--blue); box-shadow: 0 10px 20px -8px rgba(37,99,235,.55); }
.icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.emerald { background: var(--emerald); box-shadow: 0 10px 20px -8px rgba(5,150,105,.55); }
.icon.amber { background: var(--amber); box-shadow: 0 10px 20px -8px rgba(245,158,11,.55); }
.icon.slate { background: var(--muted); box-shadow: 0 10px 20px -8px rgba(100,116,139,.55); }
.icon.red { background: var(--red); box-shadow: 0 10px 20px -8px rgba(220,38,38,.5); }
.icon.orange { background: var(--orange); box-shadow: 0 10px 20px -8px rgba(247,132,30,.55); }
.icon.indigo { background: var(--indigo); box-shadow: 0 10px 20px -8px rgba(79,70,229,.55); }

/* Dark panels */
.panel-dark { position: relative; overflow: hidden; border-radius: 28px; padding: 36px; color: #fff;
  background: radial-gradient(circle at 85% 0%, rgba(79,70,229,.45), transparent 50%), radial-gradient(circle at 0% 100%, rgba(5,150,105,.3), transparent 50%), var(--ink);
  box-shadow: 0 30px 60px -30px rgba(15,23,42,.6); }
.panel-dark p { color: rgba(255,255,255,.72); }
.panel-dark .label { color: rgba(255,255,255,.5); }

/* About boxes (from left / right) */
.about-box { position: relative; overflow: hidden; border-radius: 28px; padding: 32px; }
@media (min-width: 640px) { .about-box { padding: 44px; } }
.about-box.light { border: 1px solid var(--emerald-100); background: linear-gradient(135deg, var(--soft), #fff 50%, var(--emerald-50)); box-shadow: 0 25px 50px -12px rgba(15,23,42,.18); }
.about-box.light::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #34D399, var(--sky), #818CF8); }
.about-box h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; color: var(--ink-2); margin: 24px 0 18px; }
.about-box p + p { margin-top: 14px; }
.about-box p { font-size: 16px; line-height: 1.75; color: var(--text); }
.big-icon { width: 40px; height: 40px; stroke: var(--emerald); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.objective { font-size: clamp(20px, 2.2vw, 26px) !important; line-height: 1.45 !important; font-weight: 600; color: #fff !important; margin-top: 18px; }
.check-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,.8); }
.check-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; stroke: #34D399; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Big number */
.big-number { display: grid; gap: 28px; align-items: center; }
@media (min-width: 880px) { .big-number { grid-template-columns: auto 1fr; gap: 48px; } }
.big-number b { display: block; font-size: clamp(48px, 8vw, 88px); line-height: 1; font-weight: 800; letter-spacing: -.045em; color: var(--orange); font-variant-numeric: tabular-nums; }
.big-number small { display: block; margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); }
@media (min-width: 880px) { .big-number p { border-left: 1px solid rgba(255,255,255,.12); padding-left: 40px; } }

/* Network tiles */
.tile { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: flex; align-items: center; gap: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.05); transition: box-shadow .4s, border-color .4s; }
.tile:hover { border-color: var(--blue-100); box-shadow: 0 18px 40px -20px rgba(37,99,235,.4); }
.tile b { font-size: 22px; font-weight: 800; color: var(--blue); width: 42px; height: 42px; border-radius: 14px; background: var(--blue-50); display: grid; place-items: center; flex-shrink: 0; }
.tile span { font-weight: 700; font-size: 15px; color: var(--ink-2); }
.tile.you { background: linear-gradient(135deg, var(--blue), var(--indigo)); border-color: transparent; }
.tile.you b { background: rgba(255,255,255,.18); color: #fff; font-size: 14px; }
.tile.you span { color: #fff; }

/* Tables */
.table-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 8px 28px; overflow-x: auto; box-shadow: 0 10px 30px -14px rgba(15,23,42,.18); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 18px 0 12px; border-bottom: 1.5px solid var(--ink-2); }
td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text); }
td strong { color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.cash { font-weight: 800; color: var(--emerald); }

.distance { border-radius: 24px; padding: 28px; background: linear-gradient(135deg, var(--blue-50), #fff 60%, var(--emerald-50)); border: 1px solid var(--blue-100); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.distance p { color: var(--text); }
.distance svg { width: 100%; max-width: 380px; height: auto; }
.route { stroke-dasharray: 4 5; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }

.callout { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.callout p { flex: 1; min-width: 220px; font-size: clamp(18px, 2vw, 21px); font-weight: 600; line-height: 1.45; color: #fff !important; }

/* Benefit grid: 3 on top, 2 below */
.benefits { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } .benefits > :last-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .benefits { grid-template-columns: repeat(6, minmax(0, 1fr)); } .benefits > * { grid-column: span 2; } .benefits > :nth-child(4), .benefits > :nth-child(5) { grid-column: span 3; } }
.benefits .card .icon { margin-bottom: 26px; }

/* Discounts */
.discount-hero b { display: block; font-size: clamp(72px, 10vw, 112px); line-height: .9; font-weight: 800; letter-spacing: -.05em; color: var(--orange); margin: 12px 0 20px; }
.discount-hero p + p { margin-top: 12px; font-size: 14.5px; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; box-shadow: 0 1px 2px rgba(15,23,42,.05); transition: box-shadow .4s, border-color .4s; }
.cat:hover { border-color: #FED7AA; box-shadow: 0 18px 40px -20px rgba(247,132,30,.45); }
.cat span { font-weight: 700; color: var(--ink-2); font-size: 15px; }
.cat span small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--faint); margin-bottom: 2px; }
.cat b { font-size: 22px; font-weight: 800; color: var(--orange-dark); letter-spacing: -.02em; text-align: right; white-space: nowrap; }
.cat b small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.note { margin-top: 28px; display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; color: var(--text); font-size: 15px; }
.note svg { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--emerald); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Why join */
.checks { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.check { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--emerald-100); border-radius: 18px; padding: 18px 20px; font-size: 15.5px; font-weight: 600; color: var(--ink-2); transition: box-shadow .4s, border-color .4s; }
.check:hover { border-color: #6EE7B7; box-shadow: 0 18px 40px -22px rgba(5,150,105,.5); }
.check svg { width: 22px; height: 22px; flex-shrink: 0; stroke: var(--emerald); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quote-line { font-size: clamp(20px, 2.4vw, 28px) !important; font-weight: 700; color: #fff !important; line-height: 1.4; max-width: 860px; }

.onboard-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--emerald-50); color: var(--emerald); border: 1px solid var(--emerald-100); font-weight: 800; font-size: 14px; padding: 10px 18px; border-radius: 999px; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(5,150,105,.55); } 100% { box-shadow: 0 0 0 10px rgba(5,150,105,0); } }
.step.last { background: linear-gradient(135deg, var(--blue), var(--indigo)); border-color: transparent; }
.step.last h3, .step.last p { color: #fff; }
.step.last .num { color: rgba(255,255,255,.22); }
.step.last .icon { background: rgba(255,255,255,.18); box-shadow: none; }

/* CTA / contact */
.cta { position: relative; overflow: hidden; padding: 96px 0; color: #fff;
  background: radial-gradient(circle at 90% 10%, rgba(79,70,229,.5), transparent 45%), radial-gradient(circle at 10% 100%, rgba(5,150,105,.35), transparent 45%), var(--night); }
@media (min-width: 640px) { .cta { padding: 120px 0; } }
.cta-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .cta-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; } }
.cta .title { color: #fff; }
.cta p { color: rgba(255,255,255,.72); line-height: 1.75; margin-top: 20px; }
.contact-card { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 24px; padding: 28px; display: grid; gap: 20px; }
.contact-card div { display: flex; gap: 14px; align-items: center; }
.contact-card .icon { width: 42px; height: 42px; border-radius: 14px; }
.contact-card .icon svg { width: 20px; height: 20px; }
.contact-card small { display: block; color: rgba(255,255,255,.5); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.contact-card span { font-weight: 700; }

/* Footer */
.footer { background: #F9FAFB; border-top: 1px solid var(--line); color: #4B5563; font-size: 14px; }
.footer-grid { display: grid; gap: 40px; padding: 48px 0; text-align: center; justify-items: center; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: left; justify-items: stretch; } .footer-grid > :nth-child(2) { text-align: center; } .footer-grid > :last-child { text-align: right; } }
.footer h4 { display: inline-block; font-size: 15px; font-weight: 800; color: #334155; padding-bottom: 4px; border-bottom: 2px solid var(--blue); margin-bottom: 16px; letter-spacing: 0; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand span { font-size: 22px; font-weight: 800; letter-spacing: .2em; color: var(--ink); }
.footer .tagline { margin-top: 12px; }
.footer-links { display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 20px; text-align: center; font-size: 13.5px; color: var(--faint); }

/* ───────── Scroll-reveal (mirrors the framer-motion variants on ambuone.com) ───────── */
.js [data-reveal] { opacity: 0; transition-property: opacity, transform; transition-duration: .9s; transition-timing-function: var(--ease); will-change: opacity, transform; }
.js [data-reveal="up"] { transform: translateY(32px) scale(.98); }                              /* section headings */
.js [data-reveal="rise"] { transform: translateY(52px) scale(.92); transition-duration: .95s; }  /* benefit cards */
.js [data-reveal="left"] { transform: translateX(-120px) scale(.96); transition-duration: 1.05s; }
.js [data-reveal="right"] { transform: translateX(120px) scale(.96); transition-duration: 1.05s; }
.js [data-reveal="spin"] { transform: perspective(900px) translateY(70px) rotate(-90deg) rotateY(-120deg) scale(.72); transition-duration: 1s; } /* step cards */
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="spin"].in { transform: perspective(900px); }
/* hover lift for revealed cards (whileHover y: -6) */
.lift { transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s, border-color .4s; }
.js [data-reveal].lift.in { transition: opacity .9s var(--ease), transform .4s var(--ease), box-shadow .4s, background .4s, border-color .4s; }
.lift:hover, .js [data-reveal].lift.in:hover { transform: translateY(-6px); }
.js [data-reveal="spin"].lift.in:hover { transform: perspective(900px) translateY(-6px); }

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

/* ───────── Shared bits ───────── */
svg.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mobile-menu .btn { display: flex; }
@media (min-width: 640px) { .mobile-menu .btn { display: none; } }
@media (max-width: 639px) { .hero h1 { min-height: 3.3em; } }
.about-box.panel-dark { padding: 32px; }
@media (min-width: 640px) { .about-box.panel-dark { padding: 44px; } }

/* Status chip (coming-soon header) */
.status { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: var(--emerald-50); border: 1px solid var(--emerald-100); color: #065F46; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); animation: pulse 2s ease-out infinite; }

/* Full-screen hero variant (coming-soon) */
.hero.full { height: 100vh; height: 100svh; max-height: none; min-height: 680px; }

/* Category ticker */
.ticker { position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 10px; padding: 20px 26px; white-space: nowrap; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.ticker-item b { color: var(--orange-dark); font-weight: 800; }
.ticker-item::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line); margin-left: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Fixes: keep slider controls clear of the overlapping stats, align widths with the navbar */
.container { max-width: calc(var(--maxw) + 40px); }
@media (min-width: 640px) { .container { max-width: calc(var(--maxw) + 64px); } }
.hero-content { padding-bottom: 56px; }
.hero-arrows { bottom: 92px; }
th { padding-right: 16px; }
th:last-child { padding-right: 0; }
.contact-card a { font-weight: 700; color: #fff; transition: color .25s; }
.contact-card a:hover { color: var(--cyan-300); }

/* ───────── Tablet fixes ───────── */
/* QR card + corner arrows only when there is room for both next to the copy */
@media (min-width: 960px) { .qr-card { display: none; } }
@media (min-width: 1180px) and (min-height: 700px) { .qr-card { display: block; } }
@media (min-width: 640px) and (max-width: 1179px) {
  .hero-arrows { display: none; }
  .hero-dots .arrow-btn { display: flex; }
}
/* Footer: keep the container's side padding */
.footer-grid { padding: 48px 20px; }
@media (min-width: 640px) { .footer-grid { padding: 48px 32px; } }
/* Two-column blocks need ~900px; four-column grids step through three */
@media (min-width: 720px) and (max-width: 899px) { .g-2 { grid-template-columns: 1fr; } }
@media (min-width: 1024px) and (max-width: 1179px) { .g-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Stats: three across only when they fit comfortably */
@media (min-width: 720px) and (max-width: 899px) { .stats-grid { gap: 14px; } .stat { padding: 22px 22px; } .stat span { font-size: 13px; } }
/* Hero on tablets: less empty space */
@media (min-width: 640px) and (max-width: 1179px) { .hero { height: auto; min-height: 0; } .hero-main { padding: 72px 0 56px; } }
.hero.full { min-height: 600px; }
@media (min-width: 640px) and (max-width: 1179px) { .hero.full { height: auto; min-height: 0; } .hero.full .hero-main { padding: 120px 0 96px; } }
