/* Insiderz — staging landing page
   Tokens sourced from Branding book/BRANDING.md v4.1.1 — do not invent values here.
   Landing uses a marketing display scale for headings; component tokens
   (button/input heights, focus ring, borders) follow §4/§6/§11 exactly.
   Layout modelled on the live reference: theinsiderz.co.uk/static-blog/index.html */

/* Fonts are self-hosted (assets/fonts) — no request to Google, so no visitor IP leaves the site. */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/work-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/work-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  /* ── Brand ───────────────────────────── */
  --brand-orange:         #FF7703;
  --brand-blue:           #3600C9;

  /* ── Surfaces ────────────────────────── */
  --slate:                #0E172A;
  --page:                 #F1F5F9;
  --surface:              #FFFFFF;
  --border:               #E5E7EB;

  /* ── Grays ───────────────────────────── */
  --gray-light:           #F4F2F2;
  --gray-medium:          #C6C6C6;   /* NOTE: v4.1 — no longer used for control borders */
  --gray-mid:             #8E8E8E;   /* control borders live here */
  --gray-dark:            #444444;

  /* ── Text ────────────────────────────── */
  --text-primary:         #302224;
  --text-muted:           #5F5E5A;
  --text-placeholder:     #D9D9D9;
  --text-on-slate:        #FFFFFF;
  --text-on-slate-muted:  rgba(255, 255, 255, 0.78);

  /* ── Semantic — base (v4.0) ──────────── */
  --yellow-star:          #FDD836;
  --star-empty:           #BEBEBE;
  --color-error:          #D32F2F;

  /* ── Semantic — badges/solid (v4.1) ──── */
  --color-warning:        #C2410C;
  --color-success:        #2E7D32;
  --color-info:           #3600C9;   /* alias of --brand-blue */

  /* ── Semantic — alert/banner/toast tint pairs (v4.1) ── */
  --color-success-text:   #166534;
  --color-success-bg:     #DCFCE7;
  --color-warning-text:   #9A3412;
  --color-warning-bg:     #FFEDD5;
  --color-info-bg:        #EDE7FA;
  --color-error-text:     #991B1B;
  --color-error-bg:       #FEE2E2;

  /* ── Interaction-state shades (v4.1) ── */
  --brand-orange-hover:   #E56600;
  --brand-orange-active:  #CC5C00;
  --color-error-hover:    #B71C1C;
  --color-error-active:   #9B1717;
  --slate-hover:          #1A2440;

  /* ── Decorative (illustration only) ──── */
  --peach:                #FFDBC5;

  /* ── Gradient ────────────────────────── */
  --brand-gradient:       linear-gradient(135deg, #FF7703 0%, #3600C9 100%);

  /* ── Type ────────────────────────────── */
  --font-primary:         'Montserrat', system-ui, sans-serif;
  --font-utility:         'Work Sans', system-ui, sans-serif;

  --fs-body:              14px;
  --fs-button:            14px;
  --fs-label:             14px;
  --fs-small:             12px;
  --fs-caption:           12px;
  --fs-utility:           14px;

  --lh-body:              1.5;
  --lh-button:            1;
  --lh-control:           1;
  --lh-label:             1.5;
  --lh-caption:           1.5;
  --lh-heading:           1.2;

  --fw-regular:           400;
  --fw-medium:            500;
  --fw-semibold:          600;
  --fw-bold:              700;
  --fw-extrabold:         800;

  --tracking-utility:     -0.408px;  /* Work Sans only */

  /* ── Radius (v4.1 adds --radius-full) ── */
  --radius-xs:            2px;
  --radius-sm:            4px;
  --radius-md:            6px;
  --radius-lg:            8px;
  --radius-xl:            12px;
  --radius-full:          9999px;

  /* ── Spacing scale ───────────────────── */
  --space-1:              4px;
  --space-2:              8px;
  --space-3:              12px;
  --space-4:              16px;
  --space-6:              24px;
  --space-8:              32px;
  --space-12:             48px;

  /* ── Component dimensions ─────────────── */
  --h-control:            34px;      /* button, input, dropdown — mobile override below */
  --pad-button:           10px 18px;
  --pad-input:            0 12px;
  --h-appbar:             56px;
  --section-y:            80px;      /* vertical rhythm for every page section */
  --size-checkbox:        16px;

  /* ── Focus ring (§11.1) ──────────────── */
  --focus-ring-width:     2px;

  /* ── Elevation (v4.1) ────────────────── */
  --shadow-card:          0 1px 2px rgba(15, 23, 42, .04);
  --shadow-dropdown:      0 2px 8px rgba(15, 23, 42, .06);
  --shadow-toast:         0 4px 12px rgba(15, 23, 42, .08);

  /* ── Layout (v4.1) ───────────────────── */
  --content-max-width:    1200px;
  --gutter-mobile:        16px;
  --gutter-tablet:        24px;
  --gutter-desktop:       32px;

  /* ── Motion (v4.1) ───────────────────── */
  --dur-fast:             100ms;
  --dur-base:             200ms;
  --dur-slow:             300ms;
  --ease-enter:           cubic-bezier(0.2, 0, 0, 1);
  --ease-exit:            cubic-bezier(0.4, 0, 1, 1);
}

