/* ════════════════════════════════════════════════
   carparks.je — landing
   Single-page split: copy left, phones right
   ════════════════════════════════════════════════ */

:root {
  --bg:        #fafafa;
  --ink:       #141418;
  --ink-muted: rgba(20, 20, 24, 0.62);
  --ink-soft:  rgba(20, 20, 24, 0.26);
  --border:    rgba(20, 20, 24, 0.08);


  --radius-pill: 999px;

  --font-sans:  'Overpass', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --brand:      #0075FF;

  --max:    1280px;
  --gutter: clamp(20px, 4vw, 40px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ──────── reset ──────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
main { flex: 1 1 auto; display: flex; flex-direction: column; }

/* ════════════════ HEADER ════════════════ */
/* Floats over the full-bleed hero — no background, no border. */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
}
.site-header .brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.site-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--ink); }

/* ════════════════ HERO ════════════════ */
/* Full-bleed: owns the viewport, St Helier's road network faintly behind. */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(84px, 12vh, 120px) var(--gutter) clamp(44px, 6vh, 72px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.16;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 97%);
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 97%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}

/* ── copy column ── */
.hero-copy { max-width: 600px; }

.hero-title {
  font-size: clamp(2.3rem, 4.3vw, 3.7rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  color: var(--brand);
}

.hero-sub {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 42ch;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

/* Small spec line under the badge: items separated by faint 3px dots. */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.hero-meta span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* ── CTA button ── */
/* Official Apple "Download on the App Store" badge. */
.appstore { display: inline-flex; transition: opacity 0.18s var(--ease); }
.appstore img { height: clamp(48px, 5.2vw, 56px); width: auto; display: block; }
.appstore:hover { opacity: 0.82; }

/* ── device row ── */
.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 2.4vw, 34px);
  min-width: 0;
}
/* Two upright device shots, scaled to own the full-bleed hero. */
.phone {
  height: clamp(400px, 30vw, 600px);
  max-height: 64vh;
  width: auto;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 22px 40px rgba(18, 30, 55, 0.20));
}

/* Shared section heading */
.sec-title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-align: center;
  margin: 0 0 clamp(24px, 3vw, 40px);
}

/* ════════════════ HOW IT WORKS ════════════════ */
.how {
  padding: clamp(48px, 6vw, 88px) var(--gutter);
  border-top: 1px solid var(--border);
}
.how-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
}
.how-num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin: 0 0 10px;
}
.how-step h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 8px;
}
.how-step p:last-child {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
  max-width: 36ch;
}

@media (max-width: 720px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
  }
  .how-step p:last-child { margin-inline: auto; }
}

/* ════════════════ FLOWS (mini feature showcase) ════════════════ */
.flows {
  padding: clamp(56px, 7vw, 100px) var(--gutter);
  border-top: 1px solid var(--border);
}
.flows-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.2vw, 28px);
}
.flow { margin: 0; }
/* Placeholder stage for the looping in-app flow recordings.
   Aspect matches the recordings (1048×2160) so live loops fill exactly. */
.flow-media {
  aspect-ratio: 131 / 270;
  border-radius: clamp(18px, 1.8vw, 26px);
  border: 1.5px dashed rgba(0, 117, 255, 0.30);
  background: linear-gradient(180deg, rgba(0, 117, 255, 0.055), rgba(0, 117, 255, 0.015));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(0, 117, 255, 0.45);
  font-size: 13px;
  font-weight: 600;
}
/* Live loops are HEVC/VP9 with alpha: the device floats straight on the
   page, no card chrome, no controls, shadow baked into the recording. */
.flow-media.has-video {
  border: 0;
  background: transparent;
}
.flow-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.flow figcaption { padding: 14px 4px 0; }
.flow h3 {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 5px;
}
.flow p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
}

/* ════════════════ LIVE ACCURACY PROOF ════════════════ */
/* Deliberately left-set and split: the centred, punchy shape belongs to
   the closing CTA alone. */
