/* ================================================================
   PointGo — landing page styles
   Sections: tokens · base · utilities · header · hero · stats ·
   shops · business · live · how · vehicles · ireland · drivers ·
   final cta · footer · responsive · reduced-motion
   ================================================================ */

/* ---------- 0 · Design tokens ---------- */
:root {
  --bg: #FBF8F2;
  --panel: #FFFFFF;
  --section: #F2ECDF;
  --ink: #16224A;          /* navy text */
  --muted: #5C6479;
  --line: rgba(22, 34, 74, .10);
  --brand: #2757E8;        /* blue */
  --brand-2: #1B3FB0;
  --brand-3: #16266B;
  --tint: #EAF0FE;
  --tint-2: #D6E2FD;
  --cta: #FB5C43;          /* coral buttons */
  --cta-2: #E23E28;
  --amber: #F5A524;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(22, 34, 74, .06);
  --shadow: 0 12px 30px rgba(22, 34, 74, .10);
  --shadow-lg: 0 26px 60px rgba(22, 34, 74, .16);

  --maxw: 1160px;
  --header-h: 68px;

  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

/* ---------- 1 · Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; margin: 0; letter-spacing: -.02em; }

/* accessible focus + skip link */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { left: 12px; }

/* ---------- 2 · Utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.section { padding: 84px 0; }
.section-tint { background: var(--section); }

.eyebrow {
  font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 10px;
}
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; max-width: 18ch; letter-spacing: -.025em; }

/* buttons */
.btn {
  --pad: 12px 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad); border-radius: 12px; font-weight: 700; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { --pad: 15px 24px; font-size: 1.02rem; border-radius: 14px; }
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 10px 22px rgba(251, 92, 67, .28); }
.btn-cta:hover { background: var(--cta-2); }
.btn-navy { background: var(--ink); color: #fff; }
.btn-navy:hover { background: #0f1836; }
.btn-white { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: rgba(22, 34, 74, .06); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-outline-white:hover { background: rgba(255, 255, 255, .12); }

/* pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-sm);
}

/* ---------- 3 · Header (dark, premium) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 20, 46, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 10px 34px rgba(8, 13, 34, .45); }
.site-header .logo { color: #fff; }
.site-header .logo-tag { color: rgba(255, 255, 255, .55); }
.site-header .main-nav a { color: rgba(255, 255, 255, .72); }
.site-header .main-nav a:hover { color: #fff; }
.site-header .btn-ghost { color: #fff; }
.site-header .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.site-header .btn-navy { background: #fff; color: var(--ink); }
.site-header .btn-navy:hover { background: var(--tint); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-word { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: -.02em; }
.logo-tag {
  font-family: var(--font-body); font-size: .6rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px;
}

.main-nav { display: flex; gap: 26px; margin-left: 14px; }
.main-nav a { color: var(--muted); font-weight: 600; }
.main-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* hamburger */
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .25);
  background: transparent; border-radius: 12px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px auto; border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { border-top: 1px solid rgba(255, 255, 255, .08); background: #0D142E; padding: 12px 22px 20px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a { color: #fff; font-weight: 600; padding: 12px 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mobile-menu a.btn { margin-top: 10px; border-bottom: none; justify-content: center; }

/* ---------- 4 · Hero (deep navy, commanding) ---------- */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 80% -12%, rgba(39, 87, 232, .38), transparent 60%),
    radial-gradient(720px 440px at -8% 112%, rgba(27, 63, 176, .32), transparent 55%),
    linear-gradient(180deg, #0D142E 0%, var(--ink) 100%);
}
/* faint blueprint grid over the navy */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000, transparent 80%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000, transparent 80%);
}
.hero .container { position: relative; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 44px; align-items: center; }
.hero-copy { flex: 1 1 420px; min-width: 300px; }
.hero-art { flex: 1 1 480px; min-width: 300px; }

