/* ═══════════════════════════════════════════════════════════════════════════
   CRA Shield — design system (Salient-derived)
   ═══════════════════════════════════════════════════════════════════════════

   WHY THIS FILE EXISTS
   The inline <style> above is a PURGED Tailwind 3 JIT build (~18KB) containing
   only the ~228 classes the markup already used. It has no `rounded-3xl`, no
   `py-32`, no `max-w-7xl`, no `order-first`, no `ring-*`, no `text-7xl`, and no
   `lg:` utilities. Writing Salient's Tailwind class names into the markup would
   therefore resolve to NOTHING and fail silently.

   So: the blob is frozen (never regenerate it) and this file layers the Salient
   design language on top — partly by recalibrating the utilities already in the
   blob, partly with new semantic classes. Loaded AFTER the blob so it wins.
   Fully reversible: delete the <link> and the old design returns.

   NB `.container` already exists in the blob (Tailwind v3's container
   component) — never define that name here. Use `.shell`.

   Keep the token block in sync with @theme in src/styles/globals.css.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Typography scale — Salient's, verbatim.
        The signature is the LINE HEIGHTS: text-sm gets 1.5rem where Tailwind
        ships 1.25rem, text-base 1.75rem, text-lg 2rem. Reads editorial. ── */
  --text-xs: 0.75rem;      --text-xs-lh: 1rem;
  --text-sm: 0.875rem;     --text-sm-lh: 1.5rem;
  --text-base: 1rem;       --text-base-lh: 1.75rem;
  --text-lg: 1.125rem;     --text-lg-lh: 2rem;
  --text-xl: 1.25rem;      --text-xl-lh: 2rem;
  --text-2xl: 1.5rem;      --text-2xl-lh: 2rem;
  --text-3xl: 2rem;        --text-3xl-lh: 2.5rem;
  --text-4xl: 2.5rem;      --text-4xl-lh: 3.5rem;
  --text-5xl: 3rem;        --text-5xl-lh: 3.5rem;
  --text-6xl: 3.75rem;     --text-6xl-lh: 1;
  --text-7xl: 4.5rem;      --text-7xl-lh: 1.1;
  --tracking-display: -0.025em;

  /* ── Fonts. Lexend for display, DM Sans stays for body. ── */
  --font-display: 'Lexend', 'DM Sans', system-ui, sans-serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ── Brand: EU-flag identity, preserved exactly. #003399 never changes. ── */
  --brand-50: #f0f4ff;
  --brand-100: #dbe4ff;
  --brand-200: #bac8ff;
  --brand-300: #8ea6f2;
  --brand-400: #5a76d9;
  --brand-500: #003399;
  --brand-600: #002b80;
  --brand-700: #002266;
  --brand-800: #001a4d;
  --brand-900: #001030;
  --accent: #ffcc00;
  --accent-600: #e6b800;
  --accent-soft: rgb(255 204 0 / 0.55);

  /* ── Neutrals: Salient's slate ramp replaces Tailwind gray.
        Slate is cooler and its mid-tones are darker, which is why Salient body
        copy reads more confidently than gray-500 does. ── */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Semantic roles */
  --ink: var(--slate-900);
  --body: var(--slate-700);
  --muted: var(--slate-500);
  --faint: var(--slate-400);
  --line: var(--slate-200);
  --line-soft: var(--slate-100);
  --surface: #ffffff;
  --surface-alt: var(--slate-50);

  /* ── Radii. Salient is pill for actions, generous for cards. ── */
  --radius-control: 0.5rem;
  --radius-frame: 0.75rem;
  --radius-card: 1rem;
  --radius-plan: 1.5rem;
  --radius-panel: 2rem;
  --radius-pill: 9999px;

  /* ── Layout + rhythm. Salient sections are py-20 sm:py-32. ── */
  --shell-max: 80rem;
  --measure-headline: 56rem;
  --measure-prose: 40rem;
  /* Shared by the pricing heading block AND the plans grid so the two can never
     drift out of alignment — that mismatch is what made the heading look off. */
  --plans-max: 54rem;
  --section-y: 5rem;
  --section-y-lg: 8rem;
}

/* ───────────────────────────────────────────────────────────────────────────
   1. BASE
   ─────────────────────────────────────────────────────────────────────────── */

