/* GENERATED: concatenation of css/tokens.css, css/themes.css, css/base.css, css/components.css, css/motion.css, css/pages.css, css/player.css, css/music.css, css/content.css (tools/build-site.mjs). Edit the parts. */
/* =====================================================================
   Dialer's Apps design tokens: Material 3 Expressive, dark-first.
   - Colour roles use MD3 names. The hub palette is the default; product
     pages swap in a .theme-<id> class from css/themes.css (generated by
     tools/build-site.mjs from each icon's seed colour).
   - Type: Roboto Flex (self-hosted latin subset, SIL OFL 1.1,
     https://fonts.google.com/specimen/Roboto+Flex/license). Emphasized
     styles = heavier wght + wider wdth.
   - Motion: M3 Expressive springs sampled into CSS linear() easings.
   ===================================================================== */

@font-face {
  font-family: "Roboto Flex";
  src: url("/fonts/roboto-flex-latin.woff2") format("woff2");
  font-weight: 400 1000;
  font-stretch: 100% 130%;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  color-scheme: dark;

  /* ---- Colour roles: hub (seed #E2283C logo red, tertiary = logo ring blue) ---- */
  --primary: #FFB3AE;
  --on-primary: #680011;
  --primary-container: #B3102A;
  --on-primary-container: #FFDAD7;
  --secondary-container: #373B52;
  --on-secondary-container: #DDE1FA;
  --tertiary: #A9C7FF;
  --on-tertiary: #003063;
  --tertiary-container: #1F4D97;
  --on-tertiary-container: #D6E3FF;
  --surface: #111318;
  --surface-container-lowest: #0C0E13;
  --surface-container-low: #191C22;
  --surface-container: #1D2026;
  --surface-container-high: #282A31;
  --surface-container-highest: #33353C;
  --on-surface: #E2E2E9;
  --on-surface-variant: #C4C6D0;
  --outline: #8E9099;
  --outline-variant: #44474F;
  --scrim: rgb(0 0 0 / .6);
  --device-bezel: #07080B;

  /* ---- Type ---- */
  --font: "Roboto Flex", "Google Sans Flex", "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* ---- Shape: corner tokens ---- */
  --shape-xs: 4px;
  --shape-sm: 8px;
  --shape-md: 12px;      /* chips */
  --shape-lg: 16px;      /* fields */
  --shape-xl: 28px;      /* cards */
  --shape-xl-hover: 40px;
  --shape-xxl: 48px;     /* bands, hero frames */
  --shape-full: 999px;
  --shape-press: 14px;   /* pill squashes to this on press */

  /* ---- Shape: expressive polygons (60 points so CSS can interpolate between them) ---- */
  --shape-circle: polygon(50.0% 0.0%,55.2% 0.3%,60.4% 1.1%,65.5% 2.4%,70.3% 4.3%,75.0% 6.7%,79.4% 9.5%,83.5% 12.8%,87.2% 16.5%,90.5% 20.6%,93.3% 25.0%,95.7% 29.7%,97.6% 34.5%,98.9% 39.6%,99.7% 44.8%,100.0% 50.0%,99.7% 55.2%,98.9% 60.4%,97.6% 65.5%,95.7% 70.3%,93.3% 75.0%,90.5% 79.4%,87.2% 83.5%,83.5% 87.2%,79.4% 90.5%,75.0% 93.3%,70.3% 95.7%,65.5% 97.6%,60.4% 98.9%,55.2% 99.7%,50.0% 100.0%,44.8% 99.7%,39.6% 98.9%,34.5% 97.6%,29.7% 95.7%,25.0% 93.3%,20.6% 90.5%,16.5% 87.2%,12.8% 83.5%,9.5% 79.4%,6.7% 75.0%,4.3% 70.3%,2.4% 65.5%,1.1% 60.4%,0.3% 55.2%,0.0% 50.0%,0.3% 44.8%,1.1% 39.6%,2.4% 34.5%,4.3% 29.7%,6.7% 25.0%,9.5% 20.6%,12.8% 16.5%,16.5% 12.8%,20.6% 9.5%,25.0% 6.7%,29.7% 4.3%,34.5% 2.4%,39.6% 1.1%,44.8% 0.3%);
  --shape-cookie9: polygon(50.0% 0.0%,55.1% 1.8%,59.4% 5.9%,63.2% 9.4%,67.6% 10.5%,73.1% 9.9%,79.0% 10.1%,83.3% 13.0%,85.2% 18.3%,85.6% 24.1%,86.8% 28.7%,90.2% 32.1%,95.1% 35.3%,98.7% 39.6%,99.0% 44.8%,96.3% 50.0%,93.0% 54.5%,91.8% 58.9%,92.9% 63.9%,94.3% 69.7%,93.3% 75.0%,89.2% 78.5%,83.5% 80.2%,78.6% 81.7%,75.4% 85.0%,73.1% 90.1%,70.0% 95.0%,65.4% 97.4%,59.9% 96.4%,54.6% 93.8%,50.0% 92.5%,45.4% 93.8%,40.1% 96.4%,34.6% 97.4%,30.0% 95.0%,26.9% 90.1%,24.6% 85.0%,21.4% 81.7%,16.5% 80.2%,10.8% 78.5%,6.7% 75.0%,5.7% 69.7%,7.1% 63.9%,8.2% 58.9%,7.0% 54.5%,3.8% 50.0%,1.0% 44.8%,1.3% 39.6%,4.9% 35.3%,9.8% 32.1%,13.2% 28.7%,14.4% 24.1%,14.8% 18.3%,16.7% 13.0%,21.0% 10.1%,26.9% 9.9%,32.4% 10.5%,36.8% 9.4%,40.6% 5.9%,44.9% 1.8%);
  --shape-cookie12: polygon(50.0% 0.0%,55.0% 2.0%,59.5% 5.5%,64.1% 6.7%,69.6% 5.9%,75.0% 6.7%,78.4% 10.9%,80.4% 16.2%,83.8% 19.6%,89.1% 21.6%,93.3% 25.0%,94.1% 30.4%,93.3% 35.9%,94.5% 40.5%,98.0% 45.0%,100.0% 50.0%,98.0% 55.0%,94.5% 59.5%,93.3% 64.1%,94.1% 69.6%,93.3% 75.0%,89.1% 78.4%,83.8% 80.4%,80.4% 83.8%,78.4% 89.1%,75.0% 93.3%,69.6% 94.1%,64.1% 93.3%,59.5% 94.5%,55.0% 98.0%,50.0% 100.0%,45.0% 98.0%,40.5% 94.5%,35.9% 93.3%,30.4% 94.1%,25.0% 93.3%,21.6% 89.1%,19.6% 83.8%,16.2% 80.4%,10.9% 78.4%,6.7% 75.0%,5.9% 69.6%,6.7% 64.1%,5.5% 59.5%,2.0% 55.0%,0.0% 50.0%,2.0% 45.0%,5.5% 40.5%,6.7% 35.9%,5.9% 30.4%,6.7% 25.0%,10.9% 21.6%,16.2% 19.6%,19.6% 16.2%,21.6% 10.9%,25.0% 6.7%,30.4% 5.9%,35.9% 6.7%,40.5% 5.5%,45.0% 2.0%);
  --shape-clover4: polygon(50.0% 0.0%,55.2% 0.8%,60.0% 3.2%,63.9% 7.3%,65.2% 15.8%,66.7% 21.1%,68.3% 24.8%,70.2% 27.6%,72.4% 29.8%,75.2% 31.7%,78.9% 33.3%,84.2% 34.8%,92.7% 36.1%,96.8% 40.0%,99.2% 44.8%,100.0% 50.0%,99.2% 55.2%,96.8% 60.0%,92.7% 63.9%,84.2% 65.2%,78.9% 66.7%,75.2% 68.3%,72.4% 70.2%,70.2% 72.4%,68.3% 75.2%,66.7% 78.9%,65.2% 84.2%,63.9% 92.7%,60.0% 96.8%,55.2% 99.2%,50.0% 100.0%,44.8% 99.2%,40.0% 96.8%,36.1% 92.7%,34.8% 84.2%,33.3% 78.9%,31.7% 75.2%,29.8% 72.4%,27.6% 70.2%,24.8% 68.3%,21.1% 66.7%,15.8% 65.2%,7.3% 63.9%,3.2% 60.0%,0.8% 55.2%,0.0% 50.0%,0.8% 44.8%,3.2% 40.0%,7.3% 36.1%,15.8% 34.8%,21.1% 33.3%,24.8% 31.7%,27.6% 29.8%,29.8% 27.6%,31.7% 24.8%,33.3% 21.1%,34.8% 15.8%,36.1% 7.3%,40.0% 3.2%,44.8% 0.8%);
  --shape-clover8: polygon(50.0% 0.0%,55.1% 1.7%,58.9% 8.2%,62.0% 13.1%,65.5% 15.2%,70.2% 15.1%,77.4% 12.3%,83.2% 13.1%,86.9% 16.8%,87.7% 22.6%,84.9% 29.8%,84.8% 34.5%,86.9% 38.0%,91.8% 41.1%,98.3% 44.9%,100.0% 50.0%,98.3% 55.1%,91.8% 58.9%,86.9% 62.0%,84.8% 65.5%,84.9% 70.2%,87.7% 77.4%,86.9% 83.2%,83.2% 86.9%,77.4% 87.7%,70.2% 84.9%,65.5% 84.8%,62.0% 86.9%,58.9% 91.8%,55.1% 98.3%,50.0% 100.0%,44.9% 98.3%,41.1% 91.8%,38.0% 86.9%,34.5% 84.8%,29.8% 84.9%,22.6% 87.7%,16.8% 86.9%,13.1% 83.2%,12.3% 77.4%,15.1% 70.2%,15.2% 65.5%,13.1% 62.0%,8.2% 58.9%,1.7% 55.1%,0.0% 50.0%,1.7% 44.9%,8.2% 41.1%,13.1% 38.0%,15.2% 34.5%,15.1% 29.8%,12.3% 22.6%,13.1% 16.8%,16.8% 13.1%,22.6% 12.3%,29.8% 15.1%,34.5% 15.2%,38.0% 13.1%,41.1% 8.2%,44.9% 1.7%);
  --shape-sunny: polygon(50.0% 0.0%,55.1% 1.3%,59.7% 4.3%,63.8% 7.6%,67.9% 9.7%,72.7% 10.6%,78.2% 11.2%,83.3% 13.0%,87.0% 16.7%,88.8% 21.8%,89.4% 27.2%,90.3% 32.1%,92.4% 36.2%,95.7% 40.3%,98.7% 44.9%,100.0% 50.0%,98.7% 55.1%,95.7% 59.7%,92.4% 63.8%,90.3% 67.9%,89.4% 72.7%,88.8% 78.2%,87.0% 83.3%,83.3% 87.0%,78.2% 88.8%,72.7% 89.4%,67.9% 90.3%,63.8% 92.4%,59.7% 95.7%,55.1% 98.7%,50.0% 100.0%,44.9% 98.7%,40.3% 95.7%,36.2% 92.4%,32.1% 90.3%,27.2% 89.4%,21.8% 88.8%,16.7% 87.0%,13.0% 83.3%,11.2% 78.2%,10.6% 72.8%,9.7% 67.9%,7.6% 63.8%,4.3% 59.7%,1.3% 55.1%,0.0% 50.0%,1.3% 44.9%,4.3% 40.3%,7.6% 36.2%,9.7% 32.1%,10.6% 27.2%,11.2% 21.8%,13.0% 16.7%,16.7% 13.0%,21.8% 11.2%,27.2% 10.6%,32.1% 9.7%,36.2% 7.6%,40.3% 4.3%,44.9% 1.3%);

  /* ---- Motion: springs (spatial overshoot; effects never overshoot) ---- */
  /* spatial fast: damping 0.6, stiffness 800, ~350 ms */
  --spring-fast: linear(0,0.088 4.2%,0.274 8.3%,0.491 12.5%,0.694 16.7%,0.859 20.8%,0.977 25%,1.049 29.2%,1.085 33.3%,1.093 37.5%,1.084 41.7%,1.067 45.8%,1.046 50%,1.027 54.2%,1.012 58.3%,1.002 62.5%,0.995 66.7%,0.992 70.8%,0.991 75%,0.994 83.3%,0.998 91.7%,1);
  /* spatial default: damping 0.8, stiffness 380, ~500 ms */
  --spring-default: linear(0,0.05 4.2%,0.16 8.3%,0.296 12.5%,0.439 16.7%,0.568 20.8%,0.681 25%,0.776 29.2%,0.849 33.3%,0.905 37.5%,0.947 41.7%,0.975 45.8%,0.994 50%,1.005 54.2%,1.011 58.3%,1.014 62.5%,1.014 66.7%,1.012 75%,1.008 83.3%,1.004 91.7%,1);
  /* spatial slow: damping 0.8, stiffness 200, ~650 ms (page-level container transforms) */
  --spring-slow: linear(0,0.06 4.2%,0.194 8.3%,0.354 12.5%,0.511 16.7%,0.649 20.8%,0.761 25%,0.848 29.2%,0.912 33.3%,0.956 37.5%,0.985 41.7%,1.002 45.8%,1.011 50%,1.015 54.2%,1.015 58.3%,1.014 62.5%,1.011 66.7%,1.009 70.8%,1.007 75%,1.005 79.2%,1.003 83.3%,1.002 87.5%,1.001 91.7%,1);
  /* effects: damping 1.0, stiffness 1600 (colour, opacity) */
  --effects: linear(0,0.06 4.2%,0.183 8.3%,0.322 12.5%,0.448 16.7%,0.565 20.8%,0.663 25%,0.739 29.2%,0.802 33.3%,0.852 37.5%,0.889 41.7%,0.916 45.8%,0.938 50%,0.955 54.2%,0.975 62.5%,0.987 70.8%,0.993 79.2%,0.997 87.5%,1);
  --dur-fast: 350ms;
  --dur-default: 500ms;
  --dur-slow: 650ms;
  --dur-effects-fast: 150ms;
  --dur-effects: 200ms;
  --dur-effects-slow: 300ms;
  --stagger-step: 50ms;

  /* ---- Layout ---- */
  --rail-w: 96px;
  --bar-h: 80px;
  --topbar-h: 64px;
  --topbar-h-expanded: 96px;
  --page-max: 1400px;
  --gutter: clamp(16px, 3.5vw, 48px);
  --player-h: 0px; /* phase 2: the music / KAOS-FM mini-player sets this when it is showing */
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-default: 0ms;
    --dur-slow: 0ms;
    --dur-effects-fast: 0ms;
    --dur-effects: 0ms;
    --dur-effects-slow: 0ms;
    --stagger-step: 0ms;
  }
}