.badge {
  display: inline-block; background: rgba(255, 255, 255, .08); color: #BFD2FF;
  border: 1px solid rgba(255, 255, 255, .16); font-weight: 700; font-size: .84rem;
  padding: 8px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero-kicker {
  color: #8FADFF; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem); letter-spacing: -.01em; margin: 0 0 8px;
}
.hero-title { font-size: clamp(2.8rem, 6.4vw, 4.8rem); font-weight: 800; color: #fff; }
.hero-title .accent {
  background: linear-gradient(92deg, #8FADFF 0%, #4E7BFF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: rgba(255, 255, 255, .72); font-size: 1.14rem; max-width: 46ch; margin: 18px 0 28px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-seals { display: flex; flex-wrap: wrap; gap: 18px 24px; list-style: none; padding: 0; margin: 28px 0 0; }
.hero-seals li { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .75); font-weight: 600; font-size: .95rem; }
.hero-seals .ic { width: 20px; height: 20px; fill: none; stroke: #7DA2FF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- hero illustration ---- */
.art-card {
  position: relative;
  aspect-ratio: 600 / 470;
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 42px 90px rgba(5, 10, 30, .55), 0 0 0 1px rgba(255, 255, 255, .04);
  padding: 14px;
}
.scene { width: 100%; height: 100%; display: block; }
.scene .sign { font-family: var(--font-body); font-weight: 800; font-size: 11px; fill: #fff; letter-spacing: .04em; }

/* pulsing "delivered" dot */
.pulse-dot { transform-box: fill-box; transform-origin: center; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse {
  0% { opacity: 1; transform: scale(.6); }
  70% { opacity: 0; transform: scale(2.4); }
  100% { opacity: 0; transform: scale(2.4); }
}

/* vehicles moving along the routes via CSS Motion Path */
.veh { offset-rotate: 0deg; offset-distance: 0%; }
.veh--1 { offset-path: path("M70 300 C 180 240 320 210 470 130"); animation: run 5.6s linear infinite; }
.veh--2 { offset-path: path("M241 300 C 320 252 430 214 505 138"); animation: run 6.8s linear infinite; animation-delay: -2.2s; }
.veh--3 { offset-path: path("M354 300 C 420 244 470 190 476 128"); animation: run 5s linear infinite; animation-delay: -3.1s; }
@keyframes run { to { offset-distance: 100%; } }

/* floating order card */
.floating-order {
  position: absolute; left: -6px; bottom: 26px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 12px 14px; max-width: 280px;
  animation: float 5s ease-in-out infinite;
}
.fo-badge {
  display: inline-block; background: var(--tint); color: var(--brand-2);
  font-weight: 700; font-size: .72rem; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}
.fo-body { display: flex; align-items: center; gap: 10px; }
.fo-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--tint); display: grid; place-items: center; flex: none; }
.fo-body strong { font-size: .92rem; }
.fo-body p { margin: 2px 0 0; font-size: .78rem; color: var(--muted); }
.fo-body b { color: var(--ink); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- 5 · Stats (flows seamlessly out of the navy hero) ---------- */
.stats { background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .08); }
/* The brand slogan, front and centre on the dark band */
.slogan {
  text-align: center; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.8rem); letter-spacing: -.025em; color: #fff;
  padding: 48px 22px 0; margin: 0;
}
.slogan .accent {
  background: linear-gradient(92deg, #8FADFF 0%, #4E7BFF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 22px; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.5rem); color: #7DA2FF; }
.stat-label { color: rgba(255, 255, 255, .72); font-size: .92rem; }

/* ---------- 6 · Shops strip ---------- */
.shops-strip { padding: 34px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.strip-label { text-align: center; color: var(--muted); font-weight: 600; font-size: .9rem; margin: 0 0 16px; }
.shops-strip .pill-row { justify-content: center; }

/* ---------- 7 · Business feature grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 34px; }
.feature-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--tint-2); }
.feature-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tint); margin-bottom: 14px; }
.feature-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature-card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- 8 · Live on PointGo ---------- */
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 34px; }
.live-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.live-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.live-head h3 { font-size: 1.2rem; }
.live-badge {
  display: inline-flex; align-items: center; gap: 7px; background: var(--tint); color: var(--brand-2);
  font-weight: 700; font-size: .8rem; padding: 5px 12px; border-radius: 999px;
}
.live-badge-2 { background: #FDECE8; color: var(--cta-2); }
.live-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.live-list, .live-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.live-list li, .live-feed li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; }
.live-list li:hover, .live-feed li:hover { background: var(--tint); }
.ava {
  flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--a, var(--brand));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .82rem;
}
.live-list li div, .live-feed li div { flex: 1; min-width: 0; }
.live-list b, .live-feed b { display: block; font-size: .96rem; }
.live-list span, .live-feed span { color: var(--muted); font-size: .84rem; }
.live-list .count { flex: none; color: var(--brand-2); font-weight: 700; font-size: .82rem; }
.live-feed time { flex: none; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }

/* ---------- 9 · How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 34px; }
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 26px; box-shadow: var(--shadow-sm); }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- 10 · Vehicles ---------- */
.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 34px; }
.vehicle-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .18s ease; }
.vehicle-card:hover { transform: translateY(-4px); }
.vehicle-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--tint); margin: 0 auto 14px; }
.vehicle-ic svg { width: 30px; height: 30px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vehicle-card h3 { font-size: 1.15rem; }
.vehicle-card p { color: var(--muted); margin: 6px 0 0; font-size: .92rem; }

/* ---------- 11 · Ireland section (centered, no photo) ---------- */
.ireland-solo { max-width: 760px; text-align: center; }
.ireland-solo .lead { color: var(--muted); font-size: 1.08rem; margin: 16px auto 22px; max-width: 52ch; }
.ireland-solo .pill-row { justify-content: center; }

/* ---------- 12 · Drivers banner ---------- */
.drivers-banner { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-3) 100%); color: #fff; padding: 66px 0; }
.drivers-inner { display: flex; flex-wrap: wrap; gap: 34px; align-items: center; justify-content: space-between; }
.drivers-copy { flex: 1 1 340px; }
.drivers-copy h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.drivers-copy p { color: rgba(255, 255, 255, .85); font-size: 1.12rem; margin: 10px 0 22px; }
.drivers-stats { list-style: none; display: grid; grid-template-columns: repeat(2, auto); gap: 16px 40px; margin: 0; padding: 0; }
.drivers-stats b { display: block; font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; }
.drivers-stats span { color: rgba(255, 255, 255, .8); font-size: .92rem; }

