/* Focus website (AP-907; AP-938 redesign; AP-1035 website v2: workflow/plans/AP-1035-website-v2.md). One shared style for every page.
   The only script is /marketing/site-init.js (look choice); the site is complete without it.
   Logical properties (start/end) throughout, so a right-to-left page (dir="rtl" on <html>) mirrors by itself. */

@font-face { font-family: 'Figtree'; font-weight: 400; font-style: normal; font-display: swap; src: url('/marketing/fonts/figtree-latin-400.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: 'Figtree'; font-weight: 500; font-style: normal; font-display: swap; src: url('/marketing/fonts/figtree-latin-500.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: 'Figtree'; font-weight: 600; font-style: normal; font-display: swap; src: url('/marketing/fonts/figtree-latin-600.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: 'Figtree'; font-weight: 400; font-style: normal; font-display: swap; src: url('/marketing/fonts/figtree-latin-ext-400.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: 'Figtree'; font-weight: 500; font-style: normal; font-display: swap; src: url('/marketing/fonts/figtree-latin-ext-500.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: 'Figtree'; font-weight: 600; font-style: normal; font-display: swap; src: url('/marketing/fonts/figtree-latin-ext-600.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; }

/* Tokens. Light and dark are written once with light-dark(); `color-scheme` picks the side: the OS (no data-theme) or the
   visitor's / site's choice (html[data-theme]). Needs light-dark(): Chrome 123, Safari 17.5, Firefox 120 (March 2024).
   Neutral ramp, six steps: --page, --raised, --sunken, --line, --text-muted, --text (ink is never pure black).
   An atmosphere (html[data-atmo], default paper, the app's own default look) supplies --base (the page colour), three blob colours --b1..3 and
   --accent; the ids and accents follow the app's atmospheres (Aurora, Ocean ...), see docs/atmosphere.md. The same custom properties are set on
   [data-atmo-option] so a picker swatch paints itself from its own preset. A preset may also set the glow strengths (--glow-l1..3 light,
   --glow-d1..3 dark; unset = 32/27/27 and 18/17/17) and --grain (a film grain over the page, body::after). */
:root { color-scheme: light dark; }
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }

:root, :root[data-atmo='paper'], [data-atmo-option='paper'] { --base: light-dark(#F5F3EF, #131217); --b1: #C9A98A; --b2: #B9A6E8; --b3: #E7B8A8; --accent: light-dark(#5B3E96, #C4B4F0); }
:root[data-atmo='purple'], [data-atmo-option='purple'] { --base: light-dark(#faf8fe, #121018); --b1: #8f7bd6; --b2: #b9a6ee; --b3: #6d57b8; --accent: light-dark(#5f3fa8, #9d8ec4); }
:root[data-atmo='aurora'], [data-atmo-option='aurora'] { --base: light-dark(#fbfaff, #14111c); --b1: #b49cf5; --b2: #f4a3c8; --b3: #6aa6ee; --accent: light-dark(#5b47a0, #b7a9e0); }
:root[data-atmo='dusk'], [data-atmo-option='dusk'] { --base: light-dark(#fdf9f8, #181116); --b1: #ff9d5c; --b2: #e0487a; --b3: #6a4fd0; --accent: light-dark(#962a52, #f2a0b8); }
:root[data-atmo='forest'], [data-atmo-option='forest'] { --base: light-dark(#f8fbf8, #0f1612); --b1: #a8dc5c; --b2: #1fb592; --b3: #2a8f6a; --accent: light-dark(#1a6452, #7fd6b8); }
:root[data-atmo='ocean'], [data-atmo-option='ocean'] { --base: light-dark(#f7fafe, #0e131c); --b1: #5fd4ec; --b2: #3f6fe0; --b3: #6a5ad8; --accent: light-dark(#2a4fb8, #8db6f5); }
:root[data-atmo='sand'], [data-atmo-option='sand'] { --base: light-dark(#fcfaf6, #17130f); --b1: #ffcf84; --b2: #f09a82; --b3: #e8b86a; --accent: light-dark(#85461a, #f0b98a); }
:root[data-atmo='mono'], [data-atmo-option='mono'] { --base: light-dark(#fafafa, #121214); --b1: #c6c6d2; --b2: #8c8c9c; --b3: #dcdce4; --accent: light-dark(#3a3a46, #d4d4de); }
/* Paper Grain (the default, AP-1049) is the app's official default look: the same paper base and the same film grain as the app's background
   (frontend/src/config/appDefaultLook.ts, texture noise2: textureToCss() at opacity 14 light / 16 dark, tile 135px = the app's 180px tile at the
   0.75 canvas scale of a 1440 screen), and the glows at about half strength. Only the page itself (no data-atmo, or data-atmo='paper'). */
:root:not([data-atmo]), :root[data-atmo='paper'] { --glow-l1: 18%; --glow-l2: 14%; --glow-l3: 14%; --glow-d1: 11%; --glow-d2: 9%; --glow-d3: 9%; --grain: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22300%22%20height%3D%22300%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.65%22%20numOctaves%3D%223%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3C%2Ffilter%3E%3Cmask%20id%3D%22m%22%3E%3Crect%20width%3D%22300%22%20height%3D%22300%22%20filter%3D%22url(%23n)%22%2F%3E%3C%2Fmask%3E%3Crect%20width%3D%22300%22%20height%3D%22300%22%20fill%3D%22rgb(28%2C26%2C38)%22%20mask%3D%22url(%23m)%22%20opacity%3D%220.084%22%2F%3E%3C%2Fsvg%3E"); }
:root:not([data-atmo])[data-theme='dark'], :root[data-atmo='paper'][data-theme='dark'] { --grain: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22300%22%20height%3D%22300%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.65%22%20numOctaves%3D%223%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3C%2Ffilter%3E%3Cmask%20id%3D%22m%22%3E%3Crect%20width%3D%22300%22%20height%3D%22300%22%20filter%3D%22url(%23n)%22%2F%3E%3C%2Fmask%3E%3Crect%20width%3D%22300%22%20height%3D%22300%22%20fill%3D%22rgb(255%2C255%2C255)%22%20mask%3D%22url(%23m)%22%20opacity%3D%220.096%22%2F%3E%3C%2Fsvg%3E"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-atmo]):not([data-theme='light']), :root[data-atmo='paper']:not([data-theme='light']) { --grain: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22300%22%20height%3D%22300%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.65%22%20numOctaves%3D%223%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3C%2Ffilter%3E%3Cmask%20id%3D%22m%22%3E%3Crect%20width%3D%22300%22%20height%3D%22300%22%20filter%3D%22url(%23n)%22%2F%3E%3C%2Fmask%3E%3Crect%20width%3D%22300%22%20height%3D%22300%22%20fill%3D%22rgb(255%2C255%2C255)%22%20mask%3D%22url(%23m)%22%20opacity%3D%220.096%22%2F%3E%3C%2Fsvg%3E"); }
}

:root {
  --page: var(--base);
  --raised: light-dark(#ffffff, color-mix(in srgb, var(--base) 92%, #ffffff));
  --sunken: color-mix(in srgb, var(--base) 94%, var(--text));
  --line: color-mix(in srgb, var(--base) 86%, var(--text));
  --text: light-dark(#1c1a26, #f1eff7);
  --text-muted: light-dark(#524e62, #aaa6bb);
  --on-accent: light-dark(#ffffff, #15131a);
  --glow-1: light-dark(color-mix(in srgb, var(--b1) var(--glow-l1, 32%), transparent), color-mix(in srgb, var(--b1) var(--glow-d1, 18%), transparent));
  --glow-2: light-dark(color-mix(in srgb, var(--b2) var(--glow-l2, 27%), transparent), color-mix(in srgb, var(--b2) var(--glow-d2, 17%), transparent));
  --glow-3: light-dark(color-mix(in srgb, var(--b3) var(--glow-l3, 27%), transparent), color-mix(in srgb, var(--b3) var(--glow-d3, 17%), transparent));
  /* Shadows: product frames get the one large soft shadow; nothing else does but a popover. */
  --shadow: light-dark(0 40px 80px -32px rgba(40, 30, 80, 0.4), 0 40px 80px -32px rgba(0, 0, 0, 0.75));
  --shadow-pop: light-dark(0 12px 32px -8px rgba(40, 30, 80, 0.28), 0 12px 32px -8px rgba(0, 0, 0, 0.7));
  /* Radii: two values. Controls (buttons, chips, fields, popovers) 10, media (frames, pictures, panels) 16. A phone picture keeps a device-shaped corner. */
  --radius-control: 10px;
  --radius-media: 16px;
  --radius-phone: 28px;
  --font-text: 'Figtree', Arial, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --column: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4rem, 10vw, 8rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 0.2s ease, color 0.2s ease;
}
/* The atmosphere: three soft blobs of the chosen colours, fixed behind the whole page (not just the hero). */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(46% 52% at 10% 6%, var(--glow-1), transparent 70%), radial-gradient(40% 48% at 94% 14%, var(--glow-2), transparent 70%), radial-gradient(52% 56% at 62% 104%, var(--glow-3), transparent 70%); }
/* The preset's film grain over the glows (none unless the preset sets --grain). */
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--grain, none) 0 0 / 135px 135px repeat; }

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; inset-inline-start: var(--gutter); top: -4rem; padding: 0.5rem 1rem; background: var(--text); color: var(--page); border-radius: var(--radius-control); z-index: 30; }
.skip:focus { top: 0.5rem; }

.wrap { width: 100%; max-width: calc(var(--column) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Header (the shell is generated once in scripts/build-website.mjs): brand, nav, then language, look, log in, sign up.
   Under 48rem one row: brand, Sign up, and a menu button whose panel holds the nav, log in, look and languages. */
/* The header is part of the page at the top (no surface, no line, so the hero's atmosphere runs behind it). Once the page has scrolled, site-init.js sets
   data-scrolled on <html> and the header becomes frosted glass with a hairline; an open mobile menu gets the same surface. Without script it stays transparent. */
.site-header { position: sticky; top: 0; z-index: 20; background: transparent; transition: background-color 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease, -webkit-backdrop-filter 0.2s ease; }
:root[data-scrolled] .site-header, .site-header:has(.menu[open]) { background: color-mix(in srgb, var(--page) 78%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root[data-scrolled] .site-header, .site-header:has(.menu[open]) { background: var(--page); }
}
.bar { display: flex; align-items: center; gap: 0.5rem 1.5rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; color: var(--text); text-decoration: none; font-family: var(--font-text); font-weight: 600; font-size: 1.4375rem; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: var(--radius-control); }
.nav { display: flex; gap: 0.25rem; font-size: 0.9375rem; margin-inline-start: 0.5rem; }
.nav a { color: var(--text-muted); text-decoration: none; padding: 0.45rem 0.8rem; border-radius: var(--radius-control); white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--sunken); }
.nav a[aria-current='page'] { color: var(--text); font-weight: 600; }
.bar-end { display: flex; align-items: center; gap: 0.25rem; margin-inline-start: auto; font-size: 0.9375rem; }
.bar-end .login { color: var(--text); text-decoration: none; padding: 0.45rem 0.75rem; border-radius: var(--radius-control); }
.bar-end .login:hover { background: var(--sunken); }
.bar-end .button { min-height: 2.5rem; padding: 0.3rem 1.1rem; font-size: 0.9375rem; margin-inline-start: 0.5rem; }

/* Popovers (language, look, menu): a <details>; site-init.js adds close-on-outside-click and Escape. */
.pop { position: relative; }
.pop.menu { position: static; }
.pop > summary { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.5rem; min-width: 2.5rem; justify-content: center; padding-inline: 0.6rem; border: 1px solid transparent; border-radius: var(--radius-control); color: var(--text); cursor: pointer; list-style: none; }
.pop > summary::-webkit-details-marker { display: none; }
.pop > summary:hover, .pop[open] > summary { background: var(--sunken); border-color: var(--line); }
.pop > summary svg { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pop-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 0.5rem); z-index: 25; max-height: min(34rem, calc(100dvh - 6rem)); overflow-y: auto; margin: 0; padding: 1rem; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-control); box-shadow: var(--shadow-pop); }

.lang-switch > summary .chev { width: 0.4rem; height: 0.4rem; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-0.12rem) rotate(45deg); }
.lang-switch ul.pop-panel { display: grid; grid-template-columns: repeat(2, minmax(9rem, 1fr)); gap: 0.125rem; list-style: none; padding: 0.375rem; min-width: 19rem; }
.lang-switch li a { display: flex; align-items: center; min-height: 2.5rem; padding: 0.25rem 0.75rem; border-radius: calc(var(--radius-control) - 2px); color: var(--text); text-decoration: none; }
.lang-switch li a:hover { background: var(--sunken); }
.lang-switch li a[aria-current='true'], .lang-list a[aria-current='true'] { font-weight: 600; color: var(--accent); }

/* Look: appearance (Auto / Light / Dark) and the six atmospheres. Real buttons with aria-pressed; hidden without script (they would be dead). */
html:not(.js) .look-pop, html:not(.js) .look-picker { display: none; }
.look-panel { width: 20.5rem; max-width: calc(100vw - 2 * var(--gutter)); }
.look-picker { display: grid; gap: 1.25rem; }
.look-group { display: grid; gap: 0.5rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.look-label { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); padding: 0; }
.seg { display: inline-flex; justify-self: start; padding: 2px; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--radius-control); }
.seg button, .look-reset { font: inherit; font-size: 0.9375rem; cursor: pointer; }
.seg button { min-height: 2.25rem; padding: 0.3rem 0.95rem; border: 0; border-radius: calc(var(--radius-control) - 2px); background: transparent; color: var(--text-muted); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed='true'] { background: var(--raised); color: var(--text); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.atmos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.25rem; }
.atmo-option { display: grid; justify-items: center; gap: 0.35rem; min-height: 2.75rem; padding: 0.5rem 0.25rem; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--text); font: inherit; font-size: 0.875rem; cursor: pointer; }
.atmo-option:hover { background: var(--sunken); }
.atmo-option .sw { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--b1), transparent 60%), radial-gradient(circle at 75% 70%, var(--b2), var(--b3)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); }
.atmo-option[aria-pressed='true'] { font-weight: 600; }
.atmo-option[aria-pressed='true'] .sw { box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--accent); }
.look-reset { justify-self: start; padding: 0.4rem 0; min-height: 2.25rem; border: 0; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; }

/* Menu (phones) */
.menu { display: none; }
.menu > summary .icon-close, .menu[open] > summary .icon-menu { display: none; }
.menu[open] > summary .icon-close { display: block; }
.menu-panel { position: absolute; inset-inline: 0; top: 100%; z-index: 25; max-height: calc(100dvh - 4rem); overflow-y: auto; padding-block: 0.75rem 1.5rem; background: var(--raised); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.menu-panel nav.menu-nav { display: grid; }
.menu-nav a { display: flex; align-items: center; min-height: 3rem; color: var(--text); text-decoration: none; font-family: var(--font-text); font-size: 1.375rem; letter-spacing: -0.01em; border-bottom: 1px solid var(--line); }
.menu-nav a[aria-current='page'] { color: var(--accent); }
.menu-section { display: grid; gap: 0.5rem; margin-top: 1.5rem; }
.menu-section .lang-list a { display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (max-width: 48rem) {
  .bar { min-height: 3.5rem; }
  .nav, .bar-end .pop, .bar-end .login { display: none; }
  .menu { display: block; }
  .menu > summary { min-height: 2.75rem; min-width: 2.75rem; }
  .bar-end .button { min-height: 2.75rem; display: inline-flex; align-items: center; margin-inline-start: 0; }
  .menu-panel { max-height: calc(100dvh - 3.5rem); }
}
@media (pointer: coarse) { .seg button, .look-reset { min-height: 2.75rem; } }

/* Buttons: one primary, one quiet. No lift on hover. */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.6rem 1.35rem; border-radius: var(--radius-control); background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid var(--accent); text-align: center; }
.button:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); border-color: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.button.quiet { background: transparent; color: var(--text); border-color: var(--line); }
.button.quiet:hover { border-color: var(--accent); background: transparent; }

/* Type: one family, Figtree, for headings and text (weights 400/500/600; headings 600, tightly tracked). A 1.25 scale with a larger jump at the hero. */
h1, h2, h3 { font-family: var(--font-text); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 0; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
h1 { font-size: clamp(2.75rem, 1.6rem + 5.4vw, 6rem); letter-spacing: -0.035em; line-height: 1.04; max-width: 17ch; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0 0 1rem; max-width: 65ch; overflow-wrap: break-word; text-wrap: pretty; }
.lead { font-size: clamp(1.125rem, 2vw, 1.3125rem); line-height: 1.55; color: var(--text-muted); max-width: 38rem; }
.small { font-size: 0.9375rem; color: var(--text-muted); }

/* The real app in a window (Home hero, Demo). The atmosphere behind it is the page's (body::before). */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.desk { margin-top: clamp(2.5rem, 6vw, 4rem); text-align: start; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-media); box-shadow: var(--shadow); overflow: hidden; }
.desk-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); background: var(--sunken); font-size: 0.8125rem; color: var(--text-muted); }
.desk-bar i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--line); }
.desk-bar span { margin-inline: auto; padding: 0.15rem 1rem; border-radius: var(--radius-control); background: var(--raised); border: 1px solid var(--line); max-width: 70%; text-align: center; line-height: 1.35; }
.desk-bar::after { content: ''; width: 2.4rem; }
.desk iframe { display: block; width: 100%; height: min(46rem, 80vh); min-height: 32rem; border: 0; background: var(--page); }
.desk iframe.tall { height: min(64rem, 90vh); min-height: 34rem; }
.desk-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; margin: 0; padding: 0.8rem 1.1rem; max-width: none; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--text-muted); }
.desk-note a { color: var(--text); }
.desk-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.desk-links a { display: inline-block; min-block-size: 1.5rem; }
.sub-hero + .wrap > .desk { margin-top: 0; }
@media (max-width: 40rem) { .desk-bar span { max-width: 70%; } .desk-bar::after { display: none; } .desk-bar span { margin-inline-end: auto; } }


/* Sections */
section.block { padding-block: var(--section) 0; }

/* Home */
.home-hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) 0; }
.home-hero .wrap:first-child { text-align: center; }
.home-hero h1 { font-size: clamp(2.25rem, 1.2rem + 4.8vw, 5rem); max-width: 16ch; margin-inline: auto; }
.home-hero .lead { margin: 1.5rem auto 2rem; }
.home-hero .actions { justify-content: center; }
.home-hero .wrap > .small { margin: 1rem auto 0; }
/* The live frame is the hero: only the app in a rounded container, under the text, inside the column with the same gutter on all sides, and the full-screen button under it. */
.home-hero .desk { margin-top: clamp(1.5rem, 5vw, 3.5rem); }
.desk-cta { display: flex; justify-content: center; max-width: none; margin: 1.5rem 0 0; }
.home-hero .desk iframe { height: min(48rem, 78vh); }
@media (max-width: 40rem) { .home-hero .desk iframe { min-height: 26rem; height: 70vh; } .home-hero .actions .quiet { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .home-hero h1, .home-hero .lead, .home-hero .actions { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .home-hero .lead { animation-delay: 0.08s; }
  .home-hero .actions { animation-delay: 0.16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(0.75rem); } }
}

/* Home: one sentence, then the three jobs as plain running text */
.statement { padding-block-start: var(--section); }
.statement .wrap { text-align: center; }
.who .wrap > h2, .who .wrap > .lead { text-align: center; margin-inline: auto; }
.statement h2 { font-size: clamp(2.25rem, 1.2rem + 4.4vw, 4.75rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 14ch; margin-inline: auto; }
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 4vw, 3rem); margin-top: clamp(2rem, 5vw, 3.5rem); }
.jobs p { margin: 0 auto; color: var(--text-muted); }
.jobs a { display: block; margin-bottom: 0.4rem; color: var(--text); font-family: var(--font-text); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; text-decoration: none; }
.jobs a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 48rem) { .jobs { grid-template-columns: minmax(0, 1fr); } }

/* Home: product moments. Text beside an inset picture (.inset-shot), alternating sides; one column on phones. */
.moments { padding-block-start: var(--section); }
.moment { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(1.5rem, 5vw, 4.5rem); align-items: center; scroll-margin-top: 6rem; }
.moment + .moment { margin-top: var(--section); }
.moment-text h3 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.1; margin-bottom: 1rem; }
.moment-text p { color: var(--text-muted); }
.moment-text p:last-child { margin-bottom: 0; }
.moment:nth-child(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.moment:nth-child(even) .moment-text { order: 2; }
@media (max-width: 52rem) {
  .moment, .moment:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .moment:nth-child(even) .moment-text { order: 0; }
}

/* A picture that follows the theme: both are in the page, the one that does not match is not shown (and, lazy, never fetched). */
img.on-dark { display: none; }
:root[data-theme='dark'] .on-light { display: none; }
:root[data-theme='dark'] .on-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .on-light { display: none; }
  :root:not([data-theme='light']) .on-dark { display: block; }
}

/* Home: the Look section. The picker is the real one (the page behind it changes as you choose). Without script the whole section is hidden. */
.look { padding-block-end: 0; }
.look-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; justify-items: center; text-align: center; }
.look .lead { margin: 1rem auto; }
.look-grid > div > .small { margin-inline: auto; }
.look .look-picker { width: 100%; max-width: 60rem; }
.look .look-group { justify-items: center; }
.look .look-reset { justify-self: center; }
.look .seg { justify-self: center; }
.look .look-picker { gap: 2rem; }
.look .seg button { min-height: 2.75rem; padding-inline: 1.25rem; }
.look .atmos { grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr)); gap: 0.75rem 0.5rem; width: 100%; }
.look .atmo-option { padding: 0.75rem 0.25rem; font-size: 1rem; }
.look .atmo-option .sw { width: 4.25rem; height: 4.25rem; }
html:not(.js) .look { display: none; }
@media (max-width: 48rem) { .look .atmo-option .sw { width: 3.5rem; height: 3.5rem; } }