body {
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

/* Headings take the display face and tight tracking — Salient's core move. */
h1, h2, h3, h4,
.font-display {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-display);
  color: var(--ink);
}

/* Salient headings are font-medium, not bold — lighter and more composed at
   large sizes. Overrides the .font-bold in the existing markup. */
h1.font-bold, h2.font-bold {
  font-weight: 500;
}
h3.font-bold, h4.font-bold { font-weight: 600; }

/* ───────────────────────────────────────────────────────────────────────────
   2. TYPE SCALE RECALIBRATION
   Re-point the utilities already in the blob at Salient's sizes + line heights.
   ─────────────────────────────────────────────────────────────────────────── */

.text-xs   { font-size: var(--text-xs);   line-height: var(--text-xs-lh); }
.text-sm   { font-size: var(--text-sm);   line-height: var(--text-sm-lh); }
.text-xl   { font-size: var(--text-xl);   line-height: var(--text-xl-lh); }
.text-3xl  { font-size: var(--text-3xl);  line-height: var(--text-3xl-lh); }
.text-4xl  { font-size: var(--text-4xl);  line-height: var(--text-4xl-lh); }
.text-5xl  { font-size: var(--text-5xl);  line-height: var(--text-5xl-lh); }

@media (min-width: 768px) {
  .md\:text-4xl { font-size: var(--text-4xl); line-height: var(--text-4xl-lh); }
  .md\:text-6xl { font-size: var(--text-6xl); line-height: var(--text-6xl-lh); }
}

/* ───────────────────────────────────────────────────────────────────────────
   3. COLOUR RECALIBRATION — gray → slate
   ─────────────────────────────────────────────────────────────────────────── */

.text-gray-900 { color: var(--ink); }
.text-gray-700 { color: var(--body); }
.text-gray-600 { color: var(--slate-600); }
.text-gray-500 { color: var(--body); }   /* body prose: darker, more readable */
.text-gray-400 { color: var(--muted); }  /* was #9ca3af — too faint */
.text-gray-300 { color: var(--slate-300); }

.bg-gray-50, .bg-gray-50\/50 { background-color: var(--surface-alt); }
.bg-gray-900 { background-color: var(--ink); }
.border-gray-100 { border-color: var(--line-soft); }
.border-gray-200 { border-color: var(--line); }
.border-gray-300 { border-color: var(--slate-300); }
.hover\:bg-gray-50:hover { background-color: var(--surface-alt); }
.hover\:border-gray-300:hover { border-color: var(--slate-300); }

/* ───────────────────────────────────────────────────────────────────────────
   4. PILL ACTIONS — Salient's most recognisable signature
   Every marketing CTA becomes rounded-full. Targets the existing markup's
   rounded-lg buttons/links rather than requiring new class names.
   ─────────────────────────────────────────────────────────────────────────── */

a.rounded-lg[class*="bg-brand"],
a.rounded-lg[class*="border-gray"],
a.rounded-lg[class*="bg-white"],
a.rounded-lg[class*="bg-accent"],
a.rounded-lg[class*="bg-gray-900"],
a[data-ga-event],
.btn-pill {
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: var(--text-sm-lh);
  transition: background-color .15s, color .15s, box-shadow .15s, border-color .15s;
}

/* Nav pill CTA sizing */
nav a[data-ga-event] { padding: 0.5rem 1.25rem; }

/* Primary */
.btn-pill--primary,
a[data-ga-event][class*="bg-brand-500"] {
  background: var(--brand-500);
  color: #fff;
}
.btn-pill--primary:hover,
a[data-ga-event][class*="bg-brand-500"]:hover { background: var(--brand-600); }

/* Outline — Salient uses a ring, so mimic with an inset shadow */
.btn-pill--outline {
  background: transparent;
  color: var(--body);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-pill--outline:hover {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--slate-300);
}

