/* ==========================================================================
   Lobster marketing site — theme ported from the Lobster product design system
   (parchment cream background, Lobster shell red-orange, warm amber accent,
   Roboto Condensed for UI/body, Instrument Serif for display numerals, H1/H2 in
   Playfair Display). Hand-written, no build step required.
   ========================================================================== */

/* ---- Fonts (self-hosted; no third-party requests to Google) ---- */
/* Instrument Serif still sets the display numerals (.font-display, .stat__num,
   .price-card__amount, the calculator). Playfair Display sits BESIDE it for
   H1/H2 — it does not replace it, and dropping these faces silently falls the
   numerals back to Georgia. */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-400-italic-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-400-italic-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: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-400-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: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/playfair-display-600-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/playfair-display-600-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: 'Roboto Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/roboto-condensed-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/roboto-condensed-400-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: 'Roboto Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/roboto-condensed-600-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/roboto-condensed-600-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;
}
/* 700 is asked for by <strong> in prose and by the pricing badge; without a real
   face the browser synthesises it by smearing the 400, which reads muddy at the
   badge's 0.7rem. Inter shipped a 700 before the switch to Roboto Condensed. */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/roboto-condensed-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/roboto-condensed-700-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-400-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-500-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;
}

/* ---- Design tokens ---- */
:root {
  --background: 40 35% 96%;
  --foreground: 20 18% 12%;
  --surface: 40 28% 92%;
  --card: 40 30% 98%;
  --card-foreground: 20 18% 12%;
  --muted: 40 22% 91%;
  --muted-foreground: 25 10% 38%;
  --primary: 15 82% 40%;          /* Lobster shell red-orange (darkened for AA text/button contrast) */
  --primary-foreground: 40 35% 97%;
  --accent: 35 75% 60%;           /* warm amber */
  --accent-foreground: 20 18% 12%;
  --coral: 10 85% 66%;            /* #F27861 salmon used in product chrome */
  --border: 35 22% 82%;
  --ring: 15 82% 40%;
  --ink: 20 18% 12%;
  --radius: 0.5rem;

  --coral-hex: #F27861;
  --coral-hover: #e07562;
  /* Label colour for anything sitting ON coral. The coral fill is the same in
     both themes, so this must NOT follow --ink (which flips light in dark mode
     and drops the label to 2.4:1). 6.4:1 on #F27861, 5.8:1 on the hover shade. */
  --coral-ink: 20 30% 10%;
  /* Coral darkened just far enough to clear WCAG 3:1 as a mark/large-heading
     colour: 3.2:1 on the body background, 3.0:1 on the .card__icon chip, and
     3.8:1+ in dark mode. Plain #F27861 only manages 2.4:1 on the chip. */
  --coral-accessible: #EF5538;
  --nav-bg: #211a17;              /* dark warm neutral (footer/nav) */

  color-scheme: light dark;        /* let form controls / scrollbars follow the theme */
}

/* ==========================================================================
   Dark theme — honour the OS preference (prefers-color-scheme).
   Re-tones the light "parchment" body/card/surface tokens; the nav and footer
   are already dark, so most tokens just invert. Kept as token overrides so the
   whole site adapts from one place. No JS, no toggle — follows the OS setting.
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --background: 24 16% 8%;        /* warm near-black */
    --foreground: 40 24% 91%;       /* warm off-white ink */
    --surface: 24 13% 12%;
    --card: 26 14% 13%;             /* slightly lifted off the background */
    --card-foreground: 40 24% 91%;
    --muted: 28 12% 18%;
    --muted-foreground: 34 13% 66%;
    --primary: 14 88% 58%;          /* brighter shell orange — reads on dark bg */
    --primary-foreground: 20 30% 10%; /* dark ink on the bright-orange buttons */
    --accent: 35 80% 62%;
    --accent-foreground: 20 18% 12%;
    --coral: 10 85% 66%;
    --border: 30 12% 22%;
    --ring: 14 88% 58%;
    --ink: 40 24% 93%;              /* headings / prominent numbers now light */

    /* footer/nav sit just above the body so they stay distinguishable */
    --nav-bg: #17110f;
  }
}

/* Dark-mode logo tint, for the per-mark fallback path: a client mark supplied as
   an individual SVG is painted via CSS mask, so one asset set stays razor-sharp
   in both themes. The tint follows --foreground, which flips per theme; the marks
   read a touch brighter on the dark background. See the .logo-wall base rules
   further down. */
@media (prefers-color-scheme: dark) { .logo-wall .logo { opacity: 0.82; } }

/* The pre-composed strip (.logo-wall__image) is greyscale artwork on a
   transparent ground — no colour anywhere in it — so a straight invert flips its
   predominantly dark marks to light without touching hue. Left alone it sits at
   1.1:1 on the dark background and disappears. Alpha is untouched by invert(),
   so the knocked-out ground stays knocked out. */