/* GENERATED by tools/build-site.mjs from site-src/data/themes.json + apps.json seeds. Do not edit. */
.theme-hub{--primary:#FFB3AE;--on-primary:#680011;--primary-container:#B3102A;--on-primary-container:#FFDAD7;--secondary-container:#373B52;--on-secondary-container:#DDE1FA;--tertiary:#A9C7FF;--on-tertiary:#003063;--tertiary-container:#1F4D97;--on-tertiary-container:#D6E3FF;--surface:#111318;--surface-container-lowest:#0C0E13;--surface-container-low:#191C22;--surface-container:#1D2026;--surface-container-high:#282A31;--surface-container-highest:#33353C;--on-surface:#E2E2E9;--on-surface-variant:#C4C6D0;--outline:#8E9099;--outline-variant:#44474F;background-color:var(--surface);color:var(--on-surface)}
.theme-gccr{--primary:#FFB68A;--on-primary:#522300;--primary-container:#FF8A3D;--on-primary-container:#2E1300;--secondary-container:#5C4131;--on-secondary-container:#FFDBC9;--tertiary:#BFE07A;--on-tertiary:#2A3600;--tertiary-container:#3F5400;--on-tertiary-container:#D9F894;--surface:#18120E;--surface-container-lowest:#120D09;--surface-container-low:#211A15;--surface-container:#251E19;--surface-container-high:#302823;--surface-container-highest:#3B332D;--on-surface:#EEE0D8;--on-surface-variant:#D7C3B8;--outline:#A08D83;--outline-variant:#52443C;background-color:var(--surface);color:var(--on-surface)}
.theme-cbx{--primary:#95CCFF;--on-primary:#003352;--primary-container:#0069B8;--on-primary-container:#FFFFFF;--secondary-container:#34495C;--on-secondary-container:#D1E4FF;--tertiary:#8BD88F;--on-tertiary:#00391A;--tertiary-container:#1B5E2E;--on-tertiary-container:#A6F5A9;--surface:#0F1417;--surface-container-lowest:#0A0F12;--surface-container-low:#171C20;--surface-container:#1B2024;--surface-container-high:#252B2E;--surface-container-highest:#303539;--on-surface:#DEE3E8;--on-surface-variant:#C0C7CD;--outline:#8A9297;--outline-variant:#40484C;background-color:var(--surface);color:var(--on-surface)}
.theme-photonic{--primary:#D7BAFF;--on-primary:#3F0087;--primary-container:#7B2FE0;--on-primary-container:#FFFFFF;--secondary-container:#4A4158;--on-secondary-container:#EDDCFF;--tertiary:#FFAFD7;--on-tertiary:#5D1140;--tertiary-container:#B0207A;--on-tertiary-container:#FFFFFF;--surface:#141218;--surface-container-lowest:#0F0D13;--surface-container-low:#1D1B20;--surface-container:#211F26;--surface-container-high:#2B2930;--surface-container-highest:#36343B;--on-surface:#E6E0E9;--on-surface-variant:#CAC4D0;--outline:#948F99;--outline-variant:#49454F;background-color:var(--surface);color:var(--on-surface)}
.theme-kaosfm{--primary:#FFB956;--on-primary:#452B00;--primary-container:#633F00;--on-primary-container:#FFE4C6;--secondary-container:#55442F;--on-secondary-container:#EFE0D0;--tertiary:#A3D490;--on-tertiary:#0A3900;--tertiary-container:#235117;--on-tertiary-container:#D2E9C7;--surface:#17130C;--surface-container-lowest:#130D05;--surface-container-low:#1F1B16;--surface-container:#231F1A;--surface-container-high:#2E2924;--surface-container-highest:#39342F;--on-surface:#E6E2DD;--on-surface-variant:#D1C5B8;--outline:#9A8F83;--outline-variant:#4F453B;background-color:var(--surface);color:var(--on-surface)}
.theme-wrm{--primary:#76D1FF;--on-primary:#003548;--primary-container:#004D67;--on-primary-container:#CFECFF;--secondary-container:#284B5D;--on-secondary-container:#D0E6F3;--tertiary:#D2BCFF;--on-tertiary:#342661;--tertiary-container:#4D3C7A;--on-tertiary-container:#E9DDFF;--surface:#0D1418;--surface-container-lowest:#060F14;--surface-container-low:#161C20;--surface-container:#1A2024;--surface-container-high:#242B2F;--surface-container-highest:#2F363A;--on-surface:#DDE3E7;--on-surface-variant:#B8C9D4;--outline:#83939D;--outline-variant:#3A4952;background-color:var(--surface);color:var(--on-surface)}
.theme-chaindrive{--primary:#FDBC15;--on-primary:#402D00;--primary-container:#5D4200;--on-primary-container:#FFE4BD;--secondary-container:#53452E;--on-secondary-container:#EDE1D0;--tertiary:#99D597;--on-tertiary:#00390C;--tertiary-container:#15521E;--on-tertiary-container:#CCEACA;--surface:#17130C;--surface-container-lowest:#120D05;--surface-container-low:#1E1B16;--surface-container:#231F1A;--surface-container-high:#2D2924;--surface-container-highest:#38342F;--on-surface:#E6E2DD;--on-surface-variant:#CFC5B8;--outline:#998F83;--outline-variant:#4D463A;background-color:var(--surface);color:var(--on-surface)}
.theme-boink{--primary:#A8C8FF;--on-primary:#00325A;--primary-container:#00487F;--on-primary-container:#DEE8FF;--secondary-container:#39475F;--on-secondary-container:#DAE3F5;--tertiary:#FAAFE7;--on-tertiary:#56154A;--tertiary-container:#702E62;--on-tertiary-container:#FED7F3;--surface:#111319;--surface-container-lowest:#0B0E15;--surface-container-low:#191C21;--surface-container:#1D2025;--surface-container-high:#272A30;--surface-container-highest:#32353A;--on-surface:#E0E2E8;--on-surface-variant:#C0C7D5;--outline:#8B919E;--outline-variant:#414753;background-color:var(--surface);color:var(--on-surface)}
.theme-cheeky-blocks{--primary:#30D7FF;--on-primary:#003642;--primary-container:#004E5F;--on-primary-container:#C2EFFF;--secondary-container:#214C59;--on-secondary-container:#CDE7F0;--tertiary:#BAC3FF;--on-tertiary:#062E69;--tertiary-container:#2C4482;--on-tertiary-container:#DEE1FF;--surface:#0B1517;--surface-container-lowest:#041013;--surface-container-low:#151D1F;--surface-container:#192123;--surface-container-high:#232B2E;--surface-container-highest:#2E3639;--on-surface:#DCE4E6;--on-surface-variant:#B6CAD1;--outline:#81949B;--outline-variant:#384A50;background-color:var(--surface);color:var(--on-surface)}
.theme-kill-ratio{--primary:#FFB68B;--on-primary:#512300;--primary-container:#763300;--on-primary-container:#FFE3D3;--secondary-container:#5B4132;--on-secondary-container:#F4DED3;--tertiary:#BDCE82;--on-tertiary:#283500;--tertiary-container:#3B4D05;--on-tertiary-container:#DFE6C0;--surface:#19120D;--surface-container-lowest:#150C07;--surface-container-low:#201A17;--surface-container:#241E1B;--surface-container-high:#2F2925;--surface-container-highest:#3A3330;--on-surface:#E8E1DE;--on-surface-variant:#D4C3BA;--outline:#9D8E85;--outline-variant:#51443D;background-color:var(--surface);color:var(--on-surface)}
.theme-music{--primary:#FFB2BE;--on-primary:#660028;--primary-container:#90003B;--on-primary-container:#FFE1E5;--secondary-container:#5F3D43;--on-secondary-container:#F7DCE0;--tertiary:#F5BB81;--on-tertiary:#482900;--tertiary-container:#673D06;--on-tertiary-container:#FEDDBF;--surface:#191112;--surface-container-lowest:#160B0D;--surface-container-low:#211A1B;--surface-container:#251E1F;--surface-container-high:#302829;--surface-container-highest:#3B3334;--on-surface:#E9E0E1;--on-surface-variant:#D6C1C4;--outline:#A08C8F;--outline-variant:#544245;background-color:var(--surface);color:var(--on-surface)}

/* =====================================================================
   Base: reset, type scale, app shell (nav rail / nav bar, top app bar,
   footer) and section layout. Tokens live in tokens.css.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 16px); interpolate-size: allow-keywords; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--on-primary-container); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tertiary); outline-offset: 3px; }
::selection { background: var(--primary-container); color: var(--on-primary-container); }

.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; }
.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px;
  border-radius: var(--shape-full); background: var(--primary); color: var(--on-primary);
  font-weight: 700; text-decoration: none; transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--spring-fast);
}
.skip-link:focus { transform: none; color: var(--on-primary); }

/* ---- Type scale (fluid; desktop sizes match the design language board) ---- */
.display-xl { font-size: clamp(46px, 2.2rem + 3.6vw, 88px); line-height: 1; font-weight: 850; font-stretch: 118%; letter-spacing: -0.028em; text-wrap: balance; }
.display-l { font-size: clamp(42px, 1.9rem + 2.4vw, 72px); line-height: 1.03; font-weight: 820; font-stretch: 116%; letter-spacing: -0.02em; text-wrap: balance; }
.display-m { font-size: clamp(32px, 1.4rem + 1.7vw, 45px); line-height: 1.15; font-weight: 780; font-stretch: 112%; letter-spacing: -0.01em; text-wrap: balance; }
.headline-l { font-size: clamp(26px, 1.2rem + .9vw, 32px); line-height: 1.25; font-weight: 720; font-stretch: 108%; text-wrap: balance; }
.headline-m { font-size: clamp(22px, 1.1rem + .6vw, 28px); line-height: 1.28; font-weight: 700; font-stretch: 106%; text-wrap: balance; }
.title-l { font-size: 22px; line-height: 28px; font-weight: 650; }
.title-m { font-size: 16px; line-height: 24px; font-weight: 650; letter-spacing: .15px; }
.body-l { font-size: 16px; line-height: 24px; text-wrap: pretty; }
.body-xl { font-size: clamp(17px, 1rem + .3vw, 20px); line-height: 1.5; text-wrap: pretty; }
.body-m { font-size: 14px; line-height: 20px; text-wrap: pretty; }
.label-l { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .1px; }
.label-m { font-size: 12px; line-height: 16px; font-weight: 650; letter-spacing: .5px; }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--tertiary); }
.muted { color: var(--on-surface-variant); }
.accent { color: var(--primary); }
.wordmark { font-weight: 900; font-stretch: 130%; letter-spacing: .5px; white-space: nowrap; }

/* ---- App shell ---- */
.shell { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; display: block; }
main:focus { outline: none; }

/* Navigation rail (>= 600px) and navigation bar (< 600px): one element, two layouts */
.nav {
  position: fixed; z-index: 40;
  display: flex; background: var(--surface-container-low);
  view-transition-name: site-nav;
}
.nav-logo { display: none; }
.nav-list { display: flex; margin: 0; padding: 0; list-style: none; }
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-height: 56px; color: var(--on-surface-variant); text-decoration: none;
  font-size: 12px; line-height: 16px; font-weight: 650; letter-spacing: .5px;
  -webkit-tap-highlight-color: transparent;
}
.nav-item:hover { color: var(--on-surface); }
.nav-item .pill {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 32px; border-radius: var(--shape-full);
  transition: width var(--dur-fast) var(--spring-fast), background-color var(--dur-effects) var(--effects), border-radius var(--dur-fast) var(--spring-fast);
}
.nav-item:hover .pill { background: var(--surface-container-high); }
.nav-item:active .pill { border-radius: var(--shape-press); }
.nav-item[aria-current="page"] { color: var(--on-surface); }
.nav-item[aria-current="page"] .pill { width: 64px; background: var(--secondary-container); color: var(--on-secondary-container); }
.nav-item:focus-visible { outline: none; }
.nav-item:focus-visible .pill { outline: 3px solid var(--tertiary); outline-offset: 2px; }
.nav-item svg { width: 24px; height: 24px; }

@media (min-width: 600px) {
  .nav { left: 0; top: 0; bottom: 0; width: var(--rail-w); flex-direction: column; align-items: center; gap: 28px; padding: 24px 8px; }
  .nav-logo { display: block; width: 56px; height: 56px; clip-path: var(--shape-cookie12); transition: clip-path var(--dur-default) var(--spring-default), transform var(--dur-default) var(--spring-default); }
  .nav-logo:hover, .nav-logo:focus-visible { clip-path: var(--shape-clover4); transform: rotate(22deg) scale(1.04); }
  .nav-logo img { width: 56px; height: 56px; }
  .nav-list { flex-direction: column; gap: 12px; }
  .nav-item { width: 80px; }
  .shell { margin-left: var(--rail-w); }
}
@media (max-width: 599.98px) {
  .nav {
    left: 0; right: 0; bottom: 0; height: calc(var(--bar-h) + env(safe-area-inset-bottom));
    padding: 0 8px env(safe-area-inset-bottom); background: var(--surface-container);
    border-top: 1px solid var(--outline-variant);
  }
  .nav-list { flex: 1; }
  .nav-list li { flex: 1 1 0; display: flex; }
  .nav-item { flex: 1; padding-top: 12px; min-height: var(--bar-h); }
  .shell { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
}

/* Top app bar: transparent and tall over the hero, collapses to 64 px and fills on scroll */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 8px 16px;
  min-height: var(--topbar-h-expanded); padding: 8px var(--gutter);
  background-color: transparent;
  transition: min-height var(--dur-default) var(--spring-default), background-color var(--dur-effects) var(--effects), box-shadow var(--dur-effects) var(--effects);
  view-transition-name: site-topbar;
}
.topbar[data-scrolled] { min-height: var(--topbar-h); background: var(--surface-container); box-shadow: 0 1px 0 var(--outline-variant); }
.topbar-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--on-surface); text-decoration: none; font-size: 22px; line-height: 28px; }
.topbar-brand:hover { color: var(--on-surface); }
.topbar-brand img { display: none; width: 40px; height: 40px; clip-path: var(--shape-cookie12); }
.topbar-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--on-surface-variant); }
.crumbs a { color: var(--on-surface-variant); display: inline-flex; align-items: center; min-height: 48px; }
.crumbs a:hover { color: var(--on-surface); }
.crumbs [aria-current] { color: var(--on-surface); }
.search-field {
  flex: 1 1 320px; max-width: 560px; display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 20px; border: 0; border-radius: var(--shape-full);
  background: var(--surface-container-high); color: var(--on-surface-variant);
  font-size: 16px; text-align: left; cursor: text;
  transition: background-color var(--dur-effects) var(--effects), border-radius var(--dur-fast) var(--spring-fast), min-height var(--dur-default) var(--spring-default);
}
.topbar[data-scrolled] .search-field { min-height: 48px; }
.search-field span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Medium widths: search gets its own full-width line under the header */
@media (min-width: 600px) and (max-width: 999.98px) {
  .topbar { flex-wrap: wrap; }
  .topbar > .search-field { order: 1; flex: 1 1 100%; max-width: none; }
  .topbar-actions > .btn-tonal:not(.kaos-btn) { display: none; }
  .crumbs { flex-wrap: nowrap; white-space: nowrap; }
}
.search-field:hover { background: var(--surface-container-highest); }
.search-field kbd { margin-left: auto; padding: 2px 8px; border-radius: var(--shape-sm); background: var(--surface-container-highest); font: 600 12px/18px var(--font-mono); color: var(--on-surface-variant); }
.only-compact { display: none !important; }
html:not(.ios) .only-ios, html.ios .not-ios { display: none; }
@media (max-width: 599.98px) {
  .topbar { min-height: var(--topbar-h); padding: 8px 8px 8px 16px; gap: 4px; }
  .topbar-brand { flex: 1; font-size: 18px; font-stretch: 128%; }
  .topbar-brand img { display: block; }
  .search-field, .hide-compact { display: none !important; }
  .only-compact { display: inline-flex !important; }
}

/* ---- Sections ---- */
.section { width: 100%; max-width: var(--page-max); padding: 48px var(--gutter); }
.section-tight { padding-block: 24px 48px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.section-head .lead { color: var(--on-surface-variant); }
.band {
  margin: 0 var(--gutter); max-width: calc(var(--page-max) - 2 * var(--gutter));
  padding: clamp(24px, 4vw, 48px); border-radius: var(--shape-xxl); background: var(--surface-container);
}
@media (max-width: 599.98px) { .band { margin: 0 8px; border-radius: 40px; padding: 24px 12px 16px; } }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 300px), 100%), 1fr)); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }

