/* ============================================================
   Loop — marketing site
   Design tokens lifted from the original coparentloop.com build
   so the look is preserved exactly, minus the framework.
   Light-only by design: the brand is a warm, bright one and a
   dark variant would need its own art direction, not an inversion.
   ============================================================ */

:root {
  --background: oklch(98.5% 0.008 60);
  --foreground: oklch(25% 0.025 320);
  --muted: oklch(96% 0.012 60);
  --muted-foreground: oklch(50% 0.03 320);
  --border: oklch(90% 0.015 320 / 0.6);
  --primary-foreground: oklch(98.5% 0.008 60);

  /* Tint families */
  --blush: oklch(90% 0.045 350);
  --lilac: oklch(88% 0.05 300);
  --sky: oklch(92% 0.04 230);
  --nude: oklch(93% 0.03 70);
  --accent: oklch(92% 0.035 350);
  --mint: oklch(94% 0.05 165);

  /* Tier colours — one pair per plan, reused by badges and bullets */
  --free-bg: oklch(94% 0.05 165);
  --free-ink: oklch(32% 0.06 165);
  --free-dot: oklch(70% 0.1 165);
  --essential-bg: oklch(90% 0.05 230);
  --essential-ink: oklch(32% 0.08 245);
  --essential-dot: oklch(65% 0.12 240);
  --premium-bg: oklch(91% 0.06 300);
  --premium-ink: oklch(36% 0.09 305);
  --premium-dot: oklch(64% 0.14 300);

  --radius: 1.25rem;

  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --shadow-soft: 0 10px 40px -10px color-mix(in oklab, var(--lilac) 35%, transparent);
  --shadow-float: 0 30px 80px -30px oklch(40% 0.05 320 / 0.25);
  --shadow-glow: 0 20px 60px -20px color-mix(in oklab, var(--blush) 60%, transparent);

  --gradient-hero:
    radial-gradient(ellipse 80% 60% at 20% 0%, color-mix(in oklab, var(--blush) 70%, transparent), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 10%, color-mix(in oklab, var(--lilac) 60%, transparent), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, color-mix(in oklab, var(--sky) 50%, transparent), transparent 70%);

  --maxw: 72rem;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--foreground) 60%, transparent);
  outline-offset: 3px;
  border-radius: 6px;
}

.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;
}

/* Skip link — keyboard users land here first. */
.skip-link {
  position: absolute; left: 50%; top: 0.5rem;
  transform: translate(-50%, -200%);
  background: var(--foreground); color: var(--primary-foreground);
  padding: 0.6rem 1.1rem; border-radius: 999px; font-size: 0.85rem;
  z-index: 100; transition: transform 0.2s;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- shared primitives ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }
.wrap-narrow { max-width: 48rem; margin-inline: auto; padding-inline: 1.5rem; }

.glass {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}
.glass-strong {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
}

.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-float { box-shadow: var(--shadow-float); }

.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em; }
.italic-soft { font-style: italic; color: color-mix(in oklab, var(--foreground) 68%, transparent); }
.balance { text-wrap: balance; }

/* Section eyebrow: a coloured dot plus wide-tracked micro caps. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: color-mix(in oklab, var(--foreground) 45%, transparent);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px;
  background: var(--dot, var(--blush));
}

.section { position: relative; padding-block: clamp(4.5rem, 9vw, 9rem); }

.section-head { max-width: 36rem; margin-bottom: clamp(3rem, 6vw, 6rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05; letter-spacing: -0.025em;
}
.section-head p {
  margin-top: 1.25rem;
  color: color-mix(in oklab, var(--foreground) 50%, transparent);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.65;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 999px; padding: 0.75rem 1.5rem;
  font-size: 0.875rem; font-weight: 500; border: 0; cursor: pointer;
  transition: transform 0.25s, opacity 0.25s, background-color 0.25s;
}
.btn-dark { background: var(--foreground); color: var(--primary-foreground); box-shadow: var(--shadow-glow); }
.btn-dark:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.9); transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  display: flex; justify-content: center;
  padding: 1rem 1rem 0;
}
.nav {
  width: 100%; max-width: var(--maxw);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  border-radius: 999px; padding: 0.625rem 1.25rem;
  transition: box-shadow 0.5s, background-color 0.5s;
}
.nav.scrolled { box-shadow: var(--shadow-soft); }
.nav-brand { display: flex; align-items: center; gap: 0.5rem; }
.nav-brand img { width: 1.75rem; height: 1.75rem; object-fit: contain; }
.nav-brand span { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.02em; }

.nav-links { display: none; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.875rem;
  color: color-mix(in oklab, var(--foreground) 70%, transparent);
  transition: background-color 0.2s, color 0.2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.6); color: var(--foreground); }

.nav-cta { display: none; }

.nav-toggle {
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  border-radius: 999px; background: rgba(255, 255, 255, 0.7); border: 0; cursor: pointer;
}
.nav-toggle span { display: flex; flex-direction: column; gap: 4px; }
.nav-toggle span i { display: block; width: 16px; height: 1px; background: var(--foreground); }

/* Mobile drop-down panel, toggled by app.js */
.nav-panel {
  display: none;
  position: absolute; top: calc(100% + 0.5rem); inset-inline: 1rem;
  border-radius: 1.5rem; padding: 0.75rem;
  box-shadow: var(--shadow-float);
}
.nav-panel.open { display: block; }
.nav-panel a {
  display: block; padding: 0.75rem 1rem; border-radius: 999px; font-size: 0.95rem;
}
.nav-panel a:hover { background: rgba(255, 255, 255, 0.7); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-panel { display: none !important; }
}
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(7rem, 12vw, 10rem); padding-bottom: clamp(5rem, 9vw, 8rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-image: var(--gradient-hero); pointer-events: none; }
.blob { position: absolute; border-radius: 999px; filter: blur(64px); pointer-events: none; }
.blob-1 { top: 10rem; left: 2.5rem; width: 18rem; height: 18rem; background: color-mix(in oklab, var(--blush) 40%, transparent); }
.blob-2 { top: 5rem; right: 2.5rem; width: 20rem; height: 20rem; background: color-mix(in oklab, var(--lilac) 40%, transparent); }

