/* ============================================================
   Nelia marketing site — nelia.uk
   Palette: "Deep Space" (see website/README.md for the full
   token reference and the two alternative directions).
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Base surfaces */
  --bg: #0a0e1a;            /* page background — deep navy, not black */
  --bg-raised: #0e1424;     /* raised panels (header on scroll, cards) */
  --surface: #131a2e;       /* interactive surfaces, form fields */
  --surface-2: #1a2238;     /* hover state of surfaces */

  /* Text hierarchy */
  --text: #eef1fb;          /* headings, primary copy */
  --text-2: #aab3d0;        /* body, secondary copy (AA on --bg) */
  --text-3: #7c86a8;        /* captions, fine print (AA at large sizes) */

  /* Accent gradient — the brand lives here */
  --violet: #8b5cf6;
  --magenta: #ec4899;
  --coral: #ff8a5e;
  --grad: linear-gradient(100deg, var(--violet) 0%, var(--magenta) 52%, var(--coral) 100%);
  --grad-soft: linear-gradient(100deg, rgba(139,92,246,.16), rgba(236,72,153,.16), rgba(255,138,94,.16));

  /* CTA */
  --cta-bg: var(--grad);
  --cta-text: #ffffff;

  /* Lines */
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);

  /* Shape + rhythm */
  --radius: 14px;
  --radius-lg: 20px;
  --container: 72rem;
  --header-h: 4.25rem;

  /* Type */
  --font: "General Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, canvas, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: none; }
::selection { background: rgba(139,92,246,.4); color: #fff; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--surface); color: var(--text);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout primitives ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(2rem, 4vw, 3.25rem) 0; }
.section--tight { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }

.kicker {
  display: inline-block;
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.9rem, 2.4vw + .9rem, 2.75rem); max-width: 36rem; }
.section-lede { font-size: 1.1875rem; max-width: 38rem; }
.center { text-align: center; }
.center .section-title, .center .section-lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 3rem; padding: 0 1.5rem;
  border-radius: 999px; border: 0;
  font: inherit; font-size: 1rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-primary {
  background: var(--cta-bg); color: var(--cta-text);
  box-shadow: 0 4px 24px rgba(236,72,153,.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 32px rgba(236,72,153,.4); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,.05); }
/* Gradient-outline button — engaging alternate to the solid primary (hero pairing) */
.btn-grad-outline {
  color: var(--text);
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--grad) border-box;
  border: 1.6px solid transparent;
}
.btn-grad-outline:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 6px 26px -8px rgba(236,72,153,.45);
}
.btn-lg { height: 3.4rem; padding: 0 2rem; font-size: 1.0625rem; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(10,14,26,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 2rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; }
.brand img { width: 1.9rem; height: 1.9rem; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.nav a { font-size: .95rem; font-weight: 500; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4); transition: opacity .15s; }
.nav a:hover { opacity: .72; }
.nav .btn { height: 2.5rem; padding: 0 1.15rem; font-size: .9rem; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 0; color: var(--text); cursor: pointer;
  padding: .5rem;
}
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,14,26,.97);
    border-bottom: 1px solid var(--border);
    padding: .5rem 1.5rem 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; font-size: 1.05rem; }
  .nav .btn { margin-top: .75rem; height: 3rem; font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(640px, 92svh);
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
/* Scrim keeps the headline AA-legible over the helix without killing it */
.hero-content { position: relative; z-index: 2; max-width: 44rem; }
.hero-content::before {
  content: "";
  position: absolute; inset: -2.5rem -3rem;
  background: radial-gradient(ellipse at 40% 50%, rgba(10,14,26,.78) 0%, rgba(10,14,26,.4) 55%, transparent 72%);
  z-index: -1;
  pointer-events: none;
}
/* The ribbon is bulky on small screens — give the text a stronger shield */
@media (max-width: 760px) {
  .hero-content::before {
    inset: -2rem -1.5rem;
    background: radial-gradient(ellipse at 50% 45%, rgba(10,14,26,.88) 0%, rgba(10,14,26,.6) 60%, transparent 80%);
  }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .85rem; font-weight: 500; color: var(--text-2);
  border: 1px solid var(--border-strong);
  background: rgba(14,20,36,.6);
  padding: .35rem .9rem; border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-badge .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--grad); }