/* ---- Footer ---- */
.foot {
  margin-top: 48px; padding: 56px var(--gutter) 40px;
  border-radius: var(--shape-xxl) var(--shape-xxl) 0 0; background: var(--surface-container-lowest);
}
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; max-width: calc(var(--page-max) - 2 * var(--gutter)); }
.foot-brand { display: flex; flex-direction: column; gap: 12px; }
.foot-brand > div { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.foot-brand img { width: 48px; height: 48px; clip-path: var(--shape-cookie12); }
.foot h2 { margin-bottom: 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-surface-variant); text-decoration: none; }
.foot li a:hover { color: var(--on-surface); text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; color: var(--on-surface-variant); }
@media (max-width: 599.98px) { .foot { padding: 28px 16px 24px; border-radius: 36px 36px 0 0; } .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .foot-brand { grid-column: 1 / -1; } }
.search-field svg { width: 24px; height: 24px; flex: 0 0 auto; }
.topbar .badge { align-self: center; }
@media (max-width: 599.98px) { .topbar-title { font-size: 18px; line-height: 24px; } }

/* =====================================================================
   Components: MD3 Expressive. Every interactive element has a 48 px
   target, a visible focus ring and a spring press (pill -> 14 px).
   ===================================================================== */

/* ---- Buttons ---- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--shape-full);
  font-size: 15px; line-height: 20px; font-weight: 650; letter-spacing: .1px; text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-radius var(--dur-fast) var(--spring-fast), transform var(--dur-fast) var(--spring-fast), background-color var(--dur-effects) var(--effects), color var(--dur-effects) var(--effects);
}
.btn svg { flex: 0 0 auto; width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { border-radius: var(--shape-press); transform: scale(.96); }
.btn-filled { background: var(--primary); color: var(--on-primary); }
.btn-filled:hover { color: var(--on-primary); background: color-mix(in srgb, var(--primary) 88%, var(--on-primary)); }
.btn-bold { background: var(--primary-container); color: var(--on-primary-container); }
.btn-bold:hover { color: var(--on-primary-container); background: color-mix(in srgb, var(--primary-container) 88%, var(--on-primary-container)); }
.btn-tonal { background: var(--secondary-container); color: var(--on-secondary-container); }
.btn-tonal:hover { color: var(--on-secondary-container); background: color-mix(in srgb, var(--secondary-container) 85%, var(--on-secondary-container)); }
.btn-outline { background: transparent; color: var(--on-surface); box-shadow: inset 0 0 0 1px var(--outline); }
.btn-outline:hover { color: var(--on-surface); background: var(--surface-container-high); }
.btn-text { background: transparent; color: var(--primary); padding: 0 12px; }
.btn-text:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.btn-xl { min-height: 64px; padding: 0 32px; font-size: 17px; }
.btn-xl svg { width: 24px; height: 24px; }
.btn-block { width: 100%; }
@media (max-width: 599.98px) { .btn-xl { min-height: 56px; padding: 0 24px; } }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--shape-full);
  background: transparent; color: var(--on-surface-variant); cursor: pointer; text-decoration: none;
  transition: border-radius var(--dur-fast) var(--spring-fast), background-color var(--dur-effects) var(--effects), transform var(--dur-fast) var(--spring-fast);
}
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn:hover { background: var(--surface-container-high); color: var(--on-surface); }
.icon-btn:active { border-radius: var(--shape-press); transform: scale(.94); }
.icon-btn.tonal { background: var(--surface-container); color: var(--on-surface); }
.icon-btn.tonal:hover { background: var(--surface-container-highest); }
.icon-btn.live { background: var(--secondary-container); color: var(--on-secondary-container); }

/* Split button: main action + menu trigger, inner corners 10 px */
.split { position: relative; display: inline-flex; gap: 3px; }
.split > .btn:first-child { border-radius: var(--shape-full) 10px 10px var(--shape-full); padding: 0 20px 0 24px; }
.split > .btn:nth-child(2) { border-radius: 10px var(--shape-full) var(--shape-full) 10px; padding: 0; width: 52px; }
.split > .btn:active { border-radius: var(--shape-full); }
.split > .btn[aria-expanded="true"] { border-radius: var(--shape-full); background: var(--secondary-container); color: var(--on-secondary-container); box-shadow: none; }
.split > .btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.split > .btn svg { transition: transform var(--dur-default) var(--spring-default); }

/* Connected button group (links or toggles). Outer corners full, inner 10 px; selected item morphs to a pill. */
.connected { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.connected > a, .connected > button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border: 0; border-radius: 10px; background: var(--secondary-container); color: var(--on-secondary-container);
  font-size: 14px; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: border-radius var(--dur-fast) var(--spring-fast), background-color var(--dur-effects) var(--effects), color var(--dur-effects) var(--effects);
}
.connected > :first-child { border-radius: var(--shape-full) 10px 10px var(--shape-full); }
.connected > :last-child { border-radius: 10px var(--shape-full) var(--shape-full) 10px; }
.connected > a:hover, .connected > button:hover { background: var(--tertiary-container); color: var(--on-tertiary-container); }
.connected > :active, .connected > [aria-pressed="true"] { border-radius: var(--shape-full); }
.connected > [aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.connected > [aria-pressed="true"]:hover { background: var(--primary); color: var(--on-primary); }
.connected.on-container > button { background: rgb(0 0 0 / .28); color: inherit; }
.connected.on-container > [aria-pressed="true"] { background: var(--on-primary-container); color: var(--primary-container); }

/* ---- Chips: flat tonal filter chips, no outlines ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 0; border-radius: var(--shape-md); background: var(--surface-container-high); color: var(--on-surface-variant);
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: border-radius var(--dur-fast) var(--spring-fast), background-color var(--dur-effects) var(--effects), color var(--dur-effects) var(--effects);
}
.chip::after { content: ""; position: absolute; inset: -4px 0; } /* 48 px hit area */
.chip:hover { background: var(--surface-container-highest); color: var(--on-surface); }
.chip:active { border-radius: var(--shape-full); }
.chip[aria-pressed="true"] { background: var(--secondary-container); color: var(--on-secondary-container); border-radius: var(--shape-full); }
.chip .check { display: none; width: 18px; height: 18px; }
.chip[aria-pressed="true"] .check { display: block; }
.assist {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px;
  border-radius: var(--shape-md); background: var(--surface-container-high); color: var(--on-surface);
  font-size: 14px; font-weight: 600;
}
.assist svg { width: 20px; height: 20px; color: var(--tertiary); flex: 0 0 auto; }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  min-height: 24px; padding: 2px 10px; border-radius: var(--shape-full);
  font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .4px; white-space: nowrap;
  background: var(--surface-container-highest); color: var(--on-surface);
}
.badge-lg { min-height: 32px; padding: 4px 14px; font-size: 13px; }
.badge-tertiary { background: var(--tertiary-container); color: var(--on-tertiary-container); }
.badge-primary { background: var(--primary-container); color: var(--on-primary-container); }
.badge-inverse { background: var(--on-primary-container); color: var(--primary-container); }
.live-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--tertiary); }