/* Mobile: touch-size control tokens (§7) */
@media (max-width: 768px) {
  :root {
    --h-control:          44px;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Staging / preview banner ────────────────── */
.staging-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 20px;
  background: var(--slate);
  color: #FFFFFF;
  border-bottom: 2px solid var(--brand-orange);
  font-family: var(--font-utility);
  font-size: 14px;
  letter-spacing: -0.408px;
  text-align: center;
}
.staging-banner[hidden] { display: none; }
.staging-banner__close {
  flex: none;
  background: none;
  border: 0;
  color: #FFFFFF;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.staging-banner__close:hover { color: var(--brand-orange); }

/* ── Accessibility: focus + skip link ────────── */
/* §11.1 two-tone ring: 2 px surface gap + 2 px slate outer. Kept in a box-shadow
   so it composes with borders without layout shift. Outline stays transparent so
   forced-colours mode still draws a ring. */
:focus-visible {
  outline: var(--focus-ring-width) solid transparent;
  outline-offset: 0;
  box-shadow: 0 0 0 var(--focus-ring-width) var(--surface),
              0 0 0 calc(var(--focus-ring-width) * 2) var(--slate);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--slate);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

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

.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
}
@media (max-width: 991px) {
  .container { padding: 0 var(--gutter-tablet); }
}
@media (max-width: 767px) {
  .container { padding: 0 var(--gutter-mobile); }
}

/* ── Buttons ─────────────────────────────────── */
/* Base button matches BRANDING §6: 34 px (44 mobile) via --h-control,
   14 px SemiBold, 10 × 18 padding, 6 px radius, content-width. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--h-control);
  padding: var(--pad-button);
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  font-family: var(--font-primary);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-button);
  line-height: var(--lh-button);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-enter),
              color var(--dur-fast) var(--ease-enter),
              border-color var(--dur-fast) var(--ease-enter);
}

/* Marketing-scale CTA (hero + cta-band). Documented exception to §6 —
   the spec's 34 px is a product-form control; a landing hero needs presence. */
.btn-lg {
  height: 48px;
  padding: 0 26px;
  font-size: 16px;
  font-weight: var(--fw-bold);
}

.btn-primary        { background: var(--brand-orange); border-color: var(--brand-orange); color: var(--surface); }
.btn-primary:hover  { background: var(--brand-orange-hover); border-color: var(--brand-orange-hover); }
.btn-primary:active { background: var(--brand-orange-active); border-color: var(--brand-orange-active); }

/* Secondary = slate outline (§6). Replaces the removed v4.1 "orange outline". */
.btn-secondary        { background: transparent; border-color: var(--slate); color: var(--text-primary); }
.btn-secondary:hover  { background: var(--slate); color: var(--surface); }

.btn-blue-outline          { background: transparent; border-color: var(--brand-blue); color: var(--brand-blue); }
.btn-blue-outline:hover    { background: var(--brand-blue); color: var(--surface); }

/* Ghost button — for use on dark/slate backgrounds (cta-band, footer) */
.btn-ghost                 { background: transparent; border-color: var(--text-on-slate-muted); color: var(--surface); }
.btn-ghost:hover,
.btn-ghost:focus-visible   { background: var(--surface); color: var(--slate); border-color: var(--surface); }

/* Notification bell in the top bar (§5.1, harry/header.tsx renders it
   unconditionally, including for logged-out users). */
.nav-bell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: background var(--dur-fast) var(--ease-enter);
}
.nav-bell:hover { background: var(--gray-light); }
.nav-bell svg { width: 20px; height: 20px; display: block; }
@media (max-width: 768px) { .nav-bell { width: 44px; height: 44px; } }

/* ── Top nav (white, fixed) ──────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--h-appbar);
}

/* §1 top-bar exception (v4.1.1): wordmark 24 px tall inside the 56 px bar */
.brand-logo img { height: 24px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* §11.6: nav link default = 14 / 500; active = 14 / 600 with a 3 px orange bar
   anchored to the bottom edge of the top bar. Scoped to li a so the Log In
   button and the bell don't inherit nav typography. */
.main-nav li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--h-appbar);
  padding: 0 8px;
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
  color: var(--text-primary);
}

.main-nav li a:hover {
  background: var(--gray-light);
  border-radius: var(--radius-md);
}

.main-nav li a[aria-current="page"] {
  font-weight: var(--fw-semibold);
}
.main-nav li a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 3px;
  background: var(--brand-orange);
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
}