@media (prefers-color-scheme: dark) { .logo-wall__image { filter: invert(1); opacity: 0.85; } }

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; border-color: hsl(var(--border)); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Roboto Condensed', ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  background-image:
    radial-gradient(1200px 600px at 85% -10%, hsl(var(--primary) / 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, hsl(var(--accent) / 0.14), transparent 60%);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
/* Product screenshots are wrapped in <picture> for the light/dark swap. Keep the
   wrapper transparent to layout so the <img> sizes against its real container
   (e.g. .post-card__media img { height:100% }) exactly as before. */
picture { display: contents; }
a { color: hsl(var(--primary)); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Visible keyboard focus indicator (WCAG 2.4.7). Uses the --ring token. */
:focus-visible {
  outline: 3px solid hsl(var(--ring));
  outline-offset: 2px;
  border-radius: 4px;
}
/* On the dark nav/footer a light ring reads better than the brand red. */
.site-nav :focus-visible, .site-footer :focus-visible, .band-dark :focus-visible {
  outline-color: #fff;
}

/* Skip-to-content link — visible only when focused (WCAG 2.4.1). */
.skip-link {
  position: absolute; left: 0.75rem; top: -3rem; z-index: 200;
  background: hsl(var(--primary)); color: #fff;
  padding: 0.6rem 1rem; border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 600; transition: top .15s ease;
}
.skip-link:focus { top: 0; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: hsl(var(--ink));
  text-wrap: balance;
}
h1, h2 {
  font-family: 'Playfair Display', ui-serif, Georgia, serif;
}
h3 {
  font-family: 'Roboto Condensed', ui-sans-serif, system-ui, sans-serif;
}
h4, h5, h6 {
  font-family: 'Roboto Condensed', ui-sans-serif, system-ui, sans-serif;
}

.font-display {
  font-family: 'Instrument Serif', ui-serif, Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-feature-settings: "liga", "dlig";
}
.font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; }
.container-wide { max-width: 1440px; }
/* Centred, like .container. Without margin-inline the narrow column hugged the
   left edge of its 1200px parent, leaving ~476px of dead space at 1440px on
   every article and prose page. */
.container-narrow { max-width: 820px; margin-inline: auto; }
.section { padding-block: 5rem; }
.section-sm { padding-block: 3rem; }
.text-center { text-align: center; }
.muted { color: hsl(var(--muted-foreground)); }
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.08rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  font-weight: 500;
}
.lead { font-size: 1.25rem; line-height: 1.6; color: hsl(var(--muted-foreground)); font-family: 'Roboto Condensed', ui-sans-serif, system-ui, sans-serif; }

/* ==========================================================================
   Top navigation (dark, sticky — mirrors product TopNav)
   ========================================================================== */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  /* Translucent, but dark enough that white nav text clears WCAG AA (4.5:1) even
     when the blur samples a pure-white section behind it. At 0.72 over white the
     effective backdrop is ~#474747, giving links ~7:1 and the dimmer language
     switcher ~5:1 — both comfortably above AA for normal-size text. */
  background: rgba(0,0,0,0.72);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.site-nav__inner {
  max-width: 1440px; margin-inline: auto;
  padding: 0 30px; height: 5.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.site-nav__left { display: flex; align-items: center; gap: 2.5rem; }
.site-nav__logo img { height: 2.75rem; width: auto; }
.site-nav__links { display: flex; align-items: center; gap: 0.25rem; }
.site-nav__link {
  color: rgba(255,255,255,0.85); font-family: 'Roboto Condensed', ui-sans-serif, system-ui, sans-serif; font-weight: 400; font-size: 1rem;
  padding: 0.5rem 1rem; border-radius: 999px; transition: color .15s, background .15s;
  position: relative; white-space: nowrap;
}
.site-nav__link:hover { color: #fff; text-decoration: none; }
.site-nav__link.is-active { color: #fff; font-weight: 600; }
.site-nav__right { display: flex; align-items: center; gap: 1rem; }

/* dropdown (Features) */
.nav-dropdown { position: relative; }
.nav-dropdown__menu {
  position: absolute; top: calc(100% + 0.5rem); left: 0;
  background: hsl(var(--card)); color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border)); border-radius: 0.75rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  min-width: 20rem; padding: 0.5rem; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: all .16s ease; z-index: 60;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown__item { display: block; padding: 0.6rem 0.75rem; border-radius: 0.5rem; color: hsl(var(--foreground)); }
.nav-dropdown__item:hover { background: hsl(var(--muted)); text-decoration: none; }
.nav-dropdown__item strong { display: block; font-weight: 600; font-size: 0.95rem; font-family: 'Roboto Condensed', ui-sans-serif, system-ui, sans-serif; }
.nav-dropdown__item span { display: block; font-size: 0.82rem; color: hsl(var(--muted-foreground)); font-family: 'Roboto Condensed', ui-sans-serif, system-ui, sans-serif; }

/* language switcher */
.lang-switch { display: flex; align-items: center; gap: 0.15rem; font-size: 0.85rem; font-weight: 600; font-family: 'Roboto Condensed', ui-sans-serif, system-ui, sans-serif; }
.lang-switch a, .lang-switch .is-active { color: rgba(255,255,255,0.82); padding: 0.15rem 0.45rem; border-radius: 6px; }
.lang-switch a:hover { color: #fff; text-decoration: none; }
.lang-switch .is-active { color: #fff; background: rgba(255,255,255,0.15); }
.lang-switch span[aria-hidden] { color: rgba(255,255,255,0.3); padding: 0; }

/* mobile menu */
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 0.5rem; }
.nav-toggle svg { width: 26px; height: 26px; }
/* Menu-only CTA; shown inside the open mobile menu. Needs two classes to outrank
   the `.btn { display: inline-flex }` rule below, which is defined later. */
.site-nav .site-nav__cta-m { display: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: 'Roboto Condensed', ui-sans-serif, system-ui, sans-serif;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 0.8rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .05s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral-hex); color: hsl(var(--coral-ink)); }
.btn-primary:hover { background: var(--coral-hover); color: hsl(var(--coral-ink)); }
.btn-coral { background: var(--coral-hex); color: hsl(var(--coral-ink)); }
.btn-coral:hover { background: var(--coral-hover); color: hsl(var(--coral-ink)); }
.btn-outline { background: transparent; border-color: hsl(var(--border)); color: hsl(var(--ink)); }
.btn-outline:hover { background: hsl(var(--muted)); }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); color: #fff; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: 6rem 4.5rem; text-align: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.05; }
/* #F06146 was one step too light — 2.99:1 on the body background, just under the
   3:1 AA floor for large text. Uses the shared darkened coral instead. */
.hero h1 .accent { color: var(--coral-accessible); }
.hero .lead { max-width: 46rem; margin: 1.5rem auto 0; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.25rem; }
.hero__media { margin-top: 3.5rem; }
.hero__media img { border-radius: 1rem; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.35); border: 1px solid hsl(var(--border)); margin-inline: auto; }