.hero-inner { position: relative; text-align: center; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; padding: 0.375rem 1rem;
  font-size: 0.75rem; color: color-mix(in oklab, var(--foreground) 70%, transparent);
  margin-bottom: 1.5rem;
}
.badge-pill img { width: 0.875rem; height: 0.875rem; object-fit: contain; }

.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.75rem, 9vw, 6rem);
  line-height: 1.02; letter-spacing: -0.025em;
}
.hero-sub {
  margin-top: 1.5rem; margin-inline: auto; max-width: 42rem;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: color-mix(in oklab, var(--foreground) 60%, transparent);
}
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.hero-note {
  margin-top: 1.5rem; font-size: 0.8125rem;
  color: color-mix(in oklab, var(--foreground) 45%, transparent);
}

/* ---------- phone frame ---------- */
/* One frame component. The screenshot inside is a real capture of the
   app, so the frame deliberately adds nothing but bezel and shadow. */
.phone {
  position: relative;
  width: var(--phone-w, 260px);
  border-radius: 3rem;
  padding: 5px;
  background: linear-gradient(to bottom, #fff, #fff 60%, oklch(0.94 0.02 320));
  box-shadow: var(--shadow-float);
  outline: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent);
  outline-offset: -1px;
}
.phone::before {
  content: ''; position: absolute; inset: 0; border-radius: 3rem; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), transparent);
  opacity: 0.6;
}
.phone-screen {
  position: relative; border-radius: 2.75rem; overflow: hidden;
  background: #fff;
  outline: 1px solid rgba(0, 0, 0, 0.05); outline-offset: -1px;
  aspect-ratio: 393 / 852;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* Hero phone cluster — centre phone forward, two angled behind. */
.hero-phones { position: relative; margin-top: clamp(3rem, 7vw, 7rem); display: none; height: 600px; }
.hero-phones .phone-slot { position: absolute; }
.hero-phones .slot-center { left: 50%; transform: translateX(-50%); top: 0; z-index: 20; animation: float-slow 6s ease-in-out infinite; }
.hero-phones .slot-left { left: 6%; top: 4rem; z-index: 10; --tw-rotate: -6deg; transform: rotate(-6deg) scale(0.9); animation: float-slower 9s ease-in-out infinite; }
.hero-phones .slot-right { right: 6%; top: 4rem; z-index: 10; --tw-rotate: 6deg; transform: rotate(6deg) scale(0.9); animation: float-slower 9s ease-in-out infinite 1.5s; }

@media (min-width: 900px) { .hero-phones { display: block; } .hero-rail { display: none; } }

/* Mobile: the same phones as a snap-scrolling rail. */
.hero-rail {
  margin-top: 3.5rem;
  margin-inline: -1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hero-rail::-webkit-scrollbar { display: none; }
.hero-rail .rail-track { display: flex; gap: 1rem; padding: 0 1.5rem 1rem; width: max-content; }
.hero-rail .phone { scroll-snap-align: center; flex-shrink: 0; }

@keyframes float-slow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-14px); }
}
@keyframes float-slower {
  0%, 100% { transform: rotate(var(--tw-rotate)) scale(0.9) translateY(0); }
  50% { transform: rotate(var(--tw-rotate)) scale(0.9) translateY(-18px); }
}