/* ── Hero ────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--surface);
  overflow: hidden;
  padding: 0;               /* spacing lives on .container below — avoids stacking with section padding */
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 520px;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero-copy { max-width: 720px; }

.hero h1 {
  font-weight: 800;
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0 0 20px;
  color: var(--text-primary);
}

.hero-lead {
  margin: 0 0 32px;
}
.hero-lead strong {
  display: block;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.hero-lead span {
  display: block;
  max-width: 520px;
  margin: 0 auto;
  font-weight: 400;
  font-size: 18px;
  color: var(--gray-dark);
}

/* Star field frames the centred copy; its middle is kept clear so text stays legible. */
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-art img { width: 100%; min-width: 1120px; height: auto; opacity: 0.9; }

/* Hero search — documented marketing exception to §4.2:
   uses a pill container instead of the standard 6 px Search control.
   Border and focus follow §11.2 (control border --gray-mid, focus outline --slate);
   the orange focus shadow was removed because focus never uses brand orange. */
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 560px;
  margin: 4px auto 0;
  padding: 6px 6px 6px 18px;
  background: var(--surface);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 28px rgba(14, 23, 42, 0.10);
}
.hero-search:focus-within {
  border-color: var(--slate);
  box-shadow: 0 10px 28px rgba(14, 23, 42, 0.14);
}
.hero-search__icon { flex: none; display: flex; color: var(--gray-mid); }
.hero-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 16px;
  color: var(--text-primary);
  padding: 10px 4px;
}
.hero-search__input::placeholder { color: var(--text-muted); }
.hero-search__btn { flex: none; height: 44px; border-radius: var(--radius-md); font-size: 16px; font-weight: var(--fw-bold); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ── Section scaffolding ─────────────────────── */
section { padding: var(--section-y) 0; }

.section-title {
  font-weight: 800;
  font-size: 44px;
  line-height: 1.1;
  text-align: center;
  margin: 0 0 16px;
  color: var(--text-primary);
}

/* Centred lead-in under a section title (replaces inline styles on index) */
.section-lede {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-dark);
}
.section-title + .section-lede { margin-top: -4px; }
.steps .section-title { margin-bottom: 8px; }
.steps .steps-grid { margin-top: 40px; }

/* Text links: dark label (15:1) with an orange underline as the brand accent.
   Orange text on white is 2.66:1 and fails AA — BRANDING.md forbids it. */
.link-orange {
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--brand-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.link-orange:hover,
.link-orange:focus-visible {
  text-decoration-thickness: 3px;
}

/* ── Intro ───────────────────────────────────── */
.intro { background: var(--surface); }
.intro .container { max-width: 860px; text-align: center; }
.intro p {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0 0 20px;
}

/* ── Why (feature cards) ─────────────────────── */
.why { background: var(--page); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 119, 3, 0.12);
  color: var(--brand-orange);
}
.feature-card h2,
.feature-card h3 {
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 16px;
}
.feature-card p {
  font-size: 16px;
  color: var(--gray-dark);
  margin: 0 0 20px;
}

/* ── Community split ─────────────────────────── */
.community { background: var(--surface); }
.community .container {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 56px;
  align-items: center;
}
.community-art { display: flex; justify-content: center; }
.community-art img { max-width: 420px; width: 100%; }
.community h2 {
  font-weight: 800;
  font-size: 40px;
  line-height: 1.15;
  color: var(--brand-blue);
  margin: 0 0 20px;
}
.community h2 em { font-style: italic; }
.community p { font-size: 18px; color: var(--gray-dark); margin: 0; }

/* ── Steps ───────────────────────────────────── */
.steps { background: var(--page); }
.steps-intro {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
}
.steps-cta { text-align: center; margin-bottom: 56px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}
.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
}
.step h3 { font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.step p { font-size: 16px; color: var(--gray-dark); margin: 0; }

/* ── Closing CTA band ────────────────────────── */
.cta-band {
  background: var(--slate);
  color: #FFFFFF;
  text-align: center;
}
.cta-band h2 {
  font-weight: 800;
  font-size: 36px;
  line-height: 1.15;
  color: #FFFFFF;
  margin: 0 0 12px;
}
.cta-band p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto 28px;
  max-width: 560px;
}
.cta-band__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Stub page header ────────────────────────── */
.page-hero {
  background: var(--page);
  border-bottom: 1px solid var(--border);
  padding: var(--section-y) 0;
}
.page-hero h1 { font-weight: 800; font-size: clamp(30px, 6vw, 44px); line-height: var(--lh-heading); margin: 0; }
.page-body { padding: var(--section-y) 0; min-height: 30vh; }

.todo-note {
  background: var(--gray-light);
  border: 1px dashed var(--gray-medium);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  color: var(--gray-dark);
  font-family: var(--font-utility);
  font-size: 16px;
  letter-spacing: -0.408px;
}

