/* ==========================================================================
   PecuIQ marketing site - design system
   Matches the app brand: near-black base, per-section gradients, Inter,
   tabular numerals, animated mesh. Dependency-free. UK-native, understated.
   ========================================================================== */

/* Self-hosted Inter (variable, latin subset) - no third-party font CDN, GDPR-clean. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
}

:root {
  /* Foundation */
  --bg: #050507;
  --bg-2: #08080C;
  --surface: #0C0C10;
  --surface-2: #121218;
  --surface-3: #17171F;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);

  /* Text (tuned for AA contrast on near-black) */
  --text: #F5F6FA;          /* headings / primary */
  --body: #B8BFD0;          /* body copy */
  --muted: #8A90A6;         /* secondary */
  --dim: #5E6377;           /* captions / labels */

  /* Accent */
  --accent: #4F8AFF;
  --violet: #8B54FF;
  --accent-soft: rgba(79, 138, 255, 0.14);

  /* Section gradients (from the brand guide) */
  --g-home:     linear-gradient(135deg, #4F8AFF 0%, #8B54FF 100%);
  --g-assets:   linear-gradient(135deg, #00D4FF 0%, #3B8EFF 100%);
  --g-goals:    linear-gradient(135deg, #FF5B8D 0%, #FF8C42 100%);
  --g-insights: linear-gradient(135deg, #9B54FF 0%, #C84BFF 100%);
  --g-history:  linear-gradient(135deg, #00C896 0%, #00A8D4 100%);
  --g-pro:      linear-gradient(135deg, #FFB800 0%, #FF6B35 100%);
  --g-liab:     linear-gradient(135deg, #4A8096 0%, #6A9BB4 100%);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 10px 40px rgba(79, 138, 255, 0.30);

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -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; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2);
  padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
main { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
h1, h2, h3 { color: var(--text); letter-spacing: -0.025em; line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.25; }
.section-sub { color: var(--muted); font-size: 18px; margin-top: 18px; line-height: 1.6; }
.grad-text {
  background: var(--g-home); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Mesh background ---------- */
.mesh { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mesh::after {
  /* vignette + grain-free fade to keep numbers/text readable */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% -10%, rgba(5,5,7,0) 30%, rgba(5,5,7,0.55) 78%, var(--bg) 100%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.orb.o1 { width: 620px; height: 620px; left: -120px; top: -160px; background: radial-gradient(circle, #4F8AFF, transparent 68%); animation: drift1 26s ease-in-out infinite; }
.orb.o2 { width: 560px; height: 560px; right: -120px; top: -80px;  background: radial-gradient(circle, #8B54FF, transparent 68%); animation: drift2 31s ease-in-out infinite; }
.orb.o3 { width: 520px; height: 520px; left: 30%; top: 220px;    background: radial-gradient(circle, #00D4FF, transparent 70%); opacity: 0.32; animation: drift3 36s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px, 60px) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-70px, 50px) scale(1.1); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px, -60px) scale(1.15); } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 5, 7, 0.55);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -0.02em; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; flex: none; box-shadow: 0 4px 14px rgba(79,138,255,0.4); }
.brand .iq { background: var(--g-home); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a { padding: 9px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s var(--ease), background .15s var(--ease); }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,0.03); align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--text); stroke-width: 2; fill: none; }
.nav-cta-mobile { display: none; } /* shown only in the mobile dropdown (<=760px) */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 12px; font-size: 15px; font-weight: 700;
  border: 1px solid transparent; transition: transform .08s var(--ease), filter .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--g-home); color: #06060A; box-shadow: var(--shadow-glow); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-secondary { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--line-2); }
.btn-secondary:hover { background: rgba(255,255,255,0.08); }
.btn-lg { padding: 16px 30px; font-size: 16.5px; border-radius: 14px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.035em; }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin-top: 24px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.trust-pills { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; list-style: none; }
.trust-pills li { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--muted); font-weight: 500; }
.trust-pills svg { width: 17px; height: 17px; stroke: var(--accent); stroke-width: 2; fill: none; flex: none; }

/* ---------- Device mockup ---------- */
.device-wrap { display: flex; justify-content: center; position: relative; }
.device-wrap::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,84,255,0.35), transparent 70%);
  filter: blur(60px); z-index: 0;
}
.device {
  position: relative; z-index: 1; width: 300px; border-radius: 53px;
  /* brushed-titanium rail: light catches top-left + bottom-right, dark body */
  background: linear-gradient(145deg, #54545e 0%, #20202733 6%, #16161b 50%, #202027 94%, #5a5a66 100%), #16161b;
  padding: 13px;
  box-shadow:
    inset 0 1.5px 1px rgba(255,255,255,0.28),
    inset 0 -1.5px 1px rgba(0,0,0,0.7),
    inset 1.5px 0 1px rgba(255,255,255,0.10),
    inset -1.5px 0 1px rgba(255,255,255,0.10),
    0 2px 6px rgba(0,0,0,0.5),
    0 36px 80px rgba(0,0,0,0.62),
    0 14px 34px rgba(0,0,0,0.5);
}
/* inner edge ring between rail and glass */
.device::before {
  content: ""; position: absolute; inset: 0; border-radius: 53px; pointer-events: none; z-index: 3;
  box-shadow: inset 0 0 0 1.5px rgba(0,0,0,0.62), inset 0 0 0 2.5px rgba(255,255,255,0.05);
}
/* side buttons: left action + volume up/down, right power (devices are 300px wide) */
.device::after {
  content: ""; position: absolute; left: -2px; top: 96px; width: 3px; height: 22px; border-radius: 3px;
  background: linear-gradient(90deg, #4a4a54, #14141a); pointer-events: none; z-index: 0;
  box-shadow:
    0 -32px 0 #3c3c45,
    0 42px 0 #3c3c45,
    303px 60px 0 #3c3c45;
}
.device-screen { border-radius: 41px; overflow: hidden; background: #000; position: relative; aspect-ratio: 9 / 19.5; }
.device-screen > .app-shot-screen,
.device-photo-screen > .app-shot-screen {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: #050507;
}
.device-screen > .app-shot-screen { border-radius: inherit; }
.device-photo-screen > .app-shot-screen { border-radius: 0; }
.device-screen > picture.app-shot-picture,
.device-photo-screen > picture.app-shot-picture { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; display: block; }
.device-screen > picture.app-shot-picture > .app-shot-screen,
.device-photo-screen > picture.app-shot-picture > .app-shot-screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; background: #050507; border-radius: 0; }
/* Dynamic Island (floats over whatever screen is showing) */
.device-screen::before {
  content: ""; position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 26px; border-radius: 99px; z-index: 6; pointer-events: none;
  background: #000 radial-gradient(circle at 74% 50%, #12273e 0, #12273e 2.4px, rgba(18,39,62,0) 3.6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
/* glass sheen across the screen */
.device-screen::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(133deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.035) 12%, rgba(255,255,255,0) 34%);
}
.dv-grad { background: linear-gradient(180deg, rgba(40,16,86,0.96) 0%, rgba(16,8,34,0.6) 55%, rgba(5,5,7,0) 100%); padding: 46px 18px 18px; }
.dv-notch { display: none; }
.dv-greet { font-size: 12px; color: var(--dim); margin-bottom: 16px; }
.dv-greet strong { color: var(--text); font-weight: 600; }
.dv-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.32); }
.dv-num { font-size: 38px; font-weight: 800; color: #fff; letter-spacing: -0.03em; margin: 5px 0 8px; }
.dv-delta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); }
.dv-body { padding: 4px 18px 22px; }
.dv-prog { height: 7px; border-radius: 99px; background: rgba(255,255,255,0.06); overflow: hidden; margin-top: 4px; }
.dv-prog span { display: block; height: 100%; width: 38%; background: var(--g-home); border-radius: 99px; }
.dv-prog-lbls { display: flex; justify-content: space-between; margin: 9px 0 18px; font-size: 11px; font-weight: 600; }
.dv-prog-lbls .a { color: var(--accent); }
.dv-prog-lbls .b { color: rgba(255,255,255,0.25); }
.dv-chart { width: 100%; height: 56px; margin-bottom: 16px; }
.dv-sec { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.22); margin-bottom: 10px; }
.dv-row { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.dv-ico { width: 32px; height: 32px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.dv-info { flex: 1; min-width: 0; }
.dv-name { font-size: 13px; font-weight: 600; color: #fff; }
.dv-sub { font-size: 11px; color: var(--dim); }
.dv-val { text-align: right; }
.dv-amt { font-size: 13px; font-weight: 700; color: #fff; }
.dv-chg { font-size: 10px; font-weight: 600; }

/* ---------- Logo strip / proof ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; }
.proof-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; }
.proof-item { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.proof-item svg { width: 18px; height: 18px; stroke: var(--accent); stroke-width: 2; fill: none; }

/* ---------- Cards / features ---------- */
.grid { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; position: relative; transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--surface-2); }
.feat-ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feat-ico svg { width: 23px; height: 23px; stroke: #fff; stroke-width: 2; fill: none; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.tag-pro { position: absolute; top: 20px; right: 20px; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #FFB800; background: rgba(255,184,0,0.1); border: 1px solid rgba(255,184,0,0.28); padding: 3px 9px; border-radius: 99px; }

/* gradient backgrounds for icon chips
   Each carries a solid background-color under the gradient image so the element
   can never paint transparent (which would show the near-black page through it
   and look like a black dot) if the GPU drops the gradient layer mid-animation. */
.bg-home { background-color: #4F8AFF; background-image: var(--g-home); }
.bg-assets { background-color: #00D4FF; background-image: var(--g-assets); }
.bg-goals { background-color: #FF5B8D; background-image: var(--g-goals); }
.bg-insights { background-color: #9B54FF; background-image: var(--g-insights); }
.bg-history { background-color: #00C896; background-image: var(--g-history); }
.bg-pro { background-color: #FFB800; background-image: var(--g-pro); }
.bg-liab { background-color: #4A8096; background-image: var(--g-liab); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; }
.step-n { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 14px; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 88px; }
.split .media { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; min-height: 280px; display: flex; align-items: center; justify-content: center; }
/* Device mockups float (like the hero) instead of sitting in a surface card, so the phone is not a small object boxed in a large frame. */
.split .media.media-device { background: none; border: 0; padding: 0; min-height: 0; }
.split h2 { font-size: clamp(26px, 3vw, 36px); }
.split p { margin-top: 16px; color: var(--muted); font-size: 17px; }
.checklist { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--body); }
.checklist svg { width: 20px; height: 20px; stroke: var(--accent); stroke-width: 2.4; fill: none; flex: none; margin-top: 2px; }

/* ---------- Wealth levels ---------- */
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.level { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; text-align: center; }
.level-dot { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 14px; }
.level-name { font-size: 16px; font-weight: 700; color: var(--text); }
.level-cap { font-size: 12.5px; color: var(--dim); margin-top: 5px; }

/* ---------- Platforms ---------- */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.platform { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.platform svg { width: 30px; height: 30px; stroke: var(--text); stroke-width: 1.7; fill: none; margin: 0 auto 14px; }
.platform h3 { font-size: 17px; margin-bottom: 6px; }
.platform p { font-size: 14px; color: var(--muted); }
.platform .status { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }
.status-live { color: #00C896; background: rgba(0,200,150,0.1); border: 1px solid rgba(0,200,150,0.28); }
.status-soon { color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); }

/* ---------- CTA band + signup ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(79,138,255,0.12), rgba(139,84,255,0.12));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 56px; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(28px, 3.5vw, 42px); }
.cta-band p { color: var(--muted); font-size: 18px; margin: 16px auto 32px; max-width: 540px; }
.signup { max-width: 480px; margin: 0 auto; }
.signup-row { display: flex; gap: 10px; }
.field { flex: 1; }
.signup input {
  width: 100%; padding: 14px 16px; border-radius: 12px; font-size: 15px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .15s var(--ease);
}
.signup input::placeholder { color: var(--dim); }
.signup input:focus { outline: none; border-color: var(--accent); }
.form-note { font-size: 13px; color: var(--dim); margin-top: 14px; }
.form-msg { font-size: 15px; font-weight: 600; margin-top: 16px; min-height: 22px; }
.form-msg.ok { color: #00C896; }
.form-msg.err { color: #FF6B6B; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 26px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 600; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { width: 20px; height: 20px; flex: none; stroke: var(--muted); stroke-width: 2; fill: none; transition: transform .25s var(--ease); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .answer { padding: 0 26px 24px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.faq-item .answer p + p { margin-top: 12px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--dim); padding: 22px 0 0; }
.breadcrumb a { color: var(--muted); } .breadcrumb a:hover { color: var(--text); }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }

/* ---------- Content dates ----------
   Dates describe publication or meaningful content updates. They never imply
   a named human author, reviewer or maintainer. */
.content-date { margin: 12px 0 28px; font-size: 13.5px; line-height: 1.65; color: var(--dim); }
.content-date time { font-variant-numeric: tabular-nums; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 10px; }
.prose .updated { color: var(--dim); font-size: 14px; margin-bottom: 36px; }
.prose h2 { font-size: 23px; margin: 38px 0 14px; }
.prose h3 { font-size: 18px; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--body); font-size: 16px; line-height: 1.75; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose thead th { color: var(--text); font-weight: 700; }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; }
.prose tfoot td { font-weight: 700; color: var(--text); border-top: 1px solid var(--line-2); border-bottom: none; }
.prose .g-callout { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 16px 18px; margin: 24px 0; }
.prose .g-callout p:last-child { margin-bottom: 0; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin: 8px auto 0; max-width: 980px; }
.guide-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.guide-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.guide-card h3 { font-size: 19px; color: var(--text); margin-bottom: 8px; letter-spacing: -0.01em; }
.guide-card p { color: var(--muted); font-size: 15px; margin: 0; }
.guide-card .g-read { display: inline-block; margin-top: 14px; color: var(--accent); font-size: 14px; font-weight: 600; }

/* ---------- Offer pages ---------- */
.offer-hero { padding: 76px 0 52px; }
.offer-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 34px; align-items: stretch; }
.offer-copy h1 { font-size: clamp(38px, 6vw, 68px); }
.offer-copy .lede { color: var(--muted); font-size: 20px; line-height: 1.6; margin-top: 20px; max-width: 660px; }
.offer-meta { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 28px; }
.offer-meta li { border: 1px solid var(--line); border-radius: 999px; color: var(--body); background: rgba(255,255,255,0.035); font-size: 13px; font-weight: 700; padding: 7px 12px; }
.price-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.price-kicker { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.price-main { color: var(--text); font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-top: 12px; }
.price-main small { color: var(--muted); font-size: 16px; font-weight: 700; letter-spacing: 0; }
.price-card p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 14px; }
.price-actions { display: grid; gap: 10px; margin-top: 22px; }
.stripe-note { border: 1px solid rgba(255,184,0,0.24); background: rgba(255,184,0,0.08); color: #F3C65B; border-radius: 10px; font-size: 12.5px; line-height: 1.5; padding: 11px 12px; }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.offer-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.offer-card.featured { border-color: rgba(79,138,255,0.38); background: linear-gradient(135deg, rgba(79,138,255,0.12), rgba(139,84,255,0.08)); }
.offer-card h3 { margin-bottom: 10px; }
.offer-card p, .offer-card li { color: var(--muted); font-size: 15px; line-height: 1.6; }
.offer-card ul { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.offer-card li { position: relative; padding-left: 20px; }
.offer-card li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(79,138,255,0.5); }
.offer-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.offer-stat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; }
.offer-stat span { display: block; color: var(--dim); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.offer-stat strong { display: block; color: var(--text); font-size: 24px; margin-top: 6px; }
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare table { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare th, .compare td { border-bottom: 1px solid var(--line); padding: 15px 18px; text-align: left; font-size: 14px; }
.compare th { color: var(--text); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.compare td { color: var(--body); }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: #00C896; font-weight: 800; }
.compare .soon { color: #F3C65B; font-weight: 800; }
.offer-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 34px; align-items: center; }
.shot-panel { position: relative; display: flex; justify-content: center; min-height: 420px; }
.shot-panel .device-photo { width: min(360px, 82vw); }
.shot-panel .device-photo { position: relative; margin: 0 auto; }
.shot-panel .device-photo > img { width: 100%; height: auto; display: block; position: relative; z-index: 1; }
.shot-panel .device-photo-screen { position: absolute; left: 22%; top: 7.6%; width: 56%; height: 83.3%; overflow: hidden; border-radius: 12% / 5%; background: #050507; z-index: 2; }
.shot-panel .browser-window { max-width: 760px; width: 100%; }
/* Browser-window screenshots ship as <picture>: AVIF, then WebP, then the PNG fallback.
   The wrapper has to behave exactly like the bare <img> it replaced. */
.browser-window > picture { display: block; }
.browser-window > picture > img { width: 100%; height: auto; display: block; }


/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; position: relative; z-index: 1; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { color: var(--muted); font-size: 14.5px; } .footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-bottom .copy { font-size: 13.5px; color: var(--dim); }
.disclaimer { font-size: 12.5px; color: var(--dim); line-height: 1.6; margin-top: 18px; max-width: 720px; }
.made-uk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero .lede, .device-wrap { margin: 0 auto; }
  .hero { text-align: center; }
  .hero-cta, .trust-pills { justify-content: center; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .media { order: -1; }
  .offer-hero-grid, .offer-split { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .cards-3, .cards-2, .steps, .platforms { grid-template-columns: 1fr; }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .nav-links { position: fixed; inset: 74px 12px auto 12px; max-width: 360px; margin-left: auto;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(12,12,16,0.98); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
    border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow);
    padding: 10px; transform: translateY(-10px) scale(0.98); transform-origin: top right; opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .nav-links.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: flex; align-items: center; width: 100%; padding: 14px 16px; font-size: 16px; font-weight: 500; border-radius: 12px; color: var(--body); }
  .nav-links a:hover, .nav-links a:active { background: rgba(255,255,255,0.05); color: var(--text); }
  .nav-links a[aria-current="page"] { background: rgba(255,255,255,0.05); color: var(--text); }
  .nav-links .nav-cta-mobile { display: block; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
  .nav-links .nav-cta-mobile .btn { display: flex; width: 100%; justify-content: center; box-shadow: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta-desktop { display: none; }
  .cta-band { padding: 40px 24px; }
  .signup-row { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .levels { grid-template-columns: 1fr; }
  .offer-strip { grid-template-columns: 1fr; }
  .price-card { padding: 22px; }
  .container { padding: 0 18px; }
}

/* ---------- Premium motion ---------- */
/* Header gains a subtle elevation once the page is scrolled */
.site-header.scrolled { background: rgba(5,5,7,0.82); box-shadow: 0 10px 30px rgba(0,0,0,0.45); }

/* Scroll + entrance reveals. Gated on html.js so without JS nothing is hidden.
   Uses the `translate` property (not transform) so it never clashes with
   transform-based hovers or the device float. */
html.js [data-reveal] > *,
html.js .reveal {
  opacity: 0; translate: 0 26px;
  transition: opacity .7s var(--ease), translate .7s var(--ease);
  will-change: opacity, translate;
}
/* Above-the-fold opt-out. The reveal above is gated on the deferred site.js
   IntersectionObserver, so anything hidden by it cannot paint until that
   script runs and its .7s transition finishes. The first block inside <main>
   on each page carries lcp-safe so the LCP element paints on first render. */
html.js .reveal.lcp-safe,
html.js [data-reveal].lcp-safe > * {
  opacity: 1; translate: none; transition: none; will-change: auto;
}
html.js [data-reveal].in > *,
html.js .reveal.in { opacity: 1; translate: 0 0; }
html.js [data-reveal].in > *:nth-child(2) { transition-delay: .07s; }
html.js [data-reveal].in > *:nth-child(3) { transition-delay: .14s; }
html.js [data-reveal].in > *:nth-child(4) { transition-delay: .21s; }
html.js [data-reveal].in > *:nth-child(5) { transition-delay: .28s; }
html.js [data-reveal].in > *:nth-child(6) { transition-delay: .35s; }

/* Hero device: gentle continuous float (transform composes with reveal translate) */
.floaty { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* The device chart draws itself in when its card reveals */
html.js .dv-chart .line { stroke-dasharray: 620; stroke-dashoffset: 620; }
html.js .reveal.in .dv-chart .line { animation: dvDraw 1.6s var(--ease) .35s forwards; }
@keyframes dvDraw { to { stroke-dashoffset: 0; } }

/* The progress bar fills on reveal */
html.js .reveal .dv-prog span { width: 0; }
html.js .reveal.in .dv-prog span { width: 38%; transition: width 1.1s var(--ease) .45s; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb { animation: none !important; }
  .floaty { animation: none !important; }
  * { transition-duration: .001ms !important; }
  html.js [data-reveal] > *, html.js .reveal { opacity: 1 !important; translate: none !important; }
  html.js .reveal .dv-prog span { width: 38% !important; }
  html.js .dv-chart .line { stroke-dashoffset: 0 !important; animation: none !important; }
}

/* ==========================================================================
   v2 redesign - cinematic hero, sticky scrollytelling, tilt cards, ladder
   ========================================================================== */

/* ---- Cinematic hero ---- */
.hero2 { position: relative; min-height: 92vh; display: flex; align-items: center; padding: 100px 0 84px; }
.hero2-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; width: 100%; }
.hero2-title { font-size: clamp(44px, 7vw, 92px); letter-spacing: -0.04em; line-height: 0.98; font-weight: 800; }
.hero2 .lede { font-size: clamp(18px, 2.1vw, 22px); color: var(--muted); margin-top: 26px; max-width: 540px; }
.hero2-device { position: relative; display: flex; justify-content: center; }
.glow-pad { position: absolute; inset: 0; margin: auto; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,84,255,0.42), rgba(79,138,255,0.12) 45%, transparent 70%);
  filter: blur(50px); z-index: 0; pointer-events: none; }
.hero2-device .device, .story-sticky .device, .media-device .device { position: relative; z-index: 1; }

/* scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
  transition: color .2s var(--ease); z-index: 2; }
.scroll-cue:hover { color: var(--muted); }
.scroll-cue svg { width: 18px; height: 18px; stroke: currentColor; animation: cueBob 1.8s ease-in-out infinite; }
@keyframes cueBob { 0%,100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(5px); opacity: 1; } }

/* ---- Sticky scrollytelling ---- */
.story { position: relative; padding: 30px 0 70px; }
.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: stretch; }
.story-stage { position: relative; }
.story-sticky { position: sticky; top: 92px; height: calc(100vh - 132px); min-height: 560px;
  display: flex; align-items: center; justify-content: center; }
.story-sticky .device { width: 300px; }
.story-steps { display: grid; }
.story-step { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; max-width: 470px;
  opacity: 0.3; filter: blur(0.5px); transition: opacity .5s var(--ease), filter .5s var(--ease); }
.story-step.active { opacity: 1; filter: none; }
.story-n { font-size: 13px; font-weight: 800; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 14px; }
.story-step h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 16px; }
.story-step p { font-size: 18px; color: var(--muted); line-height: 1.6; }

/* phone screens crossfade within the device screen */
.pscreen { position: absolute; inset: 0; opacity: 0; transform: scale(0.985);
  transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.pscreen.on { opacity: 1; transform: none; }
.ps-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.ps-cat { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 4px; border-radius: 12px; font-size: 17px; color: #fff; }
.ps-cat small { font-size: 9.5px; font-weight: 600; opacity: 0.92; }

/* ---- Tilt cards ---- */
.tilt-grid { perspective: 1000px; }
.tilt-grid .card { transform-style: preserve-3d; will-change: transform; }
.tilt-grid .card .feat-ico, .tilt-grid .card h3, .tilt-grid .card p, .tilt-grid .card .tag-pro { transform: translateZ(22px); }

/* ---- Wealth ladder ---- */
.ladder { position: relative; max-width: 980px; margin: 0 auto; padding: 8px 0; }
/* top anchors to the dot centre: ladder padding-top 8 + dot margin-top 9 + dot radius 17 = 34px; translateY centres the line on it */
.ladder-line { position: absolute; left: 10%; right: 10%; top: 34px; transform: translateY(-50%); height: 3px; background: rgba(255,255,255,0.08); border-radius: 99px; }
.ladder-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #4F8AFF, #8B54FF, #00C896, #FF8C42, #FFB800); border-radius: 99px; transition: width 1.7s var(--ease); }
[data-ladder].in .ladder-fill { width: 100%; }
.ladder-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; z-index: 1; }
.rung { text-align: center; opacity: 0; translate: 0 18px; transition: opacity .5s var(--ease), translate .5s var(--ease); }
[data-ladder].in .rung { opacity: 1; translate: 0 0; }
[data-ladder].in .rung:nth-child(2) { transition-delay: .12s; }
[data-ladder].in .rung:nth-child(3) { transition-delay: .24s; }
[data-ladder].in .rung:nth-child(4) { transition-delay: .36s; }
[data-ladder].in .rung:nth-child(5) { transition-delay: .48s; }
.rung-dot { width: 34px; height: 34px; border-radius: 50%; margin: 9px auto 14px; box-shadow: 0 0 0 5px var(--bg), 0 6px 18px rgba(0,0,0,0.5); }
.rung-name { font-size: 16px; font-weight: 700; color: var(--text); }
.rung-cap { font-size: 12.5px; color: var(--dim); margin-top: 5px; }

/* ---- Responsive (v2) ---- */
@media (max-width: 1000px) {
  .hero2 { min-height: auto; padding: 60px 0 52px; text-align: center; }
  .hero2-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero2 .lede { margin-left: auto; margin-right: auto; }
  .hero2 .hero-cta, .hero2 .trust-pills { justify-content: center; }
  .scroll-cue { display: none; }
  .story-grid { grid-template-columns: 1fr; gap: 8px; }
  .story-stage { display: none; }
  .story-step { min-height: 0; opacity: 1; filter: none; margin: 0 auto 30px; text-align: center; }
  .story-step h2 { font-size: clamp(26px, 6vw, 34px); }
  .ladder-line { display: none; }
  .ladder-row { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
}

/* ---- Reduced motion (v2) ---- */
@media (prefers-reduced-motion: reduce) {
  .scroll-cue svg { animation: none !important; }
  .pscreen { transition: none !important; }
  .ladder-fill { transition: none !important; width: 100% !important; }
  .rung { opacity: 1 !important; translate: none !important; }
  .tilt-grid .card { transform: none !important; }
}