.hero h1 {
  font-size: clamp(2.6rem, 5.2vw + 1rem, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: .45em;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.1rem, .6vw + 1rem, 1.3rem);
  max-width: 33rem;
  margin-bottom: 2.2rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: .875rem; color: var(--text-3); margin-top: 1.1rem; }
/* On the hero the note sits over the helix — keep it white + legible */
.hero .hero-note { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.45); }

/* ---------- Problem ---------- */
.problem { border-top: 1px solid var(--border); }
.pain-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
}
@media (max-width: 860px) { .pain-grid { grid-template-columns: 1fr; } }
.pain {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent);
  padding: 1.75rem;
}
.pain h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.pain p { font-size: .975rem; margin: 0; }
.pain .glyph {
  width: 2.5rem; height: 2.5rem; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  margin-bottom: 1.1rem;
}
.pain .glyph svg { width: 1.25rem; height: 1.25rem; }
.pain .glyph svg, .grid-item .glyph svg { color: var(--magenta); }

/* ---------- Product beats ---------- */
.beat {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.beat + .beat { border-top: 1px solid var(--border); }
.beat:nth-child(even) .beat-copy { order: 2; }
@media (max-width: 920px) {
  .beat { grid-template-columns: 1fr; }
  .beat:nth-child(even) .beat-copy { order: 0; }
}
.beat h3 { font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem); }
.beat p { max-width: 30rem; }
.beat-num {
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em;
  color: var(--text-3); text-transform: uppercase;
  display: block; margin-bottom: .9rem;
}

/* ---------- Product beats carousel (full-bleed, drag-scrollable) ---------- */
#product { overflow-x: clip; } /* contain the full-bleed track — no page scrollbar */
.beats-carousel {
  margin-top: 2.5rem;
  width: 100vw;
  margin-inline: calc(50% - 50vw); /* break out of the container to full screen width */
}
.beats-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; cursor: grab;
}
.beats-track::-webkit-scrollbar { display: none; }
.beats-track.is-dragging {
  cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none;
}
.beats-track > .beat {
  flex: 0 0 100%; scroll-snap-align: center;
  border-top: 0; padding: 0; align-items: center;
  /* cap content to ~90rem, centred — stretches on wide screens without going edge-to-edge */
  padding-inline: max(1.5rem, calc((100% - 90rem) / 2));
}
/* Every slide keeps the same layout (copy left, screenshot right). */
.beats-track > .beat:nth-child(even) .beat-copy { order: 0; }
.beat-nav {
  display: flex; align-items: center; justify-content: center; gap: 1.25rem;
  margin-top: 1.75rem;
}
.beat-arrow {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); font-size: 1.5rem; line-height: 0; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.beat-arrow:hover { background: var(--surface-2); }
.beat-arrow:disabled { opacity: .35; cursor: default; }
.beat-dots { display: flex; gap: .5rem; align-items: center; }
.beat-dot {
  width: .5rem; height: .5rem; border-radius: 999px; padding: 0;
  background: var(--border-strong); border: 0; cursor: pointer;
  transition: width .2s ease, background-color .2s ease;
}
.beat-dot.is-active { width: 1.5rem; background: var(--grad); }