.legal-field { margin: 0 0 20px; }
.legal-field dt { font-weight: 700; font-size: 16px; }
.legal-field dd { margin: 4px 0 0; color: var(--gray-dark); font-size: 16px; }

/* ── Legal document page ─────────────────────── */
.container.legal-doc { max-width: var(--content-max-width); }
.container.legal-doc > * { max-width: 820px; }
.legal-lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0 0 32px;
}
.legal-toc {
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 0 0 48px;
}
.legal-toc h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-dark);
  margin: 0 0 12px;
}
.legal-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}
.legal-toc a {
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--brand-orange);
  text-underline-offset: 3px;
}
.legal-section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.legal-section h2 {
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.legal-section > p {
  color: var(--gray-dark);
  font-size: 16px;
  margin: 0 0 12px;
}
.legal-status {
  font-family: var(--font-utility);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.408px;
  text-transform: uppercase;
  color: var(--slate);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
}
.legal-points {
  margin: 0;
  padding-left: 20px;
  color: var(--gray-dark);
  font-size: 16px;
}
.legal-points li { margin: 6px 0; }
.legal-updated {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}
.legal-status.is-draft {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}
.legal-body { margin-top: 4px; }
.legal-body p {
  color: var(--gray-dark);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 12px;
}
.legal-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 22px 0 8px;
}
.legal-body ul,
.legal-body ol {
  color: var(--gray-dark);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 14px;
  padding-left: 22px;
}
.legal-body li { margin: 6px 0; }
.legal-body dl { margin: 0 0 14px; }
.legal-body dt { font-weight: 700; color: var(--text-primary); font-size: 16px; margin-top: 10px; }
.legal-body dd { margin: 2px 0 0; color: var(--gray-dark); font-size: 16px; }
.legal-body a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--brand-orange);
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .legal-toc ul { grid-template-columns: 1fr; }
}

/* ── Content pages (shared) ──────────────────── */
.page-intro {
  max-width: 760px;
  margin: 0 0 8px;
  color: var(--gray-dark);
  font-size: 18px;
  line-height: 1.7;
}
.content-section { padding: 40px 0; }
.content-section + .content-section { border-top: 1px solid var(--border); }
.subsection-title { font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.subsection-lede { color: var(--gray-dark); margin: 0 0 28px; max-width: 720px; }

.prose { max-width: 760px; }
/* A .container that is also .prose keeps the full 1200 px frame (so it lines up
   with the page-hero title); only its children are capped to a readable measure. */
.container.prose { max-width: var(--content-max-width); }
.container.prose > * { max-width: 760px; }
.container.prose.prose--wide > * { max-width: 820px; }
.prose p { margin: 0 0 16px; font-size: 16px; line-height: 1.75; color: var(--text-primary); }
.prose p:last-child { margin-bottom: 0; }

/* Soft branded placeholder for images not yet supplied */
.media-ph {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,119,3,0.12), rgba(54,0,201,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.media-ph::after {
  content: "";
  width: 40px; height: 40px;
  background: no-repeat center/contain url("../img/theinsiderz-logo-r-icon-orange.svg");
  opacity: 0.55;
}

/* Branded SVG illustration panels (about, why-insiderz) */
.illus-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #FFE6D2 0%, #FFF6EE 52%, #EBE6FA 100%);
  overflow: hidden;
}
.illus-panel.p-blue { background: linear-gradient(135deg, #E4DEFA 0%, #EFF1FF 52%, #FFEBDC 100%); }
.illus-panel.p-slate { background: linear-gradient(135deg, #E6EAF2 0%, #F4F6FA 55%, #ECE7F6 100%); }
.illus-panel svg { display: block; width: 100%; height: auto; max-height: 236px; }

/* ── Blog ────────────────────────────────────── */
/* Editorial masthead (dark) */
.blog-masthead {
  background: var(--slate);
  color: #FFFFFF;
  padding: 72px 0 60px;
}
.blog-masthead .kicker {
  font-family: var(--font-utility);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-orange);
}
.blog-masthead h1 {
  font-weight: 800;
  font-size: clamp(32px, 7vw, 52px);
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 12px 0 14px;
  color: #FFFFFF;
}
.blog-masthead p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 600px;
  margin: 0;
}

/* Topic navigation — choose a topic, then browse posts */
.topic-bar {
  position: sticky;
  top: 57px;               /* header 56 px + 1 px border */
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  margin-bottom: 40px;
}
.topic-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topic-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border: 1.5px solid var(--gray-medium);
  background: var(--surface);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.topic-chip .n { font-size: 14px; font-weight: 600; opacity: 0.55; }
.topic-chip:hover { border-color: var(--brand-orange); }
.topic-chip[aria-pressed="true"] {
  background: var(--brand-orange);
  color: #FFFFFF;
  border-color: var(--brand-orange);
}
.topic-chip[aria-pressed="true"] .n { opacity: 0.85; }

.post-count {
  font-family: var(--font-utility);
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 22px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  --accent: var(--brand-orange);
  --grad: linear-gradient(135deg, #FFE6D2 0%, #FFF6EE 52%, #EBE6FA 100%);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(14, 23, 42, 0.10); }
.post-card[data-topic="people"],
.post-card[data-topic="productivity"] {
  --accent: var(--brand-blue);
  --grad: linear-gradient(135deg, #E4DEFA 0%, #EFF1FF 52%, #FFEBDC 100%);
}
.post-card[data-topic="finance"] {
  --accent: var(--slate);
  --grad: linear-gradient(135deg, #E6EAF2 0%, #F4F6FA 55%, #ECE7F6 100%);
}
.post-card[hidden] { display: none; }

/* Soft-gradient thumbnail with a floating review-card motif */
.post-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--grad);
  border-bottom: 1px solid var(--border);
}
.post-thumb {
  display: block;
  width: 100%;
  height: 100%;
}

.post-topic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-utility);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-primary);
}
.post-topic::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 24px 24px 26px;
}
.post-card h3 { font-size: 20px; font-weight: 700; line-height: 1.28; margin: 0; }
.post-card p { font-size: 16px; color: var(--gray-dark); margin: 0; line-height: 1.6; }
.post-meta {
  font-family: var(--font-utility);
  font-size: 14px;
  letter-spacing: -0.408px;
  color: var(--text-muted);
}
.post-card .link-orange { margin-top: auto; }

/* ── Article (single post) ───────────────────── */
.article {
  --accent: var(--brand-orange);
  --grad: linear-gradient(135deg, #FFE6D2 0%, #FFF6EE 52%, #EBE6FA 100%);
}
.article[data-topic="people"],
.article[data-topic="productivity"] {
  --accent: var(--brand-blue);
  --grad: linear-gradient(135deg, #E4DEFA 0%, #EFF1FF 52%, #FFEBDC 100%);
}
.article[data-topic="finance"] {
  --accent: var(--slate);
  --grad: linear-gradient(135deg, #E6EAF2 0%, #F4F6FA 55%, #ECE7F6 100%);
}

.article-head { padding: 40px 0 8px; }
.article-breadcrumb {
  font-family: var(--font-utility);
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.article-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--brand-orange); text-decoration: underline; }
.article-head h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -1px;
  margin: 16px 0 16px;
  max-width: 780px;
}
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-utility);
  font-size: 14px;
  color: var(--text-muted);
}
.article-meta-row .dot { color: var(--border); }

