@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url('fonts/inter-vietnamese-wght-normal.woff2') format('woff2-variations'),url('fonts/inter-vietnamese-wght-normal.woff2') format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations'),url('fonts/inter-latin-ext-wght-normal.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-display:swap;font-weight:100 900;src:url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations'),url('fonts/inter-latin-wght-normal.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-display:swap;font-weight:300 700;src:url('fonts/space-grotesk-vietnamese-wght-normal.woff2') format('woff2-variations'),url('fonts/space-grotesk-vietnamese-wght-normal.woff2') format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Space Grotesk';font-style:normal;font-display:swap;font-weight:300 700;src:url('fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations'),url('fonts/space-grotesk-latin-ext-wght-normal.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-display:swap;font-weight:300 700;src:url('fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations'),url('fonts/space-grotesk-latin-wght-normal.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-display:swap;font-weight:100 800;src:url('fonts/jetbrains-mono-vietnamese-wght-normal.woff2') format('woff2-variations'),url('fonts/jetbrains-mono-vietnamese-wght-normal.woff2') format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:100 800;src:url('fonts/jetbrains-mono-latin-ext-wght-normal.woff2') format('woff2-variations'),url('fonts/jetbrains-mono-latin-ext-wght-normal.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-display:swap;font-weight:100 800;src:url('fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations'),url('fonts/jetbrains-mono-latin-wght-normal.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}
/* ============================================================
   AI Summary Helper — shared stylesheet
   Own accent identity (blue + gold, rooted in the real product
   icon) built on the same component system as byphil.eu — glass
   surfaces, same type stack — so it reads as family, not a reskin.
   Plain CSS, no preprocessor, no build step.
   ============================================================ */

/* ── Tokens ──────────────────────────────────────────────────────
   1. Palette: raw values, named by what they are (--brand-accent-700, --gray-50). Read only by the token blocks, never by a component.
   2. Roles the same in both themes: colours over photos and video, shadows, brand tints, illustrations (--media-*, --on-media,
      --tint-*, --icon-*), plus the size scales (--fs-*, --radius-*).
   3. Theme roles, set per theme: what a colour is for, so a name means the same in both themes. --bg is the page, --text the body
      text, --accent the brand blue for lines and small marks, --accent-fill a blue surface with --on-accent text on it.
   4. Component roles: a component with its own small palette sets them on its root, light first, dark below
      (--mock-* on the hero mock, --photo-* on the photo stage).
   Components read roles only: no hex, rgb or palette values in a component rule, no theme selector outside a token block.
   scripts/tests/css-tokens.test.mjs checks this. */
/* @tokens:start theme */
/* Generated by design-system/build.mjs from design-system/tokens (site). Do not edit: change the JSON, then npm run tokens. */
:root {
  /* primitive · palette */
  --gray-990: #08090C;
  --gray-950: #141519;
  --gray-900: #1D1E24;
  --gray-300: #A9A9B3;
  --gray-50: #F5F5F7;
  --stone-0: #ffffff;
  --stone-50: #F6F5F1;
  --stone-150: #EDECE6;
  --gray-600: #54545D;
  --brand-accent-300: #8FBBFF;
  --brand-accent-350: #6FA3FF;
  --brand-accent-400: #4C8DFF;
  --brand-accent-600: #2563eb;
  --brand-accent-700: #1d4ed8;
  --navy-950: #08101F;
  --brand-highlight-300: #F0C36B;
  --brand-highlight-400: #E4A83E;
  --brand-highlight-700: #85580C;
  --brand-highlight-800: #7C5209;
  --red-400: #F87171;
  --red-700: #C0231E;
  /* semantic · font */
  --font-display: 'Space Grotesk', sans-serif; /* Display face: headlines and big numbers. */
  --font-body: 'Inter', sans-serif; /* Body text face. */
  --font-mono: 'JetBrains Mono', monospace; /* Monospace: labels, code, kickers. */
  /* semantic · tint */
  --tint-accent: var(--brand-accent-400); /* Accent tint behind badges and soft buttons. */
  --tint-highlight: #F2D9A6; /* Highlight tint behind highlight badges. */
  --tint-neutral: #808080; /* Neutral tint for chips and pills. */
  --tint-neutral-cool: #808096; /* Cooler neutral tint for alternate rows and chips. */
  /* semantic · scale */
  --fs-3xs: 10px; /* Type size 10px on the website; step 3xs of the scale. */
  --fs-3xs-plus: 10.5px; /* Type size 10.5px on the website; step 3xs-plus of the scale. */
  --fs-2xs: 11px; /* Type size 11px on the website; step 2xs of the scale. */
  --fs-2xs-plus: 11.5px; /* Type size 11.5px on the website; step 2xs-plus of the scale. */
  --fs-xs: 12px; /* Type size 12px on the website; step xs of the scale. */
  --fs-xs-plus: 12.5px; /* Type size 12.5px on the website; step xs-plus of the scale. */
  --fs-sm: 13px; /* Type size 13px on the website; step sm of the scale. */
  --fs-sm-plus: 13.5px; /* Type size 13.5px on the website; step sm-plus of the scale. */
  --fs-md: 14px; /* Type size 14px on the website; step md of the scale. */
  --fs-md-plus: 14.5px; /* Type size 14.5px on the website; step md-plus of the scale. */
  --fs-base: 15px; /* Type size 15px on the website; step base of the scale. */
  --fs-lg: 16px; /* Type size 16px on the website; step lg of the scale. */
  --fs-prose: 16.5px; /* Type size 16.5px on the website; step prose of the scale. */
  --fs-xl: 17px; /* Type size 17px on the website; step xl of the scale. */
  --fs-2xl: 18px; /* Type size 18px on the website; step 2xl of the scale. */
  --fs-2xl-plus: 19px; /* Type size 19px on the website; step 2xl-plus of the scale. */
  --fs-3xl: 20px; /* Type size 20px on the website; step 3xl of the scale. */
  --fs-4xl: 22px; /* Type size 22px on the website; step 4xl of the scale. */
  --fs-5xl: 24px; /* Type size 24px on the website; step 5xl of the scale. */
  --fs-6xl: 26px; /* Type size 26px on the website; step 6xl of the scale. */
  --fs-7xl: 28px; /* Type size 28px on the website; step 7xl of the scale. */
  --fs-8xl: 34px; /* Type size 34px on the website; step 8xl of the scale. */
  --radius-xs: 4px; /* Corner radius 4px: tags, small chips */
  --radius-sm: 6px; /* Corner radius 6px: icon tiles, menu items, fields */
  --radius-md: 10px; /* Corner radius 10px: buttons, chips, rows, segmented controls */
  --radius-lg: 12px; /* Corner radius 12px: cards */
  --radius-xl: 14px; /* Corner radius 14px: input card, large panels */
  --radius-2xl: 16px; /* Corner radius 16px. */
  --radius-3xl: 18px; /* Corner radius 18px. */
  --radius-4xl: 24px; /* Corner radius 24px. */
  --radius-device: 28px; /* Corner radius 28px: device frames in mocks */
  --radius-pill: 999px; /* Corner radius 999px: pills */
  /* semantic · elevation */
  --shadow-ink: #000000; /* Ink colour for shadows (used with an alpha). */
  /* semantic · motion */
  --duration-fast: 150ms; /* Hover, focus, colour and toggle changes (WCAG: never the only cue). */
  --duration-base: 200ms; /* Small movements: chips, tab indicator, panels opening in place. */
  --duration-slow: 300ms; /* Larger movements: sheets, cards entering, accordions. */
  --duration-slower: 400ms; /* Travelling elements: nav blob, toasts, flyouts. */
  --duration-screen: 350ms; /* Screen slide between main screen, settings and detail. */
  --duration-reveal: 500ms; /* Content revealed on scroll and hero entrances. */
  --easing-standard: cubic-bezier(0.25, 0.1, 0.25, 1); /* Default curve (same as CSS ease). */
  --easing-decelerate: cubic-bezier(0, 0, 0.58, 1); /* Things coming to rest: entering elements (CSS ease-out). */
  --easing-accelerate: cubic-bezier(0.42, 0, 1, 1); /* Things leaving the screen (CSS ease-in). */
  --easing-in-out: cubic-bezier(0.42, 0, 0.58, 1); /* Back-and-forth and looping movement (CSS ease-in-out). */
  --easing-emphasized: cubic-bezier(0.2, 0.8, 0.2, 1); /* Appearances that should feel quick and settle softly (sheets, panes). */
  --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* Slight overshoot for the nav blob and selection indicators. */
  --easing-screen: cubic-bezier(0.4, 0, 0.2, 1); /* Screen slides. */
  /* semantic · breakpoint */
  --bp-xs: 420px; /* Small phones. */
  --bp-sm: 560px; /* Phones: one column below. */
  --bp-md: 640px; /* Large phones / small tablets. */
  --bp-ml: 720px; /* Tablets portrait. */
  --bp-lg: 760px; /* Tablets: two-column layouts start. */
  --bp-xl: 860px; /* Nav switches from the menu button to the pill bar. */
  --bp-2xl: 900px; /* Hero and feature grids go wide; hero mock narrow below. */
  --bp-desktop: 1024px; /* Desktop: blog video floats beside the text. */
  --bp-wide: 1280px; /* Wide desktop: margins and focus fan. */
  /* component · media */
  --media-veil: #08090C;
  --media-glass: #14161E;
  --media-night: #0A0E1E;
  --media-ink: #050812;
  --media-panel: #0C1220;
  --media-panel-2: #131A2E;
  --media-video: #0B1020;
  --media-night-soft: #0A0E18;
  --media-black: #000000;
  --on-media: #F5F5F7;
  --on-media-strong: #ffffff;
  --on-media-link: #8AB8FF;
  /* component · mark */
  --mark-bg: #BAE6FD;
  --mark-text: #075985;
  --mark-edge: #0284C7;
  /* component · badge */
  --badge-beta-bg: #F5C451;
  --badge-beta-text: #3B2A00;
  /* component · toast */
  --toast-bg: #15161B;
  --toast-text: #F5F5F7;
  /* component · tile */
  --tile-1-from: #5B8CFF;
  --tile-1-to: #2C4FD1;
  --tile-2-from: #8AA6FF;
  --tile-2-to: #4C5FD9;
  --tile-3-from: #A98AE8;
  --tile-3-to: #6B4CC4;
  --tile-4-from: #E4C88E;
  --tile-4-to: #B4863B;
  --tile-5-from: #FFB070;
  --tile-5-to: #D9622B;
  --tile-6-from: #5FCFC4;
  --tile-6-to: #23898F;
  /* component · nav */
  --nav-bg: var(--surface-bar);
  --nav-bg-solid: var(--surface-bar-solid);
  /* component · pricing */
  --pricing-best-tint: var(--highlight-subtle);
  --pricing-best-border: var(--highlight-border);
  /* component · poster */
  --poster-shadow: var(--shadow-poster);
}
/* roles: dark (also the default before the theme script has run) */
:root,
:root[data-theme="dark"] {
  /* semantic · surface */
  --bg: var(--gray-990); /* Page background (dark by default). */
  --bg-raised: var(--gray-950); /* Raised band or section above bg. */
  --bg-sunken: var(--gray-900); /* Sunken band or section below bg. */
  --surface-1: rgba(255,255,255,0.05); /* Card surface, level 1. */
  --surface-1-strong: rgba(255,255,255,0.08); /* Card surface, level 1, more opaque (on busy backgrounds). */
  --surface-2: rgba(255,255,255,0.025); /* Card surface, level 2 (card inside a card). */
  --surface-2-strong: rgba(0,0,0,0.14); /* Card surface, level 2, more opaque. */
  --input-bg: rgba(0,0,0,0.25); /* Field background. */
  --card-shadow: rgba(0,0,0,0.6); /* Shadow of cards. */
  --sheen-strong: rgba(255,255,255,0.35); /* White sheen on icons and glossy tiles. */
  --glow-accent: rgba(76,141,255,0.16); /* Accent glow behind the hero. */
  --glow-highlight: rgba(228,168,62,0.12); /* Highlight glow behind the hero. */
  --grain-dot: rgba(255,255,255,0.035); /* Dot colour of the grain texture. */
  --surface-bar: rgba(10,15,28,0.72); /* Background of fixed bars (pane headers, toolbars) above scrolling content. */
  --surface-bar-solid: rgba(10,15,28,0.97); /* Opaque header bar (menu open, reduced transparency). */
  /* semantic · text */
  --text: var(--gray-50); /* Body text and headlines. */
  --text-muted: var(--gray-300); /* Least important readable text: hints, meta lines, timestamps, placeholders (≥ 4.5:1). */
  /* semantic · accent */
  --accent: var(--brand-accent-400); /* Brand action colour: primary buttons, selected states, links on controls, focus ring, progress. */
  --accent-text: var(--brand-accent-300); /* Accent as text (links, kickers) at ≥ 4.5:1. */
  --accent-fill: var(--brand-accent-350); /* Accent button fill. */
  --accent-fill-hi: var(--brand-accent-300); /* Accent button fill on hover. */
  --on-accent: var(--navy-950); /* Text and icons on an accent fill (primary button, selected pill, active nav item). */
  --highlight: var(--brand-highlight-400); /* Highlight brand colour (second brand colour). */
  --highlight-text: var(--brand-highlight-300); /* Highlight as text at ≥ 4.5:1. */
  --highlight-fill: var(--brand-highlight-300); /* Highlight button fill. */
  --highlight-fill-hover: var(--brand-highlight-400); /* Highlight button fill on hover. */
  --on-highlight: var(--navy-950); /* Text on highlight fills. */
  --highlight-subtle: rgba(228,168,62,0.08); /* Faint highlight tint. */
  --highlight-border: rgba(228,168,62,0.5); /* Border in highlight colour. */
  /* semantic · feedback */
  --danger: var(--red-400); /* Errors and destructive actions on the website. */
  /* semantic · outline */
  --border-subtle: rgba(255,255,255,0.07); /* Hairline borders and dividers. */
  --border-medium: rgba(255,255,255,0.13); /* Borders of chips, pills and fields. */
  --border-strong: rgba(255,255,255,0.2); /* Borders that must be seen (focus groups, outlined buttons). */
  /* semantic · elevation */
  --shadow-poster: rgba(0,0,0,0.5); /* Shadow of video posters and device mocks. */
  color-scheme:dark;
}
:root[data-theme="light"] {
  /* semantic · surface */
  --bg: var(--stone-50); /* Page background (dark by default). */
  --bg-raised: var(--stone-0); /* Raised band or section above bg. */
  --bg-sunken: var(--stone-150); /* Sunken band or section below bg. */
  --surface-1: rgba(20,21,26,0.035); /* Card surface, level 1. */
  --surface-1-strong: rgba(20,21,26,0.06); /* Card surface, level 1, more opaque (on busy backgrounds). */
  --surface-2: rgba(20,21,26,0.02); /* Card surface, level 2 (card inside a card). */
  --surface-2-strong: rgba(20,21,26,0.04); /* Card surface, level 2, more opaque. */
  --input-bg: var(--stone-0); /* Field background. */
  --card-shadow: rgba(20,21,26,0.14); /* Shadow of cards. */
  --sheen-strong: rgba(255,255,255,0.7); /* White sheen on icons and glossy tiles. */
  --glow-accent: rgba(29,78,216,0.09); /* Accent glow behind the hero. */
  --glow-highlight: rgba(154,107,20,0.08); /* Highlight glow behind the hero. */
  --grain-dot: rgba(20,21,26,0.05); /* Dot colour of the grain texture. */
  --surface-bar: rgba(246,245,241,0.82); /* Background of fixed bars (pane headers, toolbars) above scrolling content. */
  --surface-bar-solid: rgba(246,245,241,0.97); /* Opaque header bar (menu open, reduced transparency). */
  /* semantic · text */
  --text: var(--gray-950); /* Body text and headlines. */
  --text-muted: var(--gray-600); /* Least important readable text: hints, meta lines, timestamps, placeholders (≥ 4.5:1). */
  /* semantic · accent */
  --accent: var(--brand-accent-700); /* Brand action colour: primary buttons, selected states, links on controls, focus ring, progress. */
  --accent-text: var(--brand-accent-600); /* Accent as text (links, kickers) at ≥ 4.5:1. */
  --accent-fill: var(--brand-accent-700); /* Accent button fill. */
  --accent-fill-hi: var(--brand-accent-600); /* Accent button fill on hover. */
  --on-accent: var(--stone-0); /* Text and icons on an accent fill (primary button, selected pill, active nav item). */
  --highlight: var(--brand-highlight-800); /* Highlight brand colour (second brand colour). */
  --highlight-text: var(--brand-highlight-700); /* Highlight as text at ≥ 4.5:1. */
  --highlight-subtle: rgba(154,107,20,0.07); /* Faint highlight tint. */
  --highlight-border: rgba(154,107,20,0.5); /* Border in highlight colour. */
  /* semantic · feedback */
  --danger: var(--red-700); /* Errors and destructive actions on the website. */
  /* semantic · outline */
  --border-subtle: rgba(20,21,26,0.08); /* Hairline borders and dividers. */
  --border-medium: rgba(20,21,26,0.14); /* Borders of chips, pills and fields. */
  --border-strong: rgba(20,21,26,0.24); /* Borders that must be seen (focus groups, outlined buttons). */
  /* semantic · elevation */
  --shadow-poster: rgba(0,0,0,0.28); /* Shadow of video posters and device mocks. */
  color-scheme:light;
}
/* reduced motion: system setting */
@media (prefers-reduced-motion: reduce) {
  :root {
    /* semantic · motion */
    --duration-fast: 0.01ms; /* Reduced motion: no movement (system setting or Settings › Accessibility › Reduce motion). */
    --duration-base: 0.01ms; /* Reduced motion: no movement (system setting or Settings › Accessibility › Reduce motion). */
    --duration-slow: 0.01ms; /* Reduced motion: no movement (system setting or Settings › Accessibility › Reduce motion). */
    --duration-slower: 0.01ms; /* Reduced motion: no movement (system setting or Settings › Accessibility › Reduce motion). */
    --duration-screen: 0.01ms; /* Reduced motion: no movement (system setting or Settings › Accessibility › Reduce motion). */
    --duration-reveal: 0.01ms; /* Reduced motion: no movement (system setting or Settings › Accessibility › Reduce motion). */
  }
}
/* @tokens:end theme */

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  -webkit-tap-highlight-color:transparent;
  transition:background-color var(--duration-base) var(--easing-standard), color var(--duration-base) var(--easing-standard);
}
@media (prefers-reduced-motion: reduce){ body{transition:none;} html{scroll-behavior:auto;} }

.skip-link{
  position:absolute; top:-100px; left:16px; z-index:100;
  background:var(--accent-fill); color:var(--on-accent);
  padding:12px 18px; border-radius:var(--radius-md); font-weight:600; font-size:var(--fs-md);
  transition:top var(--duration-base) var(--easing-standard);
}
.skip-link:focus{top:16px;}

.reveal{opacity:0; transform:translateY(18px); transition:opacity 0.6s var(--easing-standard), transform 0.6s var(--easing-standard);}
.reveal.is-visible{opacity:1; transform:translateY(0);}
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1; transform:none; transition:none;} }

a{color:inherit; text-decoration:none;}
img,svg{display:block;}

body::before{
  content:""; position:fixed; inset:0;
  background:
    radial-gradient(60% 45% at 18% -5%, var(--glow-accent), transparent 60%),
    radial-gradient(50% 40% at 100% 10%, var(--glow-highlight), transparent 60%),
    var(--bg);
  z-index:-2;
}
body::after{
  content:""; position:fixed; inset:0;
  background-image:radial-gradient(var(--grain-dot) 1px, transparent 1px);
  background-size:3px 3px; z-index:-1; opacity:0.5;
}

:focus-visible{ outline:2px solid var(--accent-text); outline-offset:3px; border-radius:var(--radius-xs); }

.wrap{
  max-width:1120px; margin:0 auto;
  padding-left:max(28px, env(safe-area-inset-left));
  padding-right:max(28px, env(safe-area-inset-right));
}
.wrap-narrow{ max-width:760px; }

/* ── Nav ─────────────────────────────────────────────────────────── */
header.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter:blur(16px) saturate(140%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  background:var(--nav-bg);
  border-bottom:1px solid var(--border-subtle);
}

.wordmark{ font-family:var(--font-display); font-weight:700; font-size:var(--fs-3xl); letter-spacing:-0.01em; display:flex; align-items:center; gap:9px; white-space:nowrap; }
.wordmark img{ width:26px; height:26px; border-radius:var(--radius-sm); flex-shrink:0; }
.wordmark .dot{ color:var(--accent-text); }
.wordmark .sub{ font-family:var(--font-body); font-weight:500; font-size:var(--fs-sm); color:var(--text-muted); padding-left:9px; border-left:1px solid var(--border-medium); }
nav.links{ display:flex; gap:26px; }
nav.links a{ font-size:var(--fs-base); color:var(--text-muted); font-weight:500; transition:color var(--duration-base) var(--easing-standard); padding:10px 2px; }
nav.links a:hover{ color:var(--text); }