/* Browser-chrome screenshot frame */
.frame {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: 0 24px 64px -24px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.02);
  overflow: hidden;
  transform: perspective(1600px) rotateY(0.001deg); /* promote to own layer */
}
.frame-bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--border);
}
.frame-bar i { width: .65rem; height: .65rem; border-radius: 50%; background: rgba(255,255,255,.14); }
.frame-bar span {
  margin-left: .6rem; font-size: .72rem; color: var(--text-3);
  font-style: normal;
}
.shot { position: relative; aspect-ratio: 16 / 10; background: var(--surface); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
/* Loud placeholder when the screenshot file is missing */
.shot.is-missing img { display: none; }
.shot.is-missing::after {
  content: "⟡ PLACEHOLDER — " attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 2rem; text-align: center;
  font-size: .9rem; line-height: 1.5; color: var(--text-3);
  background:
    repeating-linear-gradient(-45deg, transparent 0 18px, rgba(255,255,255,.02) 18px 36px),
    var(--surface);
  border: 2px dashed rgba(255,255,255,.12);
  border-radius: 0 0 var(--radius) var(--radius);
  margin: -1px;
}

/* ---------- Feature grid ---------- */
.grid-features {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
}
@media (max-width: 980px) { .grid-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-features { grid-template-columns: 1fr; } }
.grid-item {
  display: flex; gap: 1rem; align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
  transition: border-color .2s ease, background-color .2s ease;
}
.grid-item:hover { border-color: var(--border-strong); }
.grid-item .glyph {
  flex: 0 0 auto;
  width: 2.1rem; height: 2.1rem; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border);
}
.grid-item .glyph svg { width: 1.1rem; height: 1.1rem; }
.grid-item h3 { font-size: 1rem; margin-bottom: .25rem; }
.grid-item p { font-size: .9rem; margin: 0; color: var(--text-3); }

/* ---------- Player-intelligence spotlight ---------- */
.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  background:
    linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box,
    var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 24px 64px -28px rgba(236,72,153,.32);
}
@media (max-width: 860px) { .spotlight { grid-template-columns: 1fr; } }
.spotlight-copy .section-title { margin-bottom: .6rem; }
.spotlight-copy p { max-width: 34rem; margin: 0; }
.spotlight-visual { display: grid; place-items: center; }
.spotlight-visual svg { width: 100%; max-width: 340px; height: auto; }

/* ---------- The Solution — three gradient-bordered pillars ---------- */
.pillars {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
}
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }
.pillar {
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.75rem;
  background:
    linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box,
    var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 20px 60px -34px rgba(236,72,153,.3);
  display: flex; flex-direction: column;
}
.pillar-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.1rem; }
.pillar-num {
  font-size: 1.1rem; font-weight: 700; letter-spacing: .08em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pillar-glyph {
  flex: 0 0 auto;
  width: 2.6rem; height: 2.6rem; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border);
  color: var(--magenta);
}
.pillar-glyph svg { width: 1.35rem; height: 1.35rem; }
.pillar h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.pillar p { font-size: .975rem; color: var(--text-2); margin: 0; }

/* Clickable screenshots → lightbox */
.shot:not(.is-missing) { cursor: zoom-in; }
.shot:not(.is-missing)::before {
  content: "⤢ Click to enlarge";
  position: absolute; z-index: 1; right: .6rem; bottom: .6rem;
  font-size: .7rem; color: #fff;
  background: rgba(10,14,26,.72); border: 1px solid var(--border-strong);
  padding: .25rem .6rem; border-radius: 999px;
  opacity: 0; transition: opacity .18s ease; pointer-events: none;
}
.shot:not(.is-missing):hover::before,
.shot:not(.is-missing):focus-visible::before { opacity: 1; }
.shot:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6,8,16,.86);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: min(1400px, 96vw); max-height: 92vh;
  width: auto; height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.8);
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1.15rem;
  width: 2.6rem; height: 2.6rem; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid var(--border-strong);
  color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.lightbox-close:hover { background: rgba(255,255,255,.16); }