.article-hero {
  height: 300px;
  border-radius: var(--radius-lg);
  background: var(--grad);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0 40px;
  overflow: hidden;
}
.article-hero svg { width: 320px; height: 200px; }

.prose .lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--slate);
  margin: 0 0 24px;
}
.prose h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 38px 0 12px;
}
.prose h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { font-size: 16px; line-height: 1.7; color: var(--text-primary); margin-bottom: 8px; }
.prose blockquote {
  margin: 30px 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--accent);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--slate);
}
.prose .prose-link {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--brand-orange);
  text-underline-offset: 3px;
}

.article-foot {
  border-top: 1px solid var(--border);
  margin-top: 44px;
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

/* ── FAQ accordion ───────────────────────────── */
.faq-group { margin-bottom: 40px; }
.faq-group > h2 { font-size: 22px; margin: 0 0 16px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand-orange); font-size: 24px; font-weight: 700; line-height: 1; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-answer { padding: 0 20px 18px; color: var(--gray-dark); font-size: 16px; line-height: 1.7; }

/* ── About (alternating blocks) ──────────────── */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0;
}
.about-block:nth-child(even) .about-media { order: 2; }
.about-media { min-height: 280px; }

/* why-insiderz close one-liner */
.why-close {
  margin: 48px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: var(--fs-caption);
  color: var(--text-muted);
  line-height: var(--lh-caption);
}

/* why-insiderz muted caveat note (italics under a main sentence) */
.about-text .muted-note { font-size: 16px; color: var(--text-muted); margin-top: 10px; }

/* why-insiderz bullet list (used in profile section) */
.about-text .why-list { list-style: none; margin: 12px 0 0; padding: 0; }
.about-text .why-list li { position: relative; padding-left: 22px; margin: 6px 0; color: var(--gray-dark); font-size: 16px; line-height: 1.5; }
.about-text .why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-orange);
}
.about-text h2 { font-size: 28px; font-weight: 800; margin: 0 0 14px; }
.about-text p { color: var(--gray-dark); font-size: 16px; line-height: 1.75; margin: 0 0 12px; }