/* On dark/brand bands */
.btn-pill--on-dark { background: #fff; color: var(--brand-500); }
.btn-pill--on-dark:hover { background: var(--brand-50); }

/* ───────────────────────────────────────────────────────────────────────────
   5. LAYOUT + RHYTHM
   ─────────────────────────────────────────────────────────────────────────── */

.shell {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .shell { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .shell { padding-inline: 2rem; } }

/* Salient's generous vertical rhythm, applied to the existing py-24 sections */
.py-24 { padding-top: var(--section-y); padding-bottom: var(--section-y); }
@media (min-width: 640px) {
  .py-24 { padding-top: var(--section-y-lg); padding-bottom: var(--section-y-lg); }
}

/* ───────────────────────────────────────────────────────────────────────────
   6. HEADLINE MARK — the hand-drawn underline accent
   Salient scribbles under a headline word. Here it uses the EU yellow, which
   ties the signature to the brand instead of importing Salient's blue.
   ─────────────────────────────────────────────────────────────────────────── */

.headline-mark {
  position: relative;
  white-space: nowrap;
  color: var(--brand-500);
}
/* Anchored to the BOTTOM of the span, not `top: 66%`.
   Salient's marked word sits in flowing text; ours is on its own <br> line with
   leading-[1.15], so a top-percentage offset plus 0.58em overshoots the line box
   and collides with the line beneath. Bottom-anchoring is font-size agnostic. */
.headline-mark > svg {
  position: absolute;
  left: 0;
  bottom: 0.06em;
  height: 0.4em;
  width: 100%;
  fill: var(--accent-soft);
  pointer-events: none;
}
.headline-mark > span { position: relative; }

/* The old gradient-text treatment is superseded by the mark. */
.text-gradient {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  color: var(--brand-500);
}

/* The yellow underline bar under section headings gets softer. */
.line-decoration::after {
  background: var(--accent);
  height: 3px;
  width: 40px;
  margin-top: 14px;
}

/* ───────────────────────────────────────────────────────────────────────────
   7. CARDS + SURFACES
   ─────────────────────────────────────────────────────────────────────────── */

.rounded-2xl { border-radius: var(--radius-card); }
.rounded-xl { border-radius: var(--radius-frame); }

/* ───────────────────────────────────────────────────────────────────────────
   6b. HOW IT WORKS — left-to-right step flow
   Three steps reading horizontally with a connector between them, stacking to a
   vertical flow on mobile (with the connector rotating to match).
   ─────────────────────────────────────────────────────────────────────────── */

.steps-band { padding-block: var(--section-y); background: var(--surface); }
@media (min-width: 640px) { .steps-band { padding-block: var(--section-y-lg); } }

.steps-band__intro { max-width: var(--measure-prose); margin: 0 auto 4rem; text-align: center; }
.steps-band__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-3xl);
  line-height: var(--text-3xl-lh);
  letter-spacing: var(--tracking-display);
  color: var(--ink);
}
@media (min-width: 640px) {
  .steps-band__title { font-size: var(--text-4xl); line-height: var(--text-4xl-lh); }
}
.steps-band__lede {
  margin-top: 1rem;
  font-size: var(--text-lg);
  line-height: var(--text-lg-lh);
  letter-spacing: var(--tracking-display);
  color: var(--body);
}

.steps {
  display: grid;
  gap: 3rem;
  max-width: var(--measure-prose);
  margin-inline: auto;
  list-style: none;
  padding: 0;
  counter-reset: none;
}
@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    max-width: none;
    align-items: start;
  }
}

.step { position: relative; text-align: center; }

.step__num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-pill);
  background: var(--brand-500);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-lg);
  letter-spacing: 0;
  /* Keeps the disc from sitting on the connector line */
  box-shadow: 0 0 0 6px var(--surface);
}

.step__title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  line-height: var(--text-xl-lh);
  letter-spacing: var(--tracking-display);
  color: var(--ink);
}
.step__body {
  margin-top: .75rem;
  font-size: var(--text-sm);
  line-height: var(--text-sm-lh);
  color: var(--body);
}

/* Connector. Vertical on mobile (below the disc, down to the next step),
   horizontal on desktop (from this disc across the gap to the next one). */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  background: var(--brand-200);
}
/* Mobile: sit the line in the GAP below the whole step, not directly under the
   disc — anchoring it to the disc drew it straight through the title text. */