/* Home: everything around the work, a plain two-column list */
.around { list-style: none; margin: clamp(1.5rem, 4vw, 2.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 6vw, 5rem); }
.around li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.around svg { width: 1.5rem; height: 1.5rem; margin-top: 0.15rem; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.around h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.around p { margin: 0; color: var(--text-muted); }
.more-link { margin: 1.5rem auto 0; text-align: center; }
#more-title { text-align: center; }
@media (max-width: 48rem) { .around { grid-template-columns: minmax(0, 1fr); } }

/* Home: the latest posts as a dated list, then the price in one sentence */
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.25rem 2rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.posts .post-date { grid-row: span 2; margin: 0.25rem 0 0; }
.posts h3 { font-size: 1.375rem; }
.posts h3 a { color: var(--text); text-decoration: none; }
.posts h3 a:hover { color: var(--accent); text-decoration: underline; }
.posts p:not(.post-date) { margin: 0; color: var(--text-muted); }
@media (max-width: 40rem) { .posts li { grid-template-columns: minmax(0, 1fr); } .posts .post-date { grid-row: auto; margin: 0; } }
.price-line .wrap { text-align: center; }
.price-line .lead { max-width: 40rem; margin: 1rem auto 0; }

/* Inner pages: shared bits */
section.block.tight { padding-block-start: clamp(2rem, 5vw, 3.5rem); }

/* Sub-page hero (Features, Pricing, Demo, Blog, 404): centered like the Home hero */
.sub-hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem); text-align: center; }
.sub-hero h1 { font-size: clamp(2.25rem, 1.2rem + 4.8vw, 4.5rem); max-width: 17ch; margin-inline: auto; }
.sub-hero .lead { margin: 1.25rem auto 0; }
.sub-hero .actions { margin-top: 2rem; justify-content: center; }