/* ---- Store badges (pill style from the approved mockups) ---- */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 24px 0 18px;
  border-radius: var(--shape-full); background: #000; color: #fff; text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--outline);
  transition: border-radius var(--dur-fast) var(--spring-fast), transform var(--dur-fast) var(--spring-fast);
}
.store svg { width: 28px; height: 28px; flex: 0 0 auto; }
.store small { display: block; font-size: 11px; line-height: 14px; letter-spacing: .4px; color: #D0D0D0; }
.store b { display: block; font-size: 19px; line-height: 22px; font-weight: 700; }
.store:hover { color: #fff; transform: translateY(-2px); }
.store:active { border-radius: 18px; transform: scale(.96); }
.store-sm { min-height: 48px; padding: 0 16px 0 12px; gap: 8px; }
.store-sm svg { width: 20px; height: 20px; }
.store-sm small { font-size: 10px; line-height: 12px; }
.store-sm b { font-size: 15px; line-height: 18px; }
.store-note { color: var(--on-surface-variant); }

/* ---- Expressive shapes ---- */
.shape-circle { clip-path: var(--shape-circle); }
.shape-cookie9 { clip-path: var(--shape-cookie9); }
.shape-cookie12 { clip-path: var(--shape-cookie12); }
.shape-clover4 { clip-path: var(--shape-clover4); }
.shape-clover8 { clip-path: var(--shape-clover8); }
.shape-sunny { clip-path: var(--shape-sunny); }
.icon-frame { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: var(--size, 88px); height: var(--size, 88px); background: var(--tint, var(--primary-container)); }
.icon-frame img { width: 73%; height: 73%; border-radius: 22%; }
.morph-hover { clip-path: var(--shape-cookie12); transition: clip-path var(--dur-default) var(--spring-default), transform var(--dur-default) var(--spring-default); }
:is(a, .card):is(:hover, :focus-visible) .morph-hover, .card:focus-within .morph-hover { clip-path: var(--shape-clover4); transform: rotate(22deg) scale(1.06); }
.step-shape { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 72px; height: 72px; font-size: 34px; font-weight: 900; font-stretch: 120%; }
@media (max-width: 599.98px) { .step-shape { width: 48px; height: 48px; font-size: 22px; } }

/* ---- Cards and tiles ---- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px;
  border-radius: var(--shape-xl); background: var(--surface-container); color: var(--on-surface); text-decoration: none;
  transition: transform var(--dur-default) var(--spring-default), border-radius var(--dur-default) var(--spring-default), background-color var(--dur-effects) var(--effects);
}
a.card:hover, .card.is-link:hover, .card.is-link:focus-within { transform: translateY(-6px); border-radius: var(--shape-xl-hover); background: var(--surface-container-high); color: var(--on-surface); }
a.card:active, .card.is-link:active { transform: scale(.98); }
a.card:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.card-row { flex-direction: row; align-items: center; gap: 14px; padding: 14px; }
.card .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.card .stretched { color: inherit; text-decoration: none; }
.card .stretched:focus-visible { outline: none; }
.card.is-link:has(.stretched:focus-visible) { outline: 3px solid var(--primary); outline-offset: 4px; }
.card .above { position: relative; z-index: 1; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.go-dot { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--shape-full); background: var(--primary); color: var(--on-primary); transition: transform var(--dur-fast) var(--spring-fast); }
.go-dot svg { width: 22px; height: 22px; }
a.card:hover .go-dot, .card.is-link:hover .go-dot { transform: translateX(4px); }
.tile {
  display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--shape-xl);
  background: var(--surface-container-low); color: var(--on-surface); text-decoration: none;
  transition: transform var(--dur-default) var(--spring-default), border-radius var(--dur-default) var(--spring-default), background-color var(--dur-effects) var(--effects);
}
.tile:hover { transform: translateY(-4px); border-radius: var(--shape-xl-hover); background: var(--surface-container-high); color: var(--on-surface); }
.tile:active { transform: scale(.98); }
.tile .glyph { width: 56px; height: 56px; transition: transform var(--dur-default) var(--spring-default); }
.tile:hover .glyph { transform: rotate(45deg); }
.panel { padding: clamp(20px, 3vw, 32px); border-radius: 40px; background: var(--surface-container-low); }
.bullets { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; }
.bullets li::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; margin-top: 7px; border-radius: 3px; background: currentColor; transform: rotate(45deg); }

/* ---- Device frames (screenshots) ---- */
.device { border: 6px solid var(--device-bezel); border-radius: 36px; box-shadow: 0 28px 60px rgb(0 0 0 / .55); object-fit: cover; object-position: top; background: var(--surface-container); }

/* ---- Featured carousel (hub hero) ---- */
.feature { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.feature-stage { position: relative; height: clamp(440px, 46vw, 600px); border-radius: var(--shape-xxl); background: var(--surface-container-low); overflow: hidden; isolation: isolate; }
.feature-blob { position: absolute; left: 50%; top: 50%; width: min(86%, 520px); aspect-ratio: 1; translate: -50% -50%; background: var(--tint, var(--primary-container)); transition: background-color var(--dur-effects-slow) var(--effects); z-index: -1; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateX(64px) scale(.9); visibility: hidden; transition: transform var(--dur-default) var(--spring-default), opacity var(--dur-effects) var(--effects), visibility 0s linear var(--dur-default); }
.slide.is-on { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.slide.is-prev { transform: translateX(-64px) scale(.9); }
.slide img { width: clamp(200px, 17.5vw, 252px); aspect-ratio: 9 / 16; }
.feature-label { position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 48px); padding: 8px 22px 8px 8px; border-radius: var(--shape-full); background: rgb(12 14 19 / .88); }
.feature-label img { width: 56px; height: 56px; clip-path: var(--shape-cookie12); }
.feature-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.feature-controls > p { flex: 1 1 260px; color: var(--on-surface-variant); min-height: 48px; }
.dots { display: flex; align-items: center; gap: 4px; }
.dotbtn { width: 32px; height: 48px; border: 0; padding: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.dot { display: block; width: 12px; height: 12px; border-radius: var(--shape-full); background: var(--outline); transition: width var(--dur-fast) var(--spring-fast), background-color var(--dur-effects) var(--effects); }
.dotbtn[aria-current="true"] .dot { width: 32px; background: var(--primary); }

/* ---- Horizontal scroller (phones) ---- */
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 12px; scrollbar-width: none; overscroll-behavior-x: contain; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: 0 0 auto; }

/* ---- Screenshot carousel (M3 multi-browse feel: items shrink toward the edges where scroll timelines exist) ---- */
.shots-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 8px var(--gutter) 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.shots::-webkit-scrollbar { display: none; }
.shot {
  position: relative; flex: 0 0 auto; scroll-snap-align: start; width: auto; height: clamp(380px, 40vw, 520px); aspect-ratio: var(--ar, 9 / 16);
  padding: 0; border: 0; border-radius: var(--shape-xl); overflow: hidden; background: var(--surface-container); cursor: zoom-in;
  transition: border-radius var(--dur-default) var(--spring-default), transform var(--dur-default) var(--spring-default);
}
.shot:hover { border-radius: var(--shape-xl-hover); }
.shot:active { transform: scale(.97); }
.shot:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot span { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; padding: 6px 12px; border-radius: var(--shape-full); background: rgb(0 0 0 / .78); color: #fff; font-size: 13px; font-weight: 650; white-space: nowrap; }

/* ---- Accordion (FAQ): native <details>, height springs open where ::details-content is supported ---- */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq { border-radius: var(--shape-xl); background: var(--surface-container); transition: border-radius var(--dur-default) var(--spring-default), background-color var(--dur-effects) var(--effects); }
.faq[open] { background: var(--surface-container-high); border-radius: 36px; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 12px 24px 12px 28px;
  font-size: 18px; line-height: 24px; font-weight: 650; cursor: pointer; list-style: none; border-radius: inherit;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: 0 0 auto; width: 24px; height: 24px; transition: transform var(--dur-default) var(--spring-default); }
.faq[open] summary svg { transform: rotate(180deg); }
.faq summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.faq .answer { padding: 0 28px 24px; color: var(--on-surface-variant); }
.faq::details-content { block-size: 0; overflow: hidden; transition: block-size var(--dur-default) var(--spring-default), content-visibility var(--dur-default) allow-discrete; }
.faq[open]::details-content { block-size: auto; }
@media (max-width: 599.98px) { .faq summary { font-size: 16px; min-height: 64px; padding: 12px 16px 12px 20px; } .faq .answer { padding: 0 20px 20px; } }

/* ---- FAB and FAB menu ---- */
.fab-wrap { position: fixed; right: 32px; bottom: calc(32px + var(--player-h)); z-index: 35; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 96px; min-height: 96px; padding: 0 28px;
  border: 0; border-radius: var(--shape-xl); background: var(--primary-container); color: var(--on-primary-container);
  font-size: 18px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px rgb(0 0 0 / .45);
  transition: border-radius var(--dur-fast) var(--spring-fast), transform var(--dur-fast) var(--spring-fast), min-width var(--dur-default) var(--spring-default), padding var(--dur-default) var(--spring-default);
}
.fab svg { width: 28px; height: 28px; flex: 0 0 auto; }
.fab:hover { border-radius: 36px; transform: scale(1.03); }
.fab:active { border-radius: 20px; transform: scale(.95); }
.fab:focus-visible { outline: 3px solid var(--tertiary); outline-offset: 4px; }
.fab .when-open { display: none; }
.fab[aria-expanded="true"] { padding: 0; border-radius: var(--shape-full); min-width: 96px; }
.fab[aria-expanded="true"] .when-open { display: block; }
.fab[aria-expanded="true"] .when-closed { display: none; }
.fab-menu { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fab-menu[hidden] { display: none; }
.fab-item {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 24px; border-radius: var(--shape-full);
  background: var(--primary-container); color: var(--on-primary-container); text-decoration: none; font-size: 16px; font-weight: 650;
  box-shadow: 0 4px 12px rgb(0 0 0 / .4); transition: border-radius var(--dur-fast) var(--spring-fast);
}
.fab-item:hover { color: var(--on-primary-container); border-radius: 18px; }
.fab-item img { width: 28px; height: 28px; clip-path: var(--shape-cookie12); }
@media (max-width: 599.98px) {
  .fab-wrap { right: 16px; bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom) + var(--player-h)); }
  .fab { min-width: 64px; min-height: 64px; padding: 0; border-radius: 20px; }
  .fab .fab-label { display: none; }
  .fab[aria-expanded="true"] { min-width: 64px; }
}

/* ---- Menus (split-button menu) ---- */
.menu {
  position: absolute; z-index: 25; top: calc(100% + 8px); right: 0; min-width: 240px; margin: 0; padding: 8px; list-style: none;
  border-radius: 24px; background: var(--surface-container-high); box-shadow: 0 12px 32px rgb(0 0 0 / .5);
  transform-origin: top right;
}
.menu[hidden] { display: none; }
.menu a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; border-radius: var(--shape-lg); color: var(--on-surface); text-decoration: none; font-weight: 600; transition: border-radius var(--dur-fast) var(--spring-fast), background-color var(--dur-effects) var(--effects); }
.menu a:hover, .menu a:focus-visible { background: var(--surface-container-highest); border-radius: var(--shape-full); outline: none; }
.menu a:focus-visible { box-shadow: inset 0 0 0 2px var(--tertiary); }
.menu svg { width: 20px; height: 20px; color: var(--on-surface-variant); }

/* ---- Dialogs and sheets ---- */
dialog { color: var(--on-surface); }
.sheet {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0;
  border-radius: var(--shape-xl); background: var(--surface-container-high); color: var(--on-surface); overflow: hidden;
}
.sheet::backdrop { background: var(--scrim); }
.sheet[open] { animation: sheet-in var(--dur-default) var(--spring-default); }
.sheet[open]::backdrop { animation: fade-in var(--dur-effects) var(--effects); }
.viewer { width: auto; max-width: calc(100vw - 32px); background: transparent; overflow: visible; }
.viewer figure { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.viewer img { max-height: calc(100dvh - 140px); width: auto; border-radius: var(--shape-xl); background: var(--surface-container); }
.viewer figcaption { color: #fff; font-weight: 650; }
.viewer .viewer-bar { display: flex; align-items: center; gap: 8px; }
.search-sheet { position: fixed; inset: 0; margin: 0 auto; top: 12px; width: min(720px, calc(100vw - 24px)); max-height: min(640px, calc(100dvh - 24px)); display: none; flex-direction: column; }
.search-sheet[open] { display: flex; }
.search-sheet header { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--outline-variant); }
.search-sheet input { flex: 1; min-width: 0; min-height: 56px; border: 0; background: transparent; color: var(--on-surface); font-size: 18px; outline: none; }
.search-sheet input::placeholder { color: var(--on-surface-variant); }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.search-results a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 12px; border-radius: 20px; color: var(--on-surface); text-decoration: none; transition: border-radius var(--dur-fast) var(--spring-fast), background-color var(--dur-effects) var(--effects); }
.search-results a:hover, .search-results a:focus-visible, .search-results a[aria-selected="true"] { background: var(--surface-container-highest); border-radius: 32px; outline: none; }
.search-results img, .search-results .glyph { width: 40px; height: 40px; flex: 0 0 auto; clip-path: var(--shape-cookie12); }
.search-results .glyph { background: var(--tertiary-container); }
.search-results small { display: block; color: var(--on-surface-variant); font-size: 13px; line-height: 18px; }
.search-empty { padding: 24px; color: var(--on-surface-variant); }
@media (max-width: 599.98px) { .search-sheet { top: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; } }

/* =====================================================================
   Motion: entrances, shape morphs, view transitions and scroll-linked
   effects. Everything here is off under prefers-reduced-motion.
   ===================================================================== */

@keyframes enter { from { opacity: 0; transform: translateY(28px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-in { from { opacity: 0; transform: scale(.86); border-radius: var(--shape-xxl); } to { opacity: 1; transform: none; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes morph {
  0% { clip-path: var(--shape-cookie9); transform: rotate(0deg); }
  25% { clip-path: var(--shape-clover4); transform: rotate(45deg); }
  50% { clip-path: var(--shape-cookie12); transform: rotate(90deg); }
  75% { clip-path: var(--shape-clover8); transform: rotate(135deg); }
  100% { clip-path: var(--shape-cookie9); transform: rotate(180deg); }
}
@keyframes edge-shrink { /* scroll-linked: carousel items shrink and round off as they leave the viewport */
  entry 0% { transform: scale(.86); border-radius: var(--shape-xxl); opacity: .6; }
  entry 100% { transform: none; border-radius: var(--shape-xl); opacity: 1; }
  exit 0% { transform: none; border-radius: var(--shape-xl); opacity: 1; }
  exit 100% { transform: scale(.86); border-radius: var(--shape-xxl); opacity: .6; }
}
@keyframes hero-drift { to { transform: translateY(-12%) rotate(30deg); } }

.morph-loop { clip-path: var(--shape-cookie9); animation: morph 9s var(--spring-default) infinite; }
.live-dot { animation: pulse 1.6s ease-in-out infinite; }
.fab-menu:not([hidden]) > * { animation: enter var(--dur-default) var(--spring-default) both; }
.fab-menu > :nth-last-child(2) { animation-delay: 40ms; }
.fab-menu > :nth-last-child(3) { animation-delay: 80ms; }
.fab-menu > :nth-last-child(4) { animation-delay: 120ms; }
.fab-menu > :nth-last-child(5) { animation-delay: 160ms; }
.menu:not([hidden]) { animation: menu-in var(--dur-fast) var(--spring-fast); }

/* Staggered entrance: site.js adds .js to <html> and .is-in to [data-stagger] when it scrolls into view.
   Without JS everything simply shows. Children get --i from the build (capped at 12). */
.js [data-stagger] > * { opacity: 0; }
.js [data-stagger].is-in > * { animation: enter var(--dur-slow) var(--spring-default) both; animation-delay: calc(min(var(--i, 0), 12) * var(--stagger-step)); }

/* Scroll-linked effects (progressive: only where scroll timelines exist) */
@supports (animation-timeline: view()) {
  .shot { animation: edge-shrink linear both; animation-timeline: view(inline); animation-range: entry 0% exit 100%; }
  .hero-art .morph-wrap { animation: hero-drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
}

/* ---- View Transitions (cross-document, same origin) ----
   App card icon frames and names are shared elements with the product hero
   (view-transition-name set inline by the build: icon-<id>, name-<id>). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fade-out var(--dur-effects) var(--effects) both; }
::view-transition-new(root) { animation: fade-in var(--dur-effects-slow) var(--effects) 90ms both; }
::view-transition-group(*) { animation-duration: var(--dur-slow); animation-timing-function: var(--spring-slow); }
::view-transition-group(site-nav), ::view-transition-group(site-topbar) { animation-duration: 0s; }
::view-transition-image-pair(*) { isolation: auto; }
@keyframes fade-out { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
  .morph-loop, .live-dot, .shot, .hero-art .morph-wrap { animation: none !important; }
  .js [data-stagger] > * { opacity: 1; }
  .js [data-stagger].is-in > * { animation: none; }
}

/* =====================================================================
   Page layouts: hub, /apps, product template, studio, 404.
   ===================================================================== */
[hidden] { display: none !important; }
.only-compact-block { display: none; }
@media (max-width: 599.98px) { .only-compact-block { display: block; } }

/* ---- Hub hero ---- */
.hub-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 24px; padding-bottom: 80px; }
.hub-copy { flex: 1 1 460px; min-width: 0; --gap: 28px; }
.hub-hero .feature { flex: 1 1 520px; }
.jump-icon {
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px; background: var(--surface-container);
  transition: transform var(--dur-default) var(--spring-default), border-radius var(--dur-default) var(--spring-default), background-color var(--dur-effects) var(--effects);
}
.jump-icon img { width: 48px; height: 48px; border-radius: 14px; }
.jump-icon:hover { transform: translateY(-4px); border-radius: 24px; background: var(--surface-container-high); }
.jump-icon:active { transform: scale(.94); }
@media (max-width: 599.98px) {
  .hub-hero { padding-top: 16px; padding-bottom: 28px; gap: 20px; }
  .hub-copy { --gap: 20px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}
.feature-card { width: 300px; padding: 12px 12px 18px; gap: 14px; border-radius: 36px; background: var(--surface-container-low); }
.feature-card-stage { position: relative; height: 340px; border-radius: var(--shape-xl); overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--surface-container); }
.feature-card-blob { position: absolute; width: 300px; height: 300px; left: -12px; top: 20px; }
.feature-card-stage img { position: relative; width: 168px; border-width: 4px; border-radius: 24px; }

/* ---- App groups (hub and /apps) ---- */
.app-group { display: flex; flex-wrap: wrap; gap: 24px; padding-block: 32px; border-top: 1px solid var(--outline-variant); }
section.app-group { border-top: 0; }
.app-group-head { flex: 1 1 240px; max-width: 320px; display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.app-group-cards { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.app-card { min-height: 248px; }
@media (max-width: 599.98px) {
  .app-group { padding-block: 16px; gap: 10px; }
  .app-group-head { flex-basis: 100%; max-width: none; padding-top: 0; gap: 4px; }
  .app-group-cards { gap: 10px; }
  .app-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px; padding: 14px; min-height: 112px; }
  .app-card .card-top { display: contents; }
  .app-card .icon-frame { --size: 72px !important; grid-row: 1 / span 2; }
  .app-card .badge { position: absolute; top: 12px; right: 12px; }
  .app-card .stack { padding-right: 36px; }
  .app-card .title-l { font-size: 16px; line-height: 24px; }
  .app-card .card-foot { grid-column: 2; margin-top: 0; }
  .app-card .go-dot { display: none; }
  .app-card .stores { grid-column: 1 / -1; }
  article.app-card .card-foot { grid-column: 1 / -1; margin-top: 8px; }
}

/* ---- Coming soon band ---- */
.soon-band { margin-block: 24px; }
.soon-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.soon-card {
  flex: 1 1 480px; min-width: 0; display: flex; flex-wrap: wrap; gap: 24px; align-items: center;
  padding: 32px; border-radius: 40px; background: var(--surface-container-high); color: var(--on-surface);
  transition: border-radius var(--dur-default) var(--spring-default);
}
.soon-card:hover { border-radius: 56px; }
.soon-phone { flex: 0 0 auto; width: 188px; border-width: 5px; border-radius: var(--shape-xl); transform: rotate(4deg); transition: transform var(--dur-default) var(--spring-default); }
.soon-card:hover .soon-phone { transform: rotate(-2deg) scale(1.03); }
.soon-wide { flex-direction: column; align-items: stretch; padding: 24px 24px 32px; gap: 16px; }
.soon-art { width: 100%; height: 260px; object-fit: cover; border-radius: var(--shape-xl); }
@media (max-width: 599.98px) {
  .soon-grid { gap: 12px; }
  .soon-card { flex-wrap: nowrap; padding: 18px; border-radius: 32px; gap: 14px; }
  .soon-card .headline-l { font-size: 22px; line-height: 28px; }
  .soon-card .icon-frame { --size: 64px !important; }
  .soon-phone { width: 112px; border-width: 4px; border-radius: 20px; }
  .soon-wide { flex-direction: column; flex-wrap: wrap; padding: 12px 12px 18px; }
  .soon-art { height: 170px; border-radius: 24px; }
  .soon-band .connected > a { padding: 0 14px; }
}

/* ---- Lab tiles ---- */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
@media (max-width: 599.98px) {
  .lib-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scrollbar-width: none; }
  .lib-grid > * { flex: 0 0 240px; scroll-snap-align: start; }
}

/* ---- Studio ---- */
.studio-sec { display: flex; flex-wrap: wrap; gap: 32px; }
.studio-tiles { flex: 2 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.studio-tile { min-height: 200px; }
@media (max-width: 599.98px) {
  .studio-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .studio-tiles .studio-tile { min-height: 0; padding: 16px 12px; align-items: center; text-align: center; }
  .studio-tiles .studio-tile .body-m { display: none; }
  .studio-tiles .studio-tile .title-l { font-size: 14px; line-height: 20px; }
  .studio-tiles .glyph { width: 40px; height: 40px; }
}
.page-head { padding-top: 32px; position: relative; isolation: isolate; }
.studio-blob { position: absolute; z-index: -1; right: var(--gutter); top: 16px; width: min(30vw, 340px); aspect-ratio: 1; background: var(--primary-container); opacity: .7; }
@media (max-width: 899.98px) { .studio-blob { display: none; } }

/* ---- Product template ---- */
.product-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 24px; padding-bottom: 72px; }
.product-copy { flex: 1 1 520px; min-width: 0; --gap: 24px; }
.product-sub { font-weight: 500; font-stretch: 100%; }
.product-intro { max-width: 620px; }
.hero-actions { align-items: center; }
.hero-art { flex: 1 1 480px; min-width: 0; position: relative; height: 640px; }
.hero-art .morph-wrap { position: absolute; left: 50%; top: 50%; width: min(560px, 100%); aspect-ratio: 1; translate: -50% -50%; }
.hero-blob { width: 100%; height: 100%; background: var(--primary-container); opacity: .9; }
.hero-art .device { position: absolute; }
.fan-c { left: 50%; top: calc(50% - 231px); width: 260px; margin-left: -130px; }
.fan-l, .fan-r { top: calc(50% - 170px); width: 210px; border-width: 5px; border-radius: 30px; box-shadow: 0 20px 48px rgb(0 0 0 / .5); }
.fan-l { left: 4%; transform: rotate(-8deg); }
.fan-r { right: 4%; transform: rotate(8deg); }
@media (max-width: 599.98px) {
  .product-hero { gap: 16px; padding-top: 8px; padding-bottom: 24px; }
  .product-copy { --gap: 16px; }
  .product-copy .icon-frame { --size: 104px !important; }
  .product-copy .display-l { font-size: 52px; line-height: 54px; }
  .product-sub { font-size: 22px; line-height: 28px; }
  .hero-art { height: 420px; flex-basis: 100%; }
  .hero-art .morph-wrap { width: 280px; }
  .fan-c { top: calc(50% - 178px); width: 200px; margin-left: -100px; border-width: 4px; border-radius: 26px; }
  .fan-l, .fan-r { top: calc(50% - 125px); width: 140px; border-width: 4px; border-radius: 22px; }
  .fan-l { left: 0; } .fan-r { right: 0; }
  .hero-actions .split { width: 100%; }
  .hero-actions .split > .btn:first-child { flex: 1; }
}
.section-lead { margin: 8px 0 28px; }
.section > h2 + :is(.grid-auto, .doors, ol, .faq-list) { margin-top: 28px; }
.steps { margin: 0; padding: 0; list-style: none; }
.step { padding: 28px; gap: 16px; }
@media (max-width: 599.98px) { .step { flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px; } .step .title-l { font-size: 16px; line-height: 24px; } }
.card.feature { padding: 28px; gap: 10px; }
.card.feature:hover { border-radius: var(--shape-xl-hover); background: var(--surface-container-high); }
.doors { display: flex; flex-wrap: wrap; gap: 16px; }
.door {
  flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 40px;
  background: var(--surface-container); transition: border-radius var(--dur-default) var(--spring-default);
}
.door:hover { border-radius: 56px; }
.door .bullets { color: var(--on-surface-variant); }
.door-primary { background: var(--primary-container); color: var(--on-primary-container); }
.door-primary .bullets { color: inherit; }
@media (max-width: 599.98px) { .door { padding: 20px; border-radius: 32px; } }
.section-bleed { max-width: none; padding-inline: 0; }
.section-bleed .shots-head { padding-inline: var(--gutter); max-width: var(--page-max); }
.toggle-band {
  display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 4vw, 48px); border-radius: var(--shape-xxl);
  background: var(--primary-container); color: var(--on-primary-container);
}
.toggle-band .connected { align-self: flex-start; }
.toggle-panel { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 8px; }
.toggle-panel li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; border-radius: var(--shape-lg); background: rgb(0 0 0 / .22); }
.toggle-panel svg { width: 20px; height: 20px; flex: 0 0 auto; }
@media (max-width: 599.98px) { .toggle-band { border-radius: 40px; padding: 24px 16px; } }
.faq-section { display: flex; flex-wrap: wrap; gap: 32px; }
.faq-intro { flex: 1 1 280px; max-width: 380px; }
.faq-section .faq-list { flex: 2 1 560px; min-width: 0; }

/* ---- 404 ---- */
.nf-hero { display: flex; flex-wrap: wrap-reverse; align-items: center; gap: 48px; padding-top: 32px; }
.nf-hero > .stack { flex: 1 1 420px; }
.nf-shape { position: relative; flex: 0 0 auto; width: clamp(200px, 30vw, 360px); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.nf-shape .morph-loop { position: absolute; inset: 0; background: var(--primary-container); }
.nf-shape span { position: relative; font-size: clamp(56px, 8vw, 112px); font-weight: 900; font-stretch: 125%; color: var(--on-primary-container); }
.section-head > .chips { flex-direction: row; max-width: none; gap: 8px; }
@media (max-width: 599.98px) { .hub-copy .jump { display: none; } }

/* ---- Product extras: formats, device chips, closing band, KAOS-FM lineup ---- */
.section-note { margin-top: 20px; max-width: 900px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.tags li { padding: 6px 12px; border-radius: var(--shape-sm); background: var(--surface-container-highest); font-size: 13px; line-height: 18px; font-weight: 550; transition: border-radius var(--dur-fast) var(--spring-fast), background-color var(--dur-effects) var(--effects), color var(--dur-effects) var(--effects); }
.tags li:hover { border-radius: var(--shape-full); background: var(--secondary-container); color: var(--on-secondary-container); }
.devices { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.devices li { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; border-radius: var(--shape-full); background: var(--secondary-container); color: var(--on-secondary-container); font-weight: 650; transition: border-radius var(--dur-default) var(--spring-default), background-color var(--dur-effects) var(--effects); }
.devices li.is-premium { padding-right: 14px; background: var(--surface-container-high); color: var(--on-surface); }
.devices li:hover { border-radius: var(--shape-press); }
.devices .badge { align-self: center; }
.cta-band { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: clamp(28px, 5vw, 64px); border-radius: var(--shape-xxl); background: var(--primary-container); color: var(--on-primary-container); }
.cta-band > :not(.cta-blob) { max-width: 760px; }
.cta-blob { position: absolute; z-index: -1; right: -80px; top: -60px; width: 340px; aspect-ratio: 1; background: var(--on-primary-container); opacity: .12; }
.cta-band .btn-filled { background: var(--on-primary-container); color: var(--primary-container); }
.cta-band .btn-tonal { background: rgb(0 0 0 / .3); color: #fff; }
.cta-band code { overflow-wrap: anywhere; padding: 2px 8px; border-radius: var(--shape-sm); background: rgb(0 0 0 / .3); color: #fff; }
.cta-band a:not(.btn):not(.store) { color: inherit; }
@media (max-width: 599.98px) { .cta-band { border-radius: 40px; } .cta-band .stores > * { flex: 1 1 100%; justify-content: center; } }
code { font-family: var(--font-mono); font-size: .92em; }
.lineup { border-radius: var(--shape-xl); background: var(--surface-container); padding: 8px; max-width: 900px; }
.lineup table { width: 100%; border-collapse: separate; border-spacing: 0 4px; text-align: left; }
.lineup caption { caption-side: bottom; padding: 12px 16px 8px; font-size: 13px; line-height: 19px; color: var(--on-surface-variant); text-align: left; }
.lineup thead th { padding: 8px 16px; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--tertiary); }
.lineup tbody tr > * { padding: 14px 16px; background: var(--surface-container-high); transition: background-color var(--dur-effects) var(--effects), border-radius var(--dur-fast) var(--spring-fast); }
.lineup tbody th { font-weight: 650; border-radius: var(--shape-md) 0 0 var(--shape-md); }
.lineup tbody td { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; border-radius: 0 var(--shape-md) var(--shape-md) 0; }
.lineup thead th:last-child { text-align: right; }
.lineup tbody tr:hover > * { background: var(--surface-container-highest); }
.lineup tbody tr.is-on > * { background: var(--primary-container); color: var(--on-primary-container); }
.lineup tbody tr.is-on > th { border-radius: var(--shape-full) 0 0 var(--shape-full); }
.lineup tbody tr.is-on > td { border-radius: 0 var(--shape-full) var(--shape-full) 0; }
.lineup .badge { margin-left: 10px; vertical-align: middle; }
@media (max-width: 599.98px) { .lineup tbody tr > * { padding: 12px 10px; font-size: 14px; } .lineup tbody td { font-size: 13px; } .lineup .badge { display: table; margin: 4px 0 0; } }

/* ---- Coming-soon products: disabled buttons, wide hero art and shots ---- */
.btn.is-soon { opacity: .6; cursor: default; pointer-events: none; }
.hero-art-wide { display: flex; align-items: center; justify-content: center; height: 520px; }
.hero-wide { position: relative; width: min(100%, 680px); height: auto; border-radius: var(--shape-xxl); border: 6px solid var(--device-bezel); box-shadow: 0 28px 60px rgb(0 0 0 / .55); transition: border-radius var(--dur-default) var(--spring-default), transform var(--dur-default) var(--spring-default); }
.hero-art-wide:hover .hero-wide { transform: rotate(-1.5deg) scale(1.02); border-radius: var(--shape-xl); }
.shot-wide { height: auto; width: min(82vw, 680px); align-self: center; }
@media (max-width: 599.98px) { .hero-art-wide { height: 300px; } .hero-wide { border-width: 4px; border-radius: var(--shape-xl); } }

/* ---- Photonic explorer ---- */
.px-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.px-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, calc(50% - 6px)), 1fr)); gap: 12px; margin-top: 12px; min-height: 320px; }
.px-card { display: flex; flex-direction: column; gap: 4px; padding: 8px 8px 14px; border: 0; border-radius: var(--shape-xl); background: var(--surface-container); color: var(--on-surface); text-align: left; cursor: pointer; transition: transform var(--dur-default) var(--spring-default), border-radius var(--dur-default) var(--spring-default), background-color var(--dur-effects) var(--effects); }
.px-card:hover, .px-card:focus-visible { transform: translateY(-4px); border-radius: var(--shape-xl-hover); background: var(--surface-container-high); }
.px-card:active { transform: scale(.96); }
.px-grid.is-entering .px-card { animation: enter var(--dur-slow) var(--spring-default) backwards; animation-delay: calc(var(--i, 0) * 30ms); }
.px-thumb { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 20px; background: var(--surface-container-lowest); transition: border-radius var(--dur-default) var(--spring-default); }
.px-card:hover .px-thumb { border-radius: 32px; }
.px-glyph { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; border-radius: 20px; background: linear-gradient(135deg, hsl(var(--h1) 70% 34%), hsl(var(--h2) 80% 17%)); color: #fff; }
.px-glyph > span { display: flex; align-items: center; justify-content: center; width: 62%; aspect-ratio: 1; background: rgb(255 255 255 / .16); transition: clip-path var(--dur-default) var(--spring-default), transform var(--dur-default) var(--spring-default); }
.px-card:hover .px-glyph > span { clip-path: var(--shape-clover4); transform: rotate(45deg) scale(1.1); }
.px-card:hover .px-glyph > span > * { transform: rotate(-45deg); }
.px-glyph svg { width: 46%; height: 46%; }
.px-glyph b { font-size: 30px; font-weight: 900; font-stretch: 120%; }
.px-name { padding: 6px 6px 0; font-size: 15px; line-height: 19px; font-weight: 700; overflow-wrap: anywhere; }
.px-kind { padding: 0 6px; font-size: 12px; line-height: 16px; color: var(--on-surface-variant); }
.px-dialog { width: min(440px, calc(100vw - 32px)); overflow-y: auto; }
.px-detail { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; text-align: center; }
.px-detail #pxPicture { width: min(220px, 60%); }
.px-detail .btn { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .px-grid.is-entering .px-card { animation: none; } .px-card:hover, .hero-art-wide:hover .hero-wide { transform: none; } }

/* =====================================================================
   Mini player (js/player.js): floating Material 3 Expressive bar with a
   morphing artwork, a shape-changing play button and a wavy progress track.
   Also the toast and the "page is loading" hint of the router.
   ===================================================================== */
@keyframes wave-run { to { -webkit-mask-position: 24px 50%; mask-position: 24px 50%; } }
@keyframes player-in { from { transform: translateY(120%) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes load-bar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

.shell { padding-bottom: var(--player-h); overflow-x: clip; }
@media (max-width: 599.98px) { .shell { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + var(--player-h)); } }

.player {
  --progress: 0%;
  position: fixed; z-index: 38; left: calc(var(--rail-w) + 12px); right: 12px; bottom: 12px;
  max-width: 1280px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto auto;
  grid-template-areas: "now ctrl extra end" "now seek extra end";
  align-items: center; column-gap: 16px; padding: 10px 12px 10px 10px;
  border-radius: var(--shape-xl); background: var(--surface-container-high); color: var(--on-surface);
  box-shadow: 0 12px 36px rgb(0 0 0 / .55), inset 0 0 0 1px var(--outline-variant);
  animation: player-in var(--dur-default) var(--spring-default);
  view-transition-name: site-player;
}
.player[hidden] { display: none; }
::view-transition-group(site-player) { animation-duration: 0s; z-index: 2; }
.pl-now { grid-area: now; display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-art { flex: 0 0 auto; width: 56px; height: 56px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.pl-art-img { display: block; position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--surface-container-lowest); border-radius: var(--shape-lg); clip-path: var(--shape-circle); clip-path: none; transition: border-radius var(--dur-default) var(--spring-default); }
.pl-art:hover .pl-art-img, .player.is-playing .pl-art-img { border-radius: 50%; }
.pl-art-img > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player.is-playing .pl-art-img { animation: pl-shape 8s var(--spring-default) infinite; border-radius: 0; }
@keyframes pl-shape {
  0%, 100% { clip-path: var(--shape-cookie9); }
  33% { clip-path: var(--shape-clover4); }
  66% { clip-path: var(--shape-cookie12); }
}
.pl-text { min-width: 0; }
.pl-title, .pl-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-title { font-size: 15px; line-height: 20px; font-weight: 700; }
.pl-sub { font-size: 12px; line-height: 16px; color: var(--on-surface-variant); }
.pl-sub a { color: inherit; text-decoration: underline dotted; }
.pl-kicker { display: none; align-items: center; gap: 6px; font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--tertiary); }
.pl-kicker .badge { align-self: center; min-height: 16px; padding: 0 6px; font-size: 10px; }
.player[data-mode="kaos"] .pl-kicker { display: flex; }
.player[data-mode="kaos"] .live-dot { animation-play-state: paused; }
.player[data-mode="kaos"].is-playing .live-dot { animation-play-state: running; }

.pl-ctrl { grid-area: ctrl; display: flex; align-items: center; justify-content: center; gap: 4px; }
.pl-btn { width: 44px; height: 44px; }
.pl-btn[aria-pressed="true"] { background: var(--secondary-container); color: var(--on-secondary-container); border-radius: var(--shape-press); }
.pl-play {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 48px; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--shape-full); background: var(--primary); color: var(--on-primary);
  transition: border-radius var(--dur-fast) var(--spring-fast), width var(--dur-default) var(--spring-default), transform var(--dur-fast) var(--spring-fast);
}
.player.is-playing .pl-play { border-radius: var(--shape-lg); width: 56px; }
.pl-play:hover { transform: scale(1.06); }
.pl-play:active { transform: scale(.92); border-radius: var(--shape-md); }
.pl-play svg { width: 28px; height: 28px; }
.player.is-busy .pl-play { animation: pulse 1s ease-in-out infinite; }

.pl-seek { grid-area: seek; display: flex; align-items: center; gap: 10px; }
.pl-time { min-width: 38px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--on-surface-variant); }
.pl-track { position: relative; flex: 1; height: 24px; min-width: 0; }
.pl-rest { position: absolute; left: calc(var(--progress) + 6px); right: 0; top: 10px; height: 4px; border-radius: 2px; background: var(--outline-variant); }
.pl-wave {
  position: absolute; left: 0; top: 6px; height: 12px; width: max(0px, calc(var(--progress) - 6px)); background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cpath d='M0 6Q6 1 12 6T24 6' fill='none' stroke='%23000' stroke-width='3.5'/%3E%3C/svg%3E") 0 50% / 24px 12px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cpath d='M0 6Q6 1 12 6T24 6' fill='none' stroke='%23000' stroke-width='3.5'/%3E%3C/svg%3E") 0 50% / 24px 12px repeat-x;
}
.player.is-playing .pl-wave { animation: wave-run 1.2s linear infinite; }
.pl-track input, .pl-vol input { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; }
.pl-track input { position: relative; }
.pl-track input::-webkit-slider-runnable-track { height: 24px; background: transparent; }
.pl-track input::-moz-range-track { background: transparent; }
.pl-track input::-webkit-slider-thumb, .pl-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 6px; height: 22px; border-radius: 3px; border: 0; background: var(--primary); transition: height var(--dur-fast) var(--spring-fast); }
.pl-track input::-moz-range-thumb, .pl-vol input::-moz-range-thumb { width: 6px; height: 22px; border-radius: 3px; border: 0; background: var(--primary); }
.pl-track input:active::-webkit-slider-thumb { width: 4px; height: 24px; }
.pl-vol { display: inline-flex; align-items: center; gap: 4px; }
.pl-vol input { width: 96px; --pct: 80%; }
.pl-vol input::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--primary) var(--pct), var(--outline-variant) var(--pct)); }
.pl-vol input::-webkit-slider-thumb { margin-top: -7px; }
.pl-vol input::-moz-range-track { height: 8px; border-radius: 4px; background: var(--outline-variant); }
.pl-vol input::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--primary); }
.pl-extra { grid-area: extra; display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.pl-end { grid-area: end; display: flex; align-items: center; }
.pl-more { display: none; }
.pl-more svg { transition: transform var(--dur-default) var(--spring-default); }
.pl-kaos { display: none; }
.player [hidden] { display: none !important; }
.player[data-mode="kaos"] .pl-music { display: none; }
.player[data-mode="kaos"] .pl-kaos { display: inline-flex; }
.player[data-mode="kaos"] { grid-template-columns: minmax(0, 1fr) auto auto auto; grid-template-areas: "now ctrl extra end"; }

/* Narrow desktop and tablets: two rows */
@media (min-width: 600px) and (max-width: 1199.98px) {
  .player[data-mode="music"] { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "now ctrl end" "seek seek seek"; }
  .player[data-mode="music"] .pl-extra { display: none; }
  .player[data-mode="music"] .pl-more { display: inline-flex; }
  .player[data-mode="music"][data-expanded] { grid-template-areas: "now ctrl end" "seek seek seek" "extra extra extra"; }
  .player[data-mode="music"][data-expanded] .pl-extra { display: flex; justify-content: center; }
  .player[data-expanded] .pl-more svg { transform: rotate(180deg); }
}

/* Phones: compact bar above the navigation bar; "More controls" expands it */
@media (max-width: 599.98px) {
  .player, .player[data-mode="kaos"] {
    left: 8px; right: 8px; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 8px);
    grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "now ctrl end";
    column-gap: 4px; padding: 8px; border-radius: 24px;
  }
  .pl-art { width: 48px; height: 48px; }
  .pl-now { gap: 8px; }
  .pl-play { width: 48px; }
  .player.is-playing .pl-play { width: 48px; }
  .pl-ctrl { gap: 0; }
  .pl-end .pl-btn, .pl-ctrl .pl-btn { width: 40px; }
  .player .pl-ctrl .pl-opt, .player .pl-extra, .player .pl-seek { display: none; }
  .pl-more { display: inline-flex; }
  .player[data-mode="music"]::after { content: ""; position: absolute; left: 20px; bottom: 2px; height: 3px; border-radius: 2px; width: calc(var(--progress) * .88); background: var(--primary); }
  .player[data-expanded] { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "now end" "seek seek" "ctrl ctrl" "extra extra"; row-gap: 8px; padding: 12px; }
  .player[data-expanded]::after { display: none; }
  .player[data-expanded] .pl-ctrl { gap: 8px; }
  .player[data-expanded] .pl-ctrl .pl-opt { display: inline-flex; }
  .player[data-expanded] .pl-play, .player[data-expanded].is-playing .pl-play { width: 72px; height: 56px; }
  .player[data-expanded][data-mode="music"] .pl-seek { display: flex; }
  .player[data-expanded] .pl-extra { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
  .player[data-expanded] .pl-vol { flex: 1 1 100%; justify-content: center; }
  .player[data-expanded] .pl-vol input { width: 60%; }
  .player[data-expanded] .pl-more svg { transform: rotate(180deg); }
  .player[data-expanded][data-mode="music"] .pl-art { width: 72px; height: 72px; }
}

/* "KAOS-FM live" button while it is on */
.kaos-btn.is-on { background: var(--tertiary-container); color: var(--on-tertiary-container); }
.kaos-btn.is-on .live-dot { background: currentColor; }

/* Toast */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(var(--player-h) + 24px); translate: -50% 16px;
  max-width: min(92vw, 480px); padding: 14px 22px; border-radius: var(--shape-full);
  background: var(--on-surface); color: var(--surface); font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity var(--dur-effects) var(--effects), translate var(--dur-fast) var(--spring-fast), visibility 0s linear var(--dur-effects);
}
.toast.show { opacity: 1; visibility: visible; translate: -50% 0; transition-delay: 0s; }
@media (max-width: 599.98px) { .toast { bottom: calc(var(--bar-h) + var(--player-h) + 20px + env(safe-area-inset-bottom)); width: max-content; border-radius: 20px; } }