/* ---------- Testimonials ---------- */
/* Flip data-testimonials on <body> to "on" the moment a real quote lands. */
body[data-testimonials="off"] #testimonials { display: none; }
/* Live-demo gallery — flip data-demo to "on" once real screenshots/GIFs land. */
body[data-demo="off"] #demo { display: none; }
.demo-gallery {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 3rem; text-align: left;
}
@media (max-width: 760px) { .demo-gallery { grid-template-columns: 1fr; } }
.demo-item { margin: 0; }
.demo-item figcaption { margin-top: .9rem; font-size: .95rem; color: var(--text-2); }
/* Clean "coming soon" state for empty demo + carousel slots (not the loud dev placeholder) */
.demo .shot.is-missing::after,
.beats-track .shot.is-missing::after {
  content: "Screenshot coming soon";
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: .95rem; letter-spacing: normal;
}
.quotes {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 3rem;
}
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  background: var(--bg-raised);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.quote blockquote { margin: 0; font-size: 1.05rem; color: var(--text); }
.quote figcaption { font-size: .875rem; color: var(--text-3); }
.quote figcaption strong { color: var(--text-2); font-weight: 600; display: block; }
.quote.is-placeholder { border-style: dashed; border-color: rgba(255,255,255,.14); }
.quote.is-placeholder blockquote { color: var(--text-3); font-style: italic; }

/* ---------- Pricing ---------- */
.tiers {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  /* Three tiers, centred as a tighter cluster rather than stretched across
     the full 72rem container. */
  max-width: 60rem; margin: 2.5rem auto 0;
  align-items: stretch;
}
@media (min-width: 921px) and (max-width: 1100px) {
  .tiers { grid-template-columns: repeat(2, 1fr); max-width: 42rem; margin-inline: auto; }
}
@media (max-width: 920px) { .tiers { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; } }
.tier {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.9rem;
  background: var(--bg-raised);
  display: flex; flex-direction: column;
  /* Override the section's .center text-align so prices, meta and the
     feature list all read left — fixes the centred wrapped-line "odd
     spacing" in the columns. */
  text-align: left;
}
.tier--featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box,
    var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 24px 64px -24px rgba(236,72,153,.35);
  position: relative;
}
/* Lift (not scale) so the featured card stands out without clipping in the
   tighter 4-up grid. */
@media (min-width: 1101px) { .tier--featured { transform: translateY(-8px); } }
.tier { padding: 1.85rem 1.5rem; }
.tier-flag {
  position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .85rem; border-radius: 999px;
  white-space: nowrap;
}
.tier h3 { font-size: 1.2rem; margin-bottom: .25rem; }
/* Reserve a full 2 lines (body line-height is 1.65) so every column's
   price/meta/feature-list start at the same height — keeps the price
   columns aligned across tiers regardless of description length. */
.tier-for { font-size: .8rem; line-height: 1.45; color: var(--text-3); margin-bottom: .4rem; }
/* Pin the price-row height + use a FIXED bottom margin (not the 1em-of-
   font-size default, which differs between the £69 numeric price and the
   smaller "Book a demo" / "Custom" quote text) so the meta divider and the
   feature list below line up across every tier. */
.tier-price {
  font-size: 2.1rem; font-weight: 600; color: var(--text); letter-spacing: -.02em;
  line-height: 1.1; min-height: 2.3rem; margin: 0 0 .35rem;
}
.tier-price .placeholder {
  font-size: 1.05rem; font-weight: 500; color: var(--coral);
  border: 1px dashed rgba(255,138,94,.5); border-radius: 8px;
  padding: .15rem .6rem;
}
.tier-period { font-size: .875rem; color: var(--text-3); margin-bottom: 1.5rem; }
/* Keep the launch-pricing asterisk from inflating the price row's line box. */
.price-ast { color: var(--text-3); font-weight: 500; font-size: .68em; line-height: 0; vertical-align: super; margin-left: .05em; }
.price-note { font-size: 1rem; color: var(--text-2); margin-top: 1.75rem; }
/* Shared free-trial CTA below the pricing cards */
.pricing-trial { margin: 2.5rem auto .25rem; text-align: center; }
.pricing-trial-btn { min-width: 18rem; }
.pricing-trial-note { font-size: .875rem; color: var(--text-3); margin: .9rem 0 0; }
.tier ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .65rem; }
.tier li { display: flex; gap: .6rem; font-size: .925rem; align-items: baseline; }
.tier li::before { content: "✓"; color: var(--magenta); font-weight: 700; flex: 0 0 auto; }
/* Button pinned to the bottom of the flex column (not via the feature
   list flex-growing) so cards with an add-ons block still align their
   buttons with the simpler tiers. */