/* Inset picture: the one treatment for a product crop on the inner pages. It stays inside the column, with the same border, radius and
   shadow on all four corners, so there is the page gutter on every side. The light and dark files are both in the page (.on-light / .on-dark). */
.inset-shot { display: block; margin: 0; min-width: 0; }
.inset-shot.tall { max-width: 26rem; }
.inset-shot figcaption { margin: 0.85rem auto 0; font-size: 0.9375rem; color: var(--text-muted); max-width: 40rem; overflow-wrap: break-word; text-align: center; }
.inset-shot img { width: 100%; height: auto; vertical-align: top; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-media); box-shadow: var(--shadow); }

/* Features: the index beside the groups (a fold on phones), then five groups with different shapes */
.features { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 0 clamp(2rem, 5vw, 4rem); align-items: start; padding-block-start: clamp(1rem, 3vw, 2rem); }
.toc { position: sticky; top: 6rem; display: grid; gap: 0.125rem; }
.toc a { display: block; padding: 0.4rem 0.9rem; border-inline-start: 2px solid var(--line); color: var(--text-muted); text-decoration: none; font-size: 0.9375rem; }
.toc a:hover { color: var(--text); border-inline-start-color: var(--accent); }
.toc-fold { display: none; }
.fgroup + .fgroup { margin-top: var(--section); }
.fg-head { text-align: center; }
.fg-head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.fg-head .lead { margin: 0.75rem auto 0; }
.fg-body { display: grid; gap: 2rem clamp(1.5rem, 4vw, 3rem); margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.fgroup.side .fg-body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.fgroup.side.rev .fg-body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.fgroup.side.rev .fg-text { order: 2; }
.flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 clamp(1.5rem, 4vw, 3rem); }
.fgroup.stack .flist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flist li { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.flist h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.flist p { margin: 0; color: var(--text-muted); }
.fg-body .body-text { margin: 0; padding-block: 1.1rem; border-top: 1px solid var(--line); color: var(--text-muted); max-width: 48rem; }
.fg-action { margin: 1.5rem 0 0; }
@media (max-width: 52rem) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .toc-fold { display: block; position: sticky; top: 3.5rem; z-index: 6; margin-bottom: 1.5rem; background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
  .toc-fold > summary { display: flex; justify-content: space-between; width: 100%; min-height: 2.75rem; padding-inline: 0; border-radius: 0; border-color: transparent; font-weight: 600; }
  .toc-fold > summary:hover, .toc-fold[open] > summary { background: transparent; border-color: transparent; }
  .toc-fold > summary::after { content: ''; width: 0.55rem; height: 0.55rem; border-inline-end: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform 0.2s ease; }
  .toc-fold[open] > summary::after { transform: rotate(-135deg); }
  .toc-fold .pop-panel { inset-inline: 0; display: grid; padding: 0.5rem; }
  .toc-fold .pop-panel a { display: flex; align-items: center; min-height: 2.75rem; padding-inline: 0.9rem; border-radius: calc(var(--radius-control) - 2px); color: var(--text); text-decoration: none; }
  .toc-fold .pop-panel a:hover { background: var(--sunken); }
  .fgroup { scroll-margin-top: 1.5rem; }
  .fgroup.side .fg-body, .fgroup.side.rev .fg-body { grid-template-columns: minmax(0, 1fr); }
  .fgroup.side.rev .fg-text { order: 0; }
  .fgroup.stack .flist { grid-template-columns: minmax(0, 1fr); }
}

/* Pricing: the one plan panel, what you need to start, then questions as <details> */
.plan { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(1.5rem, 5vw, 4rem); padding: clamp(1.5rem, 5vw, 3.5rem); background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-media); }
.plan-price { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.5rem; text-align: center; }
.plan-price .actions { justify-content: center; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0.25rem 0.75rem; }
.price strong { font-family: var(--font-text); font-weight: 600; font-size: clamp(4rem, 12vw, 6.5rem); letter-spacing: -0.04em; line-height: 1; }
.price span { font-size: 1.1875rem; color: var(--text-muted); }
.plan-price p { margin: 0; color: var(--text-muted); }
.pricing-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; max-width: calc(48rem + 2 * var(--gutter)); }
.pricing-split h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); text-align: center; margin-bottom: 0.5rem; }
.plan-head { font-size: clamp(1.75rem, 3.6vw, 2.5rem); text-align: center; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.needs { list-style: none; margin: 0; padding: 0; }
.needs li { padding-block: 1rem; border-top: 1px solid var(--line); }
.needs li:last-child { border-bottom: 1px solid var(--line); }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-block: 0.65rem; padding-inline: 2rem 0; border-top: 1px solid var(--line); overflow-wrap: break-word; }
.checks li:first-child { border-top: 0; }
.checks li::before { content: ''; position: absolute; inset-inline-start: 0.25rem; top: 1.05rem; width: 0.75rem; height: 0.4rem; border-inline-start: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
:dir(rtl) .checks li::before { transform: rotate(45deg); }
@media (max-width: 48rem) { .plan { grid-template-columns: minmax(0, 1fr); } }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem; cursor: pointer; list-style: none; font-family: var(--font-text); font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: none; width: 0.55rem; height: 0.55rem; border-inline-end: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform 0.2s ease; }
.qa details[open] summary::after { transform: rotate(-135deg); }
.qa details p { color: var(--text-muted); padding-bottom: 1.25rem; margin: 0; }