/* Router progress line */
.is-loading::after { content: ""; position: fixed; z-index: 90; left: 0; top: 0; height: 4px; width: 40%; border-radius: 0 4px 4px 0; background: var(--tertiary, #A9C7FF); animation: load-bar 1s var(--effects) infinite; }

@media (prefers-reduced-motion: reduce) {
  .player, .player.is-playing .pl-art-img, .player.is-playing .pl-wave, .player.is-busy .pl-play, .is-loading::after { animation: none !important; }
  .player.is-playing .pl-art-img { clip-path: var(--shape-cookie12); }
}

/* =====================================================================
   /music: hero, toolbar, artist chips, album grid, album and artist views.
   ===================================================================== */
@keyframes disc-spin { to { rotate: 360deg; } }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@keyframes skel { 50% { opacity: .45; } }

.music-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding-bottom: 24px; }
.music-hero-copy { flex: 1 1 480px; min-width: 0; --gap: 20px; }
.music-hero-cta .btn:disabled { opacity: .5; pointer-events: none; }
.music-wall { flex: 1 1 360px; position: relative; height: 380px; max-width: 560px; min-width: 0; isolation: isolate; }
.music-blob { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(360px, 90%); aspect-ratio: 1; translate: -50% -50%; background: var(--primary-container); }
.music-disc { position: absolute; right: 6%; top: 12%; width: 190px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--primary) 0 10%, var(--surface-container-lowest) 11% 16%, transparent 17%), repeating-radial-gradient(circle, #16171c 0 3px, #26272e 4px 5px); box-shadow: 0 20px 44px rgb(0 0 0 / .5); animation: disc-spin 8s linear infinite; }
.music-sleeve { position: absolute; width: 190px; height: 190px; object-fit: cover; border-radius: var(--shape-xl); box-shadow: 0 20px 44px rgb(0 0 0 / .55); transition: transform var(--dur-default) var(--spring-default), border-radius var(--dur-default) var(--spring-default); }
.music-sleeve.s0 { left: 4%; top: 6%; transform: rotate(-9deg); }
.music-sleeve.s1 { left: 22%; top: 36%; transform: rotate(3deg); z-index: 1; width: 220px; height: 220px; }
.music-sleeve.s2 { right: 2%; bottom: 4%; transform: rotate(10deg); width: 160px; height: 160px; }
.music-wall:hover .s0 { transform: rotate(-16deg) translate(-12px, -8px); }
.music-wall:hover .s1 { transform: rotate(-1deg) scale(1.06); border-radius: var(--shape-xl-hover); }
.music-wall:hover .s2 { transform: rotate(18deg) translate(12px, 6px); }
@media (max-width: 599.98px) {
  .music-hero { gap: 8px; padding-bottom: 8px; }
  .music-hero-cta .btn { flex: 1 1 100%; }
  .music-wall { display: none; }
}

.music-library { padding-top: 8px; scroll-margin-top: var(--topbar-h); }
.music-toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.music-field, .music-sort { display: flex; align-items: center; gap: 12px; min-height: 56px; border-radius: var(--shape-full); background: var(--surface-container-high); color: var(--on-surface-variant); transition: border-radius var(--dur-fast) var(--spring-fast), background-color var(--dur-effects) var(--effects); }
.music-field { flex: 1 1 280px; padding: 0 20px; }
.music-field:focus-within, .music-sort:focus-within { border-radius: var(--shape-lg); outline: 3px solid var(--tertiary); outline-offset: 2px; }
.music-field svg { width: 24px; height: 24px; flex: 0 0 auto; }
.music-field input { flex: 1; min-width: 0; min-height: 56px; border: 0; background: transparent; color: var(--on-surface); outline: none; }
.music-sort { position: relative; flex: 0 1 240px; padding: 0 20px; }
.music-sort select { appearance: none; flex: 1; min-width: 0; min-height: 56px; padding-right: 32px; border: 0; background: transparent; color: var(--on-surface); font-weight: 650; cursor: pointer; outline: none; }
.music-sort option { background: var(--surface-container-high); color: var(--on-surface); }
.music-sort svg { position: absolute; right: 18px; width: 20px; height: 20px; pointer-events: none; }
@media (max-width: 599.98px) { .music-sort { flex: 1 1 100%; } }

.music-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: thin; }
.music-chip { flex: 0 0 auto; display: inline-flex; gap: 3px; }
.music-chip > * { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 0; background: var(--secondary-container); color: var(--on-secondary-container); font-size: 14px; font-weight: 650; text-decoration: none; cursor: pointer; transition: border-radius var(--dur-fast) var(--spring-fast), background-color var(--dur-effects) var(--effects); }
.music-chip > a { padding: 0 14px 0 20px; border-radius: var(--shape-full) 10px 10px var(--shape-full); white-space: nowrap; }
.music-chip > button { width: 48px; padding: 0; border-radius: 10px var(--shape-full) var(--shape-full) 10px; }
.music-chip > a small { opacity: .75; font-weight: 600; }
.music-chip > :hover { background: var(--tertiary-container); color: var(--on-tertiary-container); }
.music-chip > :active { border-radius: var(--shape-full); }
.music-chip svg { width: 20px; height: 20px; }