/* ---------- stat strip ---------- */
.stats {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
  border-radius: 2rem; padding: 2rem;
}
.stat { text-align: center; }
.stat dt {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.02em;
}
.stat dd {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem; line-height: 1.5;
  color: color-mix(in oklab, var(--foreground) 55%, transparent);
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }

/* ---------- feature grid ---------- */
.feature-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  position: relative; overflow: hidden;
  border-radius: 1.5rem; padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s, box-shadow 0.5s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.feature-card .glow {
  position: absolute; top: 1rem; right: 1rem; width: 5rem; height: 5rem;
  border-radius: 999px; filter: blur(32px); opacity: 0.4; pointer-events: none;
  background: linear-gradient(to bottom right, var(--tint-a), var(--tint-b));
}
.feature-card .icon {
  position: relative;
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  display: grid; place-items: center; margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(to bottom right, var(--tint-a), var(--tint-b));
}
.feature-card .icon svg { width: 1rem; height: 1rem; stroke: color-mix(in oklab, var(--foreground) 80%, transparent); }
.feature-card h3 {
  position: relative;
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.02em;
}
.feature-card > .desc {
  position: relative;
  margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.6;
  color: color-mix(in oklab, var(--foreground) 55%, transparent);
}
.feature-card .tiers {
  position: relative;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid color-mix(in oklab, var(--foreground) 5%, transparent);
  display: grid; gap: 1rem;
}

.tier-label { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.625rem; }
.tier-chip {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.625rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
}
.tier-chip.free { background: var(--free-bg); color: var(--free-ink); }
.tier-chip.essential { background: var(--essential-bg); color: var(--essential-ink); }
.tier-chip.premium { background: var(--premium-bg); color: var(--premium-ink); }
/* Neutral, deliberately unexciting: it marks something you cannot buy yet. */
.tier-chip.soon {
  background: color-mix(in oklab, var(--foreground) 8%, transparent);
  color: color-mix(in oklab, var(--foreground) 60%, transparent);
}
.tier-upgrade {
  font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: color-mix(in oklab, var(--foreground) 40%, transparent);
}
.tier-arrow { width: 0.875rem; height: 0.875rem; stroke: color-mix(in oklab, var(--foreground) 40%, transparent); }

.tier-list { display: grid; gap: 0.375rem; padding-left: 0.25rem; }
.tier-list li {
  display: flex; align-items: flex-start; gap: 0.625rem;
  font-size: 0.875rem; line-height: 1.6;
  color: color-mix(in oklab, var(--foreground) 70%, transparent);
}
.tier-list li::before {
  content: ''; flex-shrink: 0; margin-top: 0.6rem;
  width: 4px; height: 4px; border-radius: 999px; background: var(--bullet, var(--free-dot));
}
.tier-note {
  margin-top: 0.75rem; font-size: 0.6875rem; line-height: 1.5; font-style: italic;
  color: color-mix(in oklab, var(--foreground) 45%, transparent);
}

/* ---------- alternating deep-dive showcase ---------- */
.showcase { display: grid; gap: clamp(4rem, 8vw, 7rem); }
.showcase-row { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .showcase-row { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 5rem); }
  .showcase-row.flip .showcase-art { order: 2; }
}

.showcase-art { position: relative; display: flex; justify-content: center; }
.showcase-art .halo {
  position: absolute; inset: 10% 5%; border-radius: 999px; filter: blur(70px);
  background: var(--halo, color-mix(in oklab, var(--lilac) 45%, transparent));
  pointer-events: none;
}
.showcase-art .phone { --phone-w: 268px; position: relative; }

.showcase-copy h3 {
  margin-top: 0.75rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.875rem, 3.5vw, 2.75rem); line-height: 1.08; letter-spacing: -0.025em;
}
.showcase-copy > p {
  margin-top: 1rem; font-size: 1.0625rem; line-height: 1.7;
  color: color-mix(in oklab, var(--foreground) 58%, transparent);
}
.showcase-points { margin-top: 1.75rem; display: grid; gap: 0.875rem; }
.showcase-points li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9375rem; line-height: 1.6; }
.showcase-points .tick {
  flex-shrink: 0; margin-top: 0.15rem;
  width: 1.25rem; height: 1.25rem; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--halo, color-mix(in oklab, var(--lilac) 55%, transparent));
}
.showcase-points .tick svg { width: 0.7rem; height: 0.7rem; stroke: color-mix(in oklab, var(--foreground) 75%, transparent); }
.showcase-points strong { font-weight: 600; }
.showcase-points span { color: color-mix(in oklab, var(--foreground) 62%, transparent); }

