/* Product Foundry website. Typography and voice follow product-context/brand/brand.md;
   colours match the Discovery app's olive palette. */

/* Fonts are self-hosted (SIL Open Font License, see /fonts/), so visitors' browsers never contact a third party. */
@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"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations"); 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: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-latin-wght-normal.woff2) format("woff2-variations"); 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: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2-variations"); 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; }
:root {
  --olive-50: #f7f8ef;
  --olive-100: #eef1dc;
  --olive-200: #dce3b9;
  --olive-300: #c3ce8b;
  --olive-400: #a3b25f;
  --olive-500: #82923f;
  --olive-600: #6b7a2f;
  --olive-700: #566227;
  --olive-800: #454f21;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --bg: #fff;
  --text: var(--gray-900);
  --muted: var(--gray-600);
  --primary: var(--olive-600);
  --primary-hover: var(--olive-800);

  --font-body: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Manrope", var(--font-body);
  --radius: 12px;
  --ring: 0 0 0 3px rgba(107, 122, 47, 0.35);
  --ivory: #f7f6f0;
  --error: #b42318;

  /* Line icons for masks (status always has an icon and words): alert, check, shield, Caps Lock, eye, eye off. */
  --icon-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9.5'/%3E%3C/svg%3E");
  --icon-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.5-7 10-4-1.5-7-5.5-7-10V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
  --icon-caps: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4l7 8h-4v4H9v-4H5z'/%3E%3Cpath d='M9 20h6'/%3E%3C/svg%3E");
  --icon-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12c1-2.5 5-7 10-7s9 4.5 10 7c-1 2.5-5 7-10 7S3 14.5 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --icon-eye-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 5.1A10 10 0 0 1 12 5c5 0 9 4.5 10 7a12 12 0 0 1-2.6 3.6M6.6 6.6C4.4 8 2.8 10.2 2 12c1 2.5 5 7 10 7 1.9 0 3.6-.6 5-1.5M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E");

  color-scheme: light;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--primary); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip-link { position: absolute; left: 16px; top: -48px; background: var(--gray-900); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 0.98rem;
  text-decoration: none; border: 1.5px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: transparent; color: var(--gray-900); border-color: var(--olive-600); }
.btn-secondary:hover { background: var(--olive-100); border-color: var(--olive-800); }
.btn-light { background: #fff; color: var(--gray-900); }
.btn-light:hover { background: var(--olive-100); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gray-200); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--gray-900); text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--primary); color: #fff; flex: none; }
.logo-word { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
/* The menu is a popover (no JavaScript): in the header from 721 px, behind the Menu button on phones. Undo the
   browser's popover box here. */
.site-nav { display: flex; gap: 28px; position: static; margin: 0 0 0 auto; padding: 0; border: 0; background: none; color: inherit; width: auto; height: auto; overflow: visible; }
.site-nav a { color: var(--gray-700); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--olive-700); }
.site-nav-join, .menu-toggle { display: none; }
/* Sign in for returning visitors (`header-sign-in`): an outlined button paired with Join the beta on wide screens, a row
   of the menu on phones; neither for a visitor with a session (data-signed-in="hide", on the server). */
.nav-sign-in { display: none; }
.header-sign-in + .btn-primary { margin-left: -20px; }
.menu-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-icon-close, .site-header:has(.site-nav:popover-open) .menu-icon-open { display: none; }
.site-header:has(.site-nav:popover-open) .menu-icon-close { display: inline; }