/* page banner for interior pages */
.page-head { max-width: 1200px; margin-inline: auto; padding-block: 4rem 2rem; padding-inline: 1.5rem; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
.page-head .lead { margin-top: 1rem; }
/* container-narrow banners have no .container wrapper, so align their content
   with the article's .prose column (same width + centering) instead of letting
   it run flush to the page edge. */
.page-head > .container { padding-inline: 0; }
.page-head > .container-narrow > * { max-width: 44rem; margin-inline: auto; }

/* ==========================================================================
   Cards / feature grids
   ========================================================================== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
/* Denser card headings, for grids that carry more items than usual. */
.grid--compact .card h3 { font-size: 1.15rem; }

/* ==========================================================================
   Section rhythm
   Layout pages are composed from typed blocks (see _tools/blocks.mjs). These
   rules own the measure and the vertical spacing between a section's heading
   group and its content — spacing that used to be hand-tuned with an inline
   style on every individual section, which is why the content files can now
   hold copy and nothing else.
   ========================================================================== */
.section-head { max-width: 48rem; margin-inline: auto; margin-top: .5rem; }
.lead--section { max-width: 46rem; margin: 1rem auto 0; }

/* One gap rule, owned by whatever follows the heading group. */
.section-head + .grid, .lead--section + .grid,
.section-head + .feature-row, .lead--section + .feature-row,
.section-head + .price-grid, .lead--section + .price-grid,
.section-head + .logo-wall, .lead--section + .logo-wall { margin-top: 2.5rem; }

/* Consecutive feature rows in one section. */
.feature-row + .feature-row { margin-top: 4rem; }

/* A card that is itself a link should not inherit underlines. */
a.card { text-decoration: none; }

/* Customer pull-quote under the logo wall. */
.pull-quote { margin: 3rem auto 0; text-align: center; border: 0; }
.pull-quote > p:first-child { font-family: 'Playfair Display', ui-serif, Georgia, serif; font-size: 1.6rem; line-height: 1.4; }
.pull-quote > p.muted { font-size: .95rem; }

/* Section padding variants that were per-page inline styles. */
.section--tall { padding-block: 7rem; }
.section--flush { padding-top: 0; }

/* Oversized display heading — the 404 page. */
.display-hero { font-size: clamp(3rem, 8vw, 6rem); color: hsl(var(--primary)); }

/* Card carrying a small prose body (pricing explainers). */
.info-card h3 { margin-top: 1.5rem; }

/* Centred heading group above a prose column. */
.prose-head { margin-bottom: 2.5rem; }
.feature-row-head { margin-bottom: 3.5rem; }

/* Header row above the latest-posts strip. */
.post-grid-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }

/* Hero that butts up against the section below it (booking pages). */
.hero--tight { padding-bottom: 1.5rem; }

/* Fine print under the pricing table. */
.price-note { color: hsl(var(--muted-foreground)); font-size: .9rem; margin-top: 1.25rem; }

/* Narrow, centred hero — status and confirmation pages. */
.hero--narrow { text-align: center; max-width: 44rem; }

/* Tick lists (book a demo, feature call-outs). */
.check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1.1rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.check-list svg { flex-shrink: 0; margin-top: .15rem; color: hsl(var(--primary)); }