.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, calc(50% - 8px)), 1fr)); gap: 16px; margin-top: 8px; }
.album-skel { aspect-ratio: 1 / 1.32; border-radius: var(--shape-xl); background: var(--surface-container); animation: skel 1.4s ease-in-out infinite; }
.album-card { display: flex; flex-direction: column; gap: 12px; padding: 10px 10px 16px; border: 0; border-radius: var(--shape-xl); background: var(--surface-container); color: var(--on-surface); text-align: left; cursor: pointer; transition: transform var(--dur-default) var(--spring-default), border-radius var(--dur-default) var(--spring-default), background-color var(--dur-effects) var(--effects); }
.album-grid.is-entering .album-card { animation: enter var(--dur-slow) var(--spring-default) backwards; animation-delay: calc(var(--i, 0) * var(--stagger-step)); }
.album-card:hover, .album-card:focus-visible { transform: translateY(-6px); border-radius: var(--shape-xl-hover); background: var(--surface-container-high); }
.album-card:active { transform: scale(.97); }
.album-card.is-playing { background: var(--secondary-container); color: var(--on-secondary-container); }
.cov { display: block; position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--surface-container-lowest); transition: border-radius var(--dur-default) var(--spring-default); }
.album-card:hover .cov { border-radius: 32px; }
.cov > img, .cov > .cov-ph, .album-art-cover > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cov-ph { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-stretch: 120%; font-size: clamp(28px, 6vw, 56px); text-shadow: 0 2px 14px rgb(0 0 0 / .45); user-select: none; }
.pl-art-img .cov-ph { font-size: 18px; }
.cov-go { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: var(--primary); color: var(--on-primary); clip-path: var(--shape-cookie9); opacity: 0; transform: scale(.4) rotate(-40deg); transition: transform var(--dur-default) var(--spring-default), opacity var(--dur-effects) var(--effects); }
.album-card:is(:hover, :focus-visible, .is-playing) .cov-go { opacity: 1; transform: none; }
.album-body { display: flex; flex-direction: column; gap: 2px; padding: 0 6px; min-width: 0; }
.album-body .t { font-size: 16px; line-height: 22px; font-weight: 700; overflow-wrap: anywhere; }
.album-body .a { font-size: 13px; line-height: 18px; font-weight: 650; color: var(--primary); }
.album-card.is-playing .a, .album-card.is-playing .m { color: inherit; }
.album-body .m { font-size: 12px; line-height: 16px; color: var(--on-surface-variant); }
.album-body .hit { font-size: 12px; line-height: 16px; color: var(--tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-empty { padding: 48px 0; text-align: center; color: var(--on-surface-variant); }

.album-view { display: flex; flex-direction: column; gap: 24px; max-width: 1040px; }
.album-back { align-self: flex-start; }
.album-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px; }
.album-art { position: relative; width: min(100%, 340px); aspect-ratio: 1; flex: 0 0 auto; border-radius: var(--shape-xxl); overflow: hidden; box-shadow: 0 24px 56px rgb(0 0 0 / .55); background: var(--surface-container-lowest); }
.album-art-cover { position: absolute; inset: 0; }
.album-art .cov-ph { font-size: clamp(48px, 14vw, 112px); }
.album-info { flex: 1 1 340px; min-width: 0; }
.album-info h2, #artistName { overflow-wrap: anywhere; outline: none; }
.artist-link { color: inherit; text-decoration: underline dotted; }
.album-actions { margin-top: 12px; }
.album-prompt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 24px; border-radius: var(--shape-xl); background: var(--tertiary-container); color: var(--on-tertiary-container); }
.album-desc { max-width: 70ch; }
.album-desc p + p { margin-top: 12px; }
.artist-h { margin: 8px 0 16px; }