/* Hero */
.hero { padding: 88px 0 96px; background: linear-gradient(180deg, var(--olive-50), #fff); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.eyebrow { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--olive-700); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.accent { color: var(--primary); }
.lead { font-size: 1.3rem; color: var(--gray-700); margin: 24px 0 32px; max-width: 30ch; }

.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; aspect-ratio: 1; max-width: 400px; justify-self: end; width: 100%; }
.block { border-radius: 14px; background: var(--olive-100); }
.b1 { background: var(--olive-600); }
.b2 { background: var(--olive-200); }
.b3 { background: transparent; border: 2px dashed var(--olive-300); }
.b4 { background: var(--olive-300); }
.b5 { background: var(--gray-900); }
.b6 { background: var(--olive-500); }
.b7 { background: transparent; border: 2px dashed var(--olive-300); }
.b8 { background: var(--olive-700); }
.b9 { background: var(--olive-200); }

/* Sections */
.section { padding: 96px 0; }
.section-tinted { background: var(--gray-50); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2, .who h2, .cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; }
.section-lead { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }

/* Who we are (`home-page`) */
.section { scroll-margin-top: 68px; }
.who { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.who-text { font-size: 1.15rem; color: var(--gray-700); }

/* Our products: one card per product. Status is an icon and words, never colour alone. */
.portfolio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.portfolio-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; }
.portfolio-card h3 { font-size: 1.5rem; font-weight: 800; }
.portfolio-card .product-head { gap: 12px; margin: 8px 0 0; }
.portfolio-card > p { color: var(--muted); }
.portfolio-card .portfolio-for { color: var(--olive-700); font-weight: 600; font-size: 0.92rem; }
.portfolio-card .actions { margin-top: auto; padding-top: 12px; }
.portfolio-next { background: transparent; border: 2px dashed var(--olive-300); }
.portfolio-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portfolio-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--olive-600); color: #fff; }
.portfolio-icon-next { background: var(--olive-100); color: var(--olive-700); }
/* The badges under a product's name (`product-badges`): .status (Exploring) and .tag-intel share one size. */
.status, .tag-intel { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; line-height: 1; white-space: nowrap; }
.status { color: var(--olive-800); background: var(--olive-100); }
.status::before { content: ""; width: 13px; height: 13px; flex: none; background: currentColor; -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat; }
.status-exploring { color: var(--gray-700); background: var(--gray-100); }
.status-exploring::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E"); }

/* What we're building: Discovery */
.product { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
/* A product's name, then one row of its badges under it (`product-badges`): on the Discovery page and on the home
   page's cards alike. */
.product-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.product-head h3 { font-size: 2rem; font-weight: 800; }
.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* A product's name with "by Product Foundry" smaller on the line under it, as in the app's brand mark (brand guide,
   "Naming Discovery"). The space between the two spans keeps the heading's text "Discovery by Product Foundry". */
.product-by { display: block; margin-top: 6px; font-family: var(--font-body); font-size: max(0.32em, 0.95rem); font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--gray-600); }

.preview-window { border-radius: 14px; background: #fff; border: 1px solid var(--gray-200); box-shadow: 0 24px 48px rgba(17, 24, 39, 0.1); overflow: hidden; }
.preview-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--gray-900); }
.preview-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-600); }