.tier .btn { width: 100%; margin-top: auto; }

/* ---------- Pricing v2 — billing toggle + 4-tier additions ---------- */
.pricing-toggle {
  display: inline-flex; gap: .25rem; margin: 2.25rem auto 0;
  padding: .3rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--bg-raised);
}
.pricing-toggle .bt-opt {
  display: inline-flex; align-items: center; gap: .5rem;
  height: 2.4rem; padding: 0 1.15rem;
  border: 0; border-radius: 999px; background: transparent;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: background-color .15s, color .15s;
}
.pricing-toggle .bt-opt:hover { color: var(--text); }
.pricing-toggle .bt-opt.is-active { background: var(--grad); color: #fff; }
.bt-save {
  font-size: .7rem; font-weight: 700; letter-spacing: .03em;
  padding: .1rem .45rem; border-radius: 999px;
  background: rgba(255,255,255,.18); color: #fff;
}
.bt-opt:not(.is-active) .bt-save { background: var(--grad-soft); color: var(--coral); }

/* Monthly/annual price swap, driven by .is-annual on .tiers */
.tiers .tp-annual { display: none; }
.tiers.is-annual .tp-monthly { display: none; }
.tiers.is-annual .tp-annual { display: inline; }
.tp-save { color: var(--coral); font-weight: 600; }

.tier-meta {
  font-size: .85rem; font-weight: 600; color: var(--text-2);
  border-top: 1px solid var(--border); padding-top: 1rem; margin: 0 0 1.25rem;
}
.tier-price--quote { font-size: 1.6rem; }
.tier-foot { font-size: .8rem; color: var(--text-3); margin: .75rem 0 0; text-align: center; }
.li-note { color: var(--text-3); }
.badge-beta {
  font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .08rem .4rem; border-radius: 5px; margin-left: .3rem;
  background: var(--grad-soft); color: var(--coral); border: 1px solid var(--border);
  white-space: nowrap;
}

/* Indie "customise it" — toggleable-style add-on list with prices that
   build from the £69 base up to the £269 fully-loaded total. */
.tier-addons {
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  background: var(--grad-soft); padding: .9rem 1rem 1rem; margin: 0 0 1.5rem;
}
.addons-title {
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-2); margin: 0 0 .7rem;
}
.addons-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.addons-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: .75rem; font-size: .875rem;
}
.addons-list li::before { content: none; }
.ao-label { color: var(--text-2); }
.ao-price { color: var(--text); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.addons-total {
  margin: .8rem 0 0; padding-top: .65rem; border-top: 1px solid var(--border);
  font-size: .9rem; color: var(--text-2); text-align: right;
}
.addons-total strong { color: var(--text); font-size: 1.1rem; font-weight: 700; }
.ao-per { color: var(--text-3); font-weight: 500; font-size: .8rem; }

/* Highlighted "Order" button — gradient border + glow so it stands out from
   the solid-gradient trial CTA below it. Opens the build-your-plan modal. */
.order-btn {
  margin: 0 0 .8rem;
  background:
    linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box,
    var(--grad) border-box;
  border: 1.5px solid transparent;
  color: var(--text); font-weight: 700;
  box-shadow: 0 6px 22px -10px rgba(236,72,153,.5);
}
.order-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(236,72,153,.65); }
.order-btn:active { transform: translateY(0); }