.card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 1rem; padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(0,0,0,0.25); }
.card h2, .card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card p { color: hsl(var(--muted-foreground)); font-family: 'Roboto Condensed', ui-sans-serif, system-ui, sans-serif; }
.card__icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem; display: grid; place-items: center;
  background: hsl(var(--coral) / 0.12); color: var(--coral-accessible); margin-bottom: 1.1rem;
}
.card__icon svg { width: 1.5rem; height: 1.5rem; }

/* Click-to-load facade standing in for the cal.eu booking embed until the visitor
   asks for it — see scripts/cal-embed.js for why the embed is gated behind a click.
   Sized to roughly the booker's own width so revealing it doesn't yank the page. */
.cal-facade {
  max-width: 44rem; margin: 0 auto; padding: 3.25rem 1.75rem; text-align: center;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1rem;
}
.cal-facade p { color: hsl(var(--muted-foreground)); margin: 0 0 1.5rem; }
#cal-inline-demo:focus { outline: none; }

/* stat / KPI tiles */
.stat { text-align: center; }
.stat__num { font-family: 'Instrument Serif', serif; font-size: 3rem; color: hsl(var(--primary)); line-height: 1; }
.stat__label { color: hsl(var(--muted-foreground)); font-size: 0.95rem; margin-top: 0.35rem; }

/* logo wall — individual monochrome SVG marks, tinted via CSS mask so one asset
   set stays sharp in light and dark (dark opacity bump lives up near the top). */
.logo-wall { display: flex; flex-wrap: wrap; gap: 2rem 2.75rem; align-items: center; justify-content: center; max-width: 60rem; margin: 0 auto; }
.logo-wall .logo {
  display: inline-block;
  background-color: hsl(var(--foreground));
  opacity: 0.6;
  -webkit-mask: var(--logo) center / contain no-repeat;
          mask: var(--logo) center / contain no-repeat;
}

/* single pre-composed logo strip image (background already knocked out to
   transparent so it sits flush on --background in both themes) */
.logo-wall__image { display: block; width: 100%; max-width: 60rem; height: auto; margin: 0 auto; }