.theme-toggle{
  width:44px; height:44px; display:inline-flex; align-items:center; justify-content:center;
  background:var(--surface-1); border:1px solid var(--border-medium); border-radius:var(--radius-md);
  color:var(--text); cursor:pointer; flex-shrink:0;
  transition:background var(--duration-base) var(--easing-standard), border-color var(--duration-base) var(--easing-standard), transform var(--duration-fast) var(--easing-standard);
}
.theme-toggle:hover{ background:var(--surface-1-strong); }
.theme-toggle:active{ transform:scale(0.92); }
.theme-toggle svg{ width:19px; height:19px; }
.theme-toggle .icon-sun{ display:none; }
:root[data-theme="light"] .theme-toggle .icon-moon{ display:none; }
:root[data-theme="light"] .theme-toggle .icon-sun{ display:block; }
.theme-toggle-mobile{
  display:flex; align-items:center; justify-content:space-between; padding:14px 4px; width:100%;
  background:none; border:none; font-family:var(--font-body); font-size:var(--fs-lg); font-weight:500; color:var(--text); cursor:pointer;
}
.theme-toggle-mobile svg{ width:19px; height:19px; }
.theme-toggle-mobile .icon-sun{ display:none; }
:root[data-theme="light"] .theme-toggle-mobile .icon-moon{ display:none; }
:root[data-theme="light"] .theme-toggle-mobile .icon-sun{ display:block; }

.nav-toggle{
  display:none; width:44px; height:44px; align-items:center; justify-content:center;
  background:var(--surface-1); border:1px solid var(--border-medium); border-radius:var(--radius-md); color:var(--text); cursor:pointer;
}
.nav-toggle svg{ width:20px; height:20px; }

.mobile-menu{ border-bottom:1px solid var(--border-subtle); background:var(--nav-bg-solid); backdrop-filter:blur(16px); }
.mobile-menu[hidden]{ display:none; }

@media (max-width: 760px){  .nav-toggle{ display:flex; } }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero{ padding:96px 0 64px; text-align:center; position:relative; }
.eyebrow{
  font-family:var(--font-mono); font-size:var(--fs-2xs); letter-spacing:0.16em; text-transform:uppercase;
  color:var(--highlight-text); display:inline-flex; align-items:center; gap:8px; margin-bottom:22px;
}
.eyebrow .dash{ width:16px; height:1px; background:var(--highlight); display:inline-block; }
.hero h1{
  font-family:var(--font-display); font-weight:600; font-size:clamp(32px, 5.6vw, 58px);
  line-height:1.1; letter-spacing:-0.02em; margin:0 0 22px; max-width:780px; margin-left:auto; margin-right:auto;
}
.hero h1 em{
  font-style:normal;
  background:linear-gradient(100deg, var(--accent-text), var(--highlight-text));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero p.sub{ font-size:var(--fs-2xl); line-height:1.65; color:var(--text-muted); max-width:560px; margin:0 auto 34px; }
.hero-cta{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-bottom:20px; }
.hero-meta{ font-family:var(--font-mono); font-size:var(--fs-xs); color:var(--text-muted); letter-spacing:0.02em; }

.btn-primary{
  font-size:var(--fs-md-plus); font-weight:600; padding:14px 24px; min-height:48px;
  display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:var(--radius-lg);
  background:linear-gradient(180deg, var(--accent-fill-hi), var(--accent-fill)); color:var(--on-accent);
  box-shadow:0 10px 24px -8px color-mix(in srgb, var(--tint-accent) 50%, transparent), inset 0 1px 0 color-mix(in srgb, var(--on-media-strong) 35%, transparent);
  transition:transform var(--duration-fast) var(--easing-standard), box-shadow var(--duration-base) var(--easing-standard); border:none; cursor:pointer;
}
.btn-primary:hover{ transform:translateY(-1px); box-shadow:0 14px 30px -8px color-mix(in srgb, var(--tint-accent) 60%, transparent), inset 0 1px 0 color-mix(in srgb, var(--on-media-strong) 35%, transparent); }
.btn-primary:active{ transform:scale(0.97); }
.btn-secondary{
  font-size:var(--fs-md-plus); font-weight:600; padding:14px 24px; min-height:48px;
  display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:var(--radius-lg);
  color:var(--text); border:1px solid var(--border-medium); background:var(--surface-2);
  transition:background var(--duration-base) var(--easing-standard), transform var(--duration-fast) var(--easing-standard); cursor:pointer;
}
.btn-secondary:hover{ background:var(--surface-1-strong); }
.btn-secondary:active{ transform:scale(0.97); }

/* ── Section shell ───────────────────────────────────────────────── */
section{ padding:76px 0; }
.landing-note{margin:28px 0 0;color:var(--text-muted);font-size:var(--fs-md);text-align:center}
.landing-note a{color:var(--accent-text);text-decoration:underline;text-underline-offset:3px}
.landing-hero-video{max-width:420px;margin:32px auto 0}
.landing-hero-video video{display:block;width:100%;height:auto;max-height:520px;object-fit:cover;border:1px solid var(--border-medium);border-radius:var(--radius-3xl);background:var(--surface-1);box-shadow:0 18px 50px -28px color-mix(in srgb, var(--shadow-ink) 70%, transparent)}
.landing-hero-video figcaption{margin-top:10px;color:var(--text-muted);font-size:var(--fs-sm);text-align:center}
@media (min-width:861px){
  .hero:has(.landing-hero-video) .wrap-narrow{max-width:1040px;display:grid;grid-template-columns:minmax(0,1fr) 360px;column-gap:56px;align-items:center;text-align:left}
  .hero:has(.landing-hero-video) .eyebrow,
  .hero:has(.landing-hero-video) h1,
  .hero:has(.landing-hero-video) p.sub,
  .hero:has(.landing-hero-video) .hero-cta{grid-column:1}
  .hero:has(.landing-hero-video) h1,
  .hero:has(.landing-hero-video) p.sub{margin-left:0;margin-right:0}
  .hero:has(.landing-hero-video) .hero-cta{justify-content:flex-start}
  .hero:has(.landing-hero-video) .landing-hero-video{grid-column:2;grid-row:1 / span 4;max-width:360px;margin:0}
}
@media (max-width:860px){.hero:has(.landing-hero-video) .landing-hero-video{margin-top:28px}}
.section-head{ margin-bottom:44px; }
.section-head.center{ text-align:center; }
.section-head.center p{ margin-left:auto; margin-right:auto; }
.section-head .eyebrow{ margin-bottom:12px; }
.section-head h1, .section-head h2{ font-family:var(--font-display); font-size:clamp(26px, 3.4vw, 36px); font-weight:600; letter-spacing:-0.015em; margin:0 0 10px; }
.section-head p{ color:var(--text-muted); font-size:var(--fs-prose); line-height:1.6; max-width:520px; margin:0; }

/* ── Feature grid ────────────────────────────────────────────────── */
.feature-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
.feature-card{
  background:linear-gradient(180deg, var(--surface-1), var(--surface-2));
  border:1px solid var(--border-subtle); border-radius:var(--radius-3xl); padding:24px;
}
.feature-card .f-icon{
  width:44px; height:44px; border-radius:var(--radius-lg); display:flex; align-items:center; justify-content:center;
  margin-bottom:16px; position:relative; box-shadow:0 10px 18px -8px var(--card-shadow), inset 0 1px 0 var(--sheen-strong);
}
.feature-card .f-icon::before{ content:""; position:absolute; inset:0; border-radius:var(--radius-lg); background:linear-gradient(160deg, var(--sheen-strong), color-mix(in srgb, var(--on-media-strong) 0%, transparent) 50%); }
.feature-card .f-icon svg{ width:22px; height:22px; position:relative; z-index:2; }
.feature-card h3{ font-family:var(--font-display); font-size:var(--fs-xl); font-weight:600; margin:0 0 8px; }
.feature-card p{ font-size:var(--fs-md-plus); line-height:1.6; color:var(--text-muted); margin:0; }
.icon-cyan{ background:linear-gradient(150deg, var(--tile-1-from), var(--tile-1-to)); }
.icon-indigo{ background:linear-gradient(150deg, var(--tile-2-from), var(--tile-2-to)); }
.icon-violet{ background:linear-gradient(150deg, var(--tile-3-from), var(--tile-3-to)); }
.icon-gold{ background:linear-gradient(150deg, var(--tile-4-from), var(--tile-4-to)); }
.icon-amber{ background:linear-gradient(150deg, var(--tile-5-from), var(--tile-5-to)); }
.icon-teal{ background:linear-gradient(150deg, var(--tile-6-from), var(--tile-6-to)); }

/* Ghost-highlight style — mirrors the bookmarklet/extension highlight so the
   landing-page card can demo the feature itself. */
.ai-ghost-highlight{
  background-color:color-mix(in srgb, var(--mark-bg) 92%, transparent); color:var(--mark-text);
  border-bottom:2px dashed var(--mark-edge); border-radius:var(--radius-xs); padding:0 2px;
}

@media (max-width: 860px){ .feature-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width: 560px){
  .feature-grid{ grid-template-columns:1fr; gap:12px; }
  .feature-card{ padding:20px; }
}
/* Numbered digest steps: keep 3-up on desktop, stack cleanly on mobile */
@media (max-width: 860px){ .digest-steps{ grid-template-columns:1fr; row-gap:12px; } }
.digest-steps .feature-card{ text-align:center; }
.digest-steps .feature-card h3{ font-size:var(--fs-2xl-plus); color:var(--text); }
.digest-steps .feature-card p{ margin:0 auto; max-width:34ch; }

/* ── Mock card (product preview, no screenshots needed) ─────────── */

/* ── Pricing tiers (shared with byphil.eu Support Pass) ─────────── */
.tier-toggle{ display:inline-flex; padding:4px; border-radius:var(--radius-lg); background:var(--surface-1); border:1px solid var(--border-subtle); margin-bottom:26px; }
.tier-toggle button{
  font-size:var(--fs-sm); font-weight:600; padding:8px 16px; border-radius:var(--radius-md); background:transparent; color:var(--text-muted);
  border:none; cursor:pointer; font-family:var(--font-body); transition:background var(--duration-base) var(--easing-standard), color var(--duration-base) var(--easing-standard);
}
.tier-toggle button.active{ background:var(--accent-fill); color:var(--on-accent); }

.tiers{ display:grid; grid-template-columns:repeat(2, 1fr); gap:14px; }
.tier-card{ border:1px solid var(--border-subtle); border-radius:var(--radius-2xl); padding:22px 20px; background:var(--surface-2); position:relative; }
.tier-card.best{ border-color:var(--pricing-best-border); background:var(--pricing-best-tint); }
.tier-card .best-badge{
  position:absolute; top:-11px; left:18px; font-family:var(--font-mono); font-size:var(--fs-3xs); letter-spacing:0.08em;
  text-transform:uppercase; color:var(--on-highlight); background:var(--highlight-fill); padding:3px 8px; border-radius:var(--radius-sm);
}
.tier-name{ font-size:var(--fs-sm-plus); font-weight:600; color:var(--text-muted); margin-bottom:6px; }
.tier-price{ font-family:var(--font-display); font-size:var(--fs-6xl); font-weight:600; margin-bottom:2px; }
.tier-price span{ font-size:var(--fs-xs-plus); font-weight:500; color:var(--text-muted); }
.tier-note{ font-size:var(--fs-xs); color:var(--text-muted); margin-bottom:16px; }
.tier-card ul{ list-style:none; padding:0; margin:0 0 18px; font-size:var(--fs-sm-plus); color:var(--text-muted); }
.tier-card li{ padding-left:14px; position:relative; margin-bottom:8px; line-height:1.45; }
.tier-card li::before{ content:"·"; position:absolute; left:2px; color:var(--accent-text); }
.tier-card.best li::before{ color:var(--highlight-text); }
.tier-cta{ display:block; text-align:center; font-size:var(--fs-sm-plus); font-weight:600; padding:11px; border-radius:var(--radius-md); background:var(--surface-1-strong); border:1px solid var(--border-medium); transition:background var(--duration-base) var(--easing-standard); }
.tier-card.best .tier-cta{ background:var(--highlight-fill); color:var(--on-highlight); border:none; }
.tier-cta:hover{ background:var(--border-medium); }
.tier-card.best .tier-cta:hover{ background:var(--highlight-fill-hover); }
.price-yearly{ display:none; }
.tiers.yearly .price-monthly{ display:none; }
.tiers.yearly .price-yearly{ display:inline; }
@media (max-width: 760px){ .tiers{ grid-template-columns:1fr; } }

/* ── Landing-page trust badges ──────────────────────────────────── */
.trust-section{padding:clamp(42px,6vw,78px) 0;background:var(--surface-1);border-top:1px solid var(--border-subtle);border-bottom:1px solid var(--border-subtle)}
.trust-section .wrap{text-align:center}
.trust-section .lead{max-width:640px;margin:12px auto 0;color:var(--text-muted)}
.trust-badges{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:24px auto 0}
.trust-badges span{display:inline-flex;align-items:center;min-height:34px;padding:7px 13px;border:1px solid var(--border-medium);border-radius:var(--radius-pill);background:var(--surface-2);color:var(--text);font-family:var(--font-mono);font-size:var(--fs-2xs);letter-spacing:.04em;text-transform:uppercase}
.trust-badges span::before{content:"";width:6px;height:6px;margin-right:8px;border-radius:50%;background:var(--accent-text);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent-text) 15%,transparent)}
.landing-evidence,.landing-demo{padding:clamp(54px,8vw,104px) 0}
.landing-evidence{border-top:1px solid var(--border-subtle)}
.landing-demo{padding-top:0}
.landing-evidence .cx{position:relative;margin-top:28px}
.landing-demo .demo-frame{margin-top:28px}
.landing-demo .demo-frame{max-width:1180px;margin-left:auto;margin-right:auto}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq{ max-width:760px; margin:0 auto; }
.faq details{
  border:1px solid var(--border-subtle); border-radius:var(--radius-xl); padding:18px 20px; margin-bottom:10px;
  background:var(--surface-2);
}
.faq summary{ font-family:var(--font-display); font-size:var(--fs-lg); font-weight:600; cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; font-size:var(--fs-3xl); color:var(--text-muted); flex-shrink:0; transition:transform var(--duration-base) var(--easing-standard); }
.faq details[open] summary::after{ transform:rotate(45deg); }
.faq p{ font-size:var(--fs-md-plus); line-height:1.65; color:var(--text-muted); margin:12px 0 0; }
.faq p a{ color:var(--accent-text); text-decoration:underline; text-decoration-color:var(--accent); text-underline-offset:3px; }
.faq p a:hover{ color:var(--text); }
.faq-tools{max-width:680px;margin:0 auto 18px}
.faq-tools input{width:100%;padding:13px 16px;border:1px solid var(--border-medium);border-radius:var(--radius-lg);background:var(--surface-1);color:var(--text);font:inherit}
.faq-tools input::placeholder{color:var(--text-muted)}
.faq-tools input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.faq-filters{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:14px 0 0}
.faq-filter{min-height:36px;border:1px solid var(--border-medium);border-radius:var(--radius-pill);padding:8px 14px;background:var(--surface-2);color:var(--text-muted);font:inherit;font-size:var(--fs-sm);line-height:1.2;cursor:pointer}
.faq-filter:hover{border-color:var(--accent);color:var(--text)}
/* selected: the same blue fill and label colour as the other toggles (white on #1D4ED8 6.7:1 light, #08101F on #6FA3FF 7.6:1 dark) */
.faq-filter[aria-pressed="true"],.faq-filter.is-active{border-color:var(--accent-fill);background:var(--accent-fill);color:var(--on-accent);font-weight:600}
.faq-filter:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media (forced-colors:active){.faq-filter[aria-pressed="true"]{border:2px solid Highlight;color:Highlight}}
.faq-search-status{min-height:1.4em;margin:8px 2px 0;color:var(--text-muted);font-size:var(--fs-sm)}
.cx-compare{display:grid;gap:5px;margin:12px 0 0;max-width:560px}
.cx-compare-row{display:grid;grid-template-columns:104px 1fr;gap:10px;align-items:baseline;padding:5px 8px;border-left:2px solid var(--accent);background:color-mix(in srgb, var(--on-media-strong) 7%, transparent);font-size:var(--fs-2xs-plus)}
.cx-compare-row span{color:var(--accent-text);font-family:var(--font-mono);font-size:var(--fs-3xs);letter-spacing:.04em;text-transform:uppercase}
.cx-compare-row strong{font-weight:600;color:var(--text)}
.cx-compare-row.is-muted{border-left-color:color-mix(in srgb, var(--on-media-strong) 30%, transparent);background:color-mix(in srgb, var(--shadow-ink) 16%, transparent)}
.cx-compare-row.is-muted span,.cx-compare-row.is-muted strong{color:var(--text-muted)}

/* ── Blog cards + prose ──────────────────────────────────────────── */
.blog-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
.blog-card{
  display:block; background:linear-gradient(180deg, var(--surface-1), var(--surface-2));
  border:1px solid var(--border-subtle); border-radius:var(--radius-3xl); padding:22px; transition:border-color var(--duration-base) var(--easing-standard), transform var(--duration-fast) var(--easing-standard);
}
.blog-card:hover{ border-color:var(--border-strong); transform:translateY(-2px); }
.blog-card .blog-date{ font-family:var(--font-mono); font-size:var(--fs-2xs); letter-spacing:0.06em; text-transform:uppercase; color:var(--highlight-text); margin-bottom:10px; display:block; }
.blog-card h3{ font-family:var(--font-display); font-size:var(--fs-xl); font-weight:600; margin:0 0 10px; line-height:1.3; }
.blog-card p{ font-size:var(--fs-md); line-height:1.6; color:var(--text-muted); margin:0 0 14px; }
.blog-card .blog-read{ font-size:var(--fs-sm-plus); font-weight:600; color:var(--accent-text); display:inline-flex; align-items:center; gap:5px; }
@media (max-width: 860px){ .blog-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width: 560px){ .blog-grid{ grid-template-columns:1fr; } }

/* ── Landing outcomes: same visual language as blog cards ───────── */
.outcome-section{ padding:28px 0 0; }
.outcome-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
.outcome-card{
  background:linear-gradient(180deg, var(--surface-1), var(--surface-2));
  border:1px solid var(--border-subtle); border-radius:var(--radius-3xl); padding:22px;
}
.outcome-kicker{
  display:block; margin-bottom:10px; color:var(--highlight-text);
  font-family:var(--font-mono); font-size:var(--fs-2xs); letter-spacing:.06em;
  text-transform:uppercase;
}
.outcome-card h3{ font-family:var(--font-display); font-size:var(--fs-xl); font-weight:600; margin:0 0 10px; line-height:1.3; }
.outcome-card p{ font-size:var(--fs-md); line-height:1.6; color:var(--text-muted); margin:0; }
@media (max-width:860px){ .outcome-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:560px){ .outcome-grid{ grid-template-columns:1fr; } }

.post-hero{ padding:56px 0 20px; }
.post-hero .blog-date{ font-family:var(--font-mono); font-size:var(--fs-xs); letter-spacing:0.06em; text-transform:uppercase; color:var(--highlight-text); display:block; margin-bottom:16px; }
.post-hero h1{ font-family:var(--font-display); font-size:clamp(28px, 4.4vw, 44px); font-weight:600; letter-spacing:-0.02em; line-height:1.15; margin:0 0 16px; }
.post-hero .post-sub{ font-size:var(--fs-xl); line-height:1.6; color:var(--text-muted); max-width:640px; }

.prose{ max-width:680px; margin:0 auto; font-size:var(--fs-prose); line-height:1.75; color:var(--text); }
.prose p{ margin:0 0 22px; color:var(--text-muted); }
.prose h2{ font-family:var(--font-display); font-size:var(--fs-5xl); font-weight:600; letter-spacing:-0.01em; margin:44px 0 16px; color:var(--text); }
.prose h3{ font-family:var(--font-display); font-size:var(--fs-2xl-plus); font-weight:600; margin:32px 0 12px; color:var(--text); }
.prose ul, .prose ol{ color:var(--text-muted); padding-left:22px; margin:0 0 22px; }
.prose li{ margin-bottom:8px; line-height:1.6; }
.prose strong{ color:var(--text); font-weight:600; }
.prose a{ color:var(--accent-text); text-decoration:underline; text-underline-offset:3px; }
.prose blockquote{
  margin:28px 0; padding:4px 0 4px 20px; border-left:2px solid var(--highlight-text);
  color:var(--text); font-style:italic;
}
.prose table{
  width:100%; border-collapse:collapse; margin:0 0 28px; font-size:var(--fs-md-plus);
}
.prose th, .prose td{
  text-align:left; padding:10px 14px; border-bottom:1px solid var(--border-subtle);
  vertical-align:top;
}
.prose th{ color:var(--text); font-weight:600; font-family:var(--font-display); }
.prose td{ color:var(--text-muted); }
.prose td:first-child, .prose th:first-child{ padding-left:0; }
.prose code{
  font-family:'JetBrains Mono', monospace; font-size:var(--fs-sm-plus); color:var(--text);
  background:var(--surface-1); padding:2px 6px; border-radius:var(--radius-xs);
}
.prose pre{
  margin:0 0 24px; padding:14px 16px; overflow-x:auto; background:var(--surface-1);
  border:1px solid var(--border-subtle); border-radius:var(--radius-md); line-height:1.5;
}
.prose pre code{ background:none; padding:0; font-size:var(--fs-sm); white-space:pre; }
@media (max-width:640px){
  .prose table{ display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; touch-action:pan-x pan-y; overscroll-behavior-x:contain; }
}
.post-cta{
  margin-top:48px; padding:24px; border-radius:var(--radius-2xl); text-align:center;
  background:linear-gradient(180deg, var(--surface-1), var(--surface-2)); border:1px solid var(--border-subtle);
}
.post-cta p{ margin:0 0 16px; color:var(--text-muted); }