/* ---------- screen gallery ---------- */
.gallery {
  margin-top: 3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  margin-inline: calc(50% - 50vw);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery-track {
  display: flex; gap: 1.25rem; width: max-content;
  padding: 1rem max(1.5rem, calc(50vw - var(--maxw) / 2)) 2rem;
}
.gallery figure { scroll-snap-align: center; flex-shrink: 0; width: 232px; }
.gallery .phone { --phone-w: 232px; }
.gallery figcaption {
  margin-top: 1rem; text-align: center;
  font-size: 0.8125rem; line-height: 1.5;
  color: color-mix(in oklab, var(--foreground) 55%, transparent);
}
.gallery figcaption strong {
  display: block; font-weight: 500; font-size: 0.9375rem;
  color: var(--foreground); font-family: var(--font-display); letter-spacing: -0.01em;
}
.gallery-hint {
  text-align: center; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in oklab, var(--foreground) 40%, transparent);
}

/* ---------- security ---------- */
.security-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .security-grid { grid-template-columns: 1fr 1fr; } }
.security-cards { display: grid; gap: 1rem; }
@media (min-width: 640px) { .security-cards { grid-template-columns: repeat(2, 1fr); } }
.security-card { border-radius: 1.5rem; padding: 1.5rem; transition: box-shadow 0.3s; }
.security-card:hover { box-shadow: var(--shadow-soft); }
.security-card .icon {
  width: 2.75rem; height: 2.75rem; border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8); display: grid; place-items: center;
  box-shadow: var(--shadow-soft);
}
.security-card .icon svg { width: 1.25rem; height: 1.25rem; stroke: var(--foreground); }
.security-card h3 { margin-top: 1rem; font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; }
.security-card p {
  margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.6;
  color: color-mix(in oklab, var(--foreground) 60%, transparent);
}
.security-footnote {
  margin-top: 2rem; font-size: 0.8125rem; line-height: 1.65;
  color: color-mix(in oklab, var(--foreground) 50%, transparent);
}
.security-footnote a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; gap: 1.5rem; align-items: stretch; }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 30rem)); justify-content: center; } }
.plan-list li strong { font-weight: 600; }

/* Marks a line in a plan that is bought but not yet shipped. Quiet, but never
   absent — a plan list is the surface people rely on when deciding to pay. */
.plan-soon {
  font-style: normal; font-size: 0.625rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 0.1rem 0.4rem; border-radius: 999px; margin-left: 0.3rem;
  background: color-mix(in oklab, var(--foreground) 8%, transparent);
  color: color-mix(in oklab, var(--foreground) 50%, transparent);
  white-space: nowrap;
}
.plan-dark .plan-soon { background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.6); }

/* The free card is a full, fair column — the comparison is the point. The only
   concession is the price size: £0 set at the same scale as £19.99 became the
   loudest thing in the section, which is not where the eye should land. */
.plan-quiet .plan-amount .num { font-size: clamp(1.875rem, 3.5vw, 2.25rem); }

.plan-allowance {
  margin: -0.5rem 0 1.5rem;
  font-size: 0.6875rem; line-height: 1.5;
  color: color-mix(in oklab, var(--foreground) 45%, transparent);
}
.plan-dark .plan-allowance { color: rgba(255, 255, 255, 0.45); }

.pricing-fine {
  max-width: 52rem; margin: 2.5rem auto 0;
  font-size: 0.6875rem; line-height: 1.7; text-align: center;
  color: color-mix(in oklab, var(--foreground) 42%, transparent);
}

.plan {
  position: relative; display: flex; flex-direction: column;
  border-radius: 2.25rem; padding: clamp(1.75rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s, box-shadow 0.5s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.plan-dark { background: oklch(0.3 0 0 / 0.85); color: #fff; }
.plan-dark .plan-desc { color: rgba(255, 255, 255, 0.55); }
.plan-dark .plan-rule { background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent); }
.plan-dark .plan-list li { color: rgba(255, 255, 255, 0.75); }
.plan-dark .plan-list li::before { background: rgba(255, 255, 255, 0.25); }
.plan-dark .plan-note { color: rgba(255, 255, 255, 0.5); }

.plan-flag {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  border-radius: 999px; padding: 0.3rem 0.9rem;
  font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.22em; font-weight: 500;
  background: var(--foreground); color: var(--primary-foreground);
  white-space: nowrap;
}
.plan-badge {
  display: inline-flex; width: fit-content; align-items: center;
  border-radius: 999px; padding: 0.25rem 0.75rem; margin-bottom: 1.25rem;
  font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.22em; font-weight: 500;
}
.plan h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 1.65rem); line-height: 1.2; letter-spacing: -0.02em;
}
.plan-desc {
  margin-top: 0.625rem; font-size: 0.875rem; line-height: 1.6; min-height: 2.5rem;
  color: color-mix(in oklab, var(--foreground) 55%, transparent);
}
.plan-price { margin-top: 1.5rem; }
.plan-was { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; margin-bottom: 0.25rem; }
.plan-was s { text-decoration-color: rgba(255, 255, 255, 0.3); }
.plan-amount { display: flex; align-items: baseline; gap: 0.25rem; }
.plan-amount .num { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.25rem, 5vw, 3rem); letter-spacing: -0.02em; }
.plan-amount .per { font-size: 0.875rem; opacity: 0.55; }
.plan-tags { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.375rem; }
/* Holds a short sentence (the early-bird term), not a one-word label, so it
   is sentence case — uppercase + wide tracking made it unreadable. */