/* alternating feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.feature-row--reverse .feature-row__media { order: -1; }
.feature-row__media img { border-radius: 1rem; border: 1px solid hsl(var(--border)); box-shadow: 0 20px 50px -25px rgba(0,0,0,0.3); }
.feature-row h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.feature-row p:not(.eyebrow) { color: hsl(var(--muted-foreground)); margin-top: 1rem; font-size: 1.08rem; font-family: 'Roboto Condensed', ui-sans-serif, system-ui, sans-serif; }

/* section surfaces */
.surface { background: hsl(var(--surface) / 0.6); border-block: 1px solid hsl(var(--border)); }
.band-dark { background: var(--nav-bg); color: #fff; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark p { color: rgba(255,255,255,0.75); }

/* CTA band */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta .lead { margin: 1rem auto 2rem; max-width: 40rem; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card--featured { border-color: hsl(var(--primary)); box-shadow: 0 20px 50px -25px hsl(var(--primary) / 0.5); }
.price-card__badge { align-self: flex-start; background: var(--coral-hex); color: hsl(var(--coral-ink)); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 999px; margin-bottom: 0.75rem; }
.price-card__amount { font-family: 'Instrument Serif', serif; font-size: 2.75rem; color: hsl(var(--ink)); }
.price-card__period { color: hsl(var(--muted-foreground)); font-size: 0.95rem; }
.price-card ul { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: 0.6rem; }
.price-card li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; font-family: 'Roboto Condensed', ui-sans-serif, system-ui, sans-serif; }
.price-card li::before { content: "✓"; color: hsl(var(--primary)); font-weight: 700; }
.price-card .btn { margin-top: auto; }

/* ==========================================================================
   Interactive price calculator
   ========================================================================== */
.calc { padding: 2.5rem; }
.calc__head { text-align: center; max-width: 42rem; margin: 0 auto 2.25rem; }
.calc__head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.calc__head p { margin-top: 0.5rem; }
.calc__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: stretch; }
.calc__controls { display: grid; gap: 2rem; align-content: center; }
.calc__field label { display: block; font-weight: 600; color: hsl(var(--ink)); margin-bottom: 0.85rem; }
.calc__hint { display: block; font-weight: 400; font-size: 0.85rem; color: hsl(var(--muted-foreground)); margin-top: 0.2rem; }
.calc__row { display: flex; align-items: center; gap: 1rem; }
.calc__row output {
  min-width: 3.5rem; text-align: center; font-family: 'Instrument Serif', serif;
  font-size: 1.5rem; line-height: 1; color: hsl(var(--ink));
  background: hsl(var(--muted)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius); padding: 0.4rem 0.5rem;
}
.calc input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 0.45rem; border-radius: 999px;
  background: linear-gradient(to right, hsl(var(--primary)) var(--pct, 40%), hsl(var(--border)) var(--pct, 40%));
  outline-offset: 4px; cursor: pointer;
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: hsl(var(--primary)); border: 3px solid hsl(var(--card)); box-shadow: 0 1px 5px rgba(0,0,0,0.3);
}
.calc input[type="range"]::-moz-range-thumb {
  width: 1.4rem; height: 1.4rem; border: 3px solid hsl(var(--card)); border-radius: 50%;
  background: hsl(var(--primary)); box-shadow: 0 1px 5px rgba(0,0,0,0.3);
}
.calc__result {
  background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  padding: 2rem; text-align: center; display: flex; flex-direction: column; justify-content: center;
}
.calc__result-label { font-size: 0.78rem; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.09em; }
.calc__amount { font-family: 'Instrument Serif', serif; font-size: clamp(2.75rem, 6vw, 3.75rem); line-height: 1.05; color: hsl(var(--ink)); margin: 0.35rem 0 0.15rem; }
.calc__period { color: hsl(var(--muted-foreground)); font-size: 0.95rem; }
.calc__result .btn { margin-top: 1.25rem; }
.calc__note { font-size: 0.85rem; color: hsl(var(--muted-foreground)); margin-top: 0.85rem; }
.calc__note a { color: hsl(var(--primary)); }
@media (max-width: 768px) {
  .calc { padding: 1.75rem; }
  .calc__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   Prose (blog posts, legal, guides)
   ========================================================================== */
.prose { max-width: 44rem; margin-inline: auto; font-size: 1.075rem; line-height: 1.75; color: hsl(var(--foreground)); font-family: 'Roboto Condensed', ui-sans-serif, system-ui, sans-serif; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { font-size: 1.75rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.35rem; margin-top: 2rem; }
.prose h4 { font-size: 1.1rem; margin-top: 1.5rem; }
.prose p { color: hsl(var(--foreground) / 0.9); }
.prose a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 2px; }
/* A .btn placed inside article prose must not inherit the .prose a link styling
   (underline + primary colour) — keep it looking like a button in light & dark.
   `.prose a` is (0,1,1) and outranks the `.btn-*` colour rules at (0,1,0), which
   painted a primary button's text in its own background colour and made it
   invisible. Every variant is restated here at matching specificity; patching
   one variant at a time is what let that through. */
.prose a.btn { text-decoration: none; }
.prose a.btn-primary, .prose a.btn-primary:hover { color: hsl(var(--coral-ink)); }
.prose a.btn-outline, .prose a.btn-outline:hover { color: hsl(var(--ink)); }
.prose a.btn-coral, .prose a.btn-coral:hover { color: hsl(var(--coral-ink)); }
.prose a.btn-ghost-light, .prose a.btn-ghost-light:hover { color: #fff; }
.prose ul, .prose ol { padding-left: 1.4rem; display: grid; gap: 0.4rem; }
.prose li { padding-left: 0.25rem; }
.prose img { border-radius: 0.75rem; border: 1px solid hsl(var(--border)); margin-block: 1.75rem; }
.video-figure { margin: 1.75rem 0; }
.video-embed { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: 0.75rem; border: 1px solid hsl(var(--border)); }
.video-figure figcaption { margin-top: 0.7rem; font-size: 0.85rem; color: hsl(var(--muted-foreground)); text-align: center; }
.video-embed::cue { background: rgba(0,0,0,0.72); color: #fff; font-size: 0.9em; line-height: 1.35; }
.prose blockquote { border-left: 3px solid hsl(var(--primary)); padding-left: 1.25rem; color: hsl(var(--muted-foreground)); font-style: italic; }
.prose code { font-family: 'JetBrains Mono', monospace; font-size: 0.9em; background: hsl(var(--muted)); padding: 0.15em 0.4em; border-radius: 4px; }
.prose pre { background: var(--nav-bg); color: #f5f5f5; padding: 1.25rem; border-radius: 0.75rem; overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid hsl(var(--border)); padding: 0.6rem 0.8rem; text-align: left; }
.prose th { background: hsl(var(--muted)); }
.prose hr { border: 0; border-top: 1px solid hsl(var(--border)); }

/* ==========================================================================
   Blog listing
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card__media { aspect-ratio: 16/9; overflow: hidden; background: hsl(var(--muted)); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.35rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.post-card h3 { font-size: 1.2rem; margin: 0.5rem 0 0.6rem; }
.post-card h3 a { color: hsl(var(--ink)); }
.post-card h3 a:hover { color: hsl(var(--primary)); text-decoration: none; }
.post-card p { color: hsl(var(--muted-foreground)); font-size: 0.95rem; flex: 1; font-family: 'Roboto Condensed', ui-sans-serif, system-ui, sans-serif; }
.post-card__more { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.55rem; }
.post-card__more__icon { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 999px; background: var(--coral-hex); color: hsl(var(--coral-ink)); font-size: 0.85rem; line-height: 1; flex-shrink: 0; }
.post-card__more__label { font-weight: 600; font-size: 0.9rem; color: hsl(var(--ink)); }

/* article header */
.article-head { max-width: 44rem; margin: 0 auto; text-align: center; }
.article-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 0.75rem; }
.article-head__meta { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.article-hero { max-width: 60rem; margin: 2.5rem auto 0; }
.article-hero img { border-radius: 1rem; border: 1px solid hsl(var(--border)); }

/* breadcrumb */
.breadcrumb { font-size: 0.85rem; color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; }
.breadcrumb a { color: hsl(var(--muted-foreground)); }
.breadcrumb a:hover { color: hsl(var(--primary)); }

/* ==========================================================================
   Footer (dark — mirrors product Footer)
   ========================================================================== */
.site-footer { margin-top: auto; background: var(--nav-bg); color: #fff; }
.site-footer__top {
  max-width: 1440px; margin-inline: auto; padding: 3.5rem 30px 2.5rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem;
}
.site-footer__brand img { height: 2.25rem; width: auto; margin-bottom: 1rem; }
.site-footer__brand p { color: rgba(255,255,255,0.6); font-size: 1rem; max-width: 22rem; font-family: 'Roboto Condensed', ui-sans-serif, system-ui, sans-serif; }
.site-footer h2 { color: var(--coral-hex); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.site-footer a { color: rgba(255,255,255,0.75); font-size: 1.02rem; font-family: 'Roboto Condensed', ui-sans-serif, system-ui, sans-serif; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer__social { display: flex; gap: 0.9rem; margin-top: 1.25rem; }
.site-footer__social a { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: rgba(255,255,255,0.08); }
.site-footer__social a:hover { background: var(--coral-hex); }
.site-footer__social svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding: 1.75rem 1rem; }
.site-footer__bottom .brandmark { font-weight: 700; color: var(--coral-hex); }
.site-footer__bottom p { color: rgba(255,255,255,0.6); font-size: 0.95rem; font-family: 'Roboto Condensed', ui-sans-serif, system-ui, sans-serif; }
.site-footer__no-cookies { margin: 0.6rem auto; font-style: italic; }

/* ==========================================================================
   AI assistant demo ("See it in action")
   ========================================================================== */
.ai-tools-line { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; letter-spacing: 0.02em; color: hsl(var(--muted-foreground)); }
.ai-tools-line strong { color: hsl(var(--ink)); font-weight: 600; }

.mcp-demo { max-width: 76rem; }
.mcp-demo__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 1.25rem; align-items: stretch; }
.mcp-panel { display: flex; flex-direction: column; overflow: hidden; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 0.9rem; }
.mcp-panel__bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1.15rem; border-bottom: 1px solid hsl(var(--border)); }
.mcp-dots { display: flex; gap: 0.35rem; }
.mcp-dot { width: 0.72rem; height: 0.72rem; border-radius: 999px; background: hsl(var(--border)); }
.mcp-dot--red { background: hsl(var(--primary) / 0.8); }
.mcp-dot--rose { background: var(--coral-hex); }
.mcp-panel__label { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: hsl(var(--muted-foreground)); }
.mcp-feed { flex: 1; display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem 1.4rem 1.6rem; font-family: 'JetBrains Mono', monospace; font-size: 0.84rem; line-height: 1.6; }
.mcp-brief { color: hsl(var(--ink)); }
.mcp-prompt { color: hsl(var(--primary)); }
.mcp-feed__lines { display: flex; flex-direction: column; gap: 0.65rem; }
.mcp-feed-line { display: flex; align-items: flex-start; gap: 0.5rem; opacity: 0; transition: opacity 0.5s; }
/* Author display values above override the [hidden] attribute; restore it so the
   feed lines, cursor and play overlay stay hidden until the script reveals them. */
.mcp-feed-line[hidden], #mcp-demo-cursor[hidden], #mcp-demo-play[hidden] { display: none; }
.mcp-feed-line .mark { margin-top: 1px; color: hsl(var(--muted-foreground)); }
.mcp-feed-line .mark.is-done { color: hsl(var(--primary)); }
.mcp-line__text { color: hsl(var(--ink)); }
.mcp-tool { margin-left: 0.5rem; font-size: 0.78rem; color: hsl(var(--muted-foreground)); }
.mcp-cursor { display: flex; align-items: center; gap: 0.5rem; color: hsl(var(--muted-foreground)); font-size: 0.8rem; }
.mcp-caret { display: inline-block; width: 0.5rem; height: 0.9rem; background: hsl(var(--primary)); animation: mcp-blink 1s steps(2) infinite; }
@keyframes mcp-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.mcp-stack { position: relative; overflow: hidden; background: hsl(var(--muted)); aspect-ratio: 1400 / 1205; }
.mcp-demo-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity 0.5s ease-out; }
.mcp-play { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 0; background: hsl(20 18% 12% / 0.35); border: 0; cursor: pointer; color: #fff; transition: opacity 0.3s; }
.mcp-play__btn { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--coral-hex); color: hsl(var(--coral-ink)); padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 600; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.45); }
.mcp-play svg { fill: currentColor; }
.mcp-steps { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.mcp-steps button { width: 0.65rem; height: 0.65rem; padding: 0; border-radius: 999px; border: 1px solid hsl(var(--border)); background: hsl(var(--border)); cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.mcp-steps button[aria-current="true"] { background: hsl(var(--primary)); border-color: hsl(var(--primary)); }
/* Keyboard-reachable pause/resume toggle (WCAG 2.2.2) — hover-pause alone leaves
   keyboard users no way to stop the >5s animation. Shown only while playing. */
.mcp-pause {
  display: flex; align-items: center; gap: 0.4rem;
  width: fit-content; margin: 0.85rem auto 0;
  padding: 0.4rem 1rem; border-radius: 999px;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  color: hsl(var(--foreground)); font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.mcp-pause:hover { background: hsl(var(--muted)); }
.mcp-pause svg { fill: currentColor; }
.mcp-pause[hidden] { display: none; }

@media (max-width: 900px) {
  .mcp-demo__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}.mt-6{margin-top:3rem}
.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.max-40{max-width:40rem}.mx-auto{margin-inline:auto}
.hairline{border-top:1px solid hsl(var(--border))}
.pill{display:inline-block;background:hsl(var(--muted));color:hsl(var(--muted-foreground));font-size:.75rem;font-weight:600;padding:.2rem .7rem;border-radius:999px}
/* Visually hidden but exposed to assistive tech (for off-screen section headings). */
.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}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row--reverse .feature-row__media { order: 0; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .site-nav__links { display: none; }
  .nav-toggle { display: block; }
  .site-nav__inner { padding: 0 1rem; gap: 0.75rem; }
  .site-nav__left { gap: 1rem; }
  .site-nav__right { gap: 0.6rem; }
  .site-nav__logo img { height: 2.4rem; }
  .site-nav__right > .btn { display: none; } /* header CTA moves into the menu */
  .section { padding-block: 3.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; gap: 1.75rem; }

  /* Slide-down menu: nav links, the Features section, and the CTA */
  .site-nav.is-open .site-nav__links {
    display: flex; position: absolute; top: 5.25rem; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--nav-bg); padding: 1rem; gap: 0.25rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); max-height: calc(100vh - 5.25rem); overflow-y: auto;
  }
  .site-nav.is-open .nav-dropdown { display: block; }
  /* Expand the Features flyout into an inline, static list within the menu */
  .site-nav.is-open .nav-dropdown__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; padding: 0.25rem 0 0.5rem 0.85rem; margin: 0;
    background: transparent; border: 0; box-shadow: none;
  }
  .site-nav.is-open .nav-dropdown__item { padding: 0.5rem 0.5rem; }
  .site-nav.is-open .nav-dropdown__item strong { color: #fff; }
  .site-nav.is-open .nav-dropdown__item span { color: rgba(255,255,255,0.6); }
  .site-nav.is-open .nav-dropdown__item:hover { background: rgba(255,255,255,0.08); }
  .site-nav.is-open .site-nav__cta-m { display: inline-flex; justify-content: center; margin-top: 0.6rem; }
}

/* Freeze the page behind the open mobile menu. `overflow: hidden` (rather than
   `position: fixed`) keeps the scroll position and leaves the sticky nav intact;
   the menu scrolls internally via its own max-height/overflow-y. Set by
   scripts/site-nav.js, which also clears it if the viewport widens past mobile. */
html.nav-locked, html.nav-locked body { overflow: hidden; }
.site-nav__links { overscroll-behavior: contain; }

/* ==========================================================================
   Newsletter signup — three placements, one form
   ========================================================================== */

/* The honeypot. Off-screen rather than display:none, because some bots skip
   hidden fields but happily fill anything still in the DOM. aria-hidden and
   tabindex="-1" keep it away from assistive tech and the tab order. */
.newsletter-form__pot {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.newsletter-form { display: grid; gap: 0.9rem; margin-top: 1.75rem; }
.newsletter-form__field { display: grid; gap: 0.35rem; }
.newsletter-form__label { font-size: 0.9rem; font-weight: 500; }
.newsletter-form__optional { font-weight: 400; color: hsl(var(--muted-foreground)); }
.newsletter-form input[type="email"],
.newsletter-form input[type="text"] {
  font: inherit; font-weight: 400;
  padding: 0.75rem 1rem; border-radius: 0.6rem;
  border: 1px solid hsl(var(--border)); background: hsl(var(--background)); color: hsl(var(--ink));
}
.newsletter-form input::placeholder { color: hsl(var(--muted-foreground)); opacity: 0.8; }
.newsletter-form input:focus-visible { outline: 2px solid var(--coral-hex); outline-offset: 1px; }
.newsletter-form .btn { justify-self: start; }
/* GDPR consent. Deliberately not styled down into fine print: it is the thing
   the visitor is agreeing to, so it stays legible. The checkbox keeps its
   native appearance and a real hit target — a prettified div would lose
   keyboard focus and the browser's own "please tick this" validation. */
.newsletter-form__consent {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem;
  align-items: start; margin-top: 0.35rem;
  font-size: 0.85rem; line-height: 1.5; color: hsl(var(--muted-foreground));
  cursor: pointer;
}
.newsletter-form__consent input[type="checkbox"] {
  width: 1.05rem; height: 1.05rem; margin: 0.1rem 0 0; flex-shrink: 0;
  accent-color: var(--coral-hex); cursor: pointer;
}
.newsletter-form__consent input:focus-visible { outline: 2px solid var(--coral-hex); outline-offset: 2px; }

/* The double opt-in confirmation page. The measure was an inline style on the
   hand-written markup this replaced; it lives here now so both locales get it
   from one place. */
.newsletter-confirm { max-width: 44rem; text-align: center; }

/* Standalone section — the dedicated /newsletter/ page. */
.newsletter-section { text-align: center; }
/* Directly under a page head the form IS the point of the page, so it should sit
   right below the lead rather than a full section's padding away from it. */
.page-head + .newsletter-section { padding-top: 1.5rem; }
.newsletter-section .newsletter-form { max-width: 26rem; margin-inline: auto; }
.newsletter-section .newsletter-form__field { text-align: left; }
.newsletter-section .newsletter-form__consent { text-align: left; }
.newsletter-section .newsletter-form .btn { justify-self: stretch; }

/* End of a blog post. Boxed so it reads as an aside rather than as one more
   paragraph of the article the reader just finished. */
.newsletter-inline {
  margin: 3.5rem auto 0; max-width: 44rem; padding: 2rem;
  background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); border-radius: 1rem;
}
.newsletter-inline h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.newsletter-inline .lead { font-size: 1rem; }
.newsletter-inline .newsletter-form { max-width: 30rem; }

/* Footer — on a dark background, so the field and the fine print need their own
   colours rather than the light-theme tokens above. */
.site-footer__signup {
  max-width: 1440px; margin-inline: auto; padding: 2.5rem 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.newsletter-footer {
  display: flex; flex-direction: column; gap: 1.1rem; max-width: 64rem;
  margin-inline: auto; align-items: center;
}
.newsletter-footer__eyebrow {
  margin: 0 0 0.4rem;
  color: var(--coral-hex);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-align: center;
}
.newsletter-footer h2 {
  margin: 0 0 0.5rem;
  color: #fff; font-size: 1.5rem; font-weight: 600;
  text-transform: none; letter-spacing: normal;
  text-align: center;
}
.newsletter-footer__lead {
  margin: 0; max-width: 38rem;
  color: rgba(255,255,255,0.6); font-size: 1rem; line-height: 1.5;
  text-align: center;
}
.newsletter-footer .newsletter-form { margin-top: 0.3rem; gap: 0.7rem 1rem; justify-content: center; }
.newsletter-footer .newsletter-form__label { color: rgba(255,255,255,0.75); font-size: 0.95rem; white-space: nowrap; }
.newsletter-footer input[type="email"] {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: #fff;
  padding: 0.6rem 0.9rem; width: 20rem;
}
.newsletter-footer input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-footer .newsletter-form__consent {
  color: rgba(255,255,255,0.6); font-size: 0.88rem; text-align: left;
  /* Capped so this long sentence can't inflate the grid's "auto" column
     during intrinsic sizing (a spanning item otherwise blows the button's
     column wide open, which — since the button itself stays flush to the
     left of that wide column — pushed the whole visible row off-center). */
  max-width: 32rem;
}
.newsletter-footer .newsletter-form__consent a { font-size: inherit; }
/* Label, field and button all share one centered row. The column is capped
   with minmax(0, 22rem) rather than left as "auto" — an auto track gets
   blown wide by the consent text spanning both columns underneath it,
   which shoved the button off to the far right. Explicit row/column
   placement is still needed too: the base .newsletter-form is a plain
   auto-flow grid, and without it the button drifts onto its own row below
   the consent text. */
.newsletter-footer .newsletter-form {
  grid-template-columns: minmax(0, 28rem) auto; align-items: center;
}
.newsletter-footer .newsletter-form__field {
  grid-column: 1; grid-row: 1;
  display: flex; align-items: center; gap: 0.6rem;
}
.newsletter-footer .newsletter-form .btn { grid-column: 2; grid-row: 1; justify-self: start; }
.newsletter-footer .newsletter-form__consent { grid-column: 1 / -1; justify-self: center; }
@media (max-width: 720px) {
  .newsletter-footer { gap: 0.75rem; }
  /* The desktop row (label beside a fixed-width input beside the button)
     doesn't fit a phone screen, so fall back to the label-above-input
     stack, a full-width input, and a full-width button below it. */
  .newsletter-footer .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-footer .newsletter-form__field { grid-row: 1; flex-direction: column; align-items: stretch; gap: 0.35rem; }
  .newsletter-footer input[type="email"] { width: 100%; }
  .newsletter-footer .newsletter-form .btn { grid-column: 1; grid-row: 2; justify-self: stretch; }
  .newsletter-footer .newsletter-form__consent { grid-row: 3; max-width: none; }
}

/* ==========================================================================
   Reduced motion (WCAG 2.3.3) — honour the user's OS preference
   ========================================================================== */
@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;
    scroll-behavior: auto !important;
  }
}