/* ── Forms (contact / auth / review) ─────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.form { display: flex; flex-direction: column; gap: 18px; }
.form-note {
  font-family: var(--font-utility);
  font-size: 14px;
  letter-spacing: -0.408px;
  color: var(--text-muted);
}
/* Form fields — §4.2 / §11.2. Border --gray-mid (WCAG 1.4.11 pass);
   focus swaps border to --slate and the two-tone ring is provided by
   :focus-visible above. No brand-orange on focus (§5). */
.field label {
  display: block;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  height: var(--h-control);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: var(--pad-input);
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color var(--dur-fast) var(--ease-enter);
}
.field textarea { height: auto; min-height: 130px; padding: 10px 12px; resize: vertical; font-size: var(--fs-body); line-height: var(--lh-body); }
.field--group { border: 0; padding: 0; margin: 0 0 20px; }
.field--group > legend { padding: 0; font-weight: var(--fw-semibold); font-size: var(--fs-label); line-height: var(--lh-label); margin-bottom: 6px; }
.rating-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; margin-top: 12px; }
.rating-row label { display: block; font-weight: var(--fw-regular); font-size: var(--fs-caption); color: var(--text-muted); margin-bottom: 4px; }
@media (max-width: 576px) { .rating-grid { grid-template-columns: 1fr; } }

/* Info-tone form note — §11.3 tint pair (info) */
.form-note--info { background: var(--color-info-bg); color: var(--brand-blue); border-radius: var(--radius-lg); padding: 12px 14px; font-size: var(--fs-body); line-height: var(--lh-body); }

/* Two fields side-by-side (First / Last name on register) */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row > .field { margin: 0 0 20px; }
@media (max-width: 576px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* Consent checkbox row (Privacy / T&C on register) */
.field--consent { margin: 4px 0 20px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-primary); cursor: pointer; }
.consent input[type="checkbox"] { flex: none; width: var(--size-checkbox); height: var(--size-checkbox); margin-top: 2px; accent-color: var(--brand-orange); }

/* Optional-field marker — GOV.UK convention, §11.2 */
.field-optional { font-weight: var(--fw-regular); color: var(--text-muted); font-size: var(--fs-caption); }

/* ── Pricing plans ───────────────────────────── */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
}
.plan-card h2 { font-size: 24px; font-weight: 800; line-height: 1.2; margin: 0 0 12px; }
.plan-card .plan-lede { font-weight: 600; font-size: 16px; line-height: 1.5; margin: 0 0 16px; color: var(--text-primary); }
.plan-card ul { margin: 0 0 20px; padding-left: 20px; }
.plan-card li { font-size: 16px; line-height: 1.6; color: var(--gray-dark); margin-bottom: 10px; }
.plan-card .plan-who { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.plan-cta { text-align: center; margin-top: 48px; }
.plan-cta p { max-width: 640px; margin: 0 auto 20px; font-size: 16px; color: var(--gray-dark); }
@media (max-width: 991px) { .plan-grid { grid-template-columns: 1fr; max-width: 560px; } }

/* ── Early access page ─────────────────────────── */
.ea-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 991px) {
  .ea-grid { grid-template-columns: 1fr; gap: 32px; }
}

.ea-benefits h2 {
  font-weight: var(--fw-extrabold);
  font-size: 28px;
  line-height: var(--lh-heading);
  margin: 0 0 20px;
  color: var(--text-primary);
}
.ea-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ea-list li { display: flex; flex-direction: column; gap: 6px; padding-left: 28px; position: relative; }
.ea-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--brand-orange);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}
.ea-list li strong { font-weight: var(--fw-bold); color: var(--text-primary); font-size: 18px; line-height: 1.3; }
.ea-list li span { color: var(--text-primary); font-size: 16px; line-height: var(--lh-body); }
.ea-small { font-size: var(--fs-caption); color: var(--text-muted); margin: 24px 0 0; }

.ea-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
}
@media (max-width: 576px) { .ea-form-card { padding: 24px 20px; }}
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: var(--text-muted); }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: 0; border-color: var(--slate); }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-placeholder); }
.field-hint { display: block; margin-top: 4px; font-size: var(--fs-caption); color: var(--text-muted); }
.contact-info dl { margin: 0; }
.contact-info dt { font-weight: 700; font-size: 14px; margin-top: 16px; }
.contact-info dt .muted { font-weight: var(--fw-regular); color: var(--text-muted); }

/* Legal page — Iubenda-hosted policy footnote style */
.legal-footnote { margin-top: 20px; font-size: var(--fs-caption); color: var(--text-muted); line-height: var(--lh-caption); }

/* Field label row — label on the left, tertiary action on the right (e.g. Forgot password?) */
.field-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.field-label-row > label { margin-bottom: 0; }
.forgot-link { font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--brand-orange); text-underline-offset: 3px; }
.forgot-link:hover { text-decoration-thickness: 2px; }
.contact-info dd { margin: 4px 0 0; color: var(--gray-dark); font-size: 16px; }

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.auth-alt { text-align: center; margin: 20px 0 0; color: var(--gray-dark); font-size: 16px; }