.plan-tag {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 0.2rem 0.7rem; font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.01em; line-height: 1.4;
  background: rgba(255, 255, 255, 0.85); color: oklch(0.38 0.06 315);
}
.plan-inherits {
  margin-top: 1.25rem; display: inline-flex; width: fit-content; align-items: center;
  border-radius: 999px; padding: 0.375rem 0.875rem; font-size: 0.6875rem; font-weight: 500;
}
.plan-rule {
  margin-block: 1.5rem; height: 1px; border: 0;
  background: linear-gradient(to right, transparent, color-mix(in oklab, var(--foreground) 10%, transparent), transparent);
}
.plan-list { display: grid; gap: 0.5rem; margin-bottom: 1.75rem; }
.plan-list li {
  position: relative; padding-left: 0.875rem;
  font-size: 0.84375rem; line-height: 1.6;
  color: color-mix(in oklab, var(--foreground) 75%, transparent);
}
.plan-list li::before {
  content: ''; position: absolute; left: 0; top: 0.55rem;
  width: 4px; height: 4px; border-radius: 999px;
  background: color-mix(in oklab, var(--foreground) 25%, transparent);
}
.plan-foot { margin-top: auto; }
.plan-foot .btn { width: 100%; }
.plan-note {
  margin-top: 0.75rem; text-align: center;
  font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: color-mix(in oklab, var(--foreground) 45%, transparent);
}
.plan-dark .btn-dark { background: #fff; color: oklch(0.3 0 0); box-shadow: none; }

/* ---------- waitlist ---------- */
.waitlist-card {
  position: relative; overflow: hidden;
  border-radius: 2.5rem; padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-float);
}
.waitlist-card .blob-a {
  position: absolute; top: -5rem; right: -5rem; width: 18rem; height: 18rem;
  border-radius: 999px; filter: blur(64px); pointer-events: none;
  background: color-mix(in oklab, var(--blush) 50%, transparent);
}
.waitlist-card .blob-b {
  position: absolute; bottom: -5rem; left: -5rem; width: 18rem; height: 18rem;
  border-radius: 999px; filter: blur(64px); pointer-events: none;
  background: color-mix(in oklab, var(--lilac) 50%, transparent);
}
.waitlist-inner { position: relative; text-align: center; }
.waitlist-inner h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -0.025em;
}
.waitlist-inner > p {
  margin-top: 1rem; margin-inline: auto; max-width: 28rem;
  color: color-mix(in oklab, var(--foreground) 60%, transparent);
}
.waitlist-form {
  position: relative; margin: 2.5rem auto 0; max-width: 28rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.waitlist-form input {
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.875rem 1.25rem; font-size: 0.875rem; outline: none;
  transition: box-shadow 0.2s;
}
.waitlist-form input:focus {
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--foreground) 20%, transparent);
}
.waitlist-form .btn { margin-top: 0.25rem; padding-block: 0.875rem; }
.form-fine {
  font-size: 0.6875rem; text-align: center;
  color: color-mix(in oklab, var(--foreground) 50%, transparent);
}
.form-fine a { text-decoration: underline; text-underline-offset: 2px; }
.form-status { font-size: 0.8125rem; text-align: center; min-height: 1.2rem; }
.form-status.err { color: oklch(52% 0.19 25); }
.form-status.ok { color: oklch(45% 0.11 165); }
/* Honeypot — a real person never sees or fills this. */
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 2.5rem; }
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-brand img { width: 1.5rem; height: 1.5rem; object-fit: contain; }
.footer-brand .name { font-family: var(--font-display); font-size: 1.125rem; }
.footer-brand .copy {
  margin-left: 0.5rem; font-size: 0.75rem;
  color: color-mix(in oklab, var(--foreground) 50%, transparent);
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; font-size: 0.75rem; }
.footer-links a { color: color-mix(in oklab, var(--foreground) 60%, transparent); }
.footer-links a:hover { color: var(--foreground); }
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* Companies House details — required on the site, but read as small print. */
.footer-entity {
  margin-top: 1.75rem; max-width: 46rem;
  font-size: 0.6875rem; line-height: 1.7;
  color: color-mix(in oklab, var(--foreground) 45%, transparent);
}
.footer-entity strong { font-weight: 600; color: color-mix(in oklab, var(--foreground) 60%, transparent); }
.footer-entity a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- animated demo ---------- */
/* Inside the phone this deliberately uses the APP's design language, not the
   website's: Georgia + Manrope on a warm cream gradient, with the colours from
   src/constants/theme.ts. It sits beside real screenshots, so anything else
   would read as a different product. */