/* Order modal — build-your-plan overlay: pick one/some/all add-ons, the total
   updates live, then "Proceed to payment". Shown by toggling .is-open. */
.order-modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 1.5rem;
}
.order-modal.is-open { display: flex; }
.order-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(5,8,16,.72); backdrop-filter: blur(4px);
}
.order-modal-panel {
  position: relative; z-index: 1; text-align: left;
  width: 100%; max-width: 25rem;
  max-height: calc(100vh - 3rem); overflow-y: auto;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 32px 80px -24px rgba(0,0,0,.7);
}
.order-modal-x {
  position: absolute; top: .8rem; right: 1rem;
  background: none; border: 0; color: var(--text-3); cursor: pointer;
  font-size: 1.6rem; line-height: 1; padding: .1rem .3rem; transition: color .15s;
}
.order-modal-x:hover { color: var(--text); }
.order-modal-panel h3 { font-size: 1.25rem; margin: 0 0 .25rem; }
.order-modal-sub { font-size: .9rem; color: var(--text-3); margin: 0 0 1.1rem; }
.order-options { list-style: none; padding: 0; margin: 0; }
.order-options li { margin: 0; }
.order-options li::before { content: none; }
.oo-base, .oo-row {
  display: flex; align-items: center; gap: .7rem;
  padding: .75rem .25rem; border-top: 1px solid var(--border); font-size: .95rem;
}
.oo-base { color: var(--text-2); }
.oo-row { cursor: pointer; }
.oo-check {
  width: 1.15rem; height: 1.15rem; flex: 0 0 auto; cursor: pointer;
  accent-color: var(--magenta);
}
.oo-label { flex: 1; color: var(--text); }
.oo-detail { display: block; font-size: .75rem; color: var(--text-3); font-weight: 400; margin-top: .1rem; }
.oo-price { color: var(--text); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 1rem .25rem 1.15rem;
  border-top: 1px solid var(--border-strong); font-size: 1rem; color: var(--text-2);
}
.order-total .ot-amount strong { font-size: 1.5rem; color: var(--text); font-weight: 700; }
.order-pay { width: 100%; }
.order-error { font-size: .82rem; color: var(--coral); text-align: center; margin: .7rem 0 0; line-height: 1.4; }
.order-error:empty { display: none; }
.order-modal-foot { font-size: .78rem; color: var(--text-3); text-align: center; margin: .8rem 0 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 44rem; margin: 3.5rem auto 0; }
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 600; color: var(--text); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--text-3);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 0 1.25rem; margin: 0; font-size: .975rem; }
.flag {
  display: inline-block;
  font-size: .75rem; font-weight: 600; color: var(--coral);
  border: 1px dashed rgba(255,138,94,.5); border-radius: 6px;
  padding: .05rem .5rem; margin-left: .4rem;
  vertical-align: middle;
}

/* ---------- Final CTA ---------- */
.cta-final {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-final::before {
  content: "";
  position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(ellipse at 50% 100%, rgba(139,92,246,.22), rgba(236,72,153,.1) 45%, transparent 70%);
  pointer-events: none;
}
.cta-final h2 { font-size: clamp(2rem, 3vw + .8rem, 3.2rem); position: relative; }
.cta-final .btn { position: relative; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2.5rem;
  font-size: .9rem; color: var(--text-3);
}
.footer-grid {
  display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between;
  margin-bottom: 2.5rem;
}
.footer-brand { max-width: 18rem; }
.footer-brand .brand { margin-bottom: .9rem; }
.footer nav { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer nav h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: .9rem; }
.footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer nav a { color: var(--text-2); font-size: .9rem; }
.footer nav a:hover { color: var(--text); }
.socials { display: flex; gap: .9rem; margin-top: 1.1rem; }
.socials[hidden] { display: none; } /* keep the hidden attribute authoritative */
.socials a {
  width: 2.25rem; height: 2.25rem; border-radius: 8px;
  display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text-2);
  transition: color .15s, border-color .15s;
}
.socials a:hover { color: var(--text); border-color: var(--border-strong); }
.socials svg { width: 1.05rem; height: 1.05rem; }
.footer-base {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .825rem;
}