/* Demo: the gallery of every area (inset pictures, two columns, one on phones) and the phone pictures */
.section-head { text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); gap: 3rem clamp(1.5rem, 4vw, 3rem); margin-top: 2.5rem; }
.phones-row { display: grid; grid-template-columns: repeat(2, minmax(0, 15rem)); gap: 1.5rem; justify-content: center; }
.phone-item img { border-radius: var(--radius-phone); }

/* Closing call to action: on the page background, no band, so dark mode is not a special case. */
.closing { margin-top: var(--section); padding-block: var(--section) 0; text-align: center; }
.price-line + .closing { margin-top: 0; }
.closing h2 { max-width: 20ch; margin-inline: auto; }
.closing p { margin: 1rem auto 0; color: var(--text-muted); }
.closing .actions { margin-top: 2rem; justify-content: center; }

/* Footer: on the page background. Brand and a line, two link groups, then look and languages. */
.site-footer { margin-top: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4rem) 2.5rem; font-size: 0.9375rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 5fr); gap: 2.5rem clamp(1.5rem, 4vw, 3rem); }
.foot-brand p { margin: 0.75rem 0 0; color: var(--text-muted); max-width: 22rem; }
.foot-title { margin: 0 0 0.75rem; font-family: var(--font-text); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.125rem; }
.site-footer nav a:not(.brand) { display: inline-flex; align-items: center; min-height: 2rem; color: var(--text-muted); text-decoration: none; }
.site-footer nav a:not(.brand):hover { color: var(--text); text-decoration: underline; }
.foot-look { display: grid; gap: 1.5rem; align-content: start; }
.lang-list { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.lang-list a { display: inline-flex; align-items: center; min-height: 2rem; color: var(--text-muted); text-decoration: none; }
.lang-list a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 60rem) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand, .foot-look { grid-column: 1 / -1; } }
@media (max-width: 40rem) { .foot-grid { grid-template-columns: minmax(0, 1fr); } .lang-list a, .site-footer nav a:not(.brand) { min-height: 2.75rem; } }

