/* === generated by scripts/fetch-fonts.mjs — do not edit === */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-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: 600;
  font-display: swap;
  src: url('fonts/jetbrains-mono-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/jetbrains-mono-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/jetbrains-mono-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/jetbrains-mono-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/space-grotesk-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/space-grotesk-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/space-grotesk-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/space-grotesk-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-grotesk-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-grotesk-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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-700-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/jetbrains-mono-600-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/jetbrains-mono-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/jetbrains-mono-700-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/jetbrains-mono-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* === end generated fonts === */

/* ============================================================================
   Vocalify — Landing (Aurora Glass)
   Self-contained premium stylesheet. Dual theme via [data-theme] on <html>.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root,
[data-theme='light'] {
  --bg: 228 28% 95%;
  --bg-subtle: 228 24% 92%;
  --surface: 0 0% 100%;
  --surface-2: 228 24% 97%;
  --border: 228 18% 84%;
  --border-strong: 228 18% 72%;
  --fg: 228 32% 12%;
  --fg-muted: 226 14% 38%;
  --fg-subtle: 226 12% 56%;

  --brand: 162 78% 38%;
  --brand-2: 176 74% 36%;
  --brand-strong: 164 84% 32%;
  --brand-fg: 0 0% 100%;

  --accent: 34 92% 46%;
  --accent-fg: 0 0% 100%;

  --pitch-intune: 152 70% 42%;
  --pitch-near: 84 70% 44%;
  --pitch-off: 35 92% 52%;
  --pitch-far: 2 80% 58%;

  --glass: rgba(255, 255, 255, 0.66);
  --glass-2: rgba(255, 255, 255, 0.86);
  --glass-brd: rgba(20, 24, 45, 0.09);
  --glass-brd-strong: rgba(20, 24, 45, 0.16);

  --shadow-sm: 0 1px 2px rgba(40, 45, 80, 0.08);
  --shadow-md: 0 16px 34px -18px rgba(40, 45, 80, 0.22);
  --shadow-lg: 0 30px 60px -28px rgba(40, 45, 80, 0.30);

  --mesh:
    radial-gradient(58% 48% at 12% 0%, hsl(160 80% 50% / 0.16), transparent 60%),
    radial-gradient(50% 46% at 100% 6%, hsl(176 74% 50% / 0.14), transparent 56%),
    radial-gradient(64% 60% at 50% 118%, hsl(190 70% 50% / 0.08), transparent 62%);
  --grid-line: rgba(20, 24, 45, 0.045);
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: 228 24% 6%;
  --bg-subtle: 228 22% 9%;
  --surface: 228 20% 13%;
  --surface-2: 228 18% 17%;
  --border: 228 16% 30%;
  --border-strong: 228 16% 42%;
  --fg: 222 24% 96%;
  --fg-muted: 222 12% 68%;
  --fg-subtle: 224 10% 48%;

  --brand: 158 84% 52%;
  --brand-2: 174 76% 50%;
  --brand-strong: 168 84% 58%;
  --brand-fg: 165 60% 8%;

  --accent: 38 96% 60%;
  --accent-fg: 30 45% 10%;

  --pitch-intune: 152 70% 48%;
  --pitch-near: 84 70% 48%;
  --pitch-off: 35 92% 56%;
  --pitch-far: 2 80% 62%;

  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.075);
  --glass-brd: rgba(255, 255, 255, 0.09);
  --glass-brd-strong: rgba(255, 255, 255, 0.17);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 34px -16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, 0.7);

  --mesh:
    radial-gradient(58% 48% at 14% 0%, hsl(158 84% 56% / 0.20), transparent 60%),
    radial-gradient(50% 46% at 100% 8%, hsl(174 76% 56% / 0.16), transparent 56%),
    radial-gradient(64% 60% at 50% 118%, hsl(190 80% 55% / 0.09), transparent 62%);
  --grid-line: rgba(210, 220, 255, 0.05);
  color-scheme: dark;
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--fg));
  background: hsl(var(--bg));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.1; letter-spacing: -0.02em; margin: 0; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid hsl(var(--brand)); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: hsl(var(--brand)); color: hsl(var(--brand-fg));
  padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---- Ambient background ------------------------------------------------- */
.bg-mesh {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background: hsl(var(--bg)); background-image: var(--mesh);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
          mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
}

::selection { color: hsl(var(--fg)); background: hsl(var(--brand) / 0.28); }
* { scrollbar-width: thin; scrollbar-color: hsl(var(--fg-subtle) / 0.55) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: hsl(var(--fg-subtle) / 0.45); border: 3px solid transparent; border-radius: 999px; background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---- Layout ------------------------------------------------------------ */
.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.section { padding: clamp(52px, 6vw, 88px) 0; position: relative; }
.section--alt { background: hsl(var(--bg-subtle) / 0.5); }

/* ---- Nav --------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background var(--dur, 220ms), border-color var(--dur, 220ms), backdrop-filter var(--dur, 220ms);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: hsl(var(--bg) / 0.7);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--glass-brd);
}
.nav__inner {
  width: min(1120px, 92vw); margin: 0 auto;
  height: 68px; display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px; overflow: hidden;
  display: block; box-shadow: 0 6px 20px -8px hsl(var(--brand) / 0.5);
}
.brand__mark svg { width: 100%; height: 100%; display: block; }
.nav__links { display: flex; gap: 28px; margin-left: 16px; }
.nav__links a { font-size: 0.92rem; color: hsl(var(--fg-muted)); font-weight: 500; transition: color 160ms; }
.nav__links a:hover { color: hsl(var(--fg)); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.language-switcher { position: relative; flex-shrink: 0; }
.language-switcher summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--glass-brd); border-radius: 10px; background: var(--glass); color: hsl(var(--fg-muted)); font-size: 0.86rem; font-weight: 500; cursor: pointer; list-style: none; transition: color 160ms, background 160ms; }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary:hover, .language-switcher[open] summary { color: hsl(var(--fg)); background: hsl(var(--fg) / 0.08); }
.language-switcher__chevron { transition: transform 160ms; }
.language-switcher[open] .language-switcher__chevron { transform: rotate(180deg); }
.language-switcher__flag { display: block; width: 24px; height: 16px; border-radius: 2px; flex-shrink: 0; }
.language-switcher__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 2; width: 208px; padding: 6px; border: 1px solid var(--glass-brd); border-radius: 12px; background: hsl(var(--bg)); }
.language-switcher__menu a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 7px; font-size: 0.9rem; color: hsl(var(--fg-muted)); transition: background 160ms, color 160ms; }
.language-switcher__menu a:hover { color: hsl(var(--fg)); background: hsl(var(--fg) / 0.06); }
.language-switcher__menu a[aria-current="page"] { color: hsl(var(--brand-strong)); background: hsl(var(--brand) / 0.1); font-weight: 600; }
.language-switcher__code { margin-left: auto; font-size: 0.7rem; letter-spacing: 0.04em; }
.language-switcher__menu a svg { visibility: hidden; flex-shrink: 0; }
.language-switcher__menu a[aria-current="page"] svg { visibility: visible; }
.language-switcher summary:focus-visible, .language-switcher__menu a:focus-visible { outline: 2px solid hsl(var(--brand)); outline-offset: 3px; }
@media (max-width: 680px) {
  .language-switcher summary { gap: 6px; padding-inline: 9px; }
  .language-switcher__menu { left: 50%; right: auto; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .language-switcher summary, .language-switcher__chevron, .language-switcher__menu a { transition: none; }
}
.link-language { font-size: 0.75em; font-weight: 400; }
/* Keep translated links readable beside the language and app controls. */
@media (min-width: 1081px) {
  .nav:has(.language-switcher) .nav__inner { height: auto; min-height: 68px; flex-wrap: wrap; gap: 4px 24px; padding-block: 10px; }
  .nav:has(.language-switcher) .nav__links { order: 3; flex-basis: 100%; justify-content: center; flex-wrap: wrap; gap: 10px 24px; margin-left: 0; padding-bottom: 6px; }
}
@media (max-width: 1080px) {
  .nav:has(.language-switcher) .nav__links { display: none; }
  .nav:has(.language-switcher) .nav__burger { display: flex; }
}
@media (max-width: 380px) {
  .nav:has(.language-switcher) .brand__name { display: none; }
}

.theme-toggle {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  color: hsl(var(--fg-muted)); border: 1px solid var(--glass-brd); background: var(--glass);
  transition: color 160ms, border-color 160ms, transform 160ms;
}
.theme-toggle:hover { color: hsl(var(--fg)); border-color: var(--glass-brd-strong); transform: translateY(-1px); }
.theme-toggle .i-moon { display: none; }
[data-theme='dark'] .theme-toggle .i-sun { display: none; }
[data-theme='dark'] .theme-toggle .i-moon { display: block; }

/* 44px, not 38: this only ever shows on a phone, where it is the single control
   that reaches the rest of the site, and 44 is the smallest target a thumb hits
   reliably. The bars inside stay the size they were. */
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--glass-brd); background: var(--glass); flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.nav__burger span { width: 16px; height: 2px; background: hsl(var(--fg)); border-radius: 2px; transition: transform 200ms, opacity 200ms; }
.nav__drawer { display: none; flex-direction: column; gap: 18px; padding: 20px 24px 28px; border-top: 1px solid var(--glass-brd); background: hsl(var(--bg) / 0.92); backdrop-filter: blur(18px); }
.nav__drawer.open { display: flex; }
/* Links in the drawer are muted; the CTA in it is not a link, it is a button.
   `:not(.btn)` matters because `.nav__drawer a` outranks `.btn--primary` on
   specificity, so without it the drawer's grey wins over the button's own
   colour and the CTA renders as grey text on the emerald gradient — about
   1.5:1, on the one control the whole page is asking a phone reader to press. */
.nav__drawer a:not(.btn) { color: hsl(var(--fg-muted)); font-weight: 500; }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 12px;
  font-weight: 600; font-size: 0.92rem; letter-spacing: -0.01em;
  border: 1px solid transparent; transition: transform 160ms, box-shadow 220ms, background 160ms, border-color 160ms;
  white-space: nowrap;
}
.btn--lg { height: 52px; padding: 0 24px; font-size: 1rem; border-radius: 14px; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 0.86rem; border-radius: 10px; }
.btn--primary {
  color: hsl(var(--brand-fg));
  background: linear-gradient(135deg, hsl(var(--brand)), hsl(var(--brand-2)));
  box-shadow: 0 14px 34px -18px hsl(var(--brand) / 0.75);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 42px -20px hsl(var(--brand) / 0.85); }