/* Launch notice (login / register / write-a-review until the app is live) */
.launch-notice { text-align: center; }
.launch-notice h2 { font-size: 24px; font-weight: 800; line-height: 1.2; margin: 0 0 12px; }
.launch-notice > p { font-size: 16px; line-height: 1.6; color: var(--gray-dark); margin: 0 0 24px; }
.launch-notice .launch-notice__note { font-size: var(--fs-caption); color: var(--text-muted); margin: 16px 0 0; }
.form-status { margin: 0 0 4px; padding: 12px 14px; border-radius: var(--radius-lg); font-size: var(--fs-body); line-height: var(--lh-body); }
.form-status[hidden] { display: none; }
.form-status--ok  { background: var(--color-success-bg); color: var(--color-success-text); }
.form-status--err { background: var(--color-error-bg);   color: var(--color-error-text); }
.contact-card p { color: var(--gray-dark); margin: 0 0 20px; max-width: 440px; }

@media (max-width: 860px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-block { grid-template-columns: 1fr; gap: 24px; }
  .about-block:nth-child(even) .about-media { order: 0; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .article-head h1 { font-size: 30px; }
  .article-hero { height: 210px; }
  .article-hero svg { width: 230px; height: 145px; }
  .prose blockquote { font-size: 18px; }
}

/* ── Footer (dark) ───────────────────────────── */
.site-footer {
  background: var(--slate);
  color: var(--text-on-slate);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col h2 {
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 20px;
  color: #FFFFFF;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a { font-size: 16px; color: var(--text-on-slate-muted); }
.footer-col a:hover { color: var(--brand-orange); }

.footer-social {
  display: flex;
  gap: 14px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}
.footer-social li { display: flex; }
.footer-social svg { display: block; }
.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);   /* decorative rim on --slate */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-utility);
  font-size: 14px;
  color: var(--text-on-slate);
}
.footer-social a:hover { background: var(--brand-orange); border-color: var(--brand-orange); }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.12);   /* decorative divider on --slate */
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-on-slate-muted);
}
.footer-legal a { color: var(--text-on-slate-muted); }
.footer-legal a:hover { color: var(--brand-orange); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 992px) {
  .hero .container {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: 52px; }
  .community .container { grid-template-columns: 1fr; }
  .community-art { order: -1; }
  .community-art img { max-width: 320px; }
}

@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Collapsed navigation: ≤768 px (same breakpoint as the 44 px touch controls) */
@media (max-width: 768px) {
  /* Show hamburger, turn the nav into a toggleable dropdown panel */
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    padding: 8px 0;
  }
  .site-header .container { position: relative; }
  .site-header.nav-open .main-nav { display: flex; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .main-nav ul li { width: 100%; }
  .main-nav ul a {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
  }
  .main-nav .btn {
    margin: 12px 24px 8px;
    width: calc(100% - 48px);
  }

}

@media (max-width: 640px) {
  .hero h1 { font-size: 40px; }
  :root { --section-y: 56px; }
  .hero, .trust-strip { padding: 0; }
  .section-title { font-size: 30px; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; text-align: left; }

  /* Search stacks: icon + input on one row, full-width button below */
  .hero-search {
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
    padding: 12px;
    gap: 10px;
  }
  .hero-search__btn { width: 100%; border-radius: var(--radius-md); }

  .cta-band h2 { font-size: 28px; }
  .cta-band__actions { flex-direction: column; }
  .cta-band__actions .btn { width: 100%; }
}