.demo-section { padding-top: 0; }

.demo-stage {
  display: grid; gap: 3rem; align-items: center; justify-items: center;
}
@media (min-width: 900px) {
  .demo-stage {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 6rem); justify-items: start;
  }
}

.demo-phone { --phone-w: 300px; }
.demo-screen {
  display: flex; flex-direction: column;
  /* Matches Gradients.chatWash over CHAT_BG in the app — a wash of lilac
     behind the header that is spent before the first message. When the app's
     chat colours change, change them here too: this phone sits inches from
     real screenshots and any drift shows immediately. */
  background: linear-gradient(#E4DEF5 0%, #F2F0FA 20%, #FAFAF8 34%);
  font-family: 'Manrope', var(--font-sans);
  color: #2F2F2F;
  font-size: 11px; line-height: 1.45;
}

/* Left-aligned beside a face, matching `identity` in chat-styles.ts. The title
   used to be centred here too, and drifted off-centre for the same reason it
   did in the app: one control on the left, actions on the right. */
.d-head {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 26px 12px 8px;
}
.d-back, .d-dots { font-size: 15px; color: #2F2F2F; width: 18px; text-align: center; }
.d-face {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 999px;
  background: #BFE3DE; color: #2E6B63;
  font-size: 8px; font-weight: 600;
  display: grid; place-items: center;
}
.d-title { flex: 1; min-width: 0; text-align: left; line-height: 1.2; }
.d-title strong {
  display: block; font-family: Georgia, serif; font-weight: 400; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.d-title span { font-size: 8.5px; color: #6F6F6F; }

.d-body {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 8px; padding: 0 12px 4px;
}
.d-day {
  align-self: center; font-size: 8px; color: #6F6F6F;
  background: rgba(0, 0, 0, 0.045); border-radius: 999px; padding: 2px 9px;
}

/* Steps are hidden until the sequence reaches them. */
.demo-screen [data-step] { opacity: 0; transform: translateY(8px); }
.demo-screen [data-step].on {
  opacity: 1; transform: none;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.32, 1);
}

.d-in { display: flex; gap: 6px; align-items: flex-start; }
.d-in > div { flex: 1; }
/* Only yours gets a bubble, as in the app: the co-parent's messages are plain
   text on the surface. Mirrors bubbleInPlain/bubbleOut in chat-styles.ts. */
.d-in p { font-size: 11px; padding: 2px 0; }
.d-avatar {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 999px;
  background: #BFE3DE; color: #2E6B63;
  font-size: 7.5px; font-weight: 600;
  display: grid; place-items: center; margin-top: 2px;
}
.d-time { display: block; margin-top: 2px; font-size: 7.5px; color: #9C9A98; }

.d-out { align-self: flex-end; max-width: 82%; text-align: right; }
.d-bubble {
  /* Mirrors bubbleOut in chat-styles.ts: translucent white, drawn by its
     hairline rather than its fill. */
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #EDEBE6;
  border-radius: 14px; border-bottom-right-radius: 5px;
  padding: 7px 10px; text-align: left; font-size: 11px;
}

/* The private nudge — lavender wash, plum ink, per Colors.lavenderSoft/plum. */
.d-nudge { margin-top: 6px; }
.d-nudge-pill {
  display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap;
  background: #F0EAF9; color: #831358;
  border-radius: 999px; padding: 4px 8px; font-size: 8.5px;
}
.d-nudge-pill strong { font-weight: 600; }
.d-eye { font-size: 9px; }
.d-x { color: #9C9A98; margin-left: 2px; }
.d-private { display: block; margin-top: 3px; font-size: 7.5px; color: #9C9A98; }

.d-saved {
  align-self: center; margin-top: 2px;
  font-size: 8.5px; font-weight: 600; color: #831358;
}

.d-composer {
  flex-shrink: 0; display: flex; align-items: center; gap: 6px;
  padding: 6px 12px 16px;
}
.d-plus {
  width: 24px; height: 24px; border-radius: 999px; flex-shrink: 0;
  background: #2F2F2F; color: #fff; font-size: 13px;
  display: grid; place-items: center;
}
.d-input {
  flex: 1; background: #fff; border-radius: 999px;
  padding: 6px 12px; font-size: 10px; color: #9C9A98;
}

/* Tone sheet, over the conversation. */
.d-sheet {
  position: absolute; inset-inline: 0; bottom: 0;
  background: #fff; border-radius: 20px 20px 0 0;
  padding: 8px 12px 16px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.32, 1);
  z-index: 3;
}
.demo-screen .d-sheet.on { opacity: 1; transform: translateY(0); }
.d-sheet-grab {
  width: 32px; height: 3px; border-radius: 999px; background: #E3E0DD;
  margin: 0 auto 8px;
}
.d-sheet-title { font-family: Georgia, serif; font-size: 13px; }
.d-sheet-sub { font-size: 8.5px; color: #6F6F6F; margin-bottom: 8px; }
.d-opt {
  border-top: 1px solid #F0EEEC; padding: 7px 0;
  transition: background-color 0.4s;
}
.d-opt-head { display: flex; align-items: baseline; gap: 5px; }
.d-opt-head strong { font-size: 9.5px; font-weight: 600; }
.d-opt-head span { font-size: 8px; color: #9C9A98; }
.d-opt p { margin-top: 3px; font-size: 8.5px; color: #6F6F6F; }
.d-opt-pick { border-radius: 10px; padding-inline: 7px; }
.d-sheet.picked .d-opt-pick { background: #FAF1E4; }
.d-use {
  display: none; margin-top: 6px; text-align: center;
  background: #2F2F2F; color: #fff; border-radius: 999px;
  padding: 5px; font-size: 9px; font-weight: 600;
}
.d-sheet.picked .d-use { display: block; }

/* Step captions beside the phone. */
.demo-steps { counter-reset: s; display: grid; gap: 1.25rem; max-width: 32rem; }
.demo-steps li {
  counter-increment: s; position: relative; padding-left: 2.75rem;
  font-size: 0.9375rem; line-height: 1.6;
  color: color-mix(in oklab, var(--foreground) 55%, transparent);
  opacity: 0.45; transition: opacity 0.4s;
}
.demo-steps li::before {
  content: counter(s); position: absolute; left: 0; top: -0.1rem;
  width: 1.75rem; height: 1.75rem; border-radius: 999px;
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 600;
  background: color-mix(in oklab, var(--lilac) 40%, transparent);
  color: color-mix(in oklab, var(--foreground) 70%, transparent);
  transition: background-color 0.4s, color 0.4s;
}
.demo-steps li strong { font-weight: 600; color: var(--foreground); }
.demo-steps li.active { opacity: 1; }
.demo-steps li.active::before { background: var(--foreground); color: var(--primary-foreground); }

.demo-fine {
  margin-top: 3rem; text-align: center;
  font-size: 0.75rem; color: color-mix(in oklab, var(--foreground) 45%, transparent);
}
.demo-fine a { text-decoration: underline; text-underline-offset: 2px; }

/* Reduced motion: show the finished conversation, no replay. */
@media (prefers-reduced-motion: reduce) {
  .demo-screen [data-step] { opacity: 1; transform: none; }
  .d-sheet { display: none; }
  .demo-steps li { opacity: 1; }
}

/* ---------- resolution demo ---------- */
/* Shares the phone, header and message styles with the tone-check demo above;
   only the Resolution bar and the panel that floats over the chat are new. */

.res-screen .d-body { justify-content: flex-start; padding-top: 10px; }

/* Staged reveal. The panel animates on transform (it slides); everything
   inside it fades. `.off` retires a step that has been superseded — the
   "Reviewing…" line once it is writing, the buttons once you have answered. */
.res-screen [data-rstep]:not(.r-panel) { opacity: 0; transform: translateY(6px); }
.res-screen [data-rstep].on:not(.r-panel) {
  opacity: 1; transform: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.32, 1);
}
.res-screen [data-rstep].off { display: none; }

/* Full-width bar under the header, matching resBar in chat-screen.tsx. */
.r-bar {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px;
  border-bottom: 1px solid #EDEBE6;
}
.r-badge {
  width: 18px; height: 18px; border-radius: 999px;
  background: linear-gradient(135deg, #A83D7B, #6E0F49);
  color: #fff; font-size: 9px;
  display: grid; place-items: center;
}
.r-bar-label { font-size: 10.5px; font-weight: 600; }
.r-bar-spacer { flex: 1; }
.r-chev { font-size: 11px; color: #6F6F6F; }

/* The panel sits over the conversation rather than in it. */
/* Sized by its content and anchored to the bottom, so the conversation it is
   resolving stays visible above it — as in the app, where the panel floats
   over the chat rather than replacing it. Pinning it to a fixed top left a
   third of the phone empty once the steps had all arrived. */
.r-panel {
  position: absolute; inset-inline: 0; bottom: 0; top: auto;
  max-height: 84%;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.13);
  padding: 8px 12px 14px;
  overflow: hidden;
  transform: translateY(101%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.32, 1);
  z-index: 4;
}
.res-screen .r-panel.on { opacity: 1; transform: translateY(0); }
.r-panel-title { font-family: Georgia, serif; font-size: 14px; margin-bottom: 8px; }

.r-progress {
  display: flex; align-items: center; gap: 7px;
  font-size: 10px; color: #6F6F6F;
  padding: 5px 0;
}
.r-spinner {
  width: 11px; height: 11px; border-radius: 999px; flex-shrink: 0;
  border: 2px solid #E7DDF0; border-top-color: #831358;
  animation: r-spin 0.8s linear infinite;
}
@keyframes r-spin { to { transform: rotate(360deg); } }

.r-card { display: grid; gap: 8px; }
.r-summary { font-size: 10px; line-height: 1.5; color: #6F6F6F; }

/* Two washes, matching ProposalStep in the app. Pale enough that the pair
   reads as structure rather than as two competing colour fields — which is
   what the amber-and-lavender version they replaced did. */
.r-block {
  background: #FAF7FB; border-radius: 12px; padding: 8px 10px;
}
.r-block-next { background: #F5F7FA; }
.r-label {
  display: block; font-size: 8px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: #831358; margin-bottom: 3px;
}
.r-block-next .r-label { color: #2D5990; }
.r-block p { font-size: 10px; line-height: 1.5; }

.r-hint { font-size: 9px; color: #9C9A98; }

.r-actions { display: flex; gap: 7px; }
.r-agree, .r-decline {
  flex: 1; text-align: center; border-radius: 999px;
  padding: 7px; font-size: 10px; font-weight: 600;
}
.r-agree { background: #2F2F2F; color: #fff; }
.r-decline { background: #F1EFEC; color: #6F6F6F; }

.r-status { display: grid; gap: 5px; }
.r-status-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px;
}
.r-agreed { font-size: 9.5px; font-weight: 600; color: #2E7D4F; }
.r-waiting { font-size: 9.5px; font-weight: 600; color: #B7791F; }

.r-done { font-size: 10px; font-weight: 600; color: #2E7D4F; }

.r-save { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.r-save-q { font-size: 10px; width: 100%; }
.r-chip {
  border-radius: 999px; padding: 4px 10px; font-size: 9.5px;
  background: #F1EFEC; color: #6F6F6F;
}
.r-chip-on { background: #F0EAF9; color: #831358; font-weight: 600; }

/* Reduced motion: show the resolved end state, no replay. */
@media (prefers-reduced-motion: reduce) {
  .r-panel { transform: none; }
  .res-screen [data-rstep] { opacity: 1; }
  .r-waiting, .r-progress { display: none; }
}

/* ---------- legal pages (privacy.html, terms.html) ---------- */
/* Long-form reading: narrow measure, generous leading, no animation. */
.legal { padding-top: 8rem; padding-bottom: 5rem; }
.legal .legal-back { margin-bottom: 2rem; font-size: 0.875rem; }
.legal .legal-back a { color: color-mix(in oklab, var(--foreground) 60%, transparent); }
.legal .legal-back a:hover { color: var(--foreground); }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.05; }
.legal-updated {
  margin-top: 0.75rem; font-size: 0.8125rem;
  color: color-mix(in oklab, var(--foreground) 50%, transparent);
}
.legal-draft {
  display: inline-block; margin-top: 1rem;
  border-radius: 999px; padding: 0.35rem 0.9rem;
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.16em;
  background: var(--nude); color: color-mix(in oklab, var(--foreground) 70%, transparent);
}
.legal-intro {
  margin-top: 2rem; font-size: 1.0625rem; line-height: 1.75;
  color: color-mix(in oklab, var(--foreground) 72%, transparent);
}
.legal section { margin-top: 2.5rem; }
.legal section h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.3;
}
.legal section p {
  margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.8;
  color: color-mix(in oklab, var(--foreground) 70%, transparent);
}
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal-rule {
  margin: 3.5rem 0 1.5rem; height: 1px; border: 0;
  background: linear-gradient(to right, transparent, color-mix(in oklab, var(--foreground) 12%, transparent), transparent);
}
.legal-entity {
  font-size: 0.75rem; line-height: 1.7;
  color: color-mix(in oklab, var(--foreground) 50%, transparent);
}

/* ---------- scroll reveal ---------- */
/* Gated on .js, which the inline script in <head> adds. Without JavaScript
   nothing ever adds .in, so ungated these rules would hide most of the page
   permanently — from readers with JS off and from crawlers that don't run it. */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.in { animation: fade-up 0.8s ease-out both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
