/* ==========================================================================
   Revvyx — revvyx.co.uk landing page
   Brand: UK number-plate (Charles Wright) wordmark, deep navy, amber + plate-yellow.
   Mirrors the iOS app: navy icon background, #FFD100 plate, amber accent #F7C700.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: 'CharlesWright';
  src: url('assets/CharlesWright-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Design tokens -------------------------------------------------------- */
:root {
  --navy-900: #060d20;
  --navy-800: #0a1430;   /* page background (matches app icon) */
  --navy-700: #0d1a3f;
  --navy-600: #11224f;   /* cards */
  --navy-500: #18306b;   /* card hover / borders */

  --plate-yellow: #ffd100;
  --amber: #f7c700;       /* app accent (dark variant) */
  --amber-deep: #ffb800;
  --gb-blue: #143a93;
  --ink: #0a0a0a;

  --text: #eef2ff;
  --muted: #a3afd6;
  --muted-dim: #6c79a6;
  --success: #2ed47a;

  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --shadow-amber: 0 16px 40px -12px rgba(247, 199, 0, 0.45);

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    'Apple Color Emoji', sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--navy-800);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

/* Decorative navy backdrop with amber + blue glows */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 75% -5%, rgba(247, 199, 0, 0.12), transparent 60%),
    radial-gradient(1000px 700px at 5% 10%, rgba(30, 70, 160, 0.28), transparent 55%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
}