/* Discovery's built-in intelligence: a badge under its name, a sparkle and words (size with .status above). */
.tag-intel { background: var(--olive-800); color: #fff; }
.tag-intel::before { content: ""; width: 13px; height: 13px; flex: none; background: var(--olive-200); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2l2.2 6.3L20.5 10.5l-6.3 2.2L12 19l-2.2-6.3L3.5 10.5l6.3-2.2z'/%3E%3Cpath d='M19 15l.9 2.1L22 18l-2.1.9L19 21l-.9-2.1L16 18l2.1-.9z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2l2.2 6.3L20.5 10.5l-6.3 2.2L12 19l-2.2-6.3L3.5 10.5l6.3-2.2z'/%3E%3Cpath d='M19 15l.9 2.1L22 18l-2.1.9L19 21l-.9-2.1L16 18l2.1-.9z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* The film of the discovery agent (/film.js). The page's own state is the complete last frame, so it reads without
   JavaScript; only while it plays (.af-live) do parts wait their turn. Each part keeps its space and only fades in, so
   the window never changes height. */
.agent-film { position: relative; margin: 0; min-width: 0; }
.agent-film figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 12px; text-align: center; }
.af-title { margin-left: 10px; color: var(--gray-300); font-size: 0.72rem; font-weight: 600; line-height: 9px; }
.af-screen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px; font-size: 0.8rem; }
.af-looking { color: var(--muted); font-size: 0.74rem; }
.af-looking strong { color: var(--text); }
.af-input { display: flex; align-items: center; min-height: 40px; padding: 6px 6px 6px 12px; border: 1.5px solid var(--gray-300); border-radius: 10px; }
.af-typed { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-caret { display: none; width: 1.5px; height: 1.1em; margin-left: 1px; background: var(--text); animation: af-blink 1s steps(1) infinite; }
@keyframes af-blink { 50% { opacity: 0; } }
.af-send { margin-left: auto; padding: 5px 12px; border-radius: 7px; background: var(--olive-800); color: #fff; font-weight: 600; transition: background 0.2s; }
.af-reading { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.74rem; }
.af-reading::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--olive-700); -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat; }
.af-reading-busy { display: none; }
.af-point { display: grid; gap: 6px; padding: 10px 12px; border-left: 3px solid var(--olive-500); background: var(--olive-50); border-radius: 0 8px 8px 0; }
.af-point q { color: var(--gray-700); font-style: italic; }
.af-evidence { display: flex; flex-wrap: wrap; gap: 6px; }
.af-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--olive-200); border-radius: 999px; background: #fff; color: var(--olive-800); font-size: 0.7rem; font-weight: 600; }
.af-chip::before { content: ""; width: 10px; height: 10px; flex: none; background: currentColor; -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat; }
.af-check { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--gray-700); font-size: 0.76rem; }
.af-not { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #fffaeb; color: #93370d; font-size: 0.7rem; font-weight: 700; }
.af-not::before { content: ""; width: 11px; height: 11px; flex: none; background: currentColor; -webkit-mask: var(--icon-alert) center / contain no-repeat; mask: var(--icon-alert) center / contain no-repeat; }
.af-opp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: 8px; }
.af-opp-text { display: grid; flex: 1 1 160px; min-width: 0; }
.af-opp-label { color: var(--muted); font-size: 0.7rem; }
.af-add, .af-added { padding: 5px 10px; border-radius: 7px; font-size: 0.74rem; font-weight: 600; white-space: nowrap; }
.af-add { display: none; border: 1.5px solid var(--olive-600); color: var(--gray-900); transition: background 0.2s, transform 0.2s; }
.af-added { display: inline-flex; align-items: center; gap: 4px; background: var(--olive-600); color: #fff; }
.af-added::before { content: ""; width: 11px; height: 11px; flex: none; background: currentColor; -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat; }

.af-live [data-at] { transition: opacity 0.4s, transform 0.4s; }
.af-live [data-at]:not(.af-on) { opacity: 0; transform: translateY(6px); }
.af-so-far { display: none; }
.af-live .af-typing .af-question { display: none; }
.af-live .af-typing .af-so-far { display: inline; }
.af-live .af-typing .af-caret { display: inline-block; vertical-align: middle; }
.af-live .af-typing .af-send { background: var(--olive-600); }
.af-live .af-busy::before { border: 2px solid var(--olive-600); border-right-color: transparent; border-radius: 50%; background: none; -webkit-mask: none; mask: none; animation: spin 0.8s linear infinite; }
.af-live .af-busy .af-reading-busy { display: inline; }
.af-live .af-busy .af-reading-done { display: none; }
.af-live .af-add.af-shown { display: inline-block; }
.af-live .af-add.af-pressed { background: var(--olive-100); transform: scale(0.96); }
.af-live .af-added:not(.af-on) { display: none; }

/* Pause or play: a small icon button over the window's title bar (it moves on its own for more than 5 s). Its name is
   the one of its two words that applies; the other is display: none, so screen readers hear only that one. */
.af-play { position: absolute; top: 4px; right: 6px; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--gray-300); cursor: pointer; }
.af-play:hover { background: var(--gray-700); color: #fff; }
.af-play:focus-visible { box-shadow: 0 0 0 2px var(--olive-300); }
.af-play::before { content: ""; width: 10px; height: 12px; border-inline: 3px solid currentColor; box-sizing: border-box; }
.af-play[data-playing="false"]::before { width: 0; border: 0; border-left: 10px solid currentColor; border-block: 6px solid transparent; }
.af-play[data-playing="true"] .af-name-play, .af-play[data-playing="false"] .af-name-pause { display: none; }
.af-play[hidden] { display: none; }
/* Text for screen readers only (as .sr-only in shared/ui/ui.css, which the website doesn't load). */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Call to action */
.cta { background: var(--gray-900); color: #fff; padding: 80px 0; scroll-margin-top: 68px; }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 56px; }
.cta-copy p { color: var(--gray-300); margin-top: 12px; max-width: 52ch; }
.cta .cta-small { font-size: 0.88rem; color: var(--gray-400); }
.cta-copy a:not(.btn) { color: var(--olive-200); }

.beta-panel { margin-top: 28px; background: var(--gray-800); border: 1px solid var(--gray-700); border-radius: var(--radius); padding: 28px; }
.beta-panel h3 { color: #fff; font-size: 1.15rem; }
.beta-panel ol { margin: 12px 0 0; padding-left: 1.2em; color: var(--gray-300); display: grid; gap: 8px; }

/* Page not found (404.html, search-visibility): the hero's layout, with the block grid missing its middle piece */
.not-found { padding: 88px 0 104px; background: linear-gradient(180deg, var(--olive-50), #fff); }
.not-found-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.not-found h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.not-found-text { font-size: 1.2rem; color: var(--gray-700); margin: 20px 0 32px; max-width: 38ch; }
.not-found-art { max-width: 320px; }
.not-found-gap { background: transparent; border: 2px dashed var(--olive-400); }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--gray-200); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.logo-small .logo-mark { width: 28px; height: 28px; border-radius: 7px; }
.logo-small .logo-word { font-size: 1rem; }
.tagline { color: var(--muted); font-size: 0.9rem; }
.copyright { margin-left: auto; color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: 8px; color: var(--gray-700); font-size: 0.9rem; }
.footer-links a:hover { background: var(--gray-100); color: var(--gray-900); }

/* Legal pages (`gdpr-compliance`): one readable column. The retention table scrolls inside its frame, never the page. */
.legal { padding: 56px 0 88px; }
.legal-inner { max-width: 72ch; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; }
.legal h2 { font-size: 1.35rem; font-weight: 800; margin: 40px 0 12px; scroll-margin-top: 68px; }
.legal h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 6px; }
.legal p, .legal li { color: var(--gray-700); }
.legal p + p { margin-top: 12px; }
.legal a, .form-legal a { color: var(--olive-800); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-updated { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.legal .legal-lead { font-size: 1.15rem; margin-top: 20px; }
.legal-list { margin: 12px 0 0; padding-left: 1.25em; display: grid; gap: 8px; }
.legal-table-wrap { margin: 16px 0; overflow-x: auto; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.legal-table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: 0.95rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--gray-200); color: var(--gray-700); }
.legal-table thead th { border-top: 0; background: var(--gray-50); font-weight: 700; color: var(--gray-900); }
.legal-table tbody th { font-weight: 500; color: var(--gray-900); }
.legal-fields { display: grid; gap: 14px; margin: 24px 0 0; }
.legal-field { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); gap: 4px 16px; }
.legal-field dt { font-weight: 700; color: var(--gray-900); }
.legal-field dd { margin: 0; color: var(--gray-700); overflow-wrap: anywhere; }
.form-legal { margin-top: 12px; }
@media (max-width: 560px) { .legal-field { grid-template-columns: minmax(0, 1fr); } }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-inner, .product, .who, .cta-inner, .not-found-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 280px; justify-self: start; }
  .not-found-art { max-width: 200px; }
  .not-found { padding: 56px 0 64px; }
  .section { padding: 64px 0; }
}
/* The header's Menu (`phone-menu`) from 900 px down: below about 810 px the menu, with Pricing (`pricing`), no longer
   fits one row, and German needs more room. The logo, Join for free and Menu don't fit one row at 390 px, so Join for
   free ends the menu instead. */
@media (max-width: 900px) {
  .site-nav, .header-inner > .btn-primary { display: none; }
  .menu-toggle { display: inline-flex; min-height: 44px; }
  .site-nav:popover-open { display: flex; flex-direction: column; gap: 4px; position: fixed; inset: 69px 0 auto; max-height: calc(100dvh - 69px); overflow-y: auto; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--gray-200); box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08); }
  .site-nav:popover-open a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 8px; font-size: 1rem; }
  .site-nav:popover-open a:hover { background: var(--olive-50); }
  .site-nav:popover-open a[aria-current="page"] { font-weight: 700; text-decoration: none; background: var(--olive-50); box-shadow: inset 3px 0 0 var(--olive-600); }
  .header-inner > .header-sign-in { display: none; }
  .site-nav:popover-open .nav-sign-in { margin-top: 4px; border-top: 1px solid var(--gray-200); border-radius: 0 0 8px 8px; color: var(--gray-900); font-weight: 600; }
  .site-nav:popover-open .site-nav-join { justify-content: center; margin-top: 8px; color: #fff; }
  .site-nav:popover-open .site-nav-join:hover { background: var(--primary-hover); }
  .header-inner { justify-content: space-between; }
}
@media (max-width: 720px) {
  .copyright { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* German runs about 30% longer, with long compounds: hyphenate (by the page's lang) rather than overflow, but only
   words of 10+ letters, keeping 4 on each side, so ordinary words aren't split. */
:lang(de) { hyphens: auto; overflow-wrap: break-word; hyphenate-limit-chars: 10 4 4; }
/* Headings break only between words (a hyphenated headline reads badly); very long compounds still wrap. */
:lang(de) :is(h1, h2, h3) { hyphens: manual; }

/* Language switch in the footer: each language named in its own language; the active one is underlined and bold. */
.lang-switch { display: flex; gap: 4px; }
.lang-option { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: 8px; color: var(--gray-700); font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.lang-option:hover { background: var(--gray-100); color: var(--gray-900); }
.lang-option[aria-current="true"] { color: var(--olive-800); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Account pages (join, sign in, forgot and reset password, confirm email): one card, one task, on warm ivory.
   Sign in adds the brand panel beside the card (`sign-in-page`). Icons are masks of line icons in the text's colour, so status
   always has an icon and words, never colour alone. */
.auth-page { background: var(--ivory); }
.header-action { margin-left: auto; }
.auth-main { padding: 40px 16px 80px; min-height: calc(100vh - 68px - 120px); }
.auth-card { width: min(460px, 100%); margin-inline: auto; background: #fff; border: 1px solid var(--gray-200); border-radius: 20px; padding: 40px; box-shadow: 0 1px 2px rgba(32, 34, 28, 0.04), 0 12px 32px rgba(32, 34, 28, 0.06); }
.auth-card h1 { font-size: clamp(1.75rem, 5vw, 2rem); font-weight: 800; }
.auth-card h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; }
.auth-lead { color: var(--muted); font-size: 1.05rem; margin: 8px 0 28px; }
.auth-form { display: grid; gap: 20px; }
.auth-form[hidden], .auth-done[hidden], .auth-expired[hidden] { display: none; }
.auth-done, .auth-expired { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 10px 14px; font: inherit; color: var(--text); background: #fff;
  border: 1.5px solid var(--gray-400); border-radius: 12px; transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:hover, .field textarea:hover { border-color: var(--gray-500); }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--olive-600); box-shadow: var(--ring); }
.field textarea { resize: vertical; min-height: 92px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
/* Show or hide the password: a button inside the field, with an eye icon and a word. */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 8.25rem; }
.password-toggle {
  position: absolute; top: 3px; right: 3px; bottom: 3px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px;
  font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--olive-800); background: transparent; border: 0; border-radius: 9px; cursor: pointer;
}
.password-toggle:hover { background: var(--olive-50); }
.password-toggle::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--icon-eye) center / contain no-repeat; mask: var(--icon-eye) center / contain no-repeat; }
.password-toggle[data-shown="true"]::before { -webkit-mask-image: var(--icon-eye-off); mask-image: var(--icon-eye-off); }
.field-hint { color: var(--muted); font-size: 0.85rem; }
.field-error, .caps-hint, .turnstile-note { display: flex; align-items: flex-start; gap: 6px; }
.field-error::before, .caps-hint::before, .turnstile-note::before, .form-error::before, .notice-ok::before, .notice-warning::before {
  content: ""; width: 1.15em; height: 1.15em; margin-top: 0.15em; flex: none; background: currentColor;
  -webkit-mask: var(--icon-alert) center / contain no-repeat; mask: var(--icon-alert) center / contain no-repeat;
}
.caps-hint { color: var(--gray-700); font-weight: 500; }
.caps-hint::before { -webkit-mask-image: var(--icon-caps); mask-image: var(--icon-caps); }
.turnstile-note { margin-top: -6px; font-size: 0.82rem; }
.turnstile-note::before { -webkit-mask-image: var(--icon-shield); mask-image: var(--icon-shield); }
.field-error, .form-error { color: var(--error); font-size: 0.9rem; font-weight: 600; }
/* The message above a form: icon, words, and (sign in) the link to reset the password on the next line. */
.form-error { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 2px 10px; padding: 12px 14px; background: #fef3f2; border: 1px solid #fecdca; border-radius: 12px; }
.form-error::before { grid-row: 1; grid-column: 1; }
.form-error > * { grid-column: 2; }
.form-error a { color: #7a1a12; font-weight: 600; }
.form-ok { color: var(--olive-800); font-weight: 600; font-size: 0.9rem; }
.form-ok:empty { display: none; }
.field-error[hidden], .form-error[hidden], .notice[hidden], .field-hint[hidden] { display: none; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--olive-50); border: 1px solid var(--olive-200); color: var(--gray-800); margin-bottom: 20px; }
.notice-ok::before { color: var(--olive-700); -webkit-mask-image: var(--icon-check); mask-image: var(--icon-check); }
.notice-warning { background: #fffaeb; border-color: #fedf89; }
.notice-warning::before { color: #93370d; }
.btn-block { width: 100%; }
.auth-form .btn-block { min-height: 52px; font-size: 1rem; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
/* Busy: the button says what is happening, with a spinner that stands still when motion is reduced. */
.btn[aria-busy="true"] { opacity: 1; }
.btn[aria-busy="true"]::before { content: ""; width: 1em; height: 1em; flex: none; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn[aria-busy="true"]::before { animation: none; } }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
.turnstile:empty { display: none; }
.auth-forgot { margin-top: -10px; text-align: right; font-size: 0.92rem; font-weight: 500; }
.auth-alt { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--gray-200); text-align: center; color: var(--muted); font-size: 0.95rem; }
.auth-alt a { font-weight: 600; hyphens: manual; } /* never "Product-Foundry" */
.muted { color: var(--muted); }
/* Google sign-in (`google-sign-in`): Google's own button style, white with a grey border and the coloured G. On sign in
   and join it comes first, then "or" between two hairlines, then the password form (`google-sign-in-live`). */
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
.auth-card > .btn-google { min-height: 52px; font-size: 1rem; }
.auth-google { display: grid; gap: 10px; }
.auth-google .btn-block { min-height: 52px; font-size: 1rem; }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.auth-form .auth-or { margin: 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--gray-200); }
.btn-google:hover { background: #f8f9fa; }
.btn-google[aria-busy="true"] img { display: none; }
.auth-card > .form-error { margin-bottom: 20px; }
.google-progress { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 1.5em; font-weight: 600; }
.google-progress[aria-busy="true"]::before { content: ""; width: 1em; height: 1em; flex: none; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .google-progress[aria-busy="true"]::before { animation: none; } }
/* Sign in (`sign-in-page`): the card and, from 961px, the brand panel beside it. */
.auth-split { width: min(1120px, 100%); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 40px; align-items: stretch; }
.auth-split .auth-card { width: 100%; }
.auth-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 48px; border-radius: 20px; background: var(--olive-800); color: var(--ivory); }
.auth-aside-mark { position: absolute; top: -60px; right: -60px; width: 340px; height: 340px; color: var(--olive-100); opacity: 0.1; pointer-events: none; }
.auth-aside-eyebrow { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--olive-200); }
.auth-aside-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--olive-300); }
.auth-aside-body { position: relative; display: grid; gap: 20px; max-width: 34rem; }
.auth-aside-tagline { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1.05; letter-spacing: -0.02em; hyphens: manual; }
.auth-aside-tagline span { display: block; }
.auth-aside-tagline .accent { color: var(--olive-300); }
.auth-aside-lead { font-size: 1.1rem; line-height: 1.55; color: var(--olive-100); }
@media (max-width: 960px) {
  .auth-split { grid-template-columns: minmax(0, 1fr); }
  .auth-split .auth-card { width: min(460px, 100%); }
  .auth-aside { display: none; }
}
/* Join the beta (`open-beta`): a light card on the dark #beta section, so the form reads like the account pages. */
.join-card { color: var(--text); margin-inline: 0; justify-self: end; }
.join-card h3 { font-size: 1.35rem; font-weight: 800; }
.join-card h3:focus { outline: none; }
.join-card .auth-alt { margin-top: 18px; }
.join-card .join-sign-in { margin-top: 6px; }
/* For a signed-in visitor (`signed-in-website`), the card says so and offers the way back instead of the form. */
.signed-in-card { display: grid; gap: 4px; }
.signed-in-card .auth-lead { margin-bottom: 16px; }
/* Contact (`contact-us`): what we help with on the left, the email card on the right; stacked below 900 px. */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 56px; }
.contact-inner h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; }
.contact-reply { margin-top: 20px; color: var(--gray-700); font-weight: 500; }
.contact-card { justify-self: end; margin-inline: 0; }
.contact-card h3 { font-size: 1.35rem; font-weight: 800; }
.contact-card .auth-lead { margin-bottom: 24px; }
.contact-card .btn-block { min-height: 52px; font-size: 1rem; }
.contact-address { margin-top: 20px; color: var(--muted); font-size: 0.92rem; overflow-wrap: anywhere; }
.contact-address a { color: var(--olive-800); font-weight: 600; }
@media (max-width: 900px) {
  .join-card, .contact-card { justify-self: stretch; width: 100%; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 480px) {
  .auth-main { padding: 16px 16px 48px; }
  .auth-card { padding: 28px 18px; border-radius: 16px; }
  .header-inner { gap: 12px; }
}

/* The blog (`blog`): the Blog page's cards and the article pages, written by node scripts/blog-import.mjs. */
.site-nav a[aria-current="page"] { color: var(--gray-900); font-weight: 700; text-decoration: underline; text-decoration-color: var(--olive-600); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.blog { padding: 56px 0 88px; }
.blog-head > * { max-width: 72ch; }
.blog-head h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; }
.blog-lead { font-size: 1.15rem; color: var(--gray-700); margin-top: 16px; }
.blog-list { margin-top: 48px; }
/* A card is one link: the title's ::after covers the card, and the card shows the focus ring. */
.blog-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; overflow: hidden; }
.blog-card:hover { border-color: var(--olive-400); }
.blog-card:focus-within { box-shadow: var(--ring); }
.blog-card-picture { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--olive-100); }
.blog-card-tile { display: grid; place-items: center; color: var(--olive-600); }
.blog-card-body { padding: 20px 22px 24px; }
.blog-card h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; overflow-wrap: anywhere; }
.blog-card a { color: var(--gray-900); text-decoration: none; }
.blog-card a:hover { text-decoration: underline; text-decoration-color: var(--olive-600); text-underline-offset: 3px; }
.blog-card a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.blog-card a:focus-visible { box-shadow: none; }
.blog-meta { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.blog-summary { color: var(--gray-700); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article { padding: 40px 0 72px; }
.article-inner { max-width: 72ch; }
.article-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--olive-800); font-weight: 600; text-decoration: none; }
.article-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-head { margin-top: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--gray-200); }
.article-head h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; overflow-wrap: anywhere; }
.article-subtitle { font-size: 1.2rem; color: var(--gray-700); margin-top: 12px; }
.article-meta { color: var(--muted); margin-top: 16px; }
.article-in-english { margin-top: 24px; padding: 12px 16px; border-radius: var(--radius); background: var(--olive-50); border: 1px solid var(--olive-200); color: var(--gray-800); }
.article-body { margin-top: 32px; font-size: 1.1rem; line-height: 1.7; color: var(--gray-800); overflow-wrap: break-word; }
.article-body > * + * { margin-top: 18px; }
.article-body h2, .article-body h3, .article-body h4 { color: var(--gray-900); font-weight: 800; line-height: 1.3; margin-top: 36px; }
.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.25rem; }
.article-body h4 { font-size: 1.1rem; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: 6px; }
.article-body li > p { margin: 0; }
.article-body a { color: var(--olive-800); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.article-body blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--olive-400); color: var(--gray-700); font-style: italic; }
.article-body figure { margin: 28px 0; }
.article-body img { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: var(--radius); }
.article-body figcaption { margin-top: 8px; color: var(--muted); font-size: 0.9rem; text-align: center; }
.article-body .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.article-body hr { border: 0; border-top: 1px solid var(--gray-200); margin: 36px 0; }
.article-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--gray-200); }
.article-pager:empty { display: none; }
.article-pager-link { display: grid; gap: 4px; min-height: 44px; padding: 16px 18px; border: 1px solid var(--gray-200); border-radius: var(--radius); color: var(--gray-900); text-decoration: none; }
.article-pager-link:hover { border-color: var(--olive-400); background: var(--olive-50); }
.article-pager-older { grid-column: 2; text-align: right; }
.article-pager-label { color: var(--muted); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.article-pager-title { font-weight: 700; overflow-wrap: anywhere; }
.blog-cta { padding: 56px 0; }
.blog-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
@media (max-width: 960px) { .blog-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .blog { padding: 40px 0 64px; }
  .blog-cards { grid-template-columns: minmax(0, 1fr); }
  .article-body { font-size: 1.05rem; }
  .article-pager { grid-template-columns: minmax(0, 1fr); }
  .article-pager-older { grid-column: auto; text-align: left; }
}

/* The header's lists, Our products (`discovery-page`) and About us (`about-menu`): a button that opens its list under it,
   a native popover placed with CSS anchor positioning (a browser without it shows the list centred, still usable). Each
   list names its own anchor. About us opens leftwards from its right edge, so it stays on the page beside Join the beta.
   At 900 px and below, inside Menu, each list shows open under its label instead. A new product adds one line. */
.nav-group { display: flex; align-items: center; }
.nav-group-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--gray-700); font: inherit; font-weight: 500; font-size: 0.95rem; cursor: pointer; }
.nav-group-toggle:hover { color: var(--olive-700); }
.nav-group-toggle:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
.nav-group-toggle[data-current] { color: var(--gray-900); font-weight: 700; }
.nav-chevron { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.nav-group:has(.nav-sub:popover-open) .nav-chevron { transform: rotate(180deg); }
.nav-group-label { display: none; }
.nav-sub { position-area: bottom span-right; inset: auto; margin: 12px 0 0 -14px; min-width: 240px; padding: 6px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; color: inherit; box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12); }
.nav-sub:popover-open { display: flex; flex-direction: column; gap: 2px; }
[popovertarget="products-menu"] { anchor-name: --products; }
#products-menu { position-anchor: --products; }
[popovertarget="about-menu"] { anchor-name: --about; }
#about-menu { position-anchor: --about; position-area: bottom span-left; margin: 12px -14px 0 0; }
.site-nav .nav-sub a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 8px; }
.site-nav .nav-sub a:hover { background: var(--olive-50); }
.site-nav .nav-sub a[aria-current="page"] { text-decoration: none; background: var(--olive-50); box-shadow: inset 3px 0 0 var(--olive-600); }
@media (prefers-reduced-motion: reduce) { .nav-chevron { transition: none; } }
@media (max-width: 900px) {
  .site-nav:popover-open .nav-group { display: block; }
  .nav-group-toggle { display: none; }
  .nav-group-label { display: block; margin: 8px 14px 2px; color: var(--gray-500); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
  .site-nav:popover-open .nav-sub a { min-height: 48px; }
  .nav-sub, .nav-sub:popover-open { display: flex; flex-direction: column; gap: 4px; position: static; margin: 0; padding: 0 0 4px 12px; min-width: 0; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  #about-menu { margin: 0; }
}
@media (max-width: 720px) {
  /* A product card's buttons: stacked, full width and 48 px tall, so neither is squeezed beside the other. */
  .portfolio-card .actions { flex-direction: column; }
  .portfolio-card .actions .btn { justify-content: center; min-height: 48px; font-size: 1rem; }
}

/* The Discovery page (`discovery-page`): numbered steps beside the film, the comparison table (the legal pages' table,
   with Discovery's column marked), and the questions, always visible. */
.dp-hero { padding: 72px 0 80px; }
.dp-crumbs a { color: inherit; }
.dp-hero .product-head { margin: 0; }
.dp-lead { max-width: 46ch; }
.dp-answers { display: grid; gap: 12px; }
.dp-answers h3 { margin-top: 16px; font-size: 1.25rem; font-weight: 800; }
.dp-answers p { color: var(--gray-700); }
.dp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; counter-reset: dp-step; }
.dp-steps li { position: relative; padding-left: 56px; counter-increment: dp-step; }
.dp-steps li::before { content: counter(dp-step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--olive-100); color: var(--olive-800); font-weight: 800; }
.dp-steps h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.dp-steps p { color: var(--gray-700); }
.dp-compare td:nth-child(2) { font-weight: 600; color: var(--gray-900); background: var(--olive-50); }
.dp-compare thead th:nth-child(2) { background: var(--olive-100); }
.dp-compare-note { margin: 12px 0 0; font-size: 0.85rem; color: var(--muted); }
.dp-faq { margin: 0; display: grid; }
.dp-faq > div { padding: 18px 0; border-top: 1px solid var(--gray-200); }
.dp-faq > div:last-child { border-bottom: 1px solid var(--gray-200); }
.dp-faq dt { font-weight: 700; font-size: 1.08rem; color: var(--gray-900); }
.dp-faq dd { margin: 6px 0 0; color: var(--gray-700); }
.legal-table-wrap[tabindex]:focus-visible { outline: none; box-shadow: var(--ring); }
.dp-platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.dp-badge { display: inline-block; border-radius: 10px; }
/* The badges have different shapes, so they share a height and each is as wide as its shape needs (owner, 2026-11-01). */
.dp-badge img { display: block; height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.dp-badge:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff; }

/* The Pricing page (`pricing`): the home page's product cards, each with its price line and a ticked list of what's
   included. The cards keep their own height, two side by side up to 960 px. */
.pr-plans { padding-top: 0; }
.pr-plans .portfolio { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); max-width: 960px; align-items: start; }
.portfolio-card .pr-name { font-size: 1.5rem; font-weight: 800; }
.pr-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 6px 0 4px; color: var(--gray-700); }
.pr-price strong { font-size: 2.5rem; line-height: 1.1; font-weight: 800; color: var(--gray-900); }
.portfolio-card .pr-included-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500); margin-top: 8px; }
.pr-included { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--gray-700); }
.pr-included li { display: flex; gap: 10px; }
.pr-included li::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: 2px; background: var(--olive-600); -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat; }
.dp-faq .dp-faq-link { display: block; width: fit-content; margin-top: 6px; color: var(--olive-800); font-weight: 600; }