/* ── Footer ──────────────────────────────────────────────────────── */
footer{ border-top:1px solid var(--border-subtle); padding:36px 0; }
.footer-inner{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; }
.footer-inner .wordmark{ font-size:var(--fs-base); }
footer .foot-links{ display:flex; gap:20px; flex-wrap:wrap; }
footer .foot-links a{ font-size:var(--fs-sm-plus); color:var(--text-muted); }
footer .foot-links a:hover{ color:var(--text); }
footer .copyright{ font-size:var(--fs-sm); color:var(--text-muted); margin-top:18px; line-height:1.65; }
.credit-link{ color:var(--accent); font-weight:500; transition:color var(--duration-base) var(--easing-standard); }
.credit-link:hover{ color:var(--accent-text); }

.persona-switch{ display:flex; justify-content:center; gap:8px; flex-wrap:wrap; margin-bottom:36px; }
.persona-btn{
  display:flex; align-items:center; gap:8px; padding:10px 18px 10px 14px; border-radius:var(--radius-lg);
  background:var(--surface-1); border:1px solid var(--border-subtle); color:var(--text-muted);
  font-family:var(--font-display); font-size:var(--fs-md); font-weight:600; cursor:pointer; transition:all var(--duration-base) var(--easing-standard);
}
.persona-btn svg{ width:18px; height:18px; flex-shrink:0; }
.persona-btn:hover{ color:var(--text); border-color:var(--border-strong); }
.persona-btn.active{ background:var(--accent-fill); color:var(--on-accent); border-color:transparent; }
.persona-blurb{ text-align:center; color:var(--text-muted); font-size:var(--fs-base); max-width:540px; margin:0 auto 32px; min-height:24px; }
.feature-card{ transition:opacity var(--duration-base) var(--easing-standard), transform var(--duration-base) var(--easing-standard), border-color var(--duration-base) var(--easing-standard); }
@media (prefers-reduced-motion: reduce){ .persona-btn, .feature-card{ transition:none; } }

/* ── Language suggestion banner ─────────────────────────────────────
   Dismissible, non-blocking nudge only — never an automatic redirect
   (see docs/assets/main.js for why). */
.lang-banner{
  display:flex; align-items:center; justify-content:center; gap:14px;
  flex-wrap:wrap; padding:10px 44px 10px 16px; position:relative;
  background:var(--bg-raised); border-bottom:1px solid var(--border-subtle);
  font-size:var(--fs-sm-plus); color:var(--text-muted); text-align:center;
}
.lang-banner-text{ color:var(--text); }

.lang-banner-close{
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  width:26px; height:26px; border:none; background:transparent;
  color:var(--text-muted); font-size:var(--fs-2xl); line-height:1; cursor:pointer;
  border-radius:var(--radius-sm);
}
.lang-banner-close:hover{ color:var(--text); background:var(--bg-sunken); }

/* ── Bookmarklet generator ───────────────────────────────────────── */
.bookmarklet-card{
  border:1px solid var(--border-medium); border-radius:var(--radius-2xl);
  background:var(--surface-1); padding:24px 22px; max-width:560px;
  margin:0 auto;
}
.bookmarklet-mode-toggle{
  display:flex; gap:8px; margin:0 0 18px;
}
.bookmarklet-mode-toggle button{
  flex:1; padding:10px 12px; border:1px solid var(--border-subtle);
  border-radius:var(--radius-md); background:transparent; color:var(--text-muted);
  font-family:var(--font-body); font-size:var(--fs-md); font-weight:600;
  cursor:pointer; transition:background var(--duration-base) var(--easing-standard), color var(--duration-base) var(--easing-standard),
  border-color var(--duration-base) var(--easing-standard);
}
.bookmarklet-mode-toggle button.active{
  background:var(--surface-1-strong); color:var(--text);
  border-color:var(--border-strong);
}
.bookmarklet-mode-toggle button:hover{ border-color:var(--border-medium); }
.bookmarklet-mode{ margin:0 0 18px; }
.bm-label{
  display:block; margin:0 0 8px; font-size:var(--fs-sm); font-weight:600;
  color:var(--text-muted);
}
.bookmarklet-card select,
.bookmarklet-card input[type="text"],
.bookmarklet-card input[type="email"],
.bookmarklet-card textarea{
  width:100%; padding:10px 12px; border:1px solid var(--border-medium);
  border-radius:var(--radius-md); background:var(--input-bg); color:var(--text);
  font-family:var(--font-body); font-size:var(--fs-md); box-sizing:border-box;
}
.bookmarklet-card select:focus,
.bookmarklet-card input:focus,
.bookmarklet-card textarea:focus{
  outline:none; border-color:var(--accent);
}
.bookmarklet-card textarea{ resize:vertical; min-height:120px; }
.bm-hint{
  margin:6px 0 0; font-size:var(--fs-xs-plus); line-height:1.5; color:var(--text-muted);
}
.bookmarklet-card .btn-primary{ width:100%; margin-top:16px; }
.bookmarklet-card .btn-secondary{ margin-top:8px; }
#bmOutput{ margin-top:16px; padding:14px; border:1px solid var(--border-medium);
  border-radius:var(--radius-md); background:var(--surface-1-strong); }
#bmBookmarkletLink{
  display:inline-block; margin-top:8px; font-size:var(--fs-base); font-weight:600;
  color:var(--accent); text-decoration:none; padding:8px 14px;
  border:1px solid var(--border-medium); border-radius:var(--radius-md);
  background:var(--surface-1-strong);
}
#bmBookmarkletLink:hover{ color:var(--accent-text); border-color:var(--border-strong); }
#bmCloudStatus{ min-height:16px; }
.bookmarklet-card .btn-link{
  background:none; border:none; color:var(--text-muted); cursor:pointer;
  font-size:var(--fs-xs-plus); text-decoration:underline; padding:0;
}
.bookmarklet-card .btn-link:hover{ color:var(--text); }
.bm-share-options{
  border:1px solid var(--border-subtle); border-radius:var(--radius-md);
  padding:12px 14px; margin:14px 0 0;
}
.bm-share-options legend.bm-label{ padding:0 6px; }
.bm-check{
  display:flex; align-items:center; gap:10px; margin:6px 0;
  font-size:var(--fs-md); color:var(--text); cursor:pointer;
}
.bm-check input[type="checkbox"]{
  width:auto; height:auto; accent-color:var(--accent); cursor:pointer;
}
.bm-check:hover{ color:var(--text); }
.bookmarklet-browser-note{
  max-width:560px; margin:0 auto 18px; padding:12px 14px;
  border:1px solid var(--border-medium); border-radius:var(--radius-md);
  background:var(--surface-1-strong); font-size:var(--fs-sm-plus); line-height:1.5;
  color:var(--text);
}
.bookmarklet-browser-note a{ color:var(--accent); }
.bookmarklet-browser-note a:hover{ color:var(--accent-text); }

/* ── Hero switch: Browser extension | Bookmarklet (teaser) ──────────── */

.hero-switch-btn{
  display:inline-flex; align-items:center; gap:8px; padding:9px 18px; border:0; border-radius:var(--radius-pill);
  background:transparent; color:var(--text-muted); font:500 var(--fs-md) var(--font-body); cursor:pointer;
  transition:background var(--duration-base) var(--easing-standard), color var(--duration-base) var(--easing-standard);
}
.hero-switch-btn svg{ width:18px; height:18px; flex-shrink:0; }
.hero-switch-btn:hover{ color:var(--text); }
.hero-switch-btn.active{ background:var(--accent-fill); color:var(--on-accent); }
.hero-pane[hidden]{ display:none; }

/* only animate when the visitor switches panes (class set by main.js), never on first paint: the hero CTA must be there at once */

@media (prefers-reduced-motion: reduce){ .hero-pane{ animation:none; } .hero-switch-btn{ transition:none; } }
.bm-back{ padding-top:28px; }
.bm-back .btn-link{ color:var(--text-muted); font-size:var(--fs-md); text-decoration:none; }
.bm-back .btn-link:hover{ color:var(--text); }
#bookmarklet.bookmarklet-page{ padding-top:24px; }
@media (max-width:420px){ .hero-switch-btn{ padding:9px 13px; font-size:var(--fs-sm); white-space:nowrap; } .hero-switch-btn svg{ display:none; } }

/* ── Analytics notice + settings dialog ───────────────────────────── */
.an-notice{ position:fixed; left:16px; bottom:16px; z-index:90; max-width:420px; display:flex; flex-direction:column; gap:10px;
  background:var(--bg-raised); color:var(--text); border:1px solid var(--border-medium);
  border-radius:var(--radius-lg); padding:14px 16px; box-shadow:0 8px 30px color-mix(in srgb, var(--shadow-ink) 30%, transparent); font-size:var(--fs-sm-plus); line-height:1.5; }
.an-notice p{ margin:0; }
.an-notice a, .an-dialog a{ color:inherit; text-decoration:underline; }
.an-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.an-btn{ font:inherit; font-weight:500; padding:7px 14px; border-radius:var(--radius-md); cursor:pointer; background:transparent; color:inherit;
  border:1px solid var(--border-medium); }
.an-btn:hover{ background:color-mix(in srgb, var(--tint-neutral) 15%, transparent); }
.an-btn:focus-visible, .an-notice a:focus-visible{ outline:2px solid currentColor; outline-offset:2px; }
.an-btn:disabled{ opacity:.5; cursor:not-allowed; }
.an-primary{ background:var(--accent-fill); border-color:transparent; color:var(--on-accent); }
.an-primary:hover{ background:var(--accent); filter:brightness(1.1); }
.an-overlay{ position:fixed; inset:0; z-index:100; background:color-mix(in srgb, var(--shadow-ink) 55%, transparent); display:flex; align-items:center; justify-content:center; padding:16px; }
.an-dialog{ background:var(--bg-raised); color:var(--text); border:1px solid var(--border-medium);
  border-radius:var(--radius-xl); padding:22px; max-width:460px; width:100%; display:flex; flex-direction:column; gap:12px; font-size:var(--fs-md); line-height:1.55; }
.an-dialog h2{ margin:0; font-size:var(--fs-3xl); }
.an-dialog p{ margin:0; }
.an-small{ font-size:var(--fs-xs-plus); opacity:.8; }
@media (max-width:520px){
  /* slim bar: text and buttons side by side, small type, so it no longer covers a third of the first screen */
  .an-notice{ left:8px; right:8px; bottom:8px; max-width:none; flex-direction:row; align-items:center; gap:8px; padding:8px 10px; font-size:var(--fs-xs); line-height:1.35; border-radius:var(--radius-md); }
  .an-notice .an-actions{ flex-wrap:nowrap; flex:none; }
  .an-notice .an-btn{ padding:5px 10px; font-size:var(--fs-xs); }
}

/* ── Accessibility: focus on filled controls, target size, link affordance ── */
.hero-switch-btn.active:focus-visible, .persona-btn.active:focus-visible, .tier-toggle button.active:focus-visible,
.tier-cta:focus-visible, .btn:focus-visible{ outline:3px solid var(--text); outline-offset:2px; box-shadow:0 0 0 5px var(--accent); }
.hero-switch-btn, .tier-toggle button, .persona-btn{ min-height:40px; }
.footer-inner a, .foot-links a, footer .copyright a{ text-underline-offset:3px; }
footer .copyright a, .foot-links a{ text-decoration:underline; text-decoration-color:var(--border-strong); }
footer .copyright a:hover, .foot-links a:hover{ text-decoration-color:currentColor; }
@media (forced-colors: active){
  .hero-switch-btn.active, .persona-btn.active, .tier-toggle button.active{ outline:2px solid Highlight; }
}

/* blog figures */
.post-figure{ margin:36px 0; }
.post-figure img{ display:block; width:100%; height:auto; border-radius:var(--radius-xl); border:1px solid var(--border-subtle); background:transparent; }
.post-figure--portrait img{ max-width:400px; margin:0 auto; }
.post-figure figcaption{ margin-top:12px; font-size:var(--fs-sm-plus); line-height:1.5; color:var(--text-muted); text-align:center; }

/* ── Accessibility: buttons inside prose / CTA boxes keep their own label colour ── */
.prose a.btn-primary, .post-cta a.btn-primary, a.btn-primary, a.btn-primary:visited{
  color:var(--on-accent); text-decoration:none; font-weight:700;
}
.prose a.btn-secondary, .post-cta a.btn-secondary, a.btn-secondary, a.btn-secondary:visited{
  color:var(--text); text-decoration:none;
}
.btn-primary:hover, .prose a.btn-primary:hover{ color:var(--on-accent); text-decoration:none; filter:brightness(1.04); }
.btn-primary:focus-visible, .btn-secondary:focus-visible{
  outline:3px solid var(--text); outline-offset:3px; box-shadow:0 0 0 6px var(--accent); border-radius:var(--radius-lg);
}
@media (forced-colors:active){ .btn-primary, .btn-secondary{ border:2px solid ButtonText; } }

/* Peek carousel: current slide centred, neighbours peek in. Native scroll-snap, JS only syncs state. */
.cx{ --cx-w:min(1080px, 80vw); width:100vw; margin-left:calc(50% - 50vw); }
#see-it{ overflow-x:clip; }
.cx-stage{ position:relative; }
.cx-track{ list-style:none; margin:0; padding:8px calc((100% - var(--cx-w)) / 2) 12px; display:flex; gap:28px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.cx-track::-webkit-scrollbar{ display:none; }
.cx-track{ -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image:linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.cx-track:focus-visible{ outline:2px solid var(--accent); outline-offset:4px; border-radius:var(--radius-xl); }
.cx-slide{ flex:0 0 var(--cx-w); scroll-snap-align:center; opacity:.45; transform:scale(.92); transition:opacity var(--duration-screen) var(--easing-standard), transform var(--duration-screen) var(--easing-standard); }
.cx-slide.is-active{ opacity:1; transform:none; }
.cx-slide figure{ margin:0; }
.cx-slide img{ display:block; width:100%; height:auto; border-radius:var(--radius-xl); border:1px solid var(--border-medium); box-shadow:0 24px 48px -24px var(--card-shadow); background:var(--surface-2); }
.cx-slide figcaption{ user-select:text; -webkit-user-select:text; cursor:text; margin:22px auto 0; max-width:820px; display:flex; flex-direction:column; gap:8px; text-align:center; opacity:0; transition:opacity var(--duration-screen) var(--easing-standard); }
.cx-slide.is-active figcaption{ opacity:1; }
.cx-slide figcaption strong{ font-family:var(--font-display); font-size:clamp(21px, 1.9vw, 30px); line-height:1.2; font-weight:600; color:var(--text); }
.cx-slide figcaption span{ font-size:clamp(16px, 1.3vw, 20px); line-height:1.55; color:var(--text-muted); }
.cx-nav{ position:absolute; top:calc(8px + (var(--cx-w) * 0.28)); transform:translateY(-50%); width:44px; height:44px; border-radius:50%; border:1px solid var(--border-medium); background:var(--surface-1-strong); color:var(--text); display:grid; place-items:center; cursor:pointer; backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); box-shadow:0 8px 20px -10px var(--card-shadow); }
.cx-nav svg{ width:22px; height:22px; }
.cx-prev{ left:4px; } .cx-next{ right:4px; }
.cx-nav:hover{ border-color:var(--accent); }
.cx-nav:focus-visible, .cx-dot:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
.cx-nav[disabled]{ opacity:.35; cursor:default; }
.cx-dots{ display:flex; justify-content:center; align-items:center; gap:8px; margin-top:8px; }
.cx-dot{ width:8px; height:8px; padding:0; border:0; border-radius:var(--radius-xs); background:var(--border-strong); cursor:pointer; transition:width var(--duration-base) var(--easing-standard), background var(--duration-base) var(--easing-standard); }
.cx-dot.is-active{ width:28px; background:var(--accent); }
@media (max-width:720px){ .cx{ --cx-w:88vw; } .cx-nav{ display:none; }  .cx-track{ gap:16px; } }
@media (prefers-reduced-motion:reduce){ .cx-slide, .cx-slide figcaption, .cx-dot{ transition:none; } }

/* Live demo: the real popup in an iframe, loaded only when asked for */
/* Wide and tall: breaks out of the text column, fills most of the viewport, scales down on small screens */
.demo-frame{ --dw:min(1180px, calc(100vw - 40px)); position:relative; width:var(--dw); max-width:none; margin:0 0 0 calc(50% - var(--dw) / 2); height:clamp(460px, 62vh, 620px); border:1px solid var(--border-medium); border-radius:var(--radius-2xl); background:var(--surface-2); box-shadow:0 24px 48px -24px var(--card-shadow); overflow:hidden; display:grid; place-items:center; }
.demo-frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.demo-start{ display:inline-flex; align-items:center; gap:12px; padding:14px 24px; border-radius:var(--radius-pill); border:1px solid var(--border-strong); background:var(--surface-1-strong); color:var(--text); font:600 var(--fs-lg) var(--font-display); cursor:pointer; }
.demo-start:hover{ border-color:var(--accent); }
.demo-play{ display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--accent); color:var(--on-media-strong); font-size:var(--fs-2xs); padding-left:2px; }
.demo-open{ position:absolute; z-index:2; top:12px; right:14px; padding:6px 14px; border-radius:var(--radius-pill); border:1px solid var(--border-medium); background:var(--bg-raised); color:var(--text); font-size:var(--fs-sm); font-weight:600; text-decoration:none; }
.demo-open:hover{ border-color:var(--accent); }
.demo-frame.is-live .demo-start{ display:none; }
@media (max-width:820px){ .demo-frame{ --dw:calc(100vw - 24px); height:min(560px, 76vh); } }

/* Hero mock of the extension: its own small palette as roles on the scene, light first, dark below.
   The mock rules read only these (no theme selectors inside the mock). */