/* ---------- Subpages (contact / legal) ---------- */
.subpage { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)); min-height: 70svh; }
.subpage h1 { font-size: clamp(2.2rem, 3.5vw + .8rem, 3.4rem); letter-spacing: -.03em; }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2.5rem; color: var(--text); }
.prose .flag { margin-left: 0; }
/* Legal / policy pages */
.prose p { color: var(--text-2); line-height: 1.7; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.25rem; list-style: disc; color: var(--text-2); line-height: 1.7; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--text-3); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: #c9a4ff; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: #e0ccff; }
.legal-meta { font-size: .9rem; color: var(--text-3); margin: -.4rem 0 1.6rem; }
.legal-foot { font-size: .85rem; color: var(--text-3); border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.25rem; }
.legal-scroll { overflow-x: auto; margin: 1.25rem 0 1.6rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 34rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .6rem .8rem; border: 1px solid var(--border); color: var(--text-2); line-height: 1.5; }
.prose thead th { color: var(--text); background: var(--surface); font-weight: 600; }
.footer .legal-links a { white-space: nowrap; }

.contact-grid {
  display: grid; gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .9rem; font-weight: 600; color: var(--text); }
.field input, .field textarea {
  font: inherit; font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: .8rem 1rem;
  transition: border-color .15s ease;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); }