/* Not found: the sub-page hero with room below, then the same footer */
.lost { padding-block-end: clamp(4rem, 12vw, 9rem); }

/* Blog: the index (featured post, topic filter, dated list) and the article page. The list is the same .posts list as the Home teaser. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: clip; clip-path: inset(50%); white-space: nowrap; border: 0; }
.chip { display: inline-block; padding: 0.15rem 0.7rem; border-radius: var(--radius-control); background: var(--line); color: var(--text); font-size: 0.8125rem; font-weight: 600; line-height: 1.5; }
.chip.accent { background: var(--accent); color: var(--on-accent); }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section-head h2 { margin-bottom: 0.5rem; }
.section-head .lead { margin: 0 auto; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; margin: 0; }
.featured { text-align: center; }
.featured .post-meta { justify-content: center; }
.featured { position: relative; padding-block: clamp(1.75rem, 5vw, 3rem); border-block: 1px solid var(--line); }
.featured h2 { margin: 1.25rem auto 0; max-width: 22ch; font-size: clamp(2rem, 1.2rem + 3.6vw, 3.5rem); line-height: 1.08; }
.featured h2 a { color: var(--text); text-decoration: none; }
.featured h2 a::after { content: ''; position: absolute; inset: 0; }
.featured h2 a:focus-visible { outline: none; }
.featured:has(h2 a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-control); }
.featured .lead { margin: 1rem auto 0.75rem; }
.featured > p.small { margin: 0 auto; }
.blog-all > .wrap > h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin-bottom: 1.25rem; text-align: center; }
.filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0 0 1rem; padding: 0; border: 0; min-width: 0; }
.filter input { position: absolute; opacity: 0; pointer-events: none; }
.filter label { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.3rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-control); color: var(--text-muted); font-size: 0.9375rem; cursor: pointer; }
.filter label:hover { color: var(--text); border-color: var(--accent); }
.filter input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.filter input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (pointer: coarse) { .filter label { min-height: 2.75rem; } }
.blog-all:has(#f-focus:checked) .posts li:not([data-tag='focus']),
.blog-all:has(#f-adhd:checked) .posts li:not([data-tag='adhd']),
.blog-all:has(#f-product:checked) .posts li:not([data-tag='product']) { display: none; }
.posts.full li { position: relative; }
.posts.full h3 a::after { content: ''; position: absolute; inset: 0; }
.posts.full h3 a:focus-visible { outline: none; }
.posts.full li:has(h3 a:focus-visible) { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: var(--radius-control); }
.posts .post-meta { grid-column: 2; margin-top: 0.5rem; gap: 0.25rem 1rem; }
.posts .post-thumb { grid-column: 2; width: min(100%, 22rem); aspect-ratio: 16 / 9; object-fit: cover; margin-top: 0.75rem; border: 1px solid var(--line); border-radius: var(--radius-media); background: var(--raised); }
@media (max-width: 40rem) { .posts .post-thumb, .posts .post-meta { grid-column: auto; } }

/* The article: header and picture in a 48rem column, the text in a 65ch reading column, all starting at the page gutter. Managed posts
   (backend/src/utils/website-blog.ts) use the same markup. */