/* ---------- 13 · Final CTA ---------- */
.final-cta {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: var(--ink); border-radius: var(--radius-lg); padding: 64px 28px;
}
/* subtle grid on the navy card */
.final-cta::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000, transparent 75%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000, transparent 75%);
}
.final-cta h2 { position: relative; color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.final-cta p { position: relative; color: rgba(255, 255, 255, .8); margin: 12px 0 24px; }
.final-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- 14 · Footer (dark, matches header/hero) ---------- */
.site-footer { background: #0D142E; padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.site-footer .logo { color: #fff; }
.site-footer .logo-tag { color: rgba(255, 255, 255, .5); }
.footer-note { color: rgba(255, 255, 255, .45); font-size: .9rem; margin: 12px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: rgba(255, 255, 255, .65); font-weight: 600; }
.footer-links a:hover { color: #fff; }

/* ---------- 15 · Responsive ---------- */
@media (max-width: 800px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 60px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .hero { padding: 24px 0 40px; }
  .floating-order { left: 8px; bottom: 12px; }
}
@media (max-width: 460px) {
  .drivers-stats { grid-template-columns: 1fr 1fr; }
  .btn-lg { width: 100%; }
  .hero-cta .btn, .final-actions .btn { width: 100%; }
}

/* ---------- 16 · Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .veh { offset-distance: 40%; }
}

/* Social icons in the footer */
.footer-social { display: flex; gap: 12px; margin: 10px 0 6px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  color: #8FADFF; border: 1px solid rgba(143, 173, 255, .25);
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.footer-social a:hover { color: #fff; border-color: #8FADFF; transform: translateY(-1px); }

/* App Store badge (drivers section) */
.drivers-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.appstore-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.35);
  border-radius: 12px; padding: 9px 18px; line-height: 1.05;
  transition: transform .15s ease, background .15s ease;
}
.appstore-badge:hover { transform: translateY(-1px); background: #111; }
.appstore-badge small { display: block; font-size: .62rem; opacity: .8; }
.appstore-badge b { font-size: 1.05rem; font-family: var(--font-head); letter-spacing: -.01em; }