.step:not(:last-child)::after {
  left: 50%;
  top: 100%;
  margin-top: .75rem;
  width: 1px;
  height: 1.5rem;
  transform: translateX(-50%);
}
@media (min-width: 768px) {
  .step:not(:last-child)::after {
    top: 1.625rem;           /* vertical centre of the 3.25rem disc */
    margin-top: 0;           /* clear the mobile gap offset */
    left: calc(50% + 2rem);
    right: calc(-50% + 2rem);
    width: auto;
    height: 1px;
    transform: none;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   7a. PRICING — Salient's dark band with a solid featured slab
   Salient inverts this whole section: bg-slate-900, every plan in white text,
   and the featured one lifted out on solid blue-600. Here the band stays slate
   (neutral) so the EU brand-500 slab is what pops.
   ─────────────────────────────────────────────────────────────────────────── */

.pricing-band {
  background: var(--slate-900);
  padding-block: var(--section-y);
  color: #fff;
}
@media (min-width: 640px) { .pricing-band { padding-block: var(--section-y-lg); } }

/* Same bounds as .plans, so heading and cards share one optical centre. The
   heading gets the full width (it wrapped awkwardly at 40rem); the lede is
   pulled back to prose width for readability. */
.pricing-band__intro {
  max-width: var(--plans-max);
  margin: 0 auto 4rem;
  text-align: center;
}
.pricing-band__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-3xl);
  line-height: var(--text-3xl-lh);
  letter-spacing: var(--tracking-display);
  color: #fff;
}
@media (min-width: 640px) {
  .pricing-band__title { font-size: var(--text-4xl); line-height: var(--text-4xl-lh); }
}
.pricing-band__lede {
  max-width: var(--measure-prose);
  margin: 1rem auto 0;
  font-size: var(--text-lg);
  line-height: var(--text-lg-lh);
  letter-spacing: var(--tracking-display);
  color: var(--slate-400);
}

/* Salient's "swirly doodle" under a word of the pricing heading. */
.swirl { position: relative; white-space: nowrap; }
.swirl > svg {
  position: absolute;
  left: 0;
  /* Salient uses top:50%/h-[1em]; nudged down so it reads as an underline swirl
     rather than a strikethrough through the x-height. */
  top: 62%;
  height: 0.62em;
  width: 100%;
  fill: var(--accent);
  opacity: .85;
  pointer-events: none;
}
.swirl > span { position: relative; }

.plans {
  display: grid;
  gap: 2rem;
  /* Mobile: one column, held to a readable width and centred. Without the
     max-width a single card stretches the full viewport and looks uncentred. */
  max-width: 26rem;
  margin-inline: auto;
}
/* Two plans, so keep the pair centred rather than letting them stretch the full
   80rem shell — a 2-up grid at full width reads as a gap where a third card was. */
/* Two cards only — hold them to a centred pair rather than letting them span the
   80rem shell, which leaves a gap where the third card used to be. */
@media (min-width: 768px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: var(--plans-max);
    margin-inline: auto;
    align-items: stretch;
  }
}

/* Salient leaves non-featured plans completely transparent on its dark band. That
   works there because the band is the only surface; here it made the Developer
   card dissolve into slate-900 and read as loose text rather than a card. So both
   plans get real card geometry — surface, border, equal padding — and the
   featured one distinguishes itself by being a solid brand slab instead. */
.plan {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-plan);
  background: rgb(255 255 255 / .045);
  border: 1px solid var(--slate-700);
}
@media (min-width: 640px) { .plan { padding-inline: 2rem; } }

/* The featured plan: solid brand slab, and FIRST on mobile so the recommended
   option is what a phone user sees without scrolling (Salient's order-first). */
.plan--featured {
  background: var(--brand-500);
  border-color: var(--brand-400);
  box-shadow: 0 20px 25px -5px rgb(0 16 48 / .45);
  order: -1;
}
/* Reset at the same breakpoint the grid goes 2-up, or Professional would sit on
   the left between 768px and 1024px while the DOM order says otherwise. */
@media (min-width: 768px) { .plan--featured { order: 0; } }