.proof {
  padding: clamp(48px, 6vw, 88px) var(--gutter);
  border-top: 1px solid var(--border);
}
/* Shimmer placeholders while the live numbers fetch (~1s). Sized to the
   final content so the swap doesn't shift the page. */
.sk {
  border-radius: 10px;
  margin: 0 auto;
  background: linear-gradient(90deg,
    rgba(20, 20, 24, 0.05) 25%, rgba(20, 20, 24, 0.10) 37%, rgba(20, 20, 24, 0.05) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.sk-hero  { width: min(400px, 72%); height: clamp(3.4rem, 8vw, 5.6rem); margin-bottom: 14px; }
.sk-label { width: min(430px, 82%); height: clamp(1rem, 1.5vw, 1.2rem); margin-bottom: 22px; }
.sk-sub   { width: min(470px, 88%); height: 3.2rem; }

.proof-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.proof-hero {
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--brand);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.proof-label {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 10px 0 18px;
}
.proof-sub {
  font-size: 15.5px;
  color: var(--ink-muted);
  margin: 0 0 6px;
}
.proof-sub b { font-weight: 800; color: var(--ink); }
.proof-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 18px 0 0;
}

/* ════════════════ CLOSING CTA ════════════════ */
.cta {
  padding: clamp(56px, 8vw, 110px) var(--gutter);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, #eef4ff 100%);
}
.cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cta-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 10px;
}
.cta-sub {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--ink-muted);
  margin: 0 0 28px;
}

/* ════════════════ PROSE (long-form pages — privacy, terms…) ════════════════ */
.prose {
  flex: 1 1 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter);
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.prose-header {
  margin-bottom: clamp(32px, 5vw, 56px);
}
.prose-brand {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  margin-bottom: 24px;
  transition: color 0.2s var(--ease);
}
.prose-brand:hover { color: var(--ink); }
.prose-title {
  font-weight: 800;
  font-size: clamp(38px, 6.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 12px;
}
.prose-meta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.prose-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
}
.prose-body .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 28px;
}
.prose-body p { margin: 0 0 18px; }
.prose-body h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 48px 0 16px;
}
.prose-body h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 32px 0 10px;
}
.prose-body ul {
  margin: 0 0 18px;
  padding-left: 22px;
}
.prose-body li {
  margin: 0 0 8px;
}
.prose-body a {
  color: var(--brand);
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  transition: border-color 0.2s var(--ease);
}
.prose-body a:hover {
  border-bottom-color: var(--brand);
}
.prose-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(20, 20, 24, 0.05);
  color: var(--ink);
}
.prose-body strong { font-weight: 700; }

@media (max-width: 600px) {
  .prose-body { font-size: 16px; }
  .prose-body .lede { font-size: 17px; }
  .prose-body h2 { font-size: 22px; margin-top: 40px; }
}

/* ════════════════ 404 ════════════════ */
.nf {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
}
.nf-code {
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin: 0;
}
.nf-sub {
  font-size: 16px;
  color: var(--ink-muted);
  margin: 0;
}
.nf-home {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
.nf-home:hover { text-decoration: underline; }

/* ════════════════ FOOTER ════════════════ */
.site-footer {
  padding: 28px var(--gutter);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-line,
.footer-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.footer-nav {
  display: inline-flex;
  gap: 20px;
}
.footer-nav a { transition: color 0.2s var(--ease); }
.footer-nav a:hover { color: var(--ink); }

/* ════════════════ RESPONSIVE ════════════════ */
@media (max-width: 900px) {
  .hero { padding: 92px var(--gutter) 44px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
  }
  .hero-copy { margin: 0 auto; max-width: 620px; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-meta { justify-content: center; }
  /* Both device shots side by side, sized to the screen. */
  .hero-media { gap: 4%; }
  .phone { height: auto; max-height: none; width: 47%; }
}

@media (max-width: 1024px) {
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .flow-grid { gap: 14px; }
  .flow h3 { font-size: 15.5px; }
  .flow p { font-size: 13.5px; }
}

@media (max-width: 520px) {
  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