.track-list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.track-li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; border-radius: var(--shape-lg); background: var(--surface-container-low); animation: enter var(--dur-slow) var(--spring-default) backwards; animation-delay: calc(var(--i, 0) * 30ms); transition: border-radius var(--dur-default) var(--spring-default), background-color var(--dur-effects) var(--effects); }
.track-li:first-child { border-radius: var(--shape-xl) var(--shape-xl) var(--shape-lg) var(--shape-lg); }
.track-li:last-child { border-radius: var(--shape-lg) var(--shape-lg) var(--shape-xl) var(--shape-xl); }
.track-li:hover { background: var(--surface-container-high); border-radius: var(--shape-xl); }
.track-li:has(.is-current) { background: var(--secondary-container); color: var(--on-secondary-container); border-radius: var(--shape-full); }
.track-li.is-target { outline: 3px solid var(--tertiary); outline-offset: -3px; }
.track-row { grid-column: 1; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 64px; padding: 8px 8px 8px 12px; border: 0; border-radius: inherit; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.track-row .n { flex: 0 0 28px; display: flex; justify-content: flex-end; font-size: 13px; font-variant-numeric: tabular-nums; opacity: .8; }
.track-row .tt { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.track-row .tt small { display: block; font-size: 12px; font-weight: 400; opacity: .8; }
.track-row.is-current .tt { font-weight: 800; }
.track-row .d { font-size: 13px; font-variant-numeric: tabular-nums; opacity: .8; }
.track-row .pp { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--shape-full); background: var(--surface-container-highest); color: var(--primary); transition: border-radius var(--dur-fast) var(--spring-fast), background-color var(--dur-effects) var(--effects); }
.track-row .pp svg { width: 20px; height: 20px; }
.track-row:hover .pp, .track-row.is-current .pp { background: var(--primary); color: var(--on-primary); border-radius: var(--shape-press); }
.track-act { width: 44px; height: 48px; color: inherit; }
.track-act svg { width: 20px; height: 20px; }
.trk-artist { grid-column: 1; display: inline-flex; align-items: center; justify-self: start; min-height: 32px; padding: 0 12px 6px 52px; font-size: 12px; font-weight: 650; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 16px; }
.eq i { width: 4px; height: 40%; border-radius: 2px; background: currentColor; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.6s; }
.eq.is-paused i { animation-play-state: paused; }
@media (max-width: 599.98px) {
  .album-head { gap: 20px; }
  .album-art { margin-inline: auto; width: min(100%, 300px); border-radius: 36px; }
  .track-row { gap: 8px; padding-left: 8px; }
  .track-row .n { flex-basis: 22px; }
  .track-row .d { display: none; }
  .track-act { width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .music-disc, .album-skel, .eq i, .track-li, .album-grid.is-entering .album-card { animation: none !important; }
  .eq i { height: 70%; }
  .album-card:hover, .music-wall:hover .music-sleeve { transform: none; }
}

/* =====================================================================
   Content pages: portfolio timeline, Lab index and field notes, privacy,
   terms and child safety.
   ===================================================================== */
@keyframes tl-in { from { opacity: 0; transform: translateX(48px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes read { to { scale: 1 1; } }

/* ---- Portfolio ---- */
.tl { display: flex; flex-direction: column; gap: 16px; max-width: 1100px; }
.tl-group { position: relative; display: flex; flex-direction: column; gap: 16px; padding-left: 40px; }
.tl-group::before { content: ""; position: absolute; left: 13px; top: 0; bottom: -16px; width: 6px; border-radius: 3px; background: var(--surface-container-high); }
.tl-year { position: sticky; top: calc(var(--topbar-h) + 8px); z-index: 3; align-self: flex-start; margin-left: -40px; }
.tl-year span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: var(--shape-full); background: var(--primary-container); color: var(--on-primary-container); font-size: 22px; font-weight: 850; font-stretch: 122%; box-shadow: 0 6px 16px rgb(0 0 0 / .4); }
.tl-item { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; scroll-margin-top: calc(var(--topbar-h) + 72px); }
.tl-dot { position: absolute; left: -37px; top: 2px; width: 26px; height: 26px; background: var(--outline); clip-path: var(--shape-cookie9); transition: clip-path var(--dur-default) var(--spring-default), transform var(--dur-default) var(--spring-default); }
.is-active .tl-dot { background: var(--tertiary); }
.is-open .tl-dot { background: var(--primary); }
.tl-item:hover .tl-dot { clip-path: var(--shape-clover4); transform: rotate(45deg) scale(1.2); }
.tl-date { font-size: 12px; line-height: 20px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--on-surface-variant); }
.tl-date::after { content: " · " attr(data-label); text-transform: none; letter-spacing: 0; font-weight: 400; }
.tl-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 24px; border-radius: var(--shape-xl); background: var(--surface-container); transition: border-radius var(--dur-default) var(--spring-default), background-color var(--dur-effects) var(--effects); }
.tl-card:hover { border-radius: var(--shape-xl-hover); background: var(--surface-container-high); }
.is-discontinued .tl-card { background: var(--surface-container-low); }
.tl-item:target .tl-card { outline: 3px solid var(--tertiary); outline-offset: 2px; }
.tl-head { display: flex; align-items: center; gap: 16px; }
.tl-icon { width: 64px; height: 64px; flex: 0 0 auto; object-fit: cover; border-radius: var(--shape-lg); background: var(--surface-container-lowest); transition: border-radius var(--dur-default) var(--spring-default), transform var(--dur-default) var(--spring-default); }
.tl-card:hover .tl-icon { border-radius: 50%; transform: rotate(-8deg) scale(1.05); }
.tl-head > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.tl-card h2 { font-size: 22px; line-height: 28px; font-weight: 700; font-stretch: 106%; overflow-wrap: anywhere; }
.tl-status { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 12px; border-radius: var(--shape-full); background: var(--surface-container-highest); color: var(--on-surface-variant); font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.tl-status.is-active { background: var(--tertiary-container); color: var(--on-tertiary-container); }
.tl-sub { font-size: 17px; line-height: 25px; }
.tl .tl-shots { padding: 4px 0; scroll-padding-inline: 0; scroll-snap-type: x proximity; }
.tl .shot { height: 300px; border-radius: 20px; animation: none; }
.tl .shot-wide { height: auto; width: min(80%, 480px); }
.tl-linkrow { display: flex; flex-wrap: wrap; gap: 4px 6px; font-weight: 650; }
.tl-note { color: var(--on-surface-variant); font-style: italic; font-size: 14px; }
.tl-desc { border-radius: var(--shape-lg); background: rgb(0 0 0 / .2); transition: border-radius var(--dur-default) var(--spring-default); }
.tl-desc[open] { border-radius: var(--shape-xl); }
.tl-desc summary { display: flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: inherit; color: var(--primary); font-weight: 700; cursor: pointer; }
.tl-desc p, .tl-desc ul, .tl-desc ol { margin: 0; padding: 0 20px 14px; color: var(--on-surface-variant); font-size: 14px; line-height: 21px; overflow-wrap: anywhere; }
.tl-desc ul, .tl-desc ol { padding-left: 40px; }
.tl-desc::details-content { block-size: 0; overflow: hidden; transition: block-size var(--dur-default) var(--spring-default), content-visibility var(--dur-default) allow-discrete; }
.tl-desc[open]::details-content { block-size: auto; }
.tl-end { padding-left: 40px; }
@supports (animation-timeline: view()) { .tl-card { animation: tl-in linear both; animation-timeline: view(); animation-range: entry 0% entry 220px; } }
@media (max-width: 599.98px) {
  .tl-group { padding-left: 28px; }
  .tl-group::before { left: 7px; width: 4px; }
  .tl-year { margin-left: -28px; }
  .tl-dot { left: -27px; width: 18px; height: 18px; }
  .tl-card { padding: 16px; }
  .tl-card h2 { font-size: 18px; line-height: 24px; }
  .tl-icon { width: 52px; height: 52px; }
  .tl .shot { height: 240px; }
  .tl-end { padding-left: 28px; }
}

/* ---- Lab ---- */
.lab-hero { position: relative; isolation: isolate; }
.lab-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.lab-card { flex-direction: row; align-items: flex-start; gap: 20px; padding: 28px; }
.lab-card h2 { overflow-wrap: anywhere; }
.lab-glyph { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 72px; height: 72px; background: var(--tertiary-container); color: var(--on-tertiary-container); transition: clip-path var(--dur-default) var(--spring-default), transform var(--dur-default) var(--spring-default); }
.lab-glyph svg { width: 32px; height: 32px; }
.lab-card:hover .lab-glyph { clip-path: var(--shape-clover4); transform: rotate(45deg); }
.lab-card:hover .lab-glyph svg { transform: rotate(-45deg); }
.btn svg[fill="currentColor"] { width: 18px; height: 18px; }
@media (max-width: 599.98px) { .lab-card { flex-direction: column; padding: 20px; gap: 14px; } .lab-glyph { width: 56px; height: 56px; } }

/* ---- Field notes ---- */
.read-progress { position: fixed; z-index: 45; left: 0; right: 0; top: 0; height: 4px; background: var(--tertiary); transform-origin: left; scale: 0 1; pointer-events: none; }
@supports (animation-timeline: scroll()) { .read-progress { animation: read linear both; animation-timeline: scroll(root); } }
.note-head { padding-bottom: 8px; }
.note-head h1 { overflow-wrap: anywhere; }
.note-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; max-width: 900px; }
.note-toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 16px; border-radius: var(--shape-md); background: var(--surface-container-high); color: var(--on-surface-variant); font-size: 14px; font-weight: 600; text-decoration: none; transition: border-radius var(--dur-fast) var(--spring-fast), background-color var(--dur-effects) var(--effects); }
.note-toc a:hover { border-radius: var(--shape-full); background: var(--secondary-container); color: var(--on-secondary-container); }
.prose { max-width: calc(800px + 2 * var(--gutter)); padding-top: 24px; padding-bottom: 24px; font-size: 17px; line-height: 28px; overflow-wrap: break-word; }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 56px; font-size: clamp(24px, 1.1rem + .9vw, 30px); line-height: 1.25; font-weight: 750; font-stretch: 108%; }
.prose h3 { margin-top: 36px; font-size: 20px; line-height: 28px; font-weight: 700; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--tertiary); }
.prose code { padding: 2px 6px; border-radius: var(--shape-xs); background: var(--surface-container-high); font-size: .86em; }
.prose pre { margin-bottom: 0; padding: 20px; overflow-x: auto; border-radius: var(--shape-xl); background: var(--surface-container-lowest); box-shadow: inset 0 0 0 1px var(--outline-variant); font: 13px/1.6 var(--font-mono); overflow-wrap: normal; }
.prose pre code { padding: 0; background: none; font-size: inherit; }
.code { position: relative; }
.code pre { margin-top: 0; padding-top: 56px; }
.code-copy { position: absolute; right: 8px; top: 8px; min-height: 40px; padding: 0 16px; }
.table-scroll { overflow-x: auto; border-radius: var(--shape-xl); background: var(--surface-container); }
.note-table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 14px; line-height: 21px; }
.note-table th, .note-table td { padding: 12px 16px; border-bottom: 1px solid var(--outline-variant); text-align: left; vertical-align: top; }
.note-table tr:last-child > * { border-bottom: 0; }
.note-table th { color: var(--tertiary); font-weight: 700; }
.note-table tbody tr { transition: background-color var(--dur-effects) var(--effects); }
.note-table tbody tr:hover { background: var(--surface-container-high); }
.callout { padding: 20px 24px; border-radius: var(--shape-xl); background: var(--tertiary-container); color: var(--on-tertiary-container); }
.callout a, .callout code { color: inherit; }
.callout code { background: rgb(0 0 0 / .28); }
.mf-fig { margin-block: 32px; }
.mf-fig img, .mf-fig svg { width: 100%; height: auto; border-radius: var(--shape-xl); background: #0b0f14; box-shadow: inset 0 0 0 1px var(--outline-variant); }
.mf-fig figcaption { margin-top: 10px; color: var(--on-surface-variant); font-size: 14px; line-height: 21px; }
.prose audio { width: 100%; }
@supports (animation-timeline: view()) { .mf-fig, .callout { animation: enter linear both; animation-timeline: view(); animation-range: entry 0% entry 200px; } }
.note-foot { display: flex; flex-direction: column; gap: 20px; max-width: calc(800px + 2 * var(--gutter)); }
.note-foot .btn { white-space: normal; text-align: center; }

/* ---- Legal ---- */
.legal-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; max-width: calc(820px + 2 * var(--gutter)); padding-bottom: 0; }
.legal-lang-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.legal-lang-bar > label { font-size: 14px; color: var(--on-surface-variant); }
.da-pick { position: relative; min-width: 13rem; }
.da-pick-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--shape-full); background: var(--surface-container-high); color: var(--on-surface); font-weight: 650; cursor: pointer; transition: border-radius var(--dur-fast) var(--spring-fast), background-color var(--dur-effects) var(--effects); }
.da-pick-btn:hover { background: var(--surface-container-highest); }
.da-pick-btn[aria-expanded="true"] { border-radius: var(--shape-lg); }
.da-pick-chev { flex: none; color: var(--primary); transition: transform var(--dur-default) var(--spring-default); }
.da-pick-btn[aria-expanded="true"] .da-pick-chev { transform: rotate(180deg); }
.da-pick-list { position: fixed; z-index: 70; margin: 0; padding: 8px; list-style: none; overflow-y: auto; overscroll-behavior: contain; border-radius: 24px; background: var(--surface-container-high); box-shadow: 0 12px 32px rgb(0 0 0 / .55); animation: menu-in var(--dur-fast) var(--spring-fast); }
.da-pick-list[hidden] { display: none; }
.da-pick-list li { display: flex; align-items: center; min-height: 48px; padding: 8px 16px; border-radius: var(--shape-lg); cursor: pointer; }
.da-pick-list li.is-active { background: var(--surface-container-highest); border-radius: var(--shape-full); }
.da-pick-list li[aria-selected="true"] { background: var(--secondary-container); color: var(--on-secondary-container); font-weight: 700; }
.legal-wrap { max-width: calc(820px + 2 * var(--gutter)); font-size: 16px; line-height: 26px; overflow-wrap: break-word; }
.legal-wrap h1 { margin: 0 0 16px; font-size: clamp(32px, 1.4rem + 1.7vw, 45px); line-height: 1.15; font-weight: 800; font-stretch: 112%; text-wrap: balance; }
.legal-wrap h2 { margin: 48px 0 16px; padding: 18px 24px; border-radius: var(--shape-xl); background: var(--surface-container); font-size: clamp(20px, 1rem + .8vw, 26px); line-height: 1.3; font-weight: 750; font-stretch: 106%; scroll-margin-top: calc(var(--topbar-h) + 12px); }
.legal-wrap h2:target { background: var(--primary-container); color: var(--on-primary-container); }
.legal-wrap h3 { margin: 28px 0 8px; font-size: 18px; line-height: 26px; font-weight: 700; scroll-margin-top: calc(var(--topbar-h) + 12px); }
.legal-wrap h3:target { color: var(--tertiary); }
.legal-wrap p { margin: 0 0 14px; color: var(--on-surface-variant); }
.legal-wrap ul, .legal-wrap ol { margin: 0 0 16px; padding-left: 24px; color: var(--on-surface-variant); }
.legal-wrap li { margin-bottom: 8px; }
.legal-wrap li::marker { color: var(--tertiary); }
.legal-wrap strong { color: var(--on-surface); }
.legal-wrap hr { margin: 32px 0; border: 0; border-top: 1px solid var(--outline-variant); }
.legal-wrap .legal-note { color: var(--tertiary); }
.legal-wrap code { overflow-wrap: anywhere; }
.legal-wrap[dir="rtl"] { text-align: right; }
.legal-wrap[dir="rtl"] ul, .legal-wrap[dir="rtl"] ol { padding-left: 0; padding-right: 24px; }
body[data-page="privacy"] { overflow-anchor: none; }

@media (prefers-reduced-motion: reduce) {
  .tl-card, .mf-fig, .callout, .read-progress, .da-pick-list { animation: none !important; }
  .read-progress { display: none; }
}