.post { padding-block: clamp(2rem, 6vw, 4rem) 0; }
.post .wrap > * { max-width: 48rem; }
.post .crumbs { margin: 0 0 1.5rem; font-size: 0.9375rem; }
.post .crumbs a { color: var(--text-muted); display: inline-block; min-block-size: 1.5rem; }
.post .post-tags { margin: 0 0 1rem; }
.post h1 { font-size: clamp(2.1rem, 1.2rem + 4.2vw, 3.75rem); max-width: 18ch; overflow-wrap: anywhere; hyphens: auto; }
.post .lead { margin: 1.25rem 0 0; }
.post .byline { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 1.5rem 0 0; padding-block: 1rem; border-block: 1px solid var(--line); }
.post .inset-shot { margin-top: 2rem; }
.takeaways { margin-top: 2rem; padding: 0.25rem 0 0.25rem 1.25rem; border-inline-start: 3px solid var(--accent); }
.takeaways h2 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.takeaways ul { margin: 0; padding-inline-start: 1.25rem; }
.takeaways li { margin-block: 0.4rem; }
.post .prose { max-width: 65ch; margin-top: 2.5rem; font-size: 1.1875rem; line-height: 1.7; }
.prose p { margin: 0 0 1.25rem; max-width: none; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); margin: 2.75rem 0 1rem; line-height: 1.2; }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-inline-start: 1.5rem; }
.prose li { margin-block: 0.4rem; }
.prose img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-media); }
.try-note { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.try-note h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.try-note p { margin: 0 0 1rem; }
.related h2 { font-size: 1.5rem; margin-bottom: 1rem; }

/* Browser-language suggestion: the server un-hides one of these from Accept-Language; it only suggests, never redirects. */
.lang-suggest { background: var(--line); color: var(--text); font-size: 1rem; padding-block: 0.6rem; }
.lang-suggest[hidden] { display: none; }
.lang-suggest .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; }
.lang-suggest p { margin: 0; max-width: none; }
.lang-suggest a { color: var(--accent); font-weight: 600; }
.lang-dismiss { font-weight: 400 !important; color: var(--text-muted) !important; }
.shots-note { margin: 0.5rem auto 0; text-align: center; max-width: 38rem; font-size: 0.9375rem; color: var(--text-muted); }