.plan__price {
  order: -2;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-5xl);
  line-height: var(--text-5xl-lh);
  letter-spacing: var(--tracking-display);
  color: #fff;
}
.plan__name {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-lg);
  line-height: var(--text-lg-lh);
  color: #fff;
}
.plan__desc {
  margin-top: .5rem;
  font-size: var(--text-base);
  line-height: var(--text-base-lh);
  color: var(--slate-400);
}
.plan--featured .plan__desc { color: #fff; }

.plan__badge {
  order: -3;
  align-self: flex-start;
  margin-bottom: .75rem;
  background: var(--accent);
  color: var(--brand-800);
  font-size: var(--text-xs);
  line-height: var(--text-xs-lh);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .25rem .625rem;
  border-radius: var(--radius-pill);
}

/* Feature list is order-last in Salient, so it sits below the CTA. */
.plan__features {
  order: 9;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  font-size: var(--text-sm);
  line-height: var(--text-sm-lh);
  color: var(--slate-200);
  list-style: none;
  padding: 0;
}
.plan--featured .plan__features { color: #fff; }
.plan__features li { display: flex; align-items: flex-start; gap: 1rem; }
.plan__check {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--slate-400);
}
.plan--featured .plan__check { color: #fff; }

/* CTAs: outline-on-dark by default, solid white on the featured slab. */
.plan__cta {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: .625rem 1rem;
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
  transition: background-color .15s, color .15s, box-shadow .15s;
  color: #fff;
  /* One step brighter than the card border so the button reads as a control
     rather than merging with the card edge. */
  box-shadow: inset 0 0 0 1px var(--slate-600);
}
.plan__cta:hover { box-shadow: inset 0 0 0 1px var(--slate-400); }
.plan--featured .plan__cta { background: #fff; color: var(--brand-500); box-shadow: none; }
.plan--featured .plan__cta:hover { background: var(--brand-50); }

/* ───────────────────────────────────────────────────────────────────────────
   7b. BACKFILL FOR CLASSES PURGED OUT OF THE BLOB
   The blob was generated from an older markup revision and `md:inline-block`
   never made it in — it has md:flex / md:grid-cols-* / md:order-* / md:text-*
   but not this one. Two elements depend on it: the nav "Log in" and
   "Get Started" links, both `hidden md:inline-block`. With .hidden applying and
   nothing to undo it, BOTH WERE INVISIBLE AT EVERY WIDTH — the header had no
   login button at all. Restoring it here.
   ─────────────────────────────────────────────────────────────────────────── */

@media (min-width: 768px) {
  .md\:inline-block { display: inline-block; }
}

/* ───────────────────────────────────────────────────────────────────────────
   8. NAV
   ─────────────────────────────────────────────────────────────────────────── */

nav.sticky { border-bottom: 1px solid var(--line-soft); }
nav .font-bold { font-family: var(--font-display); font-weight: 600; }
nav a.hover\:text-gray-900 { font-size: var(--text-sm); }

/* ───────────────────────────────────────────────────────────────────────────
   9. FAQ — Salient's static multi-column grid on a tinted band
   ─────────────────────────────────────────────────────────────────────────── */

.faq-band {
  background: var(--surface-alt);
  padding-block: var(--section-y);
  border-top: 1px solid var(--line-soft);
}
@media (min-width: 640px) { .faq-band { padding-block: var(--section-y-lg); } }

.faq-band__intro { max-width: var(--measure-prose); margin-bottom: 4rem; }
.faq-band__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-3xl);
  line-height: var(--text-3xl-lh);
  letter-spacing: var(--tracking-display);
  color: var(--ink);
}
@media (min-width: 640px) {
  .faq-band__title { font-size: var(--text-4xl); line-height: var(--text-4xl-lh); }
}
.faq-band__lede {
  margin-top: 1rem;
  font-size: var(--text-lg);
  line-height: var(--text-lg-lh);
  letter-spacing: var(--tracking-display);
  color: var(--body);
}
.faq-band__lede a { color: var(--brand-500); font-weight: 600; }
.faq-band__lede a:hover { text-decoration: underline; }

.faqs {
  display: grid;
  gap: 2.5rem 3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 768px) { .faqs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.faq__q {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  line-height: 1.75rem;
  color: var(--ink);
}
.faq__a {
  margin-top: 1rem;
  font-size: var(--text-sm);
  line-height: var(--text-sm-lh);
  color: var(--body);
}

/* ───────────────────────────────────────────────────────────────────────────
   10. FOOTER
   ─────────────────────────────────────────────────────────────────────────── */

footer .bg-brand-900, footer.bg-brand-900 { background: var(--brand-900); }