.field textarea { resize: vertical; min-height: 9rem; }
/* Honeypot — visually removed, still in the DOM for bots */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .95rem; min-height: 1.5rem; margin: 0; }
.form-status.ok { color: #6ee7a8; }
.form-status.err { color: var(--coral); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .45s ease, transform .45s ease;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .grid-item, .header { transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ============================================================
   Pricing v2 — 4 tiers · currency switcher · source icons ·
   includes strip · compare table · stats strip
   ============================================================ */

/* Stats strip (interim social proof; hidden until data-stats="on") */
body[data-stats="off"] .stats { display: none; }
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  margin-top: 1rem;
}
@media (max-width: 760px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat-num {
  display: block; font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label { display: block; font-size: .85rem; color: var(--text-3); margin-top: .25rem; }

/* Billing period switch — a real toggle, right-aligned above the cards */
.pricing-controls {
  display: flex; justify-content: center; align-items: center;
  gap: .75rem; margin: 1.75rem 0 0;
}
/* Launch mode: monthly only — hide the annual switch (flip data-annual="on" to restore). */
body[data-annual="off"] .pricing-controls { display: none; }
.billing-switch {
  display: inline-flex; align-items: center; gap: .6rem;
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
}
.bs-label { font-size: .9rem; font-weight: 600; color: var(--text-3); transition: color .15s; }
.billing-switch[aria-checked="false"] .bs-label--monthly,
.billing-switch[aria-checked="true"] .bs-label--annual { color: var(--text); }
.bs-track {
  position: relative; width: 2.7rem; height: 1.5rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  transition: background-color .2s, border-color .2s;
}
.billing-switch[aria-checked="true"] .bs-track { background: var(--grad); border-color: transparent; }
.bs-knob {
  position: absolute; top: 50%; left: 3px;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: #fff; transform: translateY(-50%);
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.billing-switch[aria-checked="true"] .bs-knob { transform: translate(1.15rem, -50%); }
.bs-badge {
  font-size: .72rem; font-weight: 700; white-space: nowrap;
  padding: .2rem .6rem; border-radius: 999px;
  background: rgba(110,231,168,.1); color: #6ee7a8;
  border: 1px solid rgba(110,231,168,.3);
}

/* Green yearly-saving line — appears under the price in annual mode only */
.tier-save {
  display: none; font-size: .85rem; font-weight: 600; color: #6ee7a8;
  margin: -1rem 0 1.4rem;
}
.tiers.is-annual .tier-save { display: block; }

/* "Everything in <tier>, plus:" list header */
.tier-plus {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-3);
  border-top: 1px solid var(--border); padding-top: 1.1rem; margin: .25rem 0 .8rem;
}
.tier-plus + .tier-meta-list { border-top: 0; padding-top: 0; margin-top: 0; }

/* Every-plan-includes — labelled panel below the cards */
.includes-panel {
  max-width: 62rem; margin: 2.25rem auto 0; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent);
  padding: 1.4rem 1.75rem;
}
.includes-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 1rem;
}
.includes-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem 1.75rem;
}
@media (max-width: 760px) { .includes-list { grid-template-columns: 1fr; } }
.includes-list li {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .95rem; color: var(--text-2);
}
.includes-list li::before { content: "✓"; color: var(--magenta); font-weight: 700; flex: 0 0 auto; }

/* 4-up tier grid (overrides the base 3-up .tiers) */
.tiers--4 { grid-template-columns: repeat(4, 1fr); max-width: 100%; }
@media (max-width: 1100px) { .tiers--4 { grid-template-columns: repeat(2, 1fr); max-width: 44rem; } }
@media (max-width: 680px)  { .tiers--4 { grid-template-columns: 1fr; max-width: 26rem; } }

/* Price row helpers */
.tp-per { font-size: .95rem; font-weight: 500; color: var(--text-3); margin-left: .1rem; }
.tier-price--from { font-size: 1.6rem; }
.tier-price--from .tp-from { font-size: 1rem; font-weight: 500; color: var(--text-3); }

/* Compact per-card meta list (seats / volume / support) */
.tier .tier-meta-list {
  border-top: 1px solid var(--border);
  padding-top: 1.1rem; margin: .25rem 0 1.25rem; gap: .55rem;
}

/* Source icon row */
.src-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.src-icons {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
  margin: 0 0 1.35rem;
}
.src {
  display: inline-grid; place-items: center;
  width: 1.65rem; height: 1.65rem; position: relative;
  color: var(--text-2);
}
.src svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.src.is-locked { color: var(--text-3); opacity: .7; }
.src.is-locked::after {
  content: ""; position: absolute; right: -3px; bottom: -3px;
  width: .72rem; height: .72rem;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237c86a8'%3E%3Cpath d='M12 1a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-1V6a5 5 0 0 0-5-5zm3 8H9V6a3 3 0 0 1 6 0z'/%3E%3C/svg%3E");
}
.src-note { font-size: .72rem; color: var(--text-3); margin-left: .1rem; }

/* Compare-all-plans (progressive disclosure) */
.compare {
  max-width: 62rem; margin: 2.5rem auto 0; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised);
}
.compare > summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem 1.25rem; font-weight: 600; color: var(--text);
}
.compare > summary::-webkit-details-marker { display: none; }
.compare > summary::after { content: "+"; color: var(--text-3); font-size: 1.25rem; line-height: 1; }
.compare[open] > summary::after { content: "\2013"; } /* en dash */
.compare-scroll { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 660px; }
.compare-table th, .compare-table td {
  padding: .7rem .95rem; text-align: left; border-top: 1px solid var(--border); vertical-align: top;
}
.compare-table thead th { color: var(--text); font-weight: 700; }
.compare-table tbody th { color: var(--text-2); font-weight: 600; white-space: nowrap; }
.compare-table td { color: var(--text-3); }
.compare-table tbody tr:hover th, .compare-table tbody tr:hover td { background: rgba(255,255,255,.02); }
.compare-foot { font-size: .8rem; color: var(--text-3); padding: .9rem 1.25rem 1.1rem; margin: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Final CTA — centre the two buttons */
.cta-final-ctas { justify-content: center; margin-top: 1.6rem; }