.btn--ghost {
  color: hsl(var(--fg)); background: var(--glass); border-color: var(--glass-brd);
}
.btn--ghost:hover { border-color: var(--glass-brd-strong); transform: translateY(-2px); background: var(--glass-2); }

/* ---- Card -------------------------------------------------------------- */
.card {
  background: hsl(var(--surface) / 0.72);
  border: 1px solid var(--glass-brd);
  border-radius: 16px;
}

/* ---- Hero availability ------------------------------------------------ */
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; color: hsl(var(--fg-muted));
}
.hero-kicker__dot { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--brand)); box-shadow: 0 0 0 4px hsl(var(--brand) / 0.25); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.section__head { width: calc(100% - 32px); max-width: 660px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section__title { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section__lead { color: hsl(var(--fg-muted)); margin-top: 16px; font-size: 1.05rem; }

.hero__accent { color: hsl(var(--brand)); }

/* ---- HERO -------------------------------------------------------------- */
.hero {
  width: min(1120px, 92vw); margin: 0 auto;
  padding: clamp(44px, 6vw, 84px) 0 clamp(48px, 6vw, 76px);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__title { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
.hero__sub { margin-top: 22px; font-size: 1.12rem; color: hsl(var(--fg-muted)); max-width: 42ch; }
.hero__cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta { margin-top: 36px; list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero__meta li { font-size: 0.88rem; color: hsl(var(--fg-muted)); }
.hero__meta strong { color: hsl(var(--fg)); font-weight: 600; }

/* Hero visual — live piano-roll preview (theme-aware inline SVG) */
.hero__viz { position: relative; }
/* A soft lift under the card, not a halo: a wide, low-opacity bloom offset
   downward reads as depth; centring it at full strength turned the card into a
   green blob. */
.viz__shadow {
  position: absolute; inset: 8% -4% -10%; z-index: -1; border-radius: 40px;
  filter: blur(56px); opacity: 0.28;
  background: radial-gradient(60% 60% at 50% 60%, hsl(var(--brand)), transparent 70%);
}

.demo { padding: 16px; position: relative; z-index: 1; }
.demo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.roll-title { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.78rem; color: hsl(var(--fg-muted)); }
.roll-score {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; font-size: 0.85rem;
  color: hsl(var(--pitch-intune)); background: hsl(var(--pitch-intune) / 0.12);
  padding: 4px 10px; border-radius: 999px;
}
.demo-graph-static { border-radius: 14px; overflow: hidden; }
.hero-roll { display: block; width: 100%; height: auto; border-radius: 14px; }

/* Colour key — the graph is meaningless without it, and it says more in three
   words than the sentence of caption it replaced. */
.legend { margin: 12px 0 2px; padding: 0; list-style: none; display: flex; justify-content: center; gap: 18px; }
.legend li { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: hsl(var(--fg-muted)); }
.legend__swatch { width: 14px; height: 3px; border-radius: 2px; display: block; }
.legend__swatch--in { background: hsl(var(--pitch-intune)); }
.legend__swatch--near { background: hsl(var(--pitch-near)); }
.legend__swatch--off { background: hsl(var(--pitch-off)); }

/* ---- Trust band -------------------------------------------------------- */
.band { border-block: 1px solid var(--glass-brd); background: hsl(var(--bg-subtle) / 0.45); }
.band__inner {
  width: min(1120px, 92vw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.band__cell { padding: 30px clamp(18px, 2.2vw, 30px); border-left: 1px solid var(--glass-brd); }
.band__cell:first-child { border-left: 0; }
.band__cell h3 { font-size: 1.02rem; margin-bottom: 7px; }
.band__cell p { font-size: 0.88rem; color: hsl(var(--fg-muted)); line-height: 1.55; }

/* ---- Step rail --------------------------------------------------------- */
.rail {
  width: min(1120px, 92vw); margin: 0 auto; list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 30px);
}
.rail__step { position: relative; padding-top: 30px; }
/* Start the connector after the numeral so its background can stay transparent. */
.rail__step::before {
  content: ''; position: absolute; left: 34px; right: calc(-1 * clamp(18px, 2.4vw, 30px)); top: 11px;
  height: 1px; background: linear-gradient(90deg, hsl(var(--brand) / 0.5), var(--glass-brd));
}
.rail__step:last-child::before { right: 0; background: linear-gradient(90deg, hsl(var(--brand) / 0.5), transparent); }
.rail__num {
  position: absolute; left: 0; top: 0; z-index: 1;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; font-size: 0.78rem;
  color: hsl(var(--brand)); background: transparent; padding-right: 10px; letter-spacing: 0.08em;
}
.rail__step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.rail__step p { color: hsl(var(--fg-muted)); font-size: 0.94rem; }

/* ---- Showcase (copy + product screenshot) ------------------------------ */
.showcase {
  width: min(1220px, 94vw); margin: 0 auto;
  /* The screenshot carries the section, so give it the larger share — at even
     widths the app UI inside it renders too small to read. */
  display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
/* Flipping order (not direction) keeps the DOM in reading order for a11y and
   lets the mobile stack stay copy-then-image in both variants. */
.showcase--flip .showcase__copy { order: 2; }
.showcase__copy .section__title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.showcase__copy .section__lead { margin-bottom: 24px; }
.showcase__copy .btn { margin-top: 6px; }

.ticks { margin: 0 0 26px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.ticks li { position: relative; padding-left: 26px; color: hsl(var(--fg-muted)); font-size: 0.95rem; line-height: 1.55; }
.ticks li::before {
  content: ''; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: hsl(var(--brand)); box-shadow: 0 0 0 3px hsl(var(--brand) / 0.16);
}
.ticks strong { color: hsl(var(--fg)); font-weight: 600; }

/* Caveat under a feature list — small print that has to be readable, not hidden. */
.note {
  margin: -10px 0 22px; padding-left: 26px; font-size: 0.86rem; color: hsl(var(--fg-subtle));
}

/* Screenshot frame — a hint of browser chrome so an app screenshot reads as
   "this is the product", not as a diagram.
   The chrome is deliberately dark in BOTH themes: the screenshots inside it are
   dark-theme captures, and a light frame around a dark image reads as a broken
   or mismatched asset. Dark frame + light page reads as an app window. */
.shot {
  --shot-chrome: #12161d;
  --shot-line: rgba(255, 255, 255, 0.10);
  margin: 0; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--shot-line); background: var(--shot-chrome);
  box-shadow: var(--shadow-lg);
}
.shot__bar {
  display: flex; align-items: center; gap: 7px; padding: 0 14px; height: 34px;
  background: var(--shot-chrome); border-bottom: 1px solid var(--shot-line);
}
.shot__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); flex-shrink: 0; }
.shot__bar em {
  margin-left: 10px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-style: normal;
  font-size: 0.7rem; color: rgba(255, 255, 255, 0.42); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shot img { width: 100%; height: auto; display: block; }

/* ---- Bento grid -------------------------------------------------------- */
.bento {
  width: min(1180px, 92vw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.bento__cell { padding: 28px; display: flex; flex-direction: column; }
/* The feature cell: 2 columns × 2 rows, so one wide cell plus five normal ones
   tile a 3-column grid exactly — no ragged trailing gap. */
.bento__cell--wide {
  grid-column: span 2; grid-row: span 2;
  padding-bottom: 0; overflow: hidden; justify-content: flex-start;
}
.bento__body { flex: 0 0 auto; }
/* The shot sits flush on the card's bottom edge and is simply clipped there.
   Fading it out instead only works on a dark page — on the light theme a dark
   capture dissolving into a white card reads as a rendering fault. */
.bento__shot {
  margin: 24px 0 0; flex: 1 1 auto; min-height: 0; display: flex; align-items: flex-start;
  border-radius: 12px 12px 0 0; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10); border-bottom: 0; background: #12161d;
}
.bento__shot img { width: 100%; height: auto; display: block; }
.bento__icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  color: hsl(var(--brand)); margin-bottom: 16px;
  background: linear-gradient(135deg, hsl(var(--brand) / 0.18), hsl(var(--brand-2) / 0.08));
  border: 1px solid hsl(var(--brand) / 0.22);
}
.bento__cell h3 { font-size: 1.14rem; margin-bottom: 8px; }
.bento__cell p { color: hsl(var(--fg-muted)); font-size: 0.94rem; }

/* ---- FAQ --------------------------------------------------------------- */
.faq { width: min(760px, 92vw); margin: 0 auto; display: flex; flex-direction: column; }
.faq__item { padding: 0; border: 0; border-top: 1px solid var(--glass-brd); border-radius: 0; background: transparent; }
.faq__item:last-child { border-bottom: 1px solid var(--glass-brd); }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 4px; font-weight: 600; font-family: 'Space Grotesk', sans-serif; font-size: 1.08rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color 160ms, background 160ms; }
.faq__item summary:hover { color: hsl(var(--brand)); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-size: 1.4rem; color: hsl(var(--brand)); transition: transform 200ms; flex-shrink: 0; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 36px 22px 4px; color: hsl(var(--fg-muted)); }

/* ---- CTA --------------------------------------------------------------- */
.cta { padding: clamp(48px, 7vw, 90px) 0 clamp(64px, 8vw, 110px); }
.cta__card {
  width: min(960px, 92vw); margin: 0 auto; padding: clamp(40px, 6vw, 72px);
  text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% 0%, hsl(var(--brand) / 0.16), transparent 60%),
    var(--glass);
  border: 1px solid var(--glass-brd-strong);
}
.cta__card h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta__card p { margin: 14px auto 28px; color: hsl(var(--fg-muted)); max-width: 40ch; }
.cta__card .cta__fine { margin: 18px auto 0; font-size: 0.84rem; color: hsl(var(--fg-subtle)); }

/* ---- Footer ------------------------------------------------------------ */
.footer { border-top: 1px solid var(--glass-brd); background: hsl(var(--bg-subtle) / 0.5); padding: 48px 0 40px; }
.footer__inner { width: min(1120px, 92vw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.footer__brand p { color: hsl(var(--fg-subtle)); font-size: 0.88rem; margin-top: 8px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.footer__links a, .footer__links button { color: hsl(var(--fg-muted)); font-size: 0.9rem; }
.footer__links a:hover, .footer__links button:hover { color: hsl(var(--fg)); }
.footer__copy { color: hsl(var(--fg-subtle)); font-size: 0.85rem; }

/* ---- Legal pages (privacy) --------------------------------------------- */
.legal { padding: clamp(40px, 7vw, 90px) 0 clamp(64px, 9vw, 120px); }
.legal-inner { width: min(820px, 92vw); margin: 0 auto; }
.legal-inner h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal-meta { color: hsl(var(--fg-subtle)); font-size: 0.9rem; margin: 8px 0 28px; }
.legal-inner h2 { font-size: 1.4rem; margin: 38px 0 12px; }
.legal-inner h3 { font-size: 1.08rem; margin: 24px 0 8px; }
.legal-inner p { color: hsl(var(--fg-muted)); margin-bottom: 14px; }
.legal-inner ul { color: hsl(var(--fg-muted)); margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-inner a { color: hsl(var(--brand)); text-decoration: underline; text-underline-offset: 2px; }
.legal-inner a:hover { color: hsl(var(--brand-strong)); }
.legal-inner strong { color: hsl(var(--fg)); }
.legal-inner em { color: hsl(var(--fg)); font-style: italic; }
.legal-inner code {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.88em;
  background: hsl(var(--fg) / 0.07); padding: 1px 6px; border-radius: 6px;
}
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 0.92rem; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border: 1px solid var(--glass-brd); color: hsl(var(--fg-muted)); }
.legal-table th { color: hsl(var(--fg)); font-weight: 600; background: hsl(var(--bg-subtle) / 0.5); }

/* ---- Cookie consent ---------------------------------------------------- */
.cookie-notice {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 16px); z-index: 200;
  width: min(680px, 92vw); display: flex; flex-wrap: wrap; gap: 14px 20px;
  align-items: center; justify-content: space-between; padding: 16px 20px; border-radius: 16px;
  background: var(--glass-2); border: 1px solid var(--glass-brd-strong);
  backdrop-filter: blur(18px) saturate(160%); box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity 240ms, transform 240ms;
}
/* `display:flex` above outranks the UA [hidden]{display:none}, so hide it
   explicitly — otherwise a dismissed banner stays laid out (invisible) and
   keeps intercepting clicks over the footer. */
.cookie-notice[hidden] { display: none; }
.cookie-notice.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.cookie-text { font-size: 0.86rem; color: hsl(var(--fg-muted)); }
.cookie-more { display: inline-block; margin-top: 4px; font-size: 0.82rem; color: hsl(var(--brand)); }
.cookie-actions { display: flex; gap: 10px; }

/* One authored entrance on the product claim; the rest of the page stays still. */
.reveal { opacity: 1; transform: none; }
.hero .reveal { opacity: 0; transform: translateY(18px); transition: opacity 620ms cubic-bezier(0.2,0,0,1), transform 620ms cubic-bezier(0.2,0,0,1); transition-delay: var(--d, 0ms); }
.hero .reveal.in { opacity: 1; transform: none; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1080px) {
  .band__inner { grid-template-columns: repeat(2, 1fr); }
  /* Two per row: only the first cell of each row loses its divider. */
  .band__cell:nth-child(2n + 1) { border-left: 0; }
  .band__cell:nth-child(n + 3) { border-top: 1px solid var(--glass-brd); }
  .rail { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  /* Two columns: the connector must stop at the end of each row, not run off
     the right edge of the odd-indexed cells. */
  .rail__step:nth-child(2n)::before { right: 0; background: linear-gradient(90deg, hsl(var(--brand) / 0.5), transparent); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--wide { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  /* Headline first when stacked — same reading order as the desktop two-column
     layout, and the claim should land before the screenshot. */
  .hero__viz { max-width: 560px; margin-inline: auto; }
  .showcase { grid-template-columns: 1fr; }
  /* Stacked, copy always leads — undo the desktop reorder. */
  .showcase--flip .showcase__copy { order: 0; }
}
@media (max-width: 680px) {
  .nav__links { display: none; }
  /* Drawer carries the CTA on phones — keep the bar from crowding/overflowing. */
  .nav__actions .btn { display: none; }
  .nav__burger { display: flex; }
  .band__inner { grid-template-columns: repeat(2, 1fr); }
  .band__cell { border-left: 1px solid var(--glass-brd); }
  .band__cell:nth-child(2n + 1) { border-left: 0; }
  .rail { grid-template-columns: 1fr; row-gap: 30px; }
  .rail__step::before { right: 0 !important; background: linear-gradient(90deg, hsl(var(--brand) / 0.5), transparent) !important; }
  .bento { grid-template-columns: 1fr; }
  .bento__cell--wide { grid-column: span 1; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .nav__inner { height: 60px; gap: 12px; }
  .brand { font-size: 1rem; }

  .section { padding-block: 46px; }
  .hero { padding-top: 32px; padding-bottom: 42px; }
  .hero__sub { font-size: 1.04rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__meta { gap: 8px 18px; }

  .bento__cell { padding: 22px 20px; }
  .bento__cell--wide { padding: 24px 22px 0; }
  .band__cell { padding: 20px 16px; }
  .band__cell h3 { font-size: 0.94rem; }
  .band__cell p { font-size: 0.82rem; }
  .legend { gap: 14px; }

  .faq__item summary { padding: 18px 2px; font-size: 1rem; }
  .faq__item p { padding: 0 28px 20px 2px; }

  .cta__card { padding: 36px 24px; }

  /* Narrow screens: footer links wrap into a 2-col grid instead of one
     unshrinkable row that forces horizontal page scroll. */
  .footer__links { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 28px; justify-content: start; align-items: start; }

  .cookie-notice { flex-direction: column; align-items: stretch; bottom: 10px; gap: 12px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }

  /* Wide privacy tables scroll instead of forcing horizontal page overflow. */
  .legal-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .hero .reveal { opacity: 1; transform: none; }
}

/* ======================================================================
   Guides — long-form, evidence-based training articles (/guides/*).
   Reuses the site tokens; extends the .legal reading column with a hero,
   breadcrumb, figures, callouts, a references block and related-guide cards.
   ====================================================================== */
.guide { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 110px); }
.guide-wrap { width: min(820px, 92vw); margin: 0 auto; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.82rem; color: hsl(var(--fg-subtle)); margin-bottom: 22px; }
.breadcrumb a { color: hsl(var(--fg-muted)); text-decoration: none; }
.breadcrumb a:hover { color: hsl(var(--brand)); }
.breadcrumb span { color: hsl(var(--fg-subtle)); }

.guide-hero { margin-bottom: 34px; }
.guide-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: hsl(var(--brand-strong)); margin-bottom: 14px; }
.guide-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 16px; }
.guide-lead { font-size: clamp(1.05rem, 1.8vw, 1.22rem); line-height: 1.6; color: hsl(var(--fg-muted)); }
.guide-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.85rem; color: hsl(var(--fg-subtle)); }
.guide-meta strong { color: hsl(var(--fg)); font-weight: 600; }

.guide-body { color: hsl(var(--fg-muted)); }
.guide-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.7rem); color: hsl(var(--fg)); letter-spacing: -0.01em; margin: 44px 0 12px; }
.guide-body h3 { font-size: 1.12rem; color: hsl(var(--fg)); margin: 28px 0 8px; }
.guide-body p { line-height: 1.72; margin-bottom: 16px; }
.guide-body ul, .guide-body ol { margin: 0 0 18px; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.guide-body li { line-height: 1.6; }
.guide-body a { color: hsl(var(--brand)); text-decoration: underline; text-underline-offset: 2px; }
.guide-body a:hover { color: hsl(var(--brand-strong)); }
.guide-body strong { color: hsl(var(--fg)); }
.guide-body em { color: hsl(var(--fg)); }
.guide-body sup a { text-decoration: none; font-weight: 600; padding: 0 1px; }

/* Table of contents */
.guide-toc { margin: 0 0 8px; padding: 18px 22px; border-radius: 14px; background: hsl(var(--bg-subtle) / 0.5); border: 1px solid var(--glass-brd); }
.guide-toc p { margin: 0 0 10px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: hsl(var(--fg-subtle)); }
.guide-toc ul { margin: 0; padding: 0; list-style: none; gap: 7px; }
.guide-toc a { color: hsl(var(--fg-muted)); text-decoration: none; }
.guide-toc a:hover { color: hsl(var(--brand)); }

/* Screenshot figures */
.guide-figure { margin: 26px 0 30px; }
.guide-figure img {
  width: 100%; height: auto; border-radius: 14px;
  border: 1px solid var(--glass-brd-strong); box-shadow: var(--shadow-lg);
}
.guide-figure figcaption { margin-top: 10px; font-size: 0.86rem; color: hsl(var(--fg-subtle)); text-align: center; }

/* ---------------------------------------------------------------------------
   Embedded widgets (guides/vocal-tuner.html, vocal-range-test.html,
   tone-deaf-test.html). Each renders as a plain screenshot until its bundle from
   src/widgets boots and sets data-*-ready, so a visitor without JS still sees
   what the page is about. The three share the `.tuner__*` shell.
   ------------------------------------------------------------------------ */
.tuner { margin: 26px 0 30px; }
.tuner__panel {
  border-radius: 16px; border: 1px solid var(--glass-brd-strong);
  background: var(--glass); box-shadow: var(--shadow-lg); overflow: hidden;
}
.tuner__fallback { display: block; }
.tuner__fallback img { width: 100%; height: auto; display: block; }
.tuner__live { display: none; }
.tuner[data-tuner-ready="true"] .tuner__fallback,
.tuner[data-range-ready="true"] .tuner__fallback,
.tuner[data-td-ready="true"] .tuner__fallback { display: none; }
.tuner[data-tuner-ready="true"] .tuner__live,
.tuner[data-range-ready="true"] .tuner__live,
.tuner[data-td-ready="true"] .tuner__live { display: block; }

.tuner__readout {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 16px 18px; border-bottom: 1px solid var(--glass-brd);
}
.tuner__note {
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700;
  font-size: 2.1rem; line-height: 1; min-width: 3.2ch; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
/* The needle track: centre line is "in tune", ±50¢ at the edges. */
.tuner__meter {
  position: relative; flex: 1 1 200px; height: 10px; min-width: 160px;
  border-radius: 999px; background: hsl(var(--fg) / 0.08);
  border: 1px solid var(--glass-brd);
}
.tuner__meter::before {
  content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px;
  transform: translateX(-1px); background: hsl(var(--fg-muted) / 0.5); border-radius: 2px;
}
.tuner__needle {
  --needle: 50%;
  position: absolute; top: 50%; left: var(--needle);
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: hsl(var(--fg-muted)); transition: left 90ms linear, background 160ms;
}
.tuner__needle[data-intune="true"] { background: hsl(145 72% 50%); box-shadow: 0 0 0 4px hsl(145 72% 50% / 0.18); }
.tuner__needle[data-intune="false"] { background: hsl(38 95% 56%); }
.tuner__nums {
  display: flex; gap: 14px; font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.82rem; color: hsl(var(--fg-muted)); font-variant-numeric: tabular-nums;
  min-width: 12ch;
}

.tuner__stage { position: relative; }
.tuner__canvas { display: block; width: 100%; height: 300px; }
/* Start sits over the (already drawn) empty grid, so the visitor sees the field
   they are about to sing into rather than a blank box. */
.tuner__cta {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center;
  padding: 20px; background: hsl(var(--bg) / 0.55); backdrop-filter: blur(3px);
}
.tuner[data-tuner-state="live"] .tuner__cta,
.tuner[data-range-state="live"] .tuner__cta { display: none; }
.tuner__cta p { margin: 0; font-size: 0.85rem; color: hsl(var(--fg-muted)); max-width: 34ch; }
.tuner__stop { display: none; }
.tuner[data-tuner-state="live"] .tuner__stop,
.tuner[data-range-state="live"] .tuner__stop { display: inline-flex; }
.tuner__status { margin: 10px 2px 0; font-size: 0.85rem; color: hsl(var(--fg-muted)); min-height: 1.3em; }
.tuner__status[data-kind="error"] { color: hsl(var(--danger, 0 78% 62%)); }
.tuner__actions { margin: 8px 2px 0; display: none; }
/* "Take it again" only means something once a take has produced a range. */
.tuner[data-range-has-result] .tuner__actions { display: block; }

/* --- Range test ---------------------------------------------------------- */
.tuner__stage--tall .tuner__canvas { height: 420px; }
.range__pair { display: flex; align-items: baseline; gap: 10px; }
.range__figure {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
}
.range__figure > span {
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700;
  font-size: 1.8rem; line-height: 1; font-variant-numeric: tabular-nums;
}
.range__figure small {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: hsl(var(--fg-subtle));
}
.range__dash { font-size: 1.5rem; color: hsl(var(--fg-subtle)); }
.range__facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; flex: 1 1 auto; }
.range__facts div { display: flex; flex-direction: column; gap: 2px; }
.range__facts dt {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: hsl(var(--fg-subtle));
}
.range__facts dd { margin: 0; font-size: 0.92rem; font-weight: 600; }

/* --- Tone-deaf test ------------------------------------------------------ */
/* Three exclusive panels — idle, live, done — swapped by data-td-state. */
.td__stage { min-height: 300px; display: flex; }
.td__panel {
  flex: 1; display: none; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; padding: 28px 20px; text-align: center;
}
.tuner[data-td-state="idle"] .td__panel--idle,
.tuner[data-td-state="live"] .td__panel--live,
.tuner[data-td-state="done"] .td__panel--done { display: flex; }
.td__panel--idle p { margin: 0; font-size: 0.85rem; color: hsl(var(--fg-muted)); max-width: 36ch; }
.td__lives { font-size: 1.25rem; letter-spacing: 3px; color: hsl(0 78% 62%); min-width: 4ch; }
.td__prompt { margin: 0; font-size: 1.05rem; }
.td__answers { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.td__feedback { margin: 0; min-height: 1.4em; font-size: 0.9rem; color: hsl(var(--fg-muted)); }
.td__feedback[data-correct="true"] { color: hsl(145 72% 45%); }
.td__feedback[data-correct="false"] { color: hsl(38 95% 50%); }
.td__result { display: flex; gap: 32px; margin: 0; flex-wrap: wrap; justify-content: center; }
.td__result dt {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: hsl(var(--fg-subtle));
}
.td__result dd {
  margin: 4px 0 0; font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700; font-size: 1.8rem; line-height: 1;
}
.td__verdict { margin: 0; max-width: 44ch; color: hsl(var(--fg-muted)); line-height: 1.55; }

@media (max-width: 560px) {
  .tuner__canvas { height: 240px; }
  .tuner__stage--tall .tuner__canvas { height: 340px; }
  .tuner__note { font-size: 1.7rem; }
  .tuner__nums { min-width: 0; }
  .range__figure > span { font-size: 1.5rem; }
  .td__answers { flex-direction: column; align-self: stretch; }
}

/* Callouts */
.callout { margin: 24px 0; padding: 18px 20px 18px 22px; border-radius: 14px; border: 1px solid var(--glass-brd); background: var(--glass); position: relative; }
.callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 4px 0 0 4px; background: hsl(var(--brand)); }
.callout p:last-child { margin-bottom: 0; }
.callout .callout-tag { display: inline-flex; align-items: center; gap: 7px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(var(--brand-strong)); margin-bottom: 8px; }
.callout--science::before { background: hsl(var(--brand)); }
.callout--tip::before { background: hsl(var(--accent, var(--brand))); }
.callout--soon { background: hsl(var(--fg) / 0.04); }
.callout--soon::before { background: hsl(var(--fg-subtle)); }
.callout--soon .callout-tag { color: hsl(var(--fg-subtle)); }

/* Step list */
.guide-steps { list-style: none; counter-reset: gs; padding: 0; margin: 8px 0 22px; gap: 12px; }
.guide-steps li { counter-increment: gs; position: relative; padding-left: 42px; line-height: 1.6; }
.guide-steps li::before {
  content: counter(gs); position: absolute; left: 0; top: -2px; width: 28px; height: 28px;
  display: grid; place-items: center; border-radius: 9px; font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.82rem; font-weight: 600; color: hsl(var(--brand-strong));
  background: hsl(var(--brand) / 0.12); border: 1px solid hsl(var(--brand) / 0.3);
}

/* References */
.guide-refs { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--glass-brd); }
.guide-refs h2 { margin-top: 0; }
.guide-refs ol { font-size: 0.9rem; color: hsl(var(--fg-subtle)); padding-left: 20px; gap: 10px; }
.guide-refs li { line-height: 1.55; }
.guide-refs a { color: hsl(var(--brand)); }

/* What we actually verified about a third-party app, and when. Set apart from
   the prose because it is a different kind of claim: the paragraph above it is
   our opinion, this is a store listing on a date, and a reader deciding what to
   trust should be able to see which is which at a glance. */
.guide-checked { margin: 10px 0 0; padding: 10px 14px; border-left: 2px solid hsl(var(--brand) / 0.5); border-radius: 0 8px 8px 0; background: var(--glass); font-size: 0.85rem; line-height: 1.6; color: hsl(var(--fg-muted)); }
/* Small is fine on a desktop, where this is a footnote beside a paragraph. On a
   phone it is a paragraph in its own right and 13.6px is a squint, so it takes
   the body size back. */
@media (max-width: 640px) { .guide-checked { font-size: 0.95rem; padding: 12px 14px; } }
.guide-checked strong { color: hsl(var(--fg)); font-weight: 600; }
.guide-checked a { color: hsl(var(--brand)); }
.guide-checked .sep { color: hsl(var(--fg-subtle)); padding: 0 2px; }

/* An entry that is no longer a recommendation — kept on the page because
   "is it still going?" is the question a reader arrives with. */
.guide-checked.is-dead { border-left-color: hsl(var(--danger) / 0.6); }

/* Comparison tables — wrapper scrolls so the page body never does */
.guide-table-wrap { margin: 22px 0 26px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid var(--glass-brd); background: var(--glass); }
.guide-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 620px; }
.guide-table th, .guide-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--glass-brd); color: hsl(var(--fg-muted)); vertical-align: top; line-height: 1.5; }
.guide-table thead th { color: hsl(var(--fg)); font-weight: 600; background: hsl(var(--bg-subtle) / 0.6); white-space: nowrap; }
.guide-table tbody tr:last-child td { border-bottom: 0; }
.guide-table tbody th { color: hsl(var(--fg)); font-weight: 600; white-space: nowrap; }
.guide-table .yes { color: hsl(var(--brand-strong)); font-weight: 600; white-space: nowrap; }
.guide-table .no { color: hsl(var(--fg-subtle)); white-space: nowrap; }
.guide-table caption { caption-side: bottom; padding: 10px 14px; font-size: 0.82rem; color: hsl(var(--fg-subtle)); text-align: left; }

/* On a phone the comparison tables stop being tables.

   Two thirds of these pages' readers are on a phone, and a six-column table is
   about twice the width of one. Left as a table it still "works" — the wrapper
   scrolls sideways — but only half of it is on screen, and a reader who does
   not think to swipe sees an app's name and nothing else. So below 640px each
   row becomes a card and each cell a labelled line, which is the same
   information in a shape that fits.

   The column headings come back as data-label on each cell, written from the
   table's own thead by scripts/label-table-cells.mjs — a label typed by hand
   would eventually disagree with its column. The thead itself is hidden
   visually rather than removed, so a screen reader still gets a real table. */
@media (max-width: 640px) {
  .guide-table-wrap { overflow-x: visible; border: 0; background: none; border-radius: 0; margin: 18px 0 22px; }
  .guide-table { display: block; width: 100%; min-width: 0; }
  /* Visually hidden, not display:none — the headings stay in the accessibility
     tree. The inner rows and cells have to be taken out of table layout too:
     `overflow` does not apply to a table-header-group, so a clipped thead whose
     children are still table boxes lays them out at full width and pushes the
     page sideways — which is the bug this whole block exists to fix. */
  .guide-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; display: block; }
  .guide-table thead tr, .guide-table thead th { display: block; width: 1px; height: 1px; overflow: hidden; padding: 0; border: 0; }
  .guide-table tbody { display: block; }
  .guide-table tbody tr { display: block; margin-bottom: 12px; border-radius: 14px; border: 1px solid var(--glass-brd); background: var(--glass); overflow: hidden; }
  .guide-table tbody tr:last-child { margin-bottom: 0; }
  .guide-table tbody th[scope='row'] {
    display: block; padding: 12px 15px; font-size: 1rem; white-space: normal;
    background: hsl(var(--bg-subtle) / 0.55); border-bottom: 1px solid var(--glass-brd);
  }
  .guide-table tbody td { display: block; padding: 10px 15px; border-bottom: 1px solid var(--glass-brd); }
  /* The yes/no cells are nowrap so a verdict never breaks mid-phrase. In a card
     they hold whole sentences ("Not really — limited free tier"), which nowrap
     would run straight off a 320px screen. */
  .guide-table .yes, .guide-table .no { white-space: normal; }
  .guide-table tbody tr td:last-child { border-bottom: 0; }
  /* The heading, above its value — stacked rather than side by side so a long
     label ("Last seen updated") cannot squeeze the value into a column of one
     word per line at 320px. */
  .guide-table tbody td[data-label]:not([data-label=''])::before {
    content: attr(data-label);
    display: block; margin-bottom: 1px;
    font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase;
    color: hsl(var(--fg-subtle));
  }
  /* The caption has to become a block too. Left as `table-caption` inside a
     table that is now `display: block`, it shrink-to-fits and sets itself two
     words per line down the whole screen. */
  .guide-table caption { display: block; padding: 0 2px 14px; }
}

/* Related guides + CTA */
.guide-related { margin-top: 44px; }
.guide-related h2 { font-size: 1.3rem; color: hsl(var(--fg)); margin-bottom: 16px; }
.guide-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.guide-card { display: block; padding: 22px 22px; border-radius: 16px; text-decoration: none; background: var(--glass); border: 1px solid var(--glass-brd); transition: border-color 200ms, transform 200ms; }
.guide-card:hover { border-color: var(--glass-brd-strong); transform: translateY(-2px); }
.guide-card h3 { font-size: 1.05rem; color: hsl(var(--fg)); margin-bottom: 6px; }
.guide-card p { font-size: 0.9rem; color: hsl(var(--fg-muted)); line-height: 1.5; margin: 0; }
.guide-card .guide-card-tag { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(var(--fg-subtle)); }

.guide-cta { margin-top: 44px; padding: 30px 28px; border-radius: 18px; text-align: center; background: var(--glass-2); border: 1px solid var(--glass-brd-strong); box-shadow: var(--shadow-md); }
.guide-cta h2 { margin: 0 0 8px; font-size: 1.35rem; color: hsl(var(--fg)); }
.guide-cta p { margin: 0 0 18px; color: hsl(var(--fg-muted)); }

/* Guides hub index */
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }
.hub-card { display: flex; flex-direction: column; gap: 10px; padding: 24px 4px; border-radius: 0; text-decoration: none; background: transparent; border: 0; border-top: 1px solid var(--glass-brd); transition: color 180ms, border-color 180ms; }
.hub-card:hover { border-color: hsl(var(--brand) / 0.65); }
.hub-card:hover h2 { color: hsl(var(--brand)); }
.hub-card .hub-tag { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(var(--brand-strong)); }
.hub-card h2 { font-size: 1.2rem; color: hsl(var(--fg)); margin: 0; }
.hub-card p { font-size: 0.92rem; color: hsl(var(--fg-muted)); line-height: 1.55; margin: 0; }