/* Non-Latin scripts: no negative tracking (it disconnects Arabic-script joins and is too tight for CJK/Hebrew/Devanagari). */
:is(:lang(ar), :lang(fa), :lang(ur), :lang(he), :lang(hi), :lang(ja), :lang(ko), :lang(zh)) :is(.brand, .menu-nav a, h1, h2, h3, .statement h2, .jobs a, .qa summary) { letter-spacing: 0; }

/* Features, "Track the time": four areas listed at once (an ARIA tablist), one picture shown at a time. Hover, focus or a tap on an area fades its picture in and the others out
   (site-init.js sets aria-selected on the .show-tab and data-active on its panel); an area with several pictures has arrows. Without script the first picture is shown.
   Under 52rem the picture sticks under the header so the chosen area and its picture are on screen together. */
.show-tab { cursor: pointer; border-radius: 0.25rem; }
.show-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.show-list li { border-top: 2px solid var(--line); transition: border-color 0.3s ease, opacity 0.3s ease; }
.show-list li[aria-selected='true'] { border-top-color: var(--accent); }
.show-list li[aria-selected='false'] { opacity: 0.72; }
.show-list li:hover, .show-list li:focus-visible { opacity: 1; }
.show-stage { position: relative; aspect-ratio: 1440 / 900; }
.show-panel { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0s linear 0.45s; }
.show-panel[data-active] { opacity: 1; visibility: visible; transition: opacity 0.45s ease, visibility 0s; }
html:not(.js) .show-panel:first-child { opacity: 1; visibility: visible; }
.show-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease; }
.show-slide[data-current], html:not(.js) .show-slide:first-child { opacity: 1; }
.show-slide img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.show-nav { position: absolute; inset-inline: 0; inset-block-end: 0.75rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; pointer-events: none; }
.show-nav > * { pointer-events: auto; }
.show-step { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--text); cursor: pointer; box-shadow: var(--shadow); }
.show-step:hover { border-color: var(--accent); }
.show-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.show-step svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.show-step:dir(rtl) svg { transform: scaleX(-1); }
.show-count { min-width: 4.5rem; padding: 0.3rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 0.875rem; text-align: center; color: var(--text-muted); font-variant-numeric: tabular-nums; }
html:not(.js) .show-nav { display: none; }
@media (max-width: 52rem) {
  .show-list li[aria-selected='false'] { opacity: 1; }
  .showcase { order: -1; position: sticky; top: 6.5rem; z-index: 5; padding-block: 0.5rem; background: color-mix(in srgb, var(--page) 94%, transparent); }
}