/* ── Homepage (conversion redesign) ── */
  .hero-kicker {
    font-family: var(--font-utility);
    font-size: 14px; font-weight: 500; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--brand-orange);
    display: block; margin-bottom: 14px;
  }
  .hero h1 { color: var(--slate); }
  .hero-pain { font-weight: 600; color: var(--slate); margin: 0 0 6px; }
  .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 26px; }
  .hero-or { text-align: center; color: var(--text-muted); font-size: 14px; margin: 16px 0 10px; }
  .hero-search { max-width: 560px; margin-left: auto; margin-right: auto; }

  /* Trust strip */
  .trust-strip { padding: 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .trust-strip .container { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: center; padding-top: 20px; padding-bottom: 20px; }
  .trust-strip__item { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--slate); }
  .trust-strip__item svg { color: var(--brand-orange); flex: none; }
  /* Differentiation */
  .compare .container { max-width: 900px; }
  .compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
  .compare-col { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 28px; background: var(--surface); }
  .compare-col.is-them { background: var(--gray-light); }
  .compare-col h3 { font-size: 18px; margin: 0 0 14px; }
  .compare-col ul { list-style: none; margin: 0; padding: 0; }
  .compare-col li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 16px; color: var(--gray-dark); line-height: 1.6; }
  .compare-col li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
  .compare-col.is-them li::before { content: "✕"; color: var(--gray-mid); }
  .compare-col.is-us li::before { content: "✓"; color: var(--brand-orange); }

  /* Sample review card */
  .proof { background: var(--surface); }
  .proof .container { max-width: 900px; text-align: center; }
  .review-card {
    max-width: 560px; margin: 32px auto 0; text-align: left;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 30px; box-shadow: 0 16px 40px rgba(14,23,42,0.06);
  }
  .review-card__head { display: flex; align-items: center; gap: 14px; }
  .review-card__logo { width: 48px; height: 48px; border-radius: 10px; background: var(--slate); color: var(--surface); display: flex; align-items: center; justify-content: center; font-family: var(--font-primary); font-weight: 700; font-size: 20px; flex: none; }
  .review-card__name { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; }
    .review-card__meta { font-family: var(--font-utility); font-size: 14px; letter-spacing: -0.408px; color: var(--text-muted); margin-top: 2px; }
  .review-card__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin: 18px 0; }
  .review-cat { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--gray-dark); }
  .stars { display: inline-flex; gap: 2px; }
  .review-card__quote { font-size: 16px; line-height: 1.7; color: var(--text-primary); margin: 0; }
  .proof-tag { display: inline-block; font-family: var(--font-utility); font-size: 12px; letter-spacing: 0.4px; text-transform: uppercase; color: var(--text-muted); margin-top: 16px; }

  @media (max-width: 720px) {
    .compare-grid { grid-template-columns: 1fr; }
    .review-card__cats { grid-template-columns: 1fr; }
  }

/* Contact topics — hint under the picker, topic-specific field groups */
.topic-hint { margin: 8px 0 0; font-size: var(--fs-caption); line-height: var(--lh-body); color: var(--text-muted); }
.topic-hint[hidden], .topic-fields[hidden] { display: none; }
.topic-fields { display: flex; flex-direction: column; gap: 18px; }
.form-status .ref { font-weight: var(--fw-semibold); }

/* Blog topic bar on small screens: one scrollable row instead of a tall sticky block */
@media (max-width: 768px) {
  .topic-bar { position: static; padding: 10px 0; margin-bottom: 28px; }
  .topic-filter { flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .topic-chip { flex: none; white-space: nowrap; }
}

/* Consent link reads as a link (same underline as other in-text links) */
.consent a { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--brand-orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Bell label: only shown in the mobile menu */
.nav-bell__text { display: none; }

/* Touch targets and small-screen layout (BRANDING §7: 44 px on mobile) */
@media (max-width: 768px) {
  .footer-col ul { gap: 0; }
  .footer-col a { display: inline-block; padding: 12px 0; }
  .legal-toc ul { gap: 0; }
  .legal-toc a { display: block; padding: 12px 0; }
  .main-nav .nav-bell { width: 100%; justify-content: flex-start; gap: 12px; padding: 0 24px; border-radius: 0; }
  .nav-bell__text { display: inline; font-weight: 500; font-size: 16px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; max-width: 320px; }
}

/* EmailOctopus embed — make the injected form match the site's own inputs and buttons (BRANDING §4.2 / §6).
   Scoped to the embed wrapper; the embed keeps its own markup and aria-labels. */
.emailoctopus-form-wrapper .emailoctopus-form-row { margin: 0 0 12px; }
.emailoctopus-form-wrapper .emailoctopus-form input.form-control {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 0 12px;
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  color: var(--text-primary);
  background: var(--surface);
  box-shadow: none;
  border-color: var(--gray-mid) !important;
  font-size: var(--fs-body) !important;
}
.emailoctopus-form-wrapper input.form-control::placeholder { color: var(--text-muted); opacity: 1; }
.emailoctopus-form-wrapper input.form-control:hover { border-color: var(--text-muted); }
.emailoctopus-form-wrapper input.form-control:focus { outline: 0; border-color: var(--slate); }
.emailoctopus-form-wrapper .emailoctopus-form input[type="submit"].btn {
  width: auto !important;
  border-radius: var(--radius-md) !important;
  font-weight: var(--fw-semibold) !important;
  height: var(--h-control);
  padding: var(--pad-button);
  border: 1.5px solid var(--brand-orange);
  border-radius: var(--radius-md);
  background: var(--brand-orange);
  color: var(--surface);
  font-family: var(--font-primary);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-button);
  cursor: pointer;
}
.emailoctopus-form-wrapper input[type="submit"]:hover { background: var(--brand-orange-hover); border-color: var(--brand-orange-hover); }
.emailoctopus-form-wrapper .emailoctopus-success-message,
.emailoctopus-form-wrapper .emailoctopus-error-message { font-family: var(--font-primary); font-size: var(--fs-body); line-height: var(--lh-body); }

.page-hero h1 + .page-intro { margin-top: 14px; }