/* --- Layout helpers ------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--amber); border-radius: 2px; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
h2.title { font-size: clamp(28px, 4.4vw, 44px); margin: 16px 0 14px; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); }

/* --- UK number plate component ------------------------------------------- */
.plate {
  display: inline-flex;
  align-items: stretch;
  background: linear-gradient(180deg, #ffe357 0%, var(--plate-yellow) 45%, #f3c500 100%);
  border: 0.09em solid #0b0b0b;
  border-radius: 0.3em;
  box-shadow: inset 0 0.04em 0 rgba(255, 255, 255, 0.65), 0 0.18em 0.5em rgba(0, 0, 0, 0.45);
  color: var(--ink);
  overflow: hidden;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}
.plate .gb {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.16em;
  padding: 0 0.32em;
  background: linear-gradient(180deg, #18429f, #0d2a6e);
  border-right: 0.09em solid #0b0b0b;
}
.plate .gb svg { width: 1.45em; height: 0.72em; border-radius: 1px; }
.plate .gb b { font: 700 0.42em/1 var(--font); letter-spacing: 0.08em; color: #fff; }
.plate .reg {
  display: flex; align-items: center;
  font-family: 'CharlesWright', var(--font);
  font-weight: 700;
  padding: 0.3em 0.46em 0.18em;   /* extra top pad offsets CharlesWright's tall caps box */
  letter-spacing: 0.07em;
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-amber { background: linear-gradient(180deg, var(--amber), var(--amber-deep)); color: var(--ink); box-shadow: var(--shadow-amber); }
.btn-amber:hover { transform: translateY(-2px); box-shadow: 0 20px 46px -12px rgba(247, 199, 0, 0.6); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: var(--amber); color: #fff; }

/* App Store badge (Apple-style) */
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 13px; padding: 9px 18px;
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.store-badge:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.5); }
.store-badge svg { width: 26px; height: 26px; fill: #fff; }
.store-badge .bt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge .bt small { font-size: 10px; letter-spacing: 0.02em; opacity: 0.9; }
.store-badge .bt strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.store-badge.soon { background: rgba(255, 255, 255, 0.04); color: var(--muted); cursor: default; }
.store-badge.soon:hover { transform: none; border-color: var(--line-strong); }
.store-badge.soon .bt strong { color: var(--text); }

/* --- Nav ------------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 20, 48, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-color: var(--line); background: rgba(8, 16, 38, 0.86); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo .plate { font-size: 19px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 600; transition: color 0.2s ease; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* --- Hero ----------------------------------------------------------------- */
.hero { padding: 70px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.6vw, 60px); font-weight: 800; margin: 20px 0 0; }
.hero h1 .hl { color: var(--amber); }
.hero p.sub { color: var(--muted); font-size: clamp(16px, 1.8vw, 19px); margin-top: 20px; max-width: 540px; }
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-trust { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; color: var(--muted-dim); font-size: 13.5px; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--success); }

/* Hero device — real App Store screenshot in an iPhone 17 Pro Max frame */
.phone-wrap { display: flex; justify-content: center; }
.hero-device {
  width: 330px; max-width: 80%; height: auto;
  filter: drop-shadow(0 30px 55px rgba(0, 0, 0, 0.55));
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* --- Trust / sources strip ------------------------------------------------ */
.sources { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.sources .wrap { display: flex; align-items: center; justify-content: center; gap: 14px 40px; flex-wrap: wrap; }
.sources .lbl { color: var(--muted-dim); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.sources .src { color: var(--text); font-size: 15px; font-weight: 700; opacity: 0.85; }

/* --- Features grid -------------------------------------------------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.feat:hover { transform: translateY(-4px); border-color: var(--line-strong); background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); }
.feat .ic {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(247, 199, 0, 0.14); border: 1px solid rgba(247, 199, 0, 0.28);
}
.feat .ic svg { width: 23px; height: 23px; color: var(--amber); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 14.5px; }

/* --- Spotlight band ------------------------------------------------------- */
.spotlight { background: linear-gradient(180deg, rgba(20, 40, 100, 0.35), rgba(10, 20, 48, 0)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { display: grid; gap: 14px; margin-top: 26px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; }
.checklist .ck { width: 24px; height: 24px; border-radius: 7px; background: rgba(46, 212, 122, 0.16); border: 1px solid rgba(46, 212, 122, 0.32); display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.checklist .ck svg { width: 13px; height: 13px; color: var(--success); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.checklist b { font-weight: 700; }
.checklist p { color: var(--muted); font-size: 14px; }

/* Receipt-style report card */
.report {
  background: linear-gradient(180deg, var(--navy-600), var(--navy-700));
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-lg);
}
.report .rrow { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.report .rrow:last-child { border-bottom: none; }
.report .rrow span { color: var(--muted); font-size: 14px; }
.report .rrow b { font-size: 14.5px; display: inline-flex; align-items: center; gap: 7px; }
.report .ok { color: var(--success); }
.report .warn { color: var(--amber); }
.report .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* --- How it works --------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 24px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: var(--radius); }
.step .n { font-family: 'CharlesWright', var(--font); font-size: 30px; color: var(--amber); margin-bottom: 14px; display: inline-block; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* --- Pricing -------------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 820px; margin: 0 auto; }
.price {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.price.pro { border-color: rgba(247, 199, 0, 0.45); background: linear-gradient(180deg, rgba(247, 199, 0, 0.08), rgba(247, 199, 0, 0.015)); position: relative; }
.price .tag { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.price.pro .tag { color: var(--amber); }
.price .amt { font-size: 38px; font-weight: 800; margin: 10px 0 2px; letter-spacing: -0.02em; }
.price .amt small { font-size: 16px; font-weight: 600; color: var(--muted); }
.price .note { color: var(--muted-dim); font-size: 13px; margin-bottom: 20px; }
.price ul { display: grid; gap: 11px; }
.price li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--text); }
.price li svg { width: 17px; height: 17px; color: var(--success); fill: none; stroke: currentColor; stroke-width: 2.2; flex-shrink: 0; margin-top: 3px; }
.price .pbadge { position: absolute; top: -12px; right: 24px; background: var(--amber); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: 0.05em; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; }

/* --- FAQ ------------------------------------------------------------------ */
.faq { max-width: 760px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; text-align: left; color: var(--text); font-size: 17px; font-weight: 600; }
.qa .ic { width: 22px; height: 22px; flex-shrink: 0; transition: transform 0.3s ease; color: var(--amber); }
.qa[open] .ic { transform: rotate(45deg); }
.qa .ans { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.qa .ans p { color: var(--muted); font-size: 15px; padding: 0 4px 22px; }
.qa[open] .ans { max-height: 320px; }

/* --- Final CTA ------------------------------------------------------------ */
.cta-final { text-align: center; }
.cta-card {
  background: linear-gradient(135deg, rgba(247, 199, 0, 0.14), rgba(20, 40, 100, 0.3));
  border: 1px solid var(--line-strong); border-radius: 28px;
  padding: 64px 32px; position: relative; overflow: hidden;
}
.cta-card .plate { font-size: clamp(30px, 7vw, 56px); margin-bottom: 28px; }
.cta-card h2 { font-size: clamp(28px, 4.4vw, 44px); margin-bottom: 14px; }
.cta-card p { color: var(--muted); max-width: 480px; margin: 0 auto 30px; font-size: 17px; }
.cta-card .hero-cta { justify-content: center; }

/* --- Footer --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-brand .plate { font-size: 18px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted-dim); font-size: 13.5px; max-width: 320px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-dim); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 10px; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-legal { border-top: 1px solid var(--line); padding-top: 24px; color: var(--muted-dim); font-size: 12.5px; }
.footer-legal p { margin-bottom: 8px; max-width: 760px; }

/* --- Reveal animation ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 44px 0 70px; }
  .hero-device { width: 300px; margin-top: 8px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .spot-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .feat-grid { grid-template-columns: 1fr; }
  .hero-cta { gap: 12px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .cta-card { padding: 44px 22px; }
  .nav .wrap { height: 60px; }
  .nav-logo .plate { font-size: 15px; }
  .nav-cta { flex-shrink: 0; }
  .nav .btn-amber { padding: 11px 15px; font-size: 14px; }
  .hero h1 { font-size: clamp(30px, 8vw, 40px); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-device { animation: none; }
}

/* --- Legal / prose pages (privacy) ---------------------------------------- */
.legal { max-width: 800px; margin: 0 auto; padding: 56px 0 80px; }
.legal .back { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 28px; }
.legal .back:hover { color: var(--amber); }
.legal .back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 8px; }
.legal .updated { color: var(--muted-dim); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin: 38px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal p { color: var(--muted); margin-bottom: 16px; font-size: 15.5px; }
.legal a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--text); }
.legal ul.bullets { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.legal ul.bullets li { color: var(--muted); margin-bottom: 9px; font-size: 15.5px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: rgba(255, 255, 255, 0.04); color: var(--text); font-weight: 700; }
.legal td { color: var(--muted); }
.legal .table-wrap { overflow-x: auto; }