/* @tokens:start mock */
/* Generated by design-system/build.mjs from design-system/tokens (site). Do not edit: change the JSON, then npm run tokens. */
/* Hero mock of the extension: its own small palette as component tokens on the scene, light first, dark below. The mock rules read only these. */
:is(.hero-scene, .hscene) {
  /* component · mock */
  --mock-text: #14161f;
  --mock-muted: #6a7183;
  --mock-muted-strong: #4a5060;
  --mock-faint: #8a93a8;
  --mock-window: #ffffff;
  --mock-chrome: #eef1f7;
  --mock-field: #ffffff;
  --mock-panel: #f7f9ff;
  --mock-raised: #ffffff;
  --mock-chip: #ffffff;
  --mock-line: #d6dcea;
  --mock-line-soft: #e3e7f0;
  --mock-accent: #2563eb;
  --mock-accent-text: #2563eb;
  --mock-accent-edge: #2563eb;
  --mock-accent-tint: color-mix(in srgb, #2563eb 9%, #ffffff);
  --mock-accent-wash: color-mix(in srgb, #2563eb 11%, #ffffff);
  --mock-hl: color-mix(in srgb, #2563eb 16%, #ffffff);
  --mock-pressed: color-mix(in srgb, #2563eb 16%, #ffffff);
  --mock-pressed-ring: rgba(37,99,235,0.35);
  --mock-sugg-edge: color-mix(in srgb, #2563eb 46%, #ffffff);
  --mock-kick: #c8102e;
  --mock-on-accent: #ffffff;
  --mock-cursor-fill: #14161f;
  --mock-cursor-stroke: #ffffff;
  --mock-ripple: rgba(37,99,235,0.28);
  --mock-ripple-edge: rgba(37,99,235,0.55);
  --mock-shadow-badge: 0 8px 24px rgba(20,30,60,0.16);
  --mock-shadow-win: 0 30px 70px -20px rgba(20,30,60,0.35);
  --mock-shadow-graph: 0 14px 40px rgba(20,30,60,0.25);
  --mock-shadow-panel: none;
  --mock-brand: linear-gradient(135deg, #2563eb, #6FA3FF);
  --mock-live: #16a37f;
  --mock-dot-close: #ff5f57;
  --mock-dot-min: #febc2e;
  --mock-dot-max: #28c840;
  --mock-example-bg: rgba(128,128,150,0.22);
  --mock-overlay: rgba(10,14,30,0.82);
  --mock-overlay-hover: rgba(10,14,30,0.94);
  --mock-overlay-edge: rgba(255,255,255,0.22);
  --mock-overlay-muted: rgba(255,255,255,0.75);
}
@media (max-width:900px) {
  :is(.hero-scene, .hscene) {
    /* component · mock */
    --mock-shadow-panel: -12px 0 30px rgba(20,30,60,0.12);
  }
}
:root[data-theme="dark"] :is(.hero-scene, .hscene) {
  /* component · mock */
  --mock-text: #e8ebf5;
  --mock-muted: #98a1b8;
  --mock-muted-strong: #98a1b8;
  --mock-faint: #7d869c;
  --mock-window: #141824;
  --mock-chrome: #1c2132;
  --mock-field: #10131d;
  --mock-panel: #171c2b;
  --mock-raised: #1b2030;
  --mock-chip: #171c2b;
  --mock-line: #2e3548;
  --mock-line-soft: #2a3045;
  --mock-accent: color-mix(in srgb, #4C8DFF 23%, #2563eb);
  --mock-accent-text: #8FBBFF;
  --mock-accent-edge: #4C8DFF;
  --mock-accent-tint: color-mix(in srgb, #4C8DFF 22%, #141824);
  --mock-accent-wash: color-mix(in srgb, #4C8DFF 14%, #141824);
  --mock-hl: color-mix(in srgb, #4C8DFF 27%, #141824);
  --mock-pressed: color-mix(in srgb, #4C8DFF 51%, #141824);
  --mock-pressed-ring: color-mix(in srgb, #4C8DFF 50%, transparent);
  --mock-sugg-edge: color-mix(in srgb, #4C8DFF 42%, #141824);
  --mock-kick: #ff6b81;
  --mock-cursor-fill: #ffffff;
  --mock-cursor-stroke: #14161f;
  --mock-ripple-edge: #8FBBFF;
  --mock-shadow-badge: 0 8px 24px rgba(0,0,0,0.5);
  --mock-shadow-win: 0 30px 70px -20px rgba(0,0,0,0.7), 0 0 0 1px #2a3045;
  --mock-shadow-graph: 0 14px 40px rgba(0,0,0,0.55);
  --mock-shadow-panel: -12px 0 30px rgba(0,0,0,0.35);
}
/* @tokens:end mock */
/* ── Hero scene: native, scroll-reactive (replaces the hero screenshot) ──
   1280×800 design canvas scaled by JS; scroll progress p (0..1) drives the stages. Without JS / with reduced motion it renders statically. */
.hscene{ margin:0; max-width:none; text-align:left; --p-panel:1; --p-hl:1; --p-qa:1; --p-graph:0; }

.hscene-view{ position:relative; width:100%; height:calc(var(--ch,800) * 1px * var(--s,1)); border-radius:0; overflow:hidden; border-width:1px 0; border-style:solid; border-color:var(--border-medium); box-shadow:0 28px 56px -26px var(--card-shadow); }
.hscene-canvas{ position:absolute; left:50%; margin-left:calc(var(--cw,1280) * -.5px); top:0; width:calc(var(--cw,1280) * 1px); height:calc(var(--ch,800) * 1px); transform:scale(var(--s,1)); transform-origin:50% 0; color:var(--mock-text); font-family:Inter,system-ui,sans-serif; }
.hscene-mcap{ display:none; }
.hs-logo{ display:inline-block; width:34px; height:34px; border-radius:10px; background:var(--mock-brand); flex:none; }
.hs-langs{ position:absolute; left:0; bottom:0; }
.hs-langs span{ display:block; margin-bottom:10px; font:500 13px "JetBrains Mono",monospace; letter-spacing:.14em; text-transform:uppercase; color:var(--mock-muted); }
.hs-langs div{ display:flex; gap:7px; }
.hs-langs b{ font:500 14.5px Inter,sans-serif; padding:8px 13px; white-space:nowrap; border-radius:99px; background:var(--mock-raised); border:1px solid var(--mock-line); transition:background var(--duration-slow),color var(--duration-slow),border-color var(--duration-slow); }
.hs-langs b.is-on{ background:var(--mock-accent); border-color:var(--mock-accent); color:var(--mock-on-accent); }
.hs-badge{ position:absolute; left:480px; top:10px; z-index:5; display:flex; align-items:center; gap:9px; padding:10px 16px; border-radius:99px; background:var(--mock-raised); color:var(--mock-text); box-shadow:var(--mock-shadow-badge); font:600 15px Inter,sans-serif; transform:rotate(-2deg); }
.hs-badge i{ width:10px; height:10px; border-radius:50%; background:var(--mock-live); }
.hs-win{ position:absolute; left:30px; top:62px; width:700px; height:640px; border-radius:16px; background:var(--mock-window); box-shadow:var(--mock-shadow-win); overflow:hidden; }
.hs-bar{ height:48px; background:var(--mock-chrome); display:flex; align-items:center; gap:8px; padding:0 18px; }
.hs-bar i{ width:12px; height:12px; border-radius:50%; background:var(--mock-dot-close); } .hs-bar i:nth-child(2){ background:var(--mock-dot-min); } .hs-bar i:nth-child(3){ background:var(--mock-dot-max); }
.hs-bar span{ margin-left:16px; padding:5px 14px; border-radius:14px; background:var(--mock-field); font-size:13px; color:var(--mock-muted); }
.hs-art{ position:absolute; left:40px; top:78px; width:610px; transition:width var(--duration-reveal) var(--easing-standard); font-family:Lora,Georgia,serif; }
.hscene.is-live .hs-art{ width:calc(610px - 270px * var(--p-panel)); }
.hscene:not(.is-live) .hs-art{ width:340px; }
.hs-mast{ font:700 25px Lora,Georgia,serif; margin-bottom:10px; }
.hs-kick{ font:700 12px Inter,sans-serif; letter-spacing:.08em; color:var(--mock-kick); margin-bottom:8px; }
.hs-art h4{ margin:0 0 12px; font:700 calc(33px - 5px * var(--p-panel))/1.2 Lora,Georgia,serif; }
.hs-art p{ margin:0 0 12px; font-size:16.5px; line-height:1.55; }
.hs-dek{ color:var(--mock-muted); }
.hs-art .hs-hl{ padding:6px 9px; margin-left:-9px; margin-right:-9px; border-radius:6px; background:linear-gradient(90deg,var(--mock-hl) calc(var(--p-hl) * 100%),transparent calc(var(--p-hl) * 100%)); }
.hs-panel{ position:absolute; right:0; top:48px; width:300px; height:592px; background:var(--mock-panel); border-left:1px solid var(--mock-line-soft); box-shadow:var(--mock-shadow-panel); padding:18px; box-sizing:border-box; display:flex; flex-direction:column; gap:11px; font-size:14px; }
.hscene.is-live .hs-panel{ transform:translateX(calc((1 - var(--p-panel)) * 100%)); opacity:var(--p-panel); }
.hs-ph{ display:flex; align-items:center; gap:10px; font:600 15px Inter,sans-serif; } .hs-ph .hs-logo{ width:26px; height:26px; border-radius:7px; }
.hs-tags{ display:flex; gap:7px; } .hs-tags i{ font-style:normal; font-size:12px; color:var(--mock-accent-text); background:var(--mock-accent-tint); padding:4px 10px; border-radius:99px; }
.hs-sum{ background:var(--mock-accent-wash); border-left:3px solid var(--mock-accent-edge); border-radius:14px; padding:14px 16px; display:flex; flex-direction:column; gap:7px; min-height:206px; }
.hs-sum small{ font-size:12px; color:var(--mock-muted-strong); } .hs-st{ font:700 19px/1.25 Inter,sans-serif; } .hs-sb,.hs-sp{ font-size:13.5px; line-height:1.45; }
.hs-sp{ min-height:20px; }
.hs-q{ display:flex; justify-content:flex-end; opacity:var(--p-qa); transform:translateY(calc((1 - var(--p-qa)) * 10px)); }
.hs-q span{ background:var(--mock-accent); color:var(--mock-on-accent); padding:9px 14px; border-radius:14px; font-size:13px; font-weight:500; }
.hs-a{ background:var(--mock-field); border:1px solid var(--mock-line); border-radius:14px; padding:11px 14px; font-size:13px; line-height:1.45; opacity:var(--p-a,1); transform:translateY(calc((1 - var(--p-a,1)) * 10px)); }
.hs-a em{ display:inline-block; margin-top:6px; font-style:normal; font-size:11.5px; color:var(--mock-accent-text); background:var(--mock-accent-tint); padding:3px 9px; border-radius:99px; }
.hs-tabs{ margin-top:auto; display:flex; gap:4px; padding:5px; border-radius:16px; background:var(--mock-field); border:1px solid var(--mock-line-soft); }
.hs-tabs i{ flex:1; text-align:center; font-style:normal; font-size:12px; padding:9px 0; border-radius:12px; color:var(--mock-muted); } .hs-tabs i.on{ background:var(--mock-accent); color:var(--mock-on-accent); font-weight:600; }
.hs-graph{ position:absolute; left:70px; top:566px; z-index:6; width:230px; padding:14px 16px; border-radius:18px; background:var(--mock-raised); color:var(--mock-text); box-shadow:var(--mock-shadow-graph); font-size:13px; transform:rotate(-3deg) translateY(calc((1 - var(--p-graph)) * 40px)); opacity:var(--p-graph); }
.hscene:not(.is-live) .hs-graph{ opacity:1; transform:rotate(-3deg); }
.hs-graph small{ display:block; font-weight:600; margin-bottom:4px; } .hs-graph svg{ display:block; margin:0 0 6px -4px; max-width:100%; }

.sr-only{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
@media (max-width:900px){
  .hs-langs{ display:none; }
  .hscene-mcap{ display:block; margin:0 0 10px; font-size:var(--fs-base); line-height:1.4; color:var(--text-muted); min-height:44px; }
  .hscene-mcap strong{ color:var(--text); font-family:var(--font-display); }
  .hs-badge{ display:none; }
  .hs-win{ left:14px; top:14px; width:432px; height:572px; }
  .hs-art{ left:24px; top:64px; }
  .hs-graph{ display:none; }
  .hs-art h4{ font-size:26px; } .hs-art p{ font-size:14.5px; }
  .hscene.is-live .hs-art, .hscene:not(.is-live) .hs-art{ width:384px; }
  .hs-panel{ width:300px; height:524px; padding:14px; gap:9px; }
  .hscene:not(.is-live) .hs-panel{ transform:none; }
  
}
@media (prefers-reduced-motion:reduce){  .hs-langs b,.hs-art{ transition:none; } }

/* Hero layout: text column (real, translatable text) + scroll-reactive visual, full bleed */
.hero-scene{ padding:0; text-align:left; }
.hs-grid{ display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:clamp(16px,3vw,48px); max-width:1760px; margin:0 auto; padding:0 clamp(20px,4vw,64px); }
.hs-text{ align-self:stretch; }
.hs-text-in{ min-height:calc(100vh - 72px); display:flex; flex-direction:column; justify-content:center; align-items:flex-start; padding:20px 0; }
.hero-scene h1{ font-size:clamp(34px,3.7vw,56px); max-width:none; margin-left:0; margin-right:0; }
.hero-scene .eyebrow{ margin-bottom:16px; }
.hero-scene p.sub{ margin:0 0 24px; font-size:var(--fs-xl); max-width:520px; }

.hero-scene .hero-cta{ justify-content:flex-start; margin-bottom:14px; }

.hero-scene .hero-meta{ max-width:520px; }

.hs-vwrap{ align-self:stretch; min-width:0; }
.hs-vis{ position:static; display:flex; flex-direction:column; justify-content:center; }
.hscene-view{ border:0; border-radius:0; background:none; box-shadow:none; width:100%; }
.hs-langs{ position:absolute; left:30px; top:10px; bottom:auto; display:flex; gap:7px; align-items:center; }
.hs-langs b{ font:500 14.5px Inter,sans-serif; padding:7px 13px; border-radius:99px; background:var(--mock-raised); color:var(--mock-text); border:1px solid var(--mock-line); white-space:nowrap; transition:background var(--duration-slow),color var(--duration-slow); }
.hs-langs b.is-on{ background:var(--mock-accent); border-color:var(--mock-accent); color:var(--mock-on-accent); }

@media (max-height:800px){ .hero-scene p.sub{ font-size:var(--fs-lg); margin-bottom:18px; } }
@media (max-width:900px){
  .hs-grid{ grid-template-columns:1fr; gap:0; padding:0 20px; }
  .hs-text-in{ min-height:0; padding:48px 0 12px; }
  .hs-langs{ display:none; }
}

/* Hero walkthrough: autoplaying, presenter-style (cursor, extension icon, step list) */
.hs-grid{ align-items:center; }
.hs-vwrap{ align-self:center; position:relative; }
/* "Watch the video" over the animated hero demo: the demo is nice, the video shows it better */
.hs-watch{ position:absolute; z-index:5; left:50%; top:44%; transform:translate(-50%,-50%); display:flex; align-items:center; gap:10px; padding:8px 16px 8px 8px; border-radius:var(--radius-pill); text-decoration:none; color:var(--mock-on-accent); background:var(--mock-overlay); border:1px solid var(--mock-overlay-edge); box-shadow:0 8px 24px color-mix(in srgb, var(--shadow-ink) 35%, transparent); backdrop-filter:blur(6px); transition:transform var(--duration-fast) var(--easing-standard), background var(--duration-fast) var(--easing-standard); }
.hs-watch:hover{ transform:translate(-50%,-50%) translateY(-2px); background:var(--mock-overlay-hover); }
.hs-watch:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
.hs-watch-ico{ width:40px; height:40px; border-radius:50%; display:grid; place-items:center; font-size:var(--fs-lg); padding-left:3px; color:var(--mock-on-accent); background:var(--mock-brand); flex:none; }
.hs-watch-txt{ display:flex; flex-direction:column; line-height:1.2; text-align:left; }
.hs-watch-txt strong{ font:600 var(--fs-md) var(--font-display); }
.hs-watch-txt small{ font-size:var(--fs-xs); color:var(--mock-overlay-muted); }
@media (max-width:640px){ .hs-watch{ top:40%; } }
@media (prefers-reduced-motion:reduce){ .hs-watch{ transition:none; } }
.hs-bar span{ flex:0 1 380px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hs-ext{ margin-left:auto; display:flex; align-items:center; gap:6px; }
.hs-ext em{ font-style:normal; width:28px; height:28px; border-radius:8px; display:grid; place-items:center; font-size:15px; }
.hs-bar .hs-ext span, .hs-bar .hs-logo{ margin:0; padding:0; flex:none; width:20px; height:20px; border-radius:6px; background:var(--mock-brand); display:block; }
.hs-extbtn.on{ background:var(--mock-pressed); box-shadow:0 0 0 2px var(--mock-pressed-ring); }
.hs-ph2{ font-style:normal; font-size:13.5px; line-height:1.45; color:var(--mock-muted); }
.hs-sum.has-text .hs-ph2{ display:none; }
.hs-sum:not(.has-text) .hs-st, .hs-sum:not(.has-text) .hs-sb, .hs-sum:not(.has-text) .hs-sp{ display:none; }
.hs-qwrap{ position:relative; min-height:42px; }
.hs-qwrap .hs-q{ position:absolute; left:0; right:0; top:0; }
.hs-sugg{ position:absolute; right:0; top:0; font:500 13px Inter,sans-serif; color:var(--mock-accent-text); background:var(--mock-chip); border:1px dashed var(--mock-sugg-edge); border-radius:14px; padding:8px 13px; opacity:var(--p-sugg,0); cursor:default; }
.hs-tabs i{ transition:transform var(--duration-fast); } .hs-tabs i.press{ transform:scale(.92); }
.hs-cursor path{ fill:var(--mock-cursor-fill); stroke:var(--mock-cursor-stroke); }
.hs-cursor{ position:absolute; left:0; top:0; z-index:30; width:28px; height:28px; pointer-events:none; filter:drop-shadow(0 3px 5px color-mix(in srgb, var(--shadow-ink) 35%, transparent)); will-change:transform; }
.hs-ripple{ position:absolute; left:0; top:0; z-index:29; width:44px; height:44px; margin:-22px 0 0 -22px; border-radius:50%; background:var(--mock-ripple); border:2px solid var(--mock-ripple-edge); pointer-events:none; opacity:0; }
.hscene-canvas{ transition:none; }
.hs-ctrl{ display:flex; align-items:center; justify-content:center; gap:10px; margin-top:14px; }
.hs-pp, .hs-dot{ border:0; cursor:pointer; }
.hs-pp{ width:30px; height:30px; border-radius:50%; display:grid; place-items:center; background:var(--surface-1-strong); color:var(--text); border:1px solid var(--border-medium); }
.hs-pp .pp-play{ display:none; } .hs-pp.is-paused .pp-play{ display:block; } .hs-pp.is-paused .pp-pause{ display:none; }
/* Same look as the carousel dots (.cx-dot): an 8px dot, a 28px pill when active. The button keeps a bigger tap area (padding);
   the visible dot is ::before, so its rounding follows the dot and not the padded box (clipping the background to the content
   box left square dots: border-radius rounds the outer edge only). */
.hs-dot{ position:relative; box-sizing:content-box; width:8px; height:8px; padding:8px 4px; border-radius:0; background:none; transition:width var(--duration-base) var(--easing-standard); }
.hs-dot::before{ content:""; position:absolute; inset:8px 4px; border-radius:var(--radius-xs); background:var(--border-strong); transition:background var(--duration-base) var(--easing-standard); }
.hs-dot.is-on{ width:28px; background:none; }
.hs-dot.is-on::before{ background:var(--accent); }
@media (prefers-reduced-motion:reduce){ .hs-dot, .hs-dot::before{ transition:none; } }
.hs-pp:focus-visible,.hs-dot:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }

/* Hero walkthrough: longer localized strings must wrap inside the article and tab bar */
.hs-art{overflow-wrap:anywhere;hyphens:auto}
.hs-art h4{font-size:clamp(20px,calc(26px - 6px*var(--p-panel,0)),26px);overflow-wrap:anywhere}
.hs-tabs i{font-size:11.5px;padding-left:6px;padding-right:6px;white-space:nowrap}

/* Pricing: wider cards, heading stays readable */
#pricing .wrap-narrow{ max-width:1160px; }
#pricing .section-head{ max-width:760px; margin-left:auto; margin-right:auto; }
#pricing .tiers{ gap:22px; max-width:1100px; margin:0 auto; }
#pricing .tier-card{ padding:30px 28px; }
#pricing .tier-name{ font-size:var(--fs-base); }
#pricing .tier-price{ font-size:var(--fs-8xl); }
@media (max-width:900px){ #pricing .tiers{ grid-template-columns:1fr; max-width:520px; } }

/* Demo poster: a real screenshot of the demo behind the play button */
.demo-frame{ background-size:cover; background-position:center top; }
.demo-frame:not(.is-live)::before{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, color-mix(in srgb, var(--media-night-soft) 10%, transparent), color-mix(in srgb, var(--media-night-soft) 45%, transparent)); pointer-events:none; }
.demo-frame:not(.is-live) .demo-start{ position:relative; z-index:1; padding:18px 30px; font-size:var(--fs-2xl); box-shadow:0 12px 40px color-mix(in srgb, var(--shadow-ink) 35%, transparent); }
.demo-frame:not(.is-live) .demo-play{ width:36px; height:36px; font-size:var(--fs-sm); }
.demo-frame:not(.is-live) .demo-start{ background:var(--bg-raised); color:var(--text); border-color:transparent; }
/* Poster stays undimmed; the button carries its own backdrop */
.demo-frame:not(.is-live)::before{ display:none; }
.demo-frame:not(.is-live) .demo-start{ box-shadow:0 0 0 8px color-mix(in srgb, var(--bg-raised) 58%, transparent), 0 16px 44px var(--poster-shadow); backdrop-filter:blur(6px); }

/* Step caption sits right above the slide indicator, on every screen size */
.hscene-mcap{ display:block; margin:14px auto 10px; max-width:640px; text-align:center; font-size:var(--fs-base); line-height:1.45; color:var(--text-muted); min-height:66px; }
.hscene-mcap strong{ display:block; font:600 var(--fs-2xl-plus) var(--font-display); color:var(--text); margin-bottom:3px; }

/* Graph card: never cut off at the bottom of the scene */
.hs-graph{ top:566px; width:270px; padding:12px 16px; }
.hs-graph svg{ height:60px; }
.hs-graph > div{ white-space:nowrap; font-size:12.5px; }
@media (max-width:900px){ .hs-graph{ display:none; } }

/* The left step list is gone; the caption above the indicator and the cursor label carry the steps */
/* the step list and the cursor label are kept in the markup for the script, but not shown */
.hs-steps, .hs-tip{ display:none; }

/* Real extension icon instead of the placeholder gradient */
.hs-logo, .hs-bar .hs-ext span.hs-logo, .hs-bar .hs-logo{ background:url(icon.svg) center/cover no-repeat; }
.beta-badge{ display:inline-block; vertical-align:middle; margin-left:6px; padding:2px 8px; border-radius:var(--radius-pill); font:600 var(--fs-2xs)/1.5 var(--font-mono); letter-spacing:.08em; text-transform:uppercase; background:var(--badge-beta-bg); color:var(--badge-beta-text); }

/* Right-to-left locales (Arabic): mirror the page, keep product mockups left-to-right */
[dir="rtl"] .hscene-canvas, [dir="rtl"] .hs-ctrl, [dir="rtl"] .demo-frame iframe{ direction:ltr; }
[dir="rtl"] .hscene-canvas p, [dir="rtl"] .hscene-canvas h4, [dir="rtl"] .hs-panel{ text-align:left; }
[dir="rtl"] .demo-frame{ margin:0 calc(50% - var(--dw) / 2) 0 0; }
[dir="rtl"] .hscene-mcap{ text-align:center; }

/* RTL: full-bleed blocks anchor from the right */
[dir="rtl"] .cx{ margin-left:0; margin-right:calc(50% - 50vw); }
/* Hero scene: four language pills are enough; long native names would run into the "Runs locally" badge */
/* Language pills: not clickable, so they fade out one by one and a "+N" shows how many more summary languages exist. */
.hs-langs b:nth-child(n+4){ display:none; }
.hs-langs b:nth-child(2){ opacity:.8; }
.hs-langs b:nth-child(3){ opacity:.55; }
.hs-langs b.is-on{ opacity:1; }
.hs-langs::after{ content:"+38"; margin-left:4px; font:600 14px Inter,sans-serif; color:var(--mock-faint); letter-spacing:.01em; white-space:nowrap; }

/* ===== Floating pill navigation (.nav--pill) ===== */
.nav--pill{position:fixed;top:14px;left:0;right:0;z-index:100;background:none;border:0;backdrop-filter:none;pointer-events:none}
.nav--pill .nav-pill-row{display:flex;align-items:center;justify-content:space-between;gap:16px;pointer-events:none}
.nav--pill .nav-pill-row>*{pointer-events:auto}
.nav--pill .wordmark{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:var(--text);text-decoration:none;transition:opacity var(--duration-base),transform var(--duration-base)}
.nav--pill .wordmark img{width:24px;height:24px}

.nav--pill .pill{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:2px;padding:5px;border-radius:var(--radius-pill);background:var(--nav-bg);border:1px solid var(--border-medium);backdrop-filter:blur(18px) saturate(1.4);-webkit-backdrop-filter:blur(18px) saturate(1.4);box-shadow:0 8px 30px color-mix(in srgb, var(--shadow-ink) 25%, transparent);pointer-events:auto;white-space:nowrap}
.nav--pill .pill a{display:inline-flex;align-items:center;gap:5px;padding:8px 14px;border-radius:var(--radius-pill);color:var(--text-muted);font-size:var(--fs-md);font-weight:500;text-decoration:none;background:none;border:0;cursor:pointer;transition:background var(--duration-base),color var(--duration-base)}
.nav--pill .pill a:hover,.nav--pill .pill a.is-active,.nav--pill .pill a[aria-current]{background:var(--surface-1);color:var(--text)}
.nav--pill .pill .pill-cta{background:var(--accent-fill);color:var(--on-accent);font-weight:600;margin-left:4px}
.nav--pill .pill .pill-cta:hover{background:var(--accent-fill);color:var(--on-accent);filter:brightness(1.08)}

.nav--pill .beta-badge{font-size:var(--fs-3xs);padding:1px 6px;border-radius:var(--radius-pill);background:var(--accent-fill);color:var(--on-accent)}
.nav--pill .nav-tools{display:flex;align-items:center;gap:6px;margin-inline-start:auto}
.nav--pill .tool-btn,.nav--pill .theme-toggle{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--nav-bg);border:1px solid var(--border-medium);color:var(--text);cursor:pointer;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.nav--pill .tool-btn svg,.nav--pill .theme-toggle svg{width:18px;height:18px}

/* Mobile */
.nav--pill .nav-toggle{display:none}
.nav--pill .mobile-menu{position:fixed;inset:0;pointer-events:auto;overflow:auto;padding:84px 0 32px}
.nav--pill .mobile-menu[hidden]{display:none}
.nav--pill .mm-links a{display:flex;align-items:baseline;gap:14px;padding:14px 0;font-size:var(--fs-8xl);font-weight:600;letter-spacing:-.02em;color:var(--text);text-decoration:none;border-bottom:1px solid var(--border-medium)}
.nav--pill .mm-n{font:500 var(--fs-xs) var(--font-mono);color:var(--accent)}
.nav--pill .mm-links a.mm-sub{font-size:var(--fs-lg);font-weight:400;padding:9px 0 9px 34px;color:var(--text-muted);border-bottom:0}
.nav--pill .mm-bottom{margin-top:28px;display:grid;gap:16px}
.nav--pill .mm-cta{justify-content:center;padding:15px;border-radius:var(--radius-pill);background:var(--accent-fill);color:var(--on-accent);font-weight:600;text-decoration:none;display:flex}
.nav--pill .mm-cta--secondary{background:var(--surface-2);color:var(--text);border:1px solid var(--border-medium)}
.nav--pill .mm-cta--secondary:hover{background:var(--surface-1-strong);color:var(--text)}
.nav--pill .mm-row{display:flex;flex-wrap:wrap;gap:8px 18px}
.nav--pill .mm-row a,.nav--pill .mm-lang summary,.nav--pill .theme-toggle-mobile{color:var(--text-muted);font-size:var(--fs-md);text-decoration:none}
.nav--pill .mm-lang summary{cursor:pointer;display:flex;gap:8px;align-items:center}
.nav--pill .mm-lang summary svg{width:16px;height:16px}

.nav--pill .theme-toggle-mobile{display:flex;justify-content:space-between;align-items:center;background:none;border:1px solid var(--border-medium);border-radius:var(--radius-pill);padding:12px 16px;cursor:pointer}
.nav--pill .theme-toggle-mobile svg{width:18px;height:18px}
body.nav-locked{overflow:hidden}
@media (max-width:860px){
  .nav--pill .pill{display:none}
  .nav--pill .nav-toggle{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;border:1px solid var(--border-medium);background:var(--nav-bg);color:var(--text);cursor:pointer;position:relative;z-index:2}
  .nav--pill .nav-toggle svg{width:20px;height:20px}
  .nav--pill .nav-tools{margin-inline-start:auto}
  
}
/* Pill nav icons: show one theme icon */
.nav--pill .icon-sun{display:none}
:root[data-theme="light"] .nav--pill .icon-sun{display:block}
:root[data-theme="light"] .nav--pill .icon-moon{display:none}

.nav--pill .mobile-menu{backdrop-filter:none;border:0;height:100vh;height:100dvh;width:100%;top:0;left:0;right:0;bottom:auto;z-index:1}
.nav--pill .nav-pill-row{position:relative;z-index:2}
.nav--pill .mobile-menu{background:var(--bg);padding-top:76px}
.nav--pill .mm-links a{font-size:var(--fs-7xl);padding:11px 0}
.nav--pill .mm-links a.mm-sub{font-size:var(--fs-base);padding:6px 0 6px 34px}
.nav--pill .nav-pill-row{padding-top:0}

/* ===== Pill v2: chunkier, more air on top, hamburger + full-screen menu on every viewport ===== */
.nav--pill{top:26px}
.nav--pill .pill{padding:7px;gap:4px;box-shadow:0 10px 36px color-mix(in srgb, var(--shadow-ink) 28%, transparent)}
.nav--pill .pill a{padding:11px 20px;font-size:var(--fs-base);font-weight:600}
.nav--pill .pill .pill-cta{padding:11px 22px;margin-left:6px}
.nav--pill .tool-btn,.nav--pill .theme-toggle,.nav--pill .nav-toggle{width:46px;height:46px}
.nav--pill .nav-toggle{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid var(--border-medium);background:var(--nav-bg);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);color:var(--text);cursor:pointer;position:relative;z-index:2;margin-inline-start:6px}
.nav--pill .nav-toggle svg{width:22px;height:22px}

.nav--pill .wordmark{font-size:var(--fs-xl)}
.nav--pill .mobile-menu{padding-top:104px}
.nav--pill .mm-posts{display:none}
.nav--pill .mm-links a.mm-sub{display:none}
.nav--pill .mm-inner{display:grid;gap:0}
@media (min-width:861px){
  .nav--pill .mm-inner{grid-template-columns:1.1fr 1fr;grid-template-areas:"links posts" "bottom posts";column-gap:80px;align-items:start;padding-top:24px}
  .nav--pill .mm-links{grid-area:links}
  .nav--pill .mm-links a{font-size:clamp(40px,5.5vw,68px);padding:14px 0}
  .nav--pill .mm-bottom{grid-area:bottom}
  .nav--pill .mm-posts{grid-area:posts;display:grid;gap:10px;align-content:start}
  .nav--pill .mm-posts-h{font:600 var(--fs-2xs) var(--font-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted);margin:0 0 6px}
  .nav--pill .mm-post{display:flex;flex-direction:column;gap:4px;padding:16px 18px;border-radius:var(--radius-3xl);border:1px solid var(--border-medium);background:var(--surface-1);text-decoration:none;color:var(--text-muted);font-size:var(--fs-md);transition:transform var(--duration-base),border-color var(--duration-base)}
  .nav--pill .mm-post:hover{transform:translateX(4px);border-color:var(--accent)}
  .nav--pill .mm-post strong{color:var(--text);font-size:var(--fs-xl);font-weight:600}
  .nav--pill .mm-all{color:var(--accent);text-decoration:none;font-weight:600;margin-top:6px}
}
@media (max-width:860px){
  .nav--pill{top:14px}
  .nav--pill .mm-links a.mm-sub{display:flex}
  .nav--pill .tool-btn,.nav--pill .theme-toggle,.nav--pill .nav-toggle{width:40px;height:40px}
}
.nav--pill .pill{top:50%;transform:translate(-50%,-50%)}
@media (min-width:861px){.nav--pill .mm-links a{font-size:clamp(34px,4.2vw,54px);padding:10px 0}}
header.nav.nav--pill{position:fixed;top:26px;background:none;border:0;backdrop-filter:none;-webkit-backdrop-filter:none}
header.nav.nav--pill .wordmark{font-size:0;gap:0}
header.nav.nav--pill .wordmark img{width:44px;height:44px;border-radius:var(--radius-lg)}
@media (max-width:860px){header.nav.nav--pill{top:14px}header.nav.nav--pill .wordmark img{width:38px;height:38px}}
body:has(.nav--pill){padding-top:88px}
@media (max-width:860px){body:has(.nav--pill){padding-top:68px}}
.nav--pill .pill{box-shadow:0 2px 10px color-mix(in srgb, var(--shadow-ink) 8%, transparent)}
.nav--pill .mega-tag{font:600 var(--fs-3xs)/1 var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.nav--pill .pill,.nav--pill .tool-btn,.nav--pill .theme-toggle,.nav--pill .nav-toggle{background:var(--nav-bg-solid)}

/* ===== Language block inside the full-screen menu (search + grouped pills) ===== */
.nav--pill .mm-lang{margin-top:28px}
.nav--pill .mm-lang-h,.nav--pill .lang-group-h{font:600 var(--fs-2xs) var(--font-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted);margin:0 0 8px}
.nav--pill .lang-search{display:flex;align-items:center;gap:10px;padding:0 16px;height:52px;border-radius:var(--radius-2xl);border:1px solid var(--border-medium);background:var(--surface-1);color:var(--text-muted);margin-bottom:18px}
.nav--pill .lang-search:focus-within{border-color:var(--accent)}
.nav--pill .lang-search svg{width:18px;height:18px;flex:none}
.nav--pill .lang-search input{flex:1;min-width:0;background:none;border:0;outline:0;font:500 var(--fs-lg) var(--font-body);color:var(--text)}
.nav--pill .lang-group{margin-bottom:16px}
.nav--pill .lang-pills{display:flex;flex-wrap:wrap;gap:8px}
.nav--pill .lang-pill{display:inline-flex;align-items:center;padding:8px 14px;border-radius:var(--radius-pill);border:1px solid var(--border-medium);background:var(--surface-1);color:var(--text);font-size:var(--fs-md);font-weight:500;text-decoration:none;transition:border-color var(--duration-fast),background var(--duration-fast)}
.nav--pill .lang-pill:hover{border-color:var(--accent)}
.nav--pill .lang-pill[aria-current]{border-color:var(--accent-fill);background:var(--accent-fill);color:var(--on-accent)}
.nav--pill .lang-pill[hidden],.nav--pill .lang-group[hidden]{display:none}
.nav--pill .lang-empty{color:var(--text-muted);font-size:var(--fs-md)}
@media (min-width:861px){
  .nav--pill .mm-inner{grid-template-areas:"links lang" "links posts" "bottom posts";grid-template-rows:auto auto 1fr}
  .nav--pill .mm-lang{grid-area:lang;margin-top:0}
  .nav--pill .mm-posts{gap:2px}
  .nav--pill .mm-post{padding:10px 14px;border-radius:var(--radius-lg);border-color:transparent;background:none;flex-direction:row;align-items:baseline;gap:12px}
  .nav--pill .mm-post>span:last-child{display:none}
  .nav--pill .mm-post strong{font-size:var(--fs-base);font-weight:500}
  .nav--pill .mm-post:hover{background:var(--surface-1);transform:none}
  .nav--pill .mm-posts{margin-top:12px}
}

/* Menu modes: hamburger → blog first, languages collapsed to the search field; globe → languages first, all expanded */
@media (min-width:861px){
  .nav--pill .mobile-menu[data-mode="menu"] .mm-inner{grid-template-areas:"links posts" "links lang" "bottom lang"}
  .nav--pill .mobile-menu[data-mode="menu"] .mm-posts{margin-top:0;margin-bottom:28px}
  .nav--pill .mobile-menu[data-mode="menu"] .mm-lang{margin-top:0}
}

/* Menu mode: blog as cards + language as a single card; language mode: full panel */
.nav--pill .lang-card{display:none}
.nav--pill .mobile-menu[data-mode="menu"] .lang-card{display:flex;align-items:center;gap:12px;width:100%;padding:18px 20px;border-radius:var(--radius-3xl);border:1px solid var(--border-medium);background:var(--surface-1);color:var(--text);font:600 var(--fs-xl) var(--font-body);cursor:pointer;text-align:start}
.nav--pill .lang-card svg{width:22px;height:22px;color:var(--accent);flex:none}
.nav--pill .lang-card small{margin-inline-start:auto;font-weight:400;font-size:var(--fs-sm);color:var(--text-muted)}
.nav--pill .lang-card:hover{border-color:var(--accent)}
.nav--pill .mobile-menu[data-mode="menu"] .lang-search,.nav--pill .mobile-menu[data-mode="menu"] .mm-lang-h,.nav--pill .mobile-menu[data-mode="menu"] .lang-groups{display:none}
@media (min-width:861px){
  .nav--pill .mobile-menu[data-mode="menu"] .mm-posts{grid-template-columns:1fr 1fr;gap:12px}
  .nav--pill .mobile-menu[data-mode="menu"] .mm-posts-h,.nav--pill .mobile-menu[data-mode="menu"] .mm-all{grid-column:1/-1}
  .nav--pill .mobile-menu[data-mode="menu"] .mm-post{flex-direction:column;align-items:flex-start;gap:6px;padding:16px 18px;border:1px solid var(--border-medium);border-radius:var(--radius-3xl);background:var(--surface-1)}
  .nav--pill .mobile-menu[data-mode="menu"] .mm-post>span:last-child{display:block;font-size:var(--fs-sm);line-height:1.4}
  .nav--pill .mobile-menu[data-mode="menu"] .mm-post strong{font-size:var(--fs-lg);font-weight:600}
  .nav--pill .mobile-menu[data-mode="menu"] .mm-post:hover{border-color:var(--accent);background:var(--surface-1)}
}

/* ===== Language suggestion: floating glass chip under the pill nav ===== */
.lang-banner{position:fixed;top:92px;left:50%;z-index:90;max-width:calc(100vw - 24px);padding:6px 6px 6px 16px;border-radius:var(--radius-pill);border:1px solid var(--border-medium);background:var(--nav-bg-solid);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 2px 12px color-mix(in srgb, var(--shadow-ink) 10%, transparent);opacity:0;transform:translate(-50%,-10px);transition:opacity var(--duration-slow),transform var(--duration-slow);pointer-events:none;flex-wrap:nowrap;gap:10px;font-size:var(--fs-md)}
.lang-banner.is-in{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.lang-banner-inner{display:flex;align-items:center;gap:10px}
.lang-banner-globe{color:var(--accent);flex:none}
.lang-banner-text{color:var(--text-muted)}
.lang-banner-link{display:inline-block;margin-inline-start:4px;padding:6px 14px;border-radius:var(--radius-pill);background:var(--accent-fill);color:var(--on-accent);font-weight:600;text-decoration:none;white-space:nowrap}
.lang-banner-close{position:static;transform:none;flex:none;width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}
@media (max-width:860px){.lang-banner{top:66px;padding-left:12px;font-size:var(--fs-sm)}.lang-banner-text{line-height:1.3}}
@media (prefers-reduced-motion:reduce){.lang-banner{transition:none}}
@media (max-width:860px){.lang-banner{width:calc(100vw - 24px);border-radius:var(--radius-3xl);padding:8px 8px 8px 14px}.lang-banner-inner{width:100%}.lang-banner-text{flex:1;text-align:start}.lang-banner-close{margin-inline-start:auto}}

/* ── Blog videos: a card with the clip on the left and what it shows on the right (stacked on phones) ── */
.post-figure--video{ display:flex; align-items:center; gap:28px; margin:36px 0; padding:18px; border:1px solid var(--border-subtle); border-radius:var(--radius-4xl); background:linear-gradient(180deg, var(--surface-1), var(--surface-2)); }
.post-figure--video video{ flex:0 0 280px; width:280px; height:auto; aspect-ratio:1080/1560; border-radius:var(--radius-xl); background:var(--media-video); box-shadow:0 14px 40px color-mix(in srgb, var(--shadow-ink) 28%, transparent); display:block; }
.post-figure--video figcaption{ margin:0; text-align:left; font-size:var(--fs-lg); line-height:1.55; color:var(--text); }
.post-figure--video figcaption::before{ content:"▶  Video"; display:block; margin-bottom:8px; font-family:var(--font-mono); font-size:var(--fs-2xs); letter-spacing:.08em; text-transform:uppercase; color:var(--highlight-text); }
@media (max-width: 640px){
  .post-figure--video{ flex-direction:column; align-items:stretch; padding:14px; }
  .post-figure--video video{ width:100%; flex-basis:auto; max-width:420px; margin:0 auto; }
}

/* ── Blog video, layout A: the clip stands to the side of the text, no card (≥1024 px); one column below ──
   The figure is the FIRST child of .prose, so the float starts beside the first paragraph. .prose is capped at
   text 560 + gap 56 + clip 300 = 916 px and left-aligned with the title, so the gap stays 56 px at any width.
   Logical properties (inline-end / inline-start): RTL languages mirror it. Needs :has() — without it the card stays. */
@supports selector(:has(*)){
  .prose:has(> .post-figure--video){ display:flow-root; }   /* contains the float */
  .prose > .post-figure--video{ display:block; margin:24px 0; padding:0; border:0; border-radius:0; background:none; }
  .prose > .post-figure--video video{ display:block; width:100%; max-width:360px; flex:none; height:auto; aspect-ratio:1080/1560; margin:0; }
  .prose > .post-figure--video figcaption{ margin:14px 0 0; font-size:var(--fs-md); line-height:1.5; color:var(--text-muted); text-align:start; }
  .prose .post-cta{ clear:both; }
  /* under 1024 px: one column, the video comes after the first paragraph (it is first in the markup) */
  @media (max-width:1023px){
    .prose:has(> .post-figure--video){ display:flex; flex-direction:column; }
    .prose:has(> .post-figure--video) > p:first-of-type{ order:-1; }
  }
  @media (min-width:1024px){
    .prose:has(> .post-figure--video){ max-width:916px; margin-inline:0; }
    .prose:has(> .post-figure--video) > :not(.post-figure--video):not(.post-cta){ max-width:560px; }
    .prose > .post-figure--video{ float:inline-end; width:300px; margin:6px 0 24px; margin-inline-start:56px; }
    .prose > .post-figure--video video{ width:300px; max-width:none; }
  }
}

/* ── Video badge on blog cards, and the videos page (blog/videos.html) ── */
.blog-video-badge{ display:inline-block; margin:-4px 0 10px; padding:3px 10px; border-radius:var(--radius-pill); font-size:var(--fs-2xs-plus); font-weight:600; letter-spacing:.02em; color:var(--text); background:color-mix(in srgb, var(--tint-accent) 16%, transparent); border:1px solid color-mix(in srgb, var(--tint-accent) 45%, transparent); }
.blog-videos-cta{ margin-top:18px; }
.blog-videos-cta a{ font-weight:600; }
.video-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:28px; }
.video-grid .post-figure--video{ flex-direction:column; align-items:stretch; margin:0; }
.video-grid .post-figure--video video{ width:100%; flex-basis:auto; }
.video-grid .post-figure--video figcaption::before{ display:none; }
.video-card h3{ font-family:var(--font-display); font-size:var(--fs-xl); font-weight:600; margin:0 0 6px; line-height:1.3; }
.video-card p{ font-size:var(--fs-md); line-height:1.55; color:var(--text-muted); margin:0 0 8px; }

/* ── Landing: stack of video cards (#videos) and the swipeable full-screen player (main.js) ── */
.vstack{ display:flex; justify-content:center; align-items:flex-end; padding:24px 0 48px; }
.vstack-item{ position:relative; flex:0 0 180px; margin:0 -38px; z-index:calc(10 - var(--i)); transform:rotate(calc((var(--i) - 4) * 2.4deg)) translateY(calc(var(--i) * 3px)); transition:transform var(--duration-screen) var(--easing-emphasized), margin var(--duration-screen) var(--easing-emphasized); }
.vstack:hover .vstack-item{ margin:0 -28px; }   /* fans out, but 9 cards still fit the 1200 px column */
.vstack-item:hover{ transform:translateY(-14px) scale(1.04); z-index:20; }
.vstack-open{ display:block; position:relative; width:100%; padding:0; border:0; background:none; cursor:pointer; border-radius:var(--radius-2xl); overflow:hidden; box-shadow:0 18px 44px color-mix(in srgb, var(--shadow-ink) 38%, transparent); }
.vstack-open:focus-visible{ outline:3px solid var(--highlight-text); outline-offset:3px; }
.vstack-open video{ display:block; width:100%; height:auto; aspect-ratio:1080/1560; object-fit:cover; background:var(--media-video); }
.vstack-play{ position:absolute; left:50%; top:50%; width:52px; height:52px; margin:-26px 0 0 -26px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:var(--fs-3xl); color:var(--on-media-strong); background:color-mix(in srgb, var(--media-night) 55%, transparent); backdrop-filter:blur(6px); border:1px solid color-mix(in srgb, var(--on-media-strong) 35%, transparent); opacity:0; transition:opacity var(--duration-base); pointer-events:none; }
.vstack-item:hover .vstack-play, .vstack-open:focus-visible .vstack-play{ opacity:1; }
.vstack-item figcaption{ position:absolute; left:0; right:0; bottom:0; padding:28px 12px 12px; border-radius:0 0 var(--radius-2xl) var(--radius-2xl); background:linear-gradient(transparent, color-mix(in srgb, var(--media-ink) 88%, transparent)); color:var(--on-media-strong); pointer-events:none; text-align:left; opacity:0; transition:opacity var(--duration-base); }
/* the cards overlap, so only one title shows: the front card's, or the one under the pointer / in focus */
.vstack-item:first-child figcaption, .vstack-item:hover figcaption, .vstack-item:focus-within figcaption{ opacity:1; }
.vstack:hover .vstack-item:first-child:not(:hover) figcaption{ opacity:0; }
.vstack-item figcaption strong{ display:block; font-size:var(--fs-sm-plus); line-height:1.3; }
.vstack-item figcaption span, .vstack-item figcaption a{ display:none; }
@media (max-width: 760px){
  .vstack{ justify-content:flex-start; overflow-x:auto; scroll-snap-type:x mandatory; gap:12px; padding:12px 16px 28px; margin:0 -16px; -webkit-overflow-scrolling:touch; }
  .vstack-item, .vstack:hover .vstack-item, .vstack-item:hover{ flex-basis:58vw; max-width:240px; margin:0; transform:none; scroll-snap-align:center; }
  .vstack-item figcaption, .vstack:hover .vstack-item:first-child:not(:hover) figcaption{ opacity:1; }
}

/* ── Watch: focus fan (desktop, set by main.js as .is-fan): one clip in front, neighbours step back; its caption sits below ── */
.vstack.is-fan{ position:relative; display:block; height:430px; max-width:1200px; margin:0 auto; padding:0; }
.vstack.is-fan .vstack-item{ position:absolute; left:50%; bottom:24px; width:260px; margin:0 0 0 -130px; flex:none; transform-origin:50% 100%; transition:transform var(--duration-slower) var(--easing-emphasized), opacity var(--duration-screen) var(--easing-standard); }
.vstack.is-fan .vstack-item[data-pos="0"]{ transform:none; z-index:10; }
.vstack.is-fan .vstack-item[data-pos="-1"]{ transform:translateX(-210px) scale(.77) rotate(-4deg); opacity:.92; z-index:9; }
.vstack.is-fan .vstack-item[data-pos="1"]{ transform:translateX(210px) scale(.77) rotate(4deg); opacity:.92; z-index:9; }
.vstack.is-fan .vstack-item[data-pos="-2"]{ transform:translateX(-375px) scale(.65) rotate(-8deg); opacity:.75; z-index:8; }
.vstack.is-fan .vstack-item[data-pos="2"]{ transform:translateX(375px) scale(.65) rotate(8deg); opacity:.75; z-index:8; }
.vstack.is-fan .vstack-item[data-pos="-3"]{ transform:translateX(-505px) scale(.58) rotate(-12deg); opacity:.55; z-index:7; }
.vstack.is-fan .vstack-item[data-pos="3"]{ transform:translateX(505px) scale(.58) rotate(12deg); opacity:.55; z-index:7; }
.vstack.is-fan .vstack-item[data-pos="far"]{ transform:scale(.5); opacity:0; pointer-events:none; z-index:1; }
.vstack.is-fan .vstack-item[data-pos="0"]:hover{ transform:translateY(-8px); }
.vstack.is-fan .vstack-item:not([data-pos="0"]):hover{ opacity:1; }
.vstack.is-fan .vstack-item figcaption{ display:none; }   /* the front clip's caption is shown below the fan instead */
.vstack.is-fan .vstack-item[data-pos="0"] .vstack-play{ opacity:1; }
.vstack.is-fan .vstack-item:not([data-pos="0"]) .vstack-open{ cursor:pointer; }
.vstack-caption{ max-width:560px; margin:6px auto 0; min-height:104px; text-align:center; }
.vstack-caption strong{ display:block; font-family:var(--font-display); font-size:var(--fs-4xl); font-weight:600; line-height:1.3; color:var(--text); margin-bottom:6px; }
.vstack-caption span{ display:block; font-size:var(--fs-lg); line-height:1.55; color:var(--text-muted); }
.vstack-caption a{ display:inline-block; margin-top:8px; font-weight:600; font-size:var(--fs-md-plus); color:var(--accent-text); }
.vstack-nav{ display:flex; align-items:center; justify-content:center; gap:18px; margin-top:14px; }
.vstack-nav[hidden], .vstack-caption[hidden]{ display:none; }
.vstack-arrow{ width:44px; height:44px; border-radius:50%; border:1px solid var(--border-subtle); background:var(--surface-2); color:var(--text); font-size:var(--fs-4xl); line-height:1; cursor:pointer; transition:border-color var(--duration-base), transform var(--duration-fast); }
.vstack-arrow:hover{ border-color:var(--border-strong); }
.vstack-arrow:active{ transform:scale(.95); }
.vstack-arrow:focus-visible, .vstack-dot:focus-visible{ outline:3px solid var(--highlight-text); outline-offset:3px; }
.vstack-dots{ display:flex; gap:8px; }
.vstack-dot{ width:8px; height:8px; padding:0; border:0; border-radius:50%; background:var(--border-strong); cursor:pointer; transition:background var(--duration-base), transform var(--duration-base); }
.vstack-dot.on{ background:var(--accent-fill); transform:scale(1.25); }
@media (prefers-reduced-motion: reduce){ .vstack.is-fan .vstack-item, .vstack-dot{ transition:none; } }
/* narrower desktops: fewer clips at the sides, and nothing may cause a horizontal scrollbar */
#videos{ overflow-x:clip; }
@media (max-width: 1180px){
  .vstack.is-fan .vstack-item[data-pos="-3"], .vstack.is-fan .vstack-item[data-pos="3"]{ opacity:0; pointer-events:none; }
}
@media (max-width: 960px){
  .vstack.is-fan .vstack-item[data-pos="-2"]{ transform:translateX(-300px) scale(.6) rotate(-8deg); }
  .vstack.is-fan .vstack-item[data-pos="2"]{ transform:translateX(300px) scale(.6) rotate(8deg); }
  .vstack.is-fan .vstack-item[data-pos="-1"]{ transform:translateX(-180px) scale(.74) rotate(-4deg); }
  .vstack.is-fan .vstack-item[data-pos="1"]{ transform:translateX(180px) scale(.74) rotate(4deg); }
}

.vfeed{ position:fixed; inset:0; z-index:1000; background:var(--media-black); color:var(--on-media-strong); }
.vfeed[hidden]{ display:none; }
html.vfeed-open, html.vfeed-open body{ overflow:hidden; }
.vfeed-track{ height:100%; overflow-y:auto; scroll-snap-type:y mandatory; overscroll-behavior:contain; scrollbar-width:none; }
.vfeed-track::-webkit-scrollbar{ display:none; }
.vfeed-slide{ position:relative; height:100vh; height:100dvh; scroll-snap-align:start; scroll-snap-stop:always; display:flex; flex-direction:column; }
/* the video takes what the caption leaves: never covered, letterboxed in black */
.vfeed-slide video{ flex:1 1 0; min-height:0; width:100%; object-fit:contain; background:var(--media-black); cursor:pointer; padding-top:env(safe-area-inset-top); box-sizing:border-box; }
.vfeed-cap{ flex:none; padding:12px 20px calc(18px + env(safe-area-inset-bottom)); }
.vfeed-cap > *{ max-width:520px; margin-left:auto; margin-right:auto; display:block; }
.vfeed-cap strong{ font-size:var(--fs-2xl); margin-bottom:4px; }
.vfeed-cap span{ font-size:var(--fs-md-plus); line-height:1.5; color:color-mix(in srgb, var(--on-media-strong) 82%, transparent); }
.vfeed-cap a{ margin-top:8px; font-weight:600; color:var(--on-media-link); }
.vfeed-btn{ position:absolute; z-index:2; width:44px; height:44px; border-radius:50%; border:1px solid color-mix(in srgb, var(--on-media-strong) 30%, transparent); background:color-mix(in srgb, var(--media-glass) 55%, transparent); color:var(--on-media-strong); font-size:var(--fs-3xl); line-height:1; cursor:pointer; backdrop-filter:blur(6px); }
.vfeed-close{ top:calc(14px + env(safe-area-inset-top)); right:14px; font-size:var(--fs-6xl); }
.vfeed-mute{ font-size:var(--fs-xl); transition:opacity var(--duration-base); }   /* left/top set by placeMute(): top right on the picture */
.vfeed-mute.is-big{ width:auto; height:48px; padding:0 22px; border-radius:var(--radius-4xl); font-size:var(--fs-lg); font-weight:600; background:color-mix(in srgb, var(--media-glass) 82%, transparent); transform:translate(-50%, -50%); white-space:nowrap; }
.vfeed-dots{ position:absolute; z-index:2; right:30px; top:50%; transform:translateY(-50%); display:flex; flex-direction:column; gap:7px; }
@media (max-width:600px){ .vfeed-dots{ display:none; } }   /* the video is full width there: nothing on top of it */
.vfeed-dots i{ width:6px; height:6px; border-radius:50%; background:color-mix(in srgb, var(--on-media-strong) 35%, transparent); transition:background var(--duration-base), transform var(--duration-base); }
.vfeed-dots i.on{ background:var(--on-media-strong); transform:scale(1.4); }
.vfeed-hint{ position:absolute; z-index:2; left:50%; bottom:calc(150px + env(safe-area-inset-bottom)); transform:translateX(-50%); padding:8px 16px; border-radius:var(--radius-pill); background:color-mix(in srgb, var(--media-glass) 70%, transparent); font-size:var(--fs-sm); animation:vfeed-hint 2.6s var(--easing-standard) forwards; pointer-events:none; }
@keyframes vfeed-hint{ 0%{ opacity:0; transform:translate(-50%, 10px); } 15%,75%{ opacity:1; transform:translate(-50%, 0); } 100%{ opacity:0; } }
/* share (TikTok-style, right edge above the caption) and the install button for the viewer's browser */
.vfeed-cap .vfeed-actions{ display:flex; align-items:center; gap:10px; margin-top:12px; }
.vfeed-share{ position:static; flex:none; display:grid; place-items:center; }
.vfeed-cap a.vfeed-install{ display:block; min-width:0; margin:0; padding:11px 20px; border-radius:var(--radius-pill); background:var(--accent-fill); color:var(--on-accent); font-size:var(--fs-base); font-weight:700; text-decoration:none; }
.vfeed-cap a.vfeed-install:hover{ filter:brightness(1.06); }
.vfeed-cap a.vfeed-install:focus-visible{ outline:3px solid var(--on-media-strong); outline-offset:2px; }
.vfeed-toast{ position:absolute; z-index:3; left:50%; top:calc(20px + env(safe-area-inset-top)); transform:translateX(-50%); padding:8px 16px; border-radius:var(--radius-pill); background:color-mix(in srgb, var(--media-glass) 85%, transparent); font-size:var(--fs-sm-plus); opacity:0; pointer-events:none; }
.vfeed-toast.on{ animation:vfeed-toast 2.2s var(--easing-standard) forwards; }
@keyframes vfeed-toast{ 0%{ opacity:0; } 10%,80%{ opacity:1; } 100%{ opacity:0; } }
@media (prefers-reduced-motion: reduce){ .vstack-item{ transition:none; } .vfeed-hint{ animation:none; } .vfeed-toast.on{ animation:none; opacity:1; } }

/* ── Landing feature cards: the clip peeks out of the bottom corner, tilted like the Watch stack; text runs full width ── */
#featureGrid .feature-card{ position:relative; overflow:hidden; padding-bottom:78px; }
.feature-card .fvideo{ position:absolute; inset-inline-end:22px; bottom:-72px; width:96px; margin:0; z-index:1; transform:rotate(-8deg); transform-origin:50% 100%; transition:transform var(--duration-slow) var(--easing-emphasized); }
[dir="rtl"] .feature-card .fvideo{ transform:rotate(8deg); }
.feature-card:hover .fvideo, .feature-card .fvideo:focus-within{ transform:translateY(-10px) rotate(-5deg); }
[dir="rtl"] .feature-card:hover .fvideo, [dir="rtl"] .feature-card .fvideo:focus-within{ transform:translateY(-10px) rotate(5deg); }
.fvideo-open{ display:block; position:relative; width:100%; padding:0; border:0; background:none; cursor:pointer; border-radius:var(--radius-lg); overflow:hidden; box-shadow:0 10px 24px color-mix(in srgb, var(--shadow-ink) 35%, transparent); }
.fvideo-open video{ display:block; width:100%; height:auto; aspect-ratio:1080/1560; object-fit:cover; background:var(--media-video); }
.fvideo-play{ position:absolute; inset:20px 0 auto; margin:auto; width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:var(--fs-2xs); color:var(--on-media-strong); background:color-mix(in srgb, var(--media-night) 60%, transparent); border:1px solid color-mix(in srgb, var(--on-media-strong) 45%, transparent); }
.fvideo-open:focus-visible{ outline:3px solid var(--highlight-text); outline-offset:-3px; }
.fvideo-cta{ position:absolute; inset-inline-start:24px; bottom:24px; display:inline-flex; align-items:center; gap:8px; padding:0; border:0; background:none; font-family:var(--font-body); font-size:var(--fs-sm-plus); font-weight:600; line-height:1.2; color:var(--accent-text); cursor:pointer; }
.fvideo-cta-play{ width:24px; height:24px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:var(--fs-3xs); background:var(--accent-fill); color:var(--on-accent); }
.fvideo-cta:hover{ text-decoration:underline; text-underline-offset:3px; }
@media (max-width: 560px){ #featureGrid .feature-card{ padding-bottom:74px; } .fvideo-cta{ inset-inline-start:20px; bottom:22px; } }
@media (prefers-reduced-motion: reduce){ .feature-card .fvideo{ transition:none; } }

/* transcript under a video on the page of all videos (scripts/seo.mjs) */
.vtranscript{ margin-top:10px; font-size:var(--fs-sm); color:var(--text-muted); }
.vtranscript summary{ cursor:pointer; font-weight:600; color:var(--text); }
.vtranscript p{ margin:8px 0 0; line-height:1.55; }
.feature-card[hidden]{ display:none; }
.persona-count{ text-align:center; color:var(--text-muted); font-size:var(--fs-sm); font-variant-numeric:tabular-nums; margin:-20px 0 24px; }
.persona-count[hidden]{ display:none; }
@media (max-width: 560px){
  .persona-switch{ flex-wrap:nowrap; overflow-x:auto; justify-content:flex-start; margin-inline:-16px; padding-inline:16px; scrollbar-width:none; }
  .persona-switch::-webkit-scrollbar{ display:none; }
  .persona-btn{ flex-shrink:0; }
}

/* Device-aware install path (main.js): phones get "Send to my computer" instead of the Chrome store button */
.send-note{ font-size:var(--fs-md); line-height:1.5; color:var(--text-muted); max-width:520px; margin:0 0 12px; }
.send-note a{ color:inherit; text-decoration:underline; text-underline-offset:3px; }
.send-note[hidden], [data-send][hidden]{ display:none !important; }
.send-toast{ position:fixed; left:50%; bottom:24px; transform:translate(-50%,12px); z-index:1000; max-width:calc(100vw - 32px); padding:12px 18px; border-radius:var(--radius-pill); background:var(--toast-bg); color:var(--toast-text); border:1px solid color-mix(in srgb, var(--on-media-strong) 18%, transparent); font-size:var(--fs-md); box-shadow:0 6px 24px color-mix(in srgb, var(--shadow-ink) 30%, transparent); opacity:0; pointer-events:none; transition:opacity var(--duration-base) var(--easing-standard), transform var(--duration-base) var(--easing-standard); }
.send-toast.is-on{ opacity:1; transform:translate(-50%,0); }
@media (prefers-reduced-motion: reduce){ .send-toast{ transition:none; } }

/* "Example article" tag in the hero mockup: the article and its numbers are made up */
.hs-example{ position:absolute; left:0; bottom:-150px; padding:5px 13px; border-radius:999px; font-size:14px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; background:var(--mock-example-bg); color:inherit; opacity:.85; pointer-events:none; }

/* Proof line under the hero button: only real, checkable facts */
.hero-proof{ font-size:var(--fs-md); font-weight:500; color:var(--text); margin:0 0 10px; }
.hero-proof a{ color:inherit; text-decoration:underline; text-decoration-color:color-mix(in srgb, var(--tint-neutral-cool) 60%, transparent); text-underline-offset:3px; }
.hero-proof a:hover{ text-decoration-color:currentColor; }

/* Footer: the byphil ecosystem as its own group, apart from the legal links */
footer .foot-eco{ display:flex; align-items:baseline; gap:8px 20px; flex-wrap:wrap; margin-top:18px; padding-top:16px; border-top:1px solid var(--border-medium); }
footer .foot-eco-h{ font-family:var(--font-mono); font-size:var(--fs-2xs-plus); letter-spacing:.06em; text-transform:uppercase; color:var(--text-muted); }

/* Pricing: two cards (Free, Support Pass); the one-time donation is a text link below */
.tier-once{ text-align:center; font-size:var(--fs-md); color:var(--text-muted); margin:22px auto 0; max-width:560px; line-height:1.55; }
.tier-once a{ color:var(--text); text-decoration:underline; text-decoration-color:var(--border-strong); text-underline-offset:3px; }
.tier-once a:hover{ text-decoration-color:currentColor; }
button.tier-cta{ width:100%; font-family:inherit; cursor:pointer; color:inherit; }
button.tier-cta[hidden]{ display:none; }

/* Live demo as a slide of the "See it" gallery (desktop only: main.js removes it on phones) */
.cx-slide .demo-frame{ --dw:100%; width:100%; margin:0; height:auto; aspect-ratio:16/10; }
@media (max-width:820px){ .cx-slide--demo, .cx-dot--demo{ display:none; } }
.cx-dot.cx-dot--demo{ width:auto; height:auto; min-height:0; padding:3px 12px 3px 10px; border-radius:var(--radius-pill); font:600 var(--fs-xs) var(--font-display); letter-spacing:.03em; line-height:1.5; color:var(--text); display:inline-flex; align-items:center; gap:5px; }
.cx-dot--demo::before{ content:"\25B6"; font-size:var(--fs-3xs); }
.cx-dot--demo:not(.is-active){ background:transparent; border:1px solid var(--accent); }
.cx-dot--demo.is-active{ background:var(--accent); color:var(--on-accent); border-color:var(--accent); }

/* "At a glance" fact list on landing pages (answer engines quote it; keep it plain) */
.glance{ margin:0 auto; max-width:760px; display:grid; gap:0; border:1px solid var(--border-subtle); border-radius:var(--radius-xl); overflow:hidden; background:var(--surface-2); }
.glance > div{ display:grid; grid-template-columns:minmax(120px, 200px) 1fr; gap:6px 18px; padding:13px 18px; border-top:1px solid var(--border-subtle); }
.glance > div:first-child{ border-top:0; }
.glance dt{ font-weight:600; font-size:var(--fs-md); color:var(--text); }
.glance dd{ margin:0; font-size:var(--fs-md-plus); line-height:1.55; color:var(--text-muted); }
.glance a{ color:inherit; text-decoration:underline; text-underline-offset:3px; }
@media (max-width:560px){ .glance > div{ grid-template-columns:1fr; } }

/* Illustrations on landing pages (AI-generated; always captioned as such). Responsive via srcset, fixed aspect ratio so nothing jumps. */
.photo-row{ display:grid; grid-template-columns:repeat(2, 1fr); gap:16px; margin-top:28px; }
.photo-row figure{ margin:0; }
.photo-row img{ display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; border-radius:var(--radius-xl); border:1px solid var(--border-subtle); background:var(--surface-2); }
.photo-row figcaption{ margin-top:10px; font-size:var(--fs-md); line-height:1.5; color:var(--text-muted); text-align:center; }
.photo-note{ margin:14px auto 0; max-width:640px; text-align:center; font-size:var(--fs-xs-plus); color:var(--text-muted); }

@media (max-width:760px){ .photo-row{ grid-template-columns:1fr; } }

/* Slider: scroll-snap row, native swipe on touch, arrow buttons on desktop (main.js) */
.slider{ position:relative; }
.slider-track{ display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; padding:4px 2px 14px; scrollbar-width:thin; -webkit-overflow-scrolling:touch; }
.slider-track:focus-visible{ outline:2px solid var(--accent); outline-offset:4px; border-radius:var(--radius-xl); }
.slider .slide{ flex:0 0 min(340px, 82vw); scroll-snap-align:start; }

.slider-prev{ left:-14px; } .slider-next{ right:-14px; }

/* Blog teaser: three equal cards, then every other post as a quiet two-column list (crawlable text links) */
.blog-card{ display:flex; flex-direction:column; }
.blog-card .blog-read{ margin-top:auto; }
.blog-more-h{ margin:34px 0 8px; font-family:var(--font-mono); font-size:var(--fs-2xs-plus); letter-spacing:.06em; text-transform:uppercase; color:var(--text-muted); }
.blog-more{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2, 1fr); gap:0 40px; }
.blog-more li{ border-top:1px solid var(--border-subtle); }
.blog-more a{ display:block; padding:11px 0; color:var(--text-muted); text-decoration:none; font-size:var(--fs-base); line-height:1.45; transition:color var(--duration-fast) var(--easing-standard); }
.blog-more a:hover{ color:var(--text); }
.blog-more a::after{ content:" \2192"; opacity:0; transition:opacity var(--duration-fast) var(--easing-standard); }
.blog-more a:hover::after{ opacity:1; }
.blog-all{ text-align:center; margin:26px 0 0; }
@media (max-width:640px){ .blog-more{ grid-template-columns:1fr; } }

/* Three scene illustrations in a row (the screen content is only atmosphere here, not a product screenshot) */
.photo-row--3{ grid-template-columns:repeat(3, 1fr); max-width:1180px; margin-left:auto; margin-right:auto; }
.photo-row--3 img{ aspect-ratio:4/3; }
@media (max-width:900px){ .photo-row--3{ grid-template-columns:1fr; max-width:560px; } }

/* One quiet illustration inside a section (home page) and inside blog posts */
.section-photo{ margin:26px auto 0; max-width:520px; }
.section-photo img, .post-figure--photo img{ display:block; width:100%; height:auto; border-radius:var(--radius-xl); border:1px solid var(--border-subtle); background:var(--surface-2); }
.section-photo figcaption{ margin-top:10px; font-size:var(--fs-sm-plus); line-height:1.5; color:var(--text-muted); text-align:center; }

/* Hero stage: a mood photo behind the hero text on the landing pages. The picture has no readable screen content, so it may be large;
   the gradient keeps the text readable in both themes (text colours are fixed to light here). */
.hero--photo{ position:relative; isolation:isolate; overflow:hidden; padding:128px 0 96px; }
.hero--photo .hero-bg{ position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; object-position:var(--bgpos, 50% 50%); }
/* Photo stage (home hero, blog post header): text over a photo. Dark theme: dark veil, light text; light theme: light veil, role colours. */
/* @tokens:start photo */
/* Generated by design-system/build.mjs from design-system/tokens (site). Do not edit: change the JSON, then npm run tokens. */
/* Photo stage (home hero, blog post header): dark veil and light text by default, light veil and role colours in the light theme. */
.hero--photo {
  /* component · photo */
  --photo-scrim: linear-gradient(180deg, rgba(8,9,12,0.8) 0%, rgba(8,9,12,0.68) 45%, rgba(8,9,12,0.88) 100%);
  --photo-text: #F5F5F7;
  --photo-text-soft: rgba(245,245,247,0.86);
  --photo-meta: rgba(245,245,247,0.82);
  --photo-sub: rgba(245,245,247,0.88);
  --photo-credit: rgba(245,245,247,0.62);
  --photo-shadow: 0 1px 14px rgba(0,0,0,0.45);
  --photo-em: linear-gradient(90deg, #ADC6FF, #F2D9A6);
  --photo-kicker: #F2D9A6;
  --photo-btn-bg: #F5F5F7;
  --photo-btn-text: #0C0D11;
  --photo-btn-edge: transparent;
  --photo-btn-hover: #ffffff;
}
:root[data-theme="light"] .hero--photo {
  /* component · photo */
  --photo-scrim: linear-gradient(180deg, rgba(246,245,241,0.92) 0%, rgba(246,245,241,0.8) 50%, rgba(246,245,241,0.93) 100%);
  --photo-text: var(--text);
  --photo-text-soft: var(--text-muted);
  --photo-meta: var(--text-muted);
  --photo-sub: var(--text-muted);
  --photo-credit: var(--text-muted);
  --photo-shadow: none;
  --photo-em: linear-gradient(100deg, var(--accent-text), var(--highlight-text));
  --photo-kicker: var(--text-muted);
  --photo-btn-bg: #ffffff;
  --photo-btn-text: var(--text);
  --photo-btn-edge: var(--border-strong);
}
/* @tokens:end photo */
.hero--photo::after{ content:""; position:absolute; inset:0; z-index:-1; background:var(--photo-scrim); }
.hero--photo h1{ color:var(--photo-text); text-shadow:var(--photo-shadow); }
.hero--photo p.sub{ color:var(--photo-text-soft); text-shadow:var(--photo-shadow); }
.hero--photo .send-note{ color:var(--photo-text-soft); }
.hero--photo .hero-meta{ color:var(--photo-meta); }
.hero--photo .hero-proof, .hero--photo .hero-proof a, .hero--photo .send-note a{ color:var(--photo-text); }
.hero-credit{ position:absolute; right:14px; bottom:10px; margin:0; font-size:var(--fs-2xs-plus); color:var(--photo-credit); }
.hero--photo h1 em{ background:var(--photo-em); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent; }
.hero--photo .eyebrow{ color:var(--photo-kicker); }

/* Immersive stage: on pages with a photo hero the picture runs up under the floating menu (no reserved band above it). */
body:has(.hero--photo){ padding-top:0; }
.hero--photo{ padding:196px 0 96px; }
@media (max-width:860px){ .hero--photo{ padding:148px 0 72px; } }

/* Blog posts: the photo stage behind the post head (left-aligned text, light on the dark gradient) */
.post-stage{ padding:176px 0 64px; text-align:left; }
.post-stage .post-hero{ padding:0; max-width:760px; }
.post-stage .post-hero h1{ color:var(--photo-text); text-shadow:var(--photo-shadow); }
.post-stage .post-hero .post-sub{ color:var(--photo-sub); text-shadow:var(--photo-shadow); }
.post-stage .post-hero .blog-date{ color:var(--photo-kicker); }
@media (max-width:860px){ .post-stage{ padding:128px 0 44px; } }

/* Blog video: a poster card that opens the same full-screen player as the home page. Wide screens: a sticky rail beside the text. */
.post-video{ margin:28px 0; }
.post-video-open{ position:relative; display:block; width:100%; max-width:300px; padding:0; border:0; background:none; cursor:pointer; border-radius:var(--radius-3xl); overflow:hidden; box-shadow:0 18px 44px color-mix(in srgb, var(--shadow-ink) 34%, transparent); }
.post-video-open video{ display:block; width:100%; height:auto; aspect-ratio:1080/1560; object-fit:cover; background:var(--media-video); }
.post-video-play{ position:absolute; left:50%; top:50%; width:64px; height:64px; margin:-32px 0 0 -32px; border-radius:50%; background:color-mix(in srgb, var(--media-veil) 62%, transparent); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); color:var(--on-media-strong); display:flex; align-items:center; justify-content:center; font-size:var(--fs-4xl); padding-left:3px; box-shadow:0 0 0 6px color-mix(in srgb, var(--on-media-strong) 14%, transparent); transition:transform var(--duration-fast) var(--easing-standard); }
.post-video-open:hover .post-video-play{ transform:scale(1.08); }
.post-video-open:focus-visible{ outline:3px solid var(--highlight-text); outline-offset:3px; }
.post-video figcaption{ margin:12px 0 0; font-size:var(--fs-md); line-height:1.5; color:var(--text-muted); text-align:start; }
.prose:has(> .post-video){ position:relative; }
@media (min-width:1280px){
  .prose > .post-video{ position:absolute; top:0; bottom:0; left:calc(100% + 44px); width:230px; margin:0; }
  .post-video-in{ position:sticky; top:104px; }
  .post-video-open{ max-width:none; }
}

.blog-card .blog-video-badge, .blog-card .blog-read{ align-self:flex-start; }

/* The poster card also on the landing pages (centred) and on the "All videos" grid */
.post-video--center{ margin:0 auto; max-width:300px; }
.video-grid .post-video{ margin:0; }
.video-grid .post-video-open{ max-width:none; }
.video-grid .post-video figcaption strong{ display:block; font-family:var(--font-display); font-size:var(--fs-lg); line-height:1.3; color:var(--text); margin-bottom:6px; }
.video-grid .post-video figcaption span{ display:block; font-size:var(--fs-md); line-height:1.55; color:var(--text-muted); }
.video-grid .post-video figcaption .blog-read{ display:inline-block; margin-top:8px; font-size:var(--fs-sm-plus); font-weight:600; color:var(--accent-text); text-decoration:none; }

/* Smaller poster cards on desktop: the clip is portrait, so width alone sets how tall it gets */
.post-video-open{ max-width:240px; }
.post-video--center{ max-width:220px; }
.video-grid{ grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:24px; }
@media (min-width:1280px){
  .prose > .post-video{ width:190px; left:calc(100% + 40px); }
  .post-video-open{ max-width:none; }
}

/* Transcript lines next to the poster card (added by scripts/seo.mjs): visible text for readers and search engines */
.vtext{ margin-top:14px; font-size:var(--fs-sm); line-height:1.55; color:var(--text-muted); text-align:start; }
.vtext-h{ margin:0 0 6px; font-family:var(--font-mono); font-size:var(--fs-2xs); letter-spacing:.06em; text-transform:uppercase; color:var(--highlight-text); }
.vtext ul{ margin:0; padding-left:16px; }
.vtext li{ margin:0 0 4px; }
/* landing pages: card on the left, title and transcript on the right */
.post-video--center{ max-width:720px; }
.post-video--center .post-video-in{ display:grid; grid-template-columns:220px minmax(0,1fr); gap:0 36px; align-items:center; text-align:left; }
.post-video--center .post-video-open{ grid-row:1 / span 2; }
.post-video--center figcaption{ align-self:end; margin:0 0 10px; font-size:var(--fs-2xl-plus); line-height:1.4; color:var(--text); }
.post-video--center .vtext{ align-self:start; margin-top:0; font-size:var(--fs-base); }
@media (max-width:640px){
  .post-video--center{ max-width:300px; }
  .post-video--center .post-video-in{ display:block; }
  .post-video--center figcaption{ font-size:var(--fs-base); margin:12px 0 0; }
  .post-video--center .vtext{ margin-top:12px; font-size:var(--fs-sm); }
}

/* Building cross-section (Bildung page): clickable rooms, chips for small screens and keyboards{ max-width:1000px; margin:0 auto; }
.bq-svg{ display:block; width:100%; height:auto; overflow:visible; }

.bq-wall{ stroke:var(--border-strong); stroke-width:2; }

.bq-rect--plain{ fill:var(--surface-1); }

.bq-room:hover .bq-rect{ stroke:var(--accent); }

.bq-room.is-on .bq-rect{ fill:color-mix(in srgb, var(--tint-accent) 14%, transparent); stroke:var(--accent); stroke-width:2.5; }

.bq-desk, .bq-board, .bq-door, .bq-win{ fill:var(--border-medium); }

.bq-shelf{ fill:var(--border-medium); }

.bq-rack rect{ fill:var(--border-strong); }

.bq-room[data-room="ki"] .bq-rect{ fill:color-mix(in srgb, var(--tint-accent) 10%, transparent); }

.bq-t1{ font-size:var(--fs-lg); font-weight:600; }

.bq-cap{ fill:var(--text-muted); }

.bq-node{ fill:var(--accent); }

.bq-link{ fill:none; stroke:var(--text-muted); stroke-width:2; stroke-dasharray:6 6; }

.bq-chip{ font:inherit; font-size:var(--fs-md); font-weight:500; padding:8px 14px; border-radius:var(--radius-pill); border:1px solid var(--border-medium); background:transparent; color:var(--text-muted); cursor:pointer; }

.bq-chip.is-on{ background:var(--accent-fill); border-color:transparent; color:var(--on-accent); }

.bq-panels{ max-width:720px; margin:20px auto 0; text-align:center; }

.bq-panel h3{ margin:0 0 8px; font-family:var(--font-display); font-size:var(--fs-3xl); }

@media (max-width:700px){  .bq-stage{ margin:0 -4px; } }

/* Building as an oblique (cabinet) drawing: front with photo rooms, a roof face on top and a side wall on the right (skewed planes) */
.bq3d{ --bq-d:clamp(22px, 5vw, 58px); display:grid; grid-template-columns:minmax(0,1fr) 210px; gap:0 calc(var(--bq-d) + 36px); align-items:center; max-width:1000px; margin:8px auto 0; padding-top:var(--bq-d); }
.bq3d-bldg{ position:relative; }
.bq3d-front{ position:relative; background:var(--surface-2); border:2px solid var(--border-strong); }
.bq3d-front::before{ content:""; position:absolute; left:-2px; right:-2px; top:calc(-1 * var(--bq-d) - 2px); height:var(--bq-d); background:var(--border-medium); border:2px solid var(--border-strong); border-bottom:0; box-sizing:border-box; transform-origin:bottom left; transform:skewX(-45deg); }
.bq3d-front::after{ content:""; position:absolute; top:-2px; bottom:-2px; right:calc(-1 * var(--bq-d) - 2px); width:var(--bq-d); background:var(--border-strong); opacity:.75; transform-origin:top left; transform:skewY(-45deg); }
.bq3d-row{ display:grid; grid-template-columns:1fr 1fr; border-top:2px solid var(--border-strong); }
.bq3d-row:first-child{ border-top:0; }
.bq3d-row--one{ grid-template-columns:1fr; }
.bq3d-room{ position:relative; overflow:hidden; cursor:pointer; aspect-ratio:16/9; background:linear-gradient(180deg, color-mix(in srgb, var(--media-veil) 55%, transparent), color-mix(in srgb, var(--media-veil) 6%, transparent) 58%), var(--img) center/cover; filter:saturate(.85) brightness(.86); transition:filter var(--duration-fast) var(--easing-standard), box-shadow var(--duration-fast) var(--easing-standard); outline:none; }
.bq3d-room + .bq3d-room{ border-left:2px solid var(--border-strong); }
.bq3d-row--one .bq3d-room{ aspect-ratio:16/4.6; background-position:center 38%; }
.bq3d-room:hover, .bq3d-room:focus-visible{ filter:none; }
.bq3d-room:focus-visible{ box-shadow:inset 0 0 0 3px var(--accent); }
.bq3d-room.is-on{ filter:none; box-shadow:inset 0 0 0 4px var(--accent), inset 0 0 40px color-mix(in srgb, var(--tint-accent) 35%, transparent); }
.bq3d-tag{ position:absolute; left:10px; top:10px; max-width:calc(100% - 20px); padding:4px 10px; border-radius:var(--radius-pill); font:600 clamp(11px, 1.45vw, 14px)/1.3 var(--font-body); color:var(--on-media-strong); background:color-mix(in srgb, var(--media-veil) 62%, transparent); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }
.bq3d-row--base{ border-top-width:3px; }

.bq3d-riser{ position:absolute; right:12px; top:12px; bottom:12px; border-left:3px dotted var(--accent); opacity:.9; pointer-events:none; }

@media (max-width:820px){
  .bq3d{ grid-template-columns:1fr; gap:22px; }
  
  
  
}

.rm-badge{ display:inline-block; padding:3px 10px; border-radius:var(--radius-pill); font:600 var(--fs-2xs-plus) var(--font-body); letter-spacing:.04em; text-transform:uppercase; color:var(--text); background:color-mix(in srgb, var(--tint-highlight) 18%, transparent); border:1px solid color-mix(in srgb, var(--tint-highlight) 45%, transparent); }

/* Walk through the house: one picture at a time, a small flat map of the building beside it */
.hw{ display:grid; grid-template-columns:240px minmax(0,1fr); gap:34px 44px; align-items:start; max-width:980px; margin:8px auto 0; }
.hw-map{ display:flex; flex-direction:column; align-items:center; gap:16px; padding-top:14px; }
.hw-map .bq3d{ display:block; padding-top:var(--bq-d); width:100%; max-width:210px; margin:0; --bq-d:22px; }
.bq3d--mini .bq3d-room{ aspect-ratio:2.2/1; background:var(--surface-1); filter:none; }
.bq3d--mini .bq3d-row--one .bq3d-room{ aspect-ratio:4.4/1; }
.bq3d--mini .bq3d-row--base .bq3d-room{ height:34px; aspect-ratio:auto; background:linear-gradient(90deg, color-mix(in srgb, var(--tint-accent) 22%, transparent), color-mix(in srgb, var(--tint-accent) 6%, transparent)), var(--media-panel); }
.bq3d--mini .bq3d-tag{ left:5px; top:5px; padding:2px 6px; font-size:var(--fs-3xs); background:color-mix(in srgb, var(--media-veil) 55%, transparent); }
.bq3d--mini .bq3d-room:hover{ background:var(--surface-2); }
.bq3d--mini .bq3d-room.is-on{ background:color-mix(in srgb, var(--tint-accent) 22%, transparent); box-shadow:inset 0 0 0 3px var(--accent); }
.bq3d--mini .bq3d-row--base .bq3d-room.is-on{ background:linear-gradient(90deg, color-mix(in srgb, var(--tint-accent) 50%, transparent), color-mix(in srgb, var(--tint-accent) 25%, transparent)), var(--media-panel); }
.hw-ext{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.hw-extbtn{ font:inherit; font-size:var(--fs-xs-plus); padding:6px 12px; border-radius:var(--radius-pill); border:1.5px dashed var(--border-strong); background:transparent; color:var(--text-muted); cursor:pointer; }
.hw-extbtn:hover{ color:var(--text); border-color:var(--accent); }
.hw-extbtn.is-on{ border-style:solid; border-color:var(--accent); color:var(--text); background:color-mix(in srgb, var(--tint-accent) 12%, transparent); }
.hw-view{ min-width:0; }
.hw-track{ position:relative; display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.hw-track::-webkit-scrollbar{ display:none; }
.hw-track:focus-visible{ outline:2px solid var(--accent); outline-offset:4px; border-radius:var(--radius-xl); }
.hw-slide{ flex:0 0 100%; scroll-snap-align:start; padding:0 2px; box-sizing:border-box; }
.hw-fig{ position:relative; margin:0; border-radius:var(--radius-2xl); overflow:hidden; border:1px solid var(--border-subtle); background:var(--surface-2); aspect-ratio:16/9; }
.hw-fig img{ display:block; width:100%; height:100%; object-fit:cover; }
.hw-tag{ position:absolute; left:12px; top:12px; padding:5px 12px; border-radius:var(--radius-pill); font:600 var(--fs-sm-plus) var(--font-body); color:var(--on-media-strong); background:color-mix(in srgb, var(--media-veil) 60%, transparent); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }
.hw-art{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg, color-mix(in srgb, var(--tint-accent) 10%, transparent), transparent), var(--surface-2); }
.hw-art--ki{ background:linear-gradient(135deg, color-mix(in srgb, var(--tint-accent) 24%, transparent), color-mix(in srgb, var(--tint-accent) 6%, transparent)), var(--media-panel); }
.hw-art svg{ width:min(78%, 420px); height:auto; }
.hw-art--ki rect{ fill:color-mix(in srgb, var(--on-media-strong) 14%, transparent); } .hw-art--ki circle{ fill:var(--accent); }
.hw-cloud{ fill:var(--surface-1); stroke:var(--accent); stroke-width:3; }
.hw-cloud--dashed{ stroke:var(--text-muted); stroke-dasharray:8 7; }
.hw-arrow{ fill:none; stroke:var(--text-muted); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.hw-lock{ fill:var(--accent); } .hw-lockarc{ fill:none; stroke:var(--accent); stroke-width:3; }
.hw-slide h3{ margin:18px 0 6px; font-family:var(--font-display); font-size:var(--fs-4xl); }
.hw-slide p{ margin:0; font-size:var(--fs-lg); line-height:1.6; color:var(--text-muted); max-width:640px; }
.hw-ctrl{ display:flex; align-items:center; justify-content:center; gap:16px; margin-top:20px; }
.hw-btn{ width:42px; height:42px; border-radius:50%; border:1px solid var(--border-medium); background:var(--surface-1-strong); color:var(--text); font-size:var(--fs-5xl); line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.hw-btn:hover{ border-color:var(--accent); }
.hw-btn:disabled{ opacity:.35; cursor:default; }
.hw-count{ min-width:52px; text-align:center; font-family:var(--font-mono); font-size:var(--fs-sm); color:var(--text-muted); }
@media (max-width:820px){
  .hw{ grid-template-columns:1fr; gap:22px; }
  .hw-map{ order:2; padding-top:0; }
  .bq3d--mini .bq3d-tag{ display:none; }
}

/* Building map: taller rows so a click lands on the room you aim at */
.hw-map .bq3d{ max-width:240px; }
.bq3d--mini .bq3d-room{ aspect-ratio:1.9/1; }
.bq3d--mini .bq3d-row--one .bq3d-room{ aspect-ratio:3.8/1; }
.bq3d--mini .bq3d-row--base .bq3d-room{ height:46px; }

/* Photo stage button: a solid light button on the dark veil, a white one with a border on the light veil */
.hero--photo .btn-secondary{ background:var(--photo-btn-bg); color:var(--photo-btn-text); border-color:var(--photo-btn-edge); font-weight:600; }
.hero--photo .btn-secondary:hover{ background:var(--photo-btn-hover); }

/* Pitch slider: one slide at a time{ flex:0 0 100%; }
.pitch .slider-btn{ top:46%; }

.pitch-slide h3{ margin:0 0 10px; font-family:var(--font-display); font-size:clamp(20px, 2.6vw, 26px); line-height:1.25; }

.pitch-num{ margin:0 0 6px !important; font-family:var(--font-display); color:var(--accent-text) !important; }

.pitch-num small{ font-size:var(--fs-lg); font-family:var(--font-body); color:var(--text-muted); margin-left:6px; }

.pitch-src a{ color:var(--text); text-decoration:underline; text-underline-offset:3px; word-break:break-word; }
.slider-count{ margin:10px 0 0; text-align:center; font-family:var(--font-mono); font-size:var(--fs-sm); color:var(--text-muted); }

/* Roadmap as a timeline: solid node for what exists, hollow nodes for what is planned; vertical on small screens */
.rm{ list-style:none; margin:30px 0 0; padding:0; display:grid; grid-template-columns:repeat(3, 1fr); gap:22px; position:relative; }
.rm::before{ content:""; position:absolute; left:calc(100% / 6); right:calc(100% / 6); top:11px; border-top:3px dashed var(--border-strong); }
.rm-step{ position:relative; padding-top:40px; }
.rm-node{ position:absolute; top:0; left:50%; width:24px; height:24px; margin-left:-12px; border-radius:50%; border:3px solid var(--border-strong); background:var(--bg); box-sizing:border-box; }
.rm-step--now .rm-node{ background:var(--accent); border-color:var(--accent); }
.rm-step--now .rm-node::after{ content:""; position:absolute; left:6px; top:2px; width:5px; height:10px; border:solid var(--on-media-strong); border-width:0 2.5px 2.5px 0; transform:rotate(45deg); }
.rm-card{ height:100%; box-sizing:border-box; padding:20px 20px 18px; border:1px solid var(--border-subtle); border-radius:var(--radius-2xl); background:var(--surface-2); text-align:left; }
.rm-step--now .rm-card{ border-color:var(--accent); background:color-mix(in srgb, var(--tint-accent) 7%, transparent); }
.rm-card h3{ margin:10px 0 10px; font-family:var(--font-display); font-size:var(--fs-2xl-plus); }
.rm-card ul{ margin:0; padding-left:18px; font-size:var(--fs-md-plus); line-height:1.55; color:var(--text-muted); }
.rm-card li{ margin:0 0 7px; }
.rm-card li strong{ color:var(--text); font-weight:600; }
.rm-badge--now{ background:color-mix(in srgb, var(--tint-accent) 18%, transparent); border-color:color-mix(in srgb, var(--tint-accent) 55%, transparent); }
@media (max-width:760px){
  .rm{ grid-template-columns:1fr; padding-left:42px; gap:18px; }
  .rm::before{ left:11px; right:auto; top:12px; bottom:12px; border-top:0; border-left:3px dashed var(--border-strong); }
  .rm-step{ padding-top:0; }
  .rm-node{ left:-42px; margin-left:0; top:14px; }
}

/* The live demo as a slide of the pitch slider (desktop only; 
.pitch-slide--demo .demo-frame{ --dw:100%; width:100%; margin:14px 0 0; height:auto; aspect-ratio:16/10; }

/* Pitch in the "See it" style: a photo card with a big claim, caption (claim text and source) below the active slide */
.cx-card{ position:relative; display:flex; flex-direction:column; justify-content:flex-end; gap:6px; aspect-ratio:16/10; padding:clamp(18px,3vw,36px); border-radius:var(--radius-xl); box-shadow:0 24px 48px -24px var(--card-shadow); background:linear-gradient(180deg, color-mix(in srgb, var(--media-veil) 25%, transparent), color-mix(in srgb, var(--media-veil) 78%, transparent)), var(--img) center/cover; color:var(--on-media); overflow:hidden; }
.cx-big{ font-family:var(--font-display); font-weight:600; font-size:clamp(54px, 11vw, 132px); line-height:1; letter-spacing:-.02em; text-shadow:0 2px 24px color-mix(in srgb, var(--shadow-ink) 40%, transparent); }
.cx-big--text{ font-size:clamp(30px, 5.4vw, 64px); line-height:1.08; max-width:14ch; }

.cx-slide figcaption small.cx-src{ display:block; margin-top:2px; font-size:var(--fs-sm); line-height:1.5; color:var(--text-muted); }
.cx-slide figcaption small.cx-src a{ color:var(--text); text-decoration:underline; text-underline-offset:3px; word-break:break-word; }
.cx-slide figcaption .cx-cta{ margin-top:6px; }
.cx-slide--demo .demo-frame{ --dw:100%; width:100%; margin:0; height:auto; aspect-ratio:16/10; }
@media (max-width:820px){ .cx-slide--demo, .cx-dot--demo{ display:none; } }

/* Pitch slider fits the window: the slide width follows the window height (card + caption + dots stay inside one screen) */
.cx--fit{ --cx-w:min(1080px, 80vw, max(480px, calc((100vh - 430px) * 1.6))); }
.cx--fit .cx-slide figcaption{ margin-top:14px; gap:6px; }
.cx--fit .cx-slide figcaption strong{ font-size:clamp(18px, 1.7vw, 24px); }
.cx--fit .cx-slide figcaption span{ font-size:clamp(14px, 1.2vw, 16.5px); line-height:1.5; }
.cx--fit .cx-slide figcaption small.cx-src{ font-size:var(--fs-xs); }
.cx--fit .cx-dots{ margin-top:4px; }
@media (max-width:720px){ .cx--fit{ --cx-w:88vw; } }

.demo-frame[data-demo-scale] iframe{ inset:0 auto auto 0; width:1180px; height:737.5px; max-width:none; transform:scale(var(--ds, 1)); transform-origin:0 0; }

/* Pitch captions: left-aligned, flush with the card, a readable line length */
.cx--fit .cx-slide figcaption{ align-items:flex-start; text-align:left; margin-left:0; margin-right:auto; max-width:68ch; }
.cx--fit .cx-slide figcaption .cx-cta{ margin-top:8px; }

/* In full window the demo uses its natural size again (no scaling) */
.demo-frame:fullscreen{ width:100vw !important; height:100vh !important; max-width:none; margin:0 !important; aspect-ratio:auto; border-radius:0; border:0; }
.demo-frame:-webkit-full-screen{ width:100vw !important; height:100vh !important; max-width:none; margin:0 !important; aspect-ratio:auto; border-radius:0; border:0; }
.demo-frame:fullscreen iframe, .demo-frame:fullscreen[data-demo-scale] iframe{ width:100% !important; height:100% !important; transform:none !important; inset:0 !important; }
.demo-frame:-webkit-full-screen iframe{ width:100% !important; height:100% !important; transform:none !important; inset:0 !important; }
.cx--fit .cx-slide figcaption .cx-cta{ display:flex; flex-wrap:wrap; gap:10px; }

/* Pitch: the text sits on the slide (photo card), the slide is only as tall as the card */
.cx--fit{ --cx-w:min(1080px, 80vw, max(480px, calc((100vh - 340px) * 1.6))); }
.cx-card{ align-items:flex-start; justify-content:flex-end; background:linear-gradient(90deg, color-mix(in srgb, var(--media-veil) 86%, transparent) 0%, color-mix(in srgb, var(--media-veil) 72%, transparent) 52%, color-mix(in srgb, var(--media-veil) 38%, transparent) 100%), var(--img) center/cover; }
.cx-card .cx-big{ font-size:clamp(46px, 8.4vw, 104px); }
.cx-card .cx-big--text{ font-size:clamp(26px, 4.2vw, 50px); max-width:15ch; }
.cx-title{ margin-top:10px; font-family:var(--font-display); font-size:clamp(17px, 1.9vw, 24px); line-height:1.25; color:var(--on-media-strong); }
.cx-text{ max-width:52ch; font-size:clamp(12.5px, 1.12vw, 15.5px); line-height:1.5; color:color-mix(in srgb, var(--on-media) 94%, transparent); }
.cx-card .cx-src{ max-width:62ch; margin-top:6px; font-size:var(--fs-2xs-plus); line-height:1.45; color:color-mix(in srgb, var(--on-media) 74%, transparent); }
.cx-card .cx-src a{ color:var(--on-media-strong); text-decoration:underline; text-underline-offset:2px; word-break:break-word; }
.cx-card--shot{ flex-direction:row; align-items:stretch; justify-content:flex-start; gap:clamp(16px, 2.4vw, 32px); background:linear-gradient(135deg, var(--media-panel), var(--media-panel-2)); }
.cx-shot-text{ flex:0 0 44%; display:flex; flex-direction:column; justify-content:center; }
.cx-card--shot img{ flex:1 1 0; min-width:0; align-self:center; max-height:100%; object-fit:cover; border-radius:var(--radius-md); border:1px solid color-mix(in srgb, var(--on-media-strong) 14%, transparent); }
@media (max-width:720px){ .cx-card{ aspect-ratio:auto; min-height:430px; } .cx-card--shot{ flex-direction:column; } .cx-shot-text{ flex:none; } .cx-card--shot img{ max-height:46%; } }

/* Screenshot slide: the real interface fills the card, the text sits in a dark box over the article part (bottom left) */
.cx-card--shot{ flex-direction:column; justify-content:flex-end; align-items:flex-start; gap:0; padding:0; background:var(--media-panel); }
.cx-card--shot img{ position:absolute; inset:0; width:100%; height:100%; max-height:none; object-fit:cover; object-position:top left; border:0; border-radius:0; }
.cx-card--shot .cx-shot-text{ position:relative; z-index:1; flex:none; margin:clamp(10px, 1.8vw, 22px); padding:clamp(12px, 1.6vw, 20px) clamp(14px, 1.8vw, 22px); max-width:46%; background:color-mix(in srgb, var(--media-veil) 86%, transparent); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); border-radius:var(--radius-lg); justify-content:flex-start; }
@media (max-width:720px){ .cx-card--shot{ min-height:430px; } .cx-card--shot .cx-shot-text{ max-width:none; } }

.cx--fit .cx-track{ align-items:flex-start; overflow-y:hidden; transition:height var(--duration-base) var(--easing-standard); }
@media (prefers-reduced-motion:reduce){ .cx--fit .cx-track{ transition:none; } }

/* ── Menu: soft open (overlay fades in, links rise one after another, number slides, panels follow) ── */
@media (prefers-reduced-motion:no-preference){
  .nav--pill .mobile-menu:not([hidden]){animation:mmIn var(--duration-slower) cubic-bezier(.2,.7,.2,1) both}
  .nav--pill .mobile-menu:not([hidden]) .mm-links>a{animation:mmRise var(--duration-reveal) cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(.05s + var(--i,0)*.045s)}
  .nav--pill .mobile-menu:not([hidden]) .mm-links>a .mm-n{animation:mmNum .6s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(.12s + var(--i,0)*.045s)}
  .nav--pill .mobile-menu:not([hidden]) .mm-lang,
  .nav--pill .mobile-menu:not([hidden]) .mm-posts,
  .nav--pill .mobile-menu:not([hidden]) .mm-bottom{animation:mmRise var(--duration-reveal) cubic-bezier(.2,.7,.2,1) .28s both}
  .nav--pill .mm-links>a{transition:padding-left var(--duration-base) cubic-bezier(.2,.7,.2,1),color var(--duration-base)}
  .nav--pill .mm-links>a:not(.mm-sub):hover{padding-left:10px;color:var(--accent)}
}
@keyframes mmIn{from{opacity:0;transform:translateY(-10px) scale(.992);clip-path:inset(0 0 12% 0)}to{opacity:1;transform:none;clip-path:inset(0 0 0 0)}}
@keyframes mmRise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes mmNum{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:none}}
.nav--pill .mm-links>a:nth-child(2){--i:1}
.nav--pill .mm-links>a:nth-child(3){--i:2}
.nav--pill .mm-links>a:nth-child(4){--i:3}
.nav--pill .mm-links>a:nth-child(5){--i:4}
.nav--pill .mm-links>a:nth-child(6){--i:5}
.nav--pill .mm-links>a:nth-child(7){--i:6}
.nav--pill .mm-links>a:nth-child(8){--i:7}
.nav--pill .mm-links>a:nth-child(9){--i:8}
.nav--pill .mm-links>a:nth-child(9){--i:4}

/* Phone variant of the live demo: only the side panel, laid out at its natural width and scaled into a phone-shaped frame */
.cx-slide--demo-m .demo-frame--phone{ --dw:100%; width:min(100%, 340px); margin:0 auto; height:auto; border-radius:var(--radius-device); border:1px solid var(--border-medium); overflow:hidden; background:var(--bg); }
.demo-frame--phone iframe{ inset:0 auto auto 0; width:var(--fw,420px); height:var(--fh,800px); max-width:none; transform:scale(var(--ds,1)); transform-origin:0 0; }
.demo-frame--phone:not(.is-live) .demo-start{ position:absolute; inset:auto 16px 22px 16px; margin:0; justify-content:center; }
.demo-open-m{ color:var(--accent); font-weight:600; text-decoration:none; margin-top:4px; }
@media (min-width:821px){ .cx-slide--demo-m, .cx-dot--demo-m{ display:none; } }
.cx-dot.cx-dot--demo-m{ width:auto; height:auto; min-height:0; padding:3px 12px 3px 10px; border-radius:var(--radius-pill); font:600 var(--fs-xs) var(--font-display); letter-spacing:.03em; line-height:1.5; color:var(--text); display:inline-flex; align-items:center; gap:6px; }
.cx-dot--demo-m::before{ content:"\25B6"; font-size:var(--fs-3xs); }
.cx-dot--demo-m:not(.is-active){ background:transparent; border:1px solid var(--accent); }
.cx-dot--demo-m.is-active{ background:var(--accent); color:var(--on-accent); border-color:var(--accent); }
/* Homepage use-case cards and carousel jump links */
.use-case-grid{margin-top:48px}
.use-case-card h3{min-height:2.6em}
.use-case-card:focus-visible{outline:3px solid var(--accent-text);outline-offset:4px}
.slide-jumps{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:22px}
.slide-jumps a{border:1px solid var(--border-medium);border-radius:var(--radius-pill);padding:7px 12px;color:var(--text-muted);font-size:.82rem;text-decoration:none}
.slide-jumps a:hover,.slide-jumps a:focus-visible{border-color:var(--accent);color:var(--text)}
.slide-jumps a.is-active{background:var(--accent);border-color:var(--accent);color:var(--on-accent);font-weight:600}
@media (max-width:760px){.use-case-card h3{min-height:0}}
@media (prefers-reduced-motion:reduce){.use-case-card{transition:none}.use-case-card:hover{transform:none}}
@media (forced-colors:active){.cx-card{background:Canvas;color:CanvasText;border:1px solid CanvasText}}
.cx-slide-link{
  align-self:flex-end;
  margin-top:8px;
  padding:10px 14px;
  border:1px solid var(--border-medium);
  border-radius:var(--radius-pill);
  background:var(--surface-1-strong);
  color:var(--text);
  font-size:var(--fs-sm);
  font-weight:600;
  text-decoration:none;
  transition:background var(--duration-base) var(--easing-standard),border-color var(--duration-base) var(--easing-standard),transform var(--duration-base) var(--easing-standard);
}
.cx-slide-link:hover{border-color:var(--accent);background:var(--surface-2-strong);transform:translateY(-1px)}
.cx-slide-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media (prefers-reduced-motion:reduce){.cx-slide-link{transition:none}.cx-slide-link:hover{transform:none}}
/* The slide link sits on an always-dark photo card: use fixed light colours so it stays visible in light theme */
.cx-card .cx-slide-link{color:var(--on-media);background:color-mix(in srgb, var(--on-media-strong) 12%, transparent);border-color:color-mix(in srgb, var(--on-media-strong) 45%, transparent)}
.cx-card .cx-slide-link:hover{color:var(--on-media-strong);background:color-mix(in srgb, var(--on-media-strong) 22%, transparent);border-color:var(--on-media-strong)}
.cx-card .cx-slide-link:focus-visible{outline-color:var(--on-media-strong)}
/* AI-image labels (see main.js): small, always visible, same in both themes */
.ai-wrap{ position:relative; }
.ai-badge{ position:absolute; z-index:3; padding:3px 7px; border-radius:var(--radius-pill); font:700 var(--fs-3xs)/1.1 var(--font-body); letter-spacing:.02em; color:var(--on-media); background:color-mix(in srgb, var(--media-veil) 62%, transparent); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); white-space:nowrap; cursor:help; }
.ai-badge--inline{ position:static; display:inline-block; margin-inline-start:8px; padding:2px 7px; vertical-align:baseline; font-size:var(--fs-3xs-plus); font-weight:600; }
.ai-badge--end{ inset-inline-end:10px; bottom:10px; }
.ai-badge--top{ inset-inline-end:12px; top:12px; }
.photo-row .ai-wrap img{ display:block; }
.ai-note{ margin:14px 0 0; font-size:var(--fs-xs-plus); line-height:1.5; color:var(--text-muted); }

/* MCP landing: how the pieces connect */
.mcp-flow{ padding:56px 0; }
.flow-box{ position:relative; margin-top:28px; padding:34px 22px 22px; border:1.5px dashed var(--border-medium); border-radius:var(--radius-3xl); background:var(--surface-1); }
.flow-box-label{ position:absolute; top:-11px; inset-inline-start:20px; padding:2px 10px; font:600 var(--fs-2xs-plus)/1.4 var(--font-mono); letter-spacing:.04em; text-transform:uppercase; color:var(--text-muted); background:var(--bg); border-radius:var(--radius-pill); }
.flow{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr auto 1fr auto 1fr; align-items:stretch; gap:10px; }
.flow-node{ display:flex; flex-direction:column; gap:6px; padding:16px 16px 18px; border:1px solid var(--border-medium); border-radius:var(--radius-xl); background:var(--surface-1-strong); }
.flow-node strong{ font-family:var(--font-display); font-size:var(--fs-lg); color:var(--text); }
.flow-node span{ font-size:var(--fs-sm-plus); line-height:1.5; color:var(--text-muted); }
.flow-node--aish{ border-color:var(--accent); }
.flow-link{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-width:92px; color:var(--accent); }
.flow-link::after{ content:""; width:100%; height:2px; background:currentColor; opacity:.7; -webkit-mask:linear-gradient(90deg,#000 70%,transparent 70%) 0 0/8px 2px; mask:linear-gradient(90deg,#000 70%,transparent 70%) 0 0/8px 2px; }
.flow-link em{ font-style:normal; font:600 var(--fs-2xs)/1.3 var(--font-mono); text-align:center; color:var(--text-muted); }
.flow-note{ margin:18px auto 0; max-width:640px; text-align:center; font-size:var(--fs-sm-plus); line-height:1.55; color:var(--text-muted); }
@media (max-width:820px){ .flow{ grid-template-columns:1fr; } .flow-link{ min-width:0; flex-direction:row; padding:2px 0; } .flow-link::after{ display:none; } .flow-link::before{ content:"\2193"; font-size:var(--fs-3xl); } }

/* e-reader landing: compatibility table */
.compat-wrap{ margin-top:28px; overflow-x:auto; border:1px solid var(--border-medium); border-radius:var(--radius-xl); background:var(--surface-1); }
.compat-table{ width:100%; border-collapse:collapse; font-size:var(--fs-md-plus); line-height:1.55; text-align:start; }
.compat-table th, .compat-table td{ padding:14px 16px; vertical-align:top; border-bottom:1px solid var(--border-subtle); }
.compat-table thead th{ font:600 var(--fs-xs)/1.3 var(--font-mono); letter-spacing:.05em; text-transform:uppercase; color:var(--text-muted); background:var(--surface-1-strong); }
.compat-table tbody th{ font-family:var(--font-display); font-weight:600; color:var(--text); width:26%; }
.compat-table td{ color:var(--text-muted); }
.compat-table tbody tr:last-child th, .compat-table tbody tr:last-child td{ border-bottom:0; }
@media (max-width:720px){ .compat-table{ min-width:640px; } }