@media (max-width: 680px) {
  .guide-cards, .hub-grid { grid-template-columns: 1fr; }
}

/* ---- Pricing ----------------------------------------------------------- */
/* Two cards, side by side on desktop and stacked on a phone. The paid one is
   marked with the brand border rather than being made bigger: the free plan is
   the product, not the runner-up. */
.pricing {
  width: min(920px, 92vw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start;
}
.pricing__card { padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.pricing__card--pro { border-color: hsl(var(--brand) / 0.45); }
.pricing__badge {
  position: absolute; top: -12px; left: 28px; z-index: 1;
  padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(135deg, hsl(var(--brand)), hsl(var(--brand-2)));
  color: hsl(var(--brand-fg));
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.pricing__name { font-size: 1.15rem; font-weight: 600; margin: 0; }
.pricing__price { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 2.4rem; font-weight: 700; margin: 0; line-height: 1; }
.pricing__per { font-size: 1rem; font-weight: 500; color: hsl(var(--fg-muted)); }
.pricing__note { margin: -6px 0 0; font-size: 0.85rem; color: hsl(var(--fg-muted)); }
.pricing__list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.pricing__list li { position: relative; padding-left: 28px; font-size: 0.93rem; line-height: 1.5; }
/* A drawn tick rather than a glyph: it inherits the brand colour in both themes and
   cannot go missing with a font. */
.pricing__list li::before {
  content: ""; position: absolute; left: 5px; top: 0.45em;
  width: 11px; height: 6px;
  border-left: 2px solid hsl(var(--brand)); border-bottom: 2px solid hsl(var(--brand));
  border-radius: 1px; transform: rotate(-45deg);
}
.pricing__card .btn { margin-top: auto; align-self: flex-start; max-width: 100%; white-space: normal; text-align: center; }
.pricing__fine { margin: 0; font-size: 0.78rem; color: hsl(var(--fg-muted)); line-height: 1.55; }

@media (max-width: 760px) {
  .pricing { grid-template-columns: 1fr; }
  .pricing__card { padding: 24px; }
}
