/* Flixotech: Material 3 design tokens. GENERATED by tools/palette.py - edit the script, not this file. */
:root {
  /* ---- reference tonal palettes (CIELAB-LCh approximation of HCT, see DESIGN.md) ---- */
  --md-ref-palette-primary0: #000000; --md-ref-palette-primary4: #210500; --md-ref-palette-primary6: #2A0800; --md-ref-palette-primary10: #3D0600; --md-ref-palette-primary12: #480200; --md-ref-palette-primary17: #5D0005; --md-ref-palette-primary20: #69000A; --md-ref-palette-primary22: #71000D; --md-ref-palette-primary24: #79000F; --md-ref-palette-primary25: #7E0010; --md-ref-palette-primary30: #930015; --md-ref-palette-primary35: #A9001A; --md-ref-palette-primary40: #C0001F; --md-ref-palette-primary50: #EF002A; --md-ref-palette-primary60: #FF544D; --md-ref-palette-primary70: #FF897C; --md-ref-palette-primary80: #FFB4A9; --md-ref-palette-primary87: #FFCFC8; --md-ref-palette-primary90: #FFDAD5; --md-ref-palette-primary92: #FFE2DD; --md-ref-palette-primary94: #FFE9E6; --md-ref-palette-primary95: #FFEDEA; --md-ref-palette-primary96: #FFF0EE; --md-ref-palette-primary98: #FFF8F7; --md-ref-palette-primary99: #FFFBFB; --md-ref-palette-primary100: #FFFFFF;
  --md-ref-palette-secondary0: #000000; --md-ref-palette-secondary4: #1A0A00; --md-ref-palette-secondary6: #210F00; --md-ref-palette-secondary10: #2E1500; --md-ref-palette-secondary12: #351800; --md-ref-palette-secondary17: #471F00; --md-ref-palette-secondary20: #522300; --md-ref-palette-secondary22: #582703; --md-ref-palette-secondary24: #5D2C09; --md-ref-palette-secondary25: #5F2E0C; --md-ref-palette-secondary30: #6D3917; --md-ref-palette-secondary35: #7B4522; --md-ref-palette-secondary40: #88502D; --md-ref-palette-secondary50: #A46944; --md-ref-palette-secondary60: #C1825C; --md-ref-palette-secondary70: #DE9C75; --md-ref-palette-secondary80: #FCB78F; --md-ref-palette-secondary87: #FFD0B6; --md-ref-palette-secondary90: #FFDBC8; --md-ref-palette-secondary92: #FFE3D3; --md-ref-palette-secondary94: #FFEADE; --md-ref-palette-secondary95: #FFEDE4; --md-ref-palette-secondary96: #FFF1E9; --md-ref-palette-secondary98: #FFF8F4; --md-ref-palette-secondary99: #FFFBFA; --md-ref-palette-secondary100: #FFFFFF;
  --md-ref-palette-tertiary0: #000000; --md-ref-palette-tertiary4: #1A0A00; --md-ref-palette-tertiary6: #210F00; --md-ref-palette-tertiary10: #2E1500; --md-ref-palette-tertiary12: #351800; --md-ref-palette-tertiary17: #471F00; --md-ref-palette-tertiary20: #522300; --md-ref-palette-tertiary22: #592600; --md-ref-palette-tertiary24: #612900; --md-ref-palette-tertiary25: #652A00; --md-ref-palette-tertiary30: #773200; --md-ref-palette-tertiary35: #8A3B00; --md-ref-palette-tertiary40: #9C4400; --md-ref-palette-tertiary50: #C35700; --md-ref-palette-tertiary60: #EB6B00; --md-ref-palette-tertiary70: #FF8D42; --md-ref-palette-tertiary80: #FFB68B; --md-ref-palette-tertiary87: #FFD0B6; --md-ref-palette-tertiary90: #FFDBC8; --md-ref-palette-tertiary92: #FFE3D3; --md-ref-palette-tertiary94: #FFEADE; --md-ref-palette-tertiary95: #FFEDE4; --md-ref-palette-tertiary96: #FFF1E9; --md-ref-palette-tertiary98: #FFF8F4; --md-ref-palette-tertiary99: #FFFBFA; --md-ref-palette-tertiary100: #FFFFFF;
  --md-ref-palette-error0: #000000; --md-ref-palette-error4: #200700; --md-ref-palette-error6: #280A00; --md-ref-palette-error10: #3A0B00; --md-ref-palette-error12: #430A00; --md-ref-palette-error17: #5B0400; --md-ref-palette-error20: #690000; --md-ref-palette-error22: #720002; --md-ref-palette-error24: #7A0004; --md-ref-palette-error25: #7E0005; --md-ref-palette-error30: #93000A; --md-ref-palette-error35: #A41414; --md-ref-palette-error40: #B4271F; --md-ref-palette-error50: #D34535; --md-ref-palette-error60: #F3614D; --md-ref-palette-error70: #FF8A75; --md-ref-palette-error80: #FFB4A5; --md-ref-palette-error87: #FFCFC5; --md-ref-palette-error90: #FFDAD3; --md-ref-palette-error92: #FFE2DC; --md-ref-palette-error94: #FFE9E5; --md-ref-palette-error95: #FFEDE9; --md-ref-palette-error96: #FFF0ED; --md-ref-palette-error98: #FFF8F6; --md-ref-palette-error99: #FFFBFB; --md-ref-palette-error100: #FFFFFF;
  --md-ref-palette-neutral0: #000000; --md-ref-palette-neutral4: #190A07; --md-ref-palette-neutral6: #1C100E; --md-ref-palette-neutral10: #241917; --md-ref-palette-neutral12: #281D1B; --md-ref-palette-neutral17: #332726; --md-ref-palette-neutral20: #3A2E2C; --md-ref-palette-neutral22: #3E3230; --md-ref-palette-neutral24: #433634; --md-ref-palette-neutral25: #453937; --md-ref-palette-neutral30: #514442; --md-ref-palette-neutral35: #5D4F4D; --md-ref-palette-neutral40: #695B59; --md-ref-palette-neutral50: #827472; --md-ref-palette-neutral60: #9C8D8B; --md-ref-palette-neutral70: #B7A8A5; --md-ref-palette-neutral80: #D3C3C1; --md-ref-palette-neutral87: #E6D6D4; --md-ref-palette-neutral90: #EFDFDC; --md-ref-palette-neutral92: #F5E5E2; --md-ref-palette-neutral94: #FBEAE8; --md-ref-palette-neutral95: #FDEDEB; --md-ref-palette-neutral96: #FFF0EE; --md-ref-palette-neutral98: #FFF8F7; --md-ref-palette-neutral99: #FFFBFB; --md-ref-palette-neutral100: #FFFFFF;
  --md-ref-palette-neutral-variant0: #000000; --md-ref-palette-neutral-variant4: #210500; --md-ref-palette-neutral-variant6: #250C04; --md-ref-palette-neutral-variant10: #2D1511; --md-ref-palette-neutral-variant12: #311916; --md-ref-palette-neutral-variant17: #3D2320; --md-ref-palette-neutral-variant20: #442926; --md-ref-palette-neutral-variant22: #492E2A; --md-ref-palette-neutral-variant24: #4E322E; --md-ref-palette-neutral-variant25: #503431; --md-ref-palette-neutral-variant30: #5C403C; --md-ref-palette-neutral-variant35: #694B47; --md-ref-palette-neutral-variant40: #755753; --md-ref-palette-neutral-variant50: #8F706B; --md-ref-palette-neutral-variant60: #AA8984; --md-ref-palette-neutral-variant70: #C6A39E; --md-ref-palette-neutral-variant80: #E2BEB9; --md-ref-palette-neutral-variant87: #F6D2CC; --md-ref-palette-neutral-variant90: #FFDAD5; --md-ref-palette-neutral-variant92: #FFE2DD; --md-ref-palette-neutral-variant94: #FFE9E6; --md-ref-palette-neutral-variant95: #FFEDEA; --md-ref-palette-neutral-variant96: #FFF0EE; --md-ref-palette-neutral-variant98: #FFF8F7; --md-ref-palette-neutral-variant99: #FFFBFB; --md-ref-palette-neutral-variant100: #FFFFFF;
  /* ---- system colour roles, light scheme ---- */
  --md-sys-color-primary: #C8102E; /* anchor: app deep red (P40 = #C0001F) */
  --md-sys-color-on-primary: #FFFFFF; /* P100 */
  --md-sys-color-primary-container: #FFDAD5; /* P90 */
  --md-sys-color-on-primary-container: #3D0600; /* P10 */
  --md-sys-color-secondary: #88502D; /* S40 */
  --md-sys-color-on-secondary: #FFFFFF; /* S100 */
  --md-sys-color-secondary-container: #FFDBC8; /* S90 */
  --md-sys-color-on-secondary-container: #2E1500; /* S10 */
  --md-sys-color-tertiary: #9C4400; /* T40 */
  --md-sys-color-on-tertiary: #FFFFFF; /* T100 */
  --md-sys-color-tertiary-container: #FFDBC8; /* T90 */
  --md-sys-color-on-tertiary-container: #2E1500; /* T10 */
  --md-sys-color-error: #B4271F; /* E40 */
  --md-sys-color-on-error: #FFFFFF; /* E100 */
  --md-sys-color-error-container: #FFDAD3; /* E90 */
  --md-sys-color-on-error-container: #3A0B00; /* E10 */
  --md-sys-color-surface: #FFF5F3; /* anchor: app background (N98 = #FFF8F7) */
  --md-sys-color-surface-dim: #E6D6D4; /* N87 */
  --md-sys-color-surface-bright: #FFF5F3; /* anchor: app background */
  --md-sys-color-surface-container-lowest: #FFFFFF; /* anchor: app surface / N100 */
  --md-sys-color-surface-container-low: #FFF0EE; /* N96 */
  --md-sys-color-surface-container: #FBEAE8; /* N94 */
  --md-sys-color-surface-container-high: #F5E5E2; /* N92 */
  --md-sys-color-surface-container-highest: #EFDFDC; /* N90 */
  --md-sys-color-on-surface: #1A0B0B; /* anchor: app text (N10 = #241917) */
  --md-sys-color-on-surface-variant: #5C403C; /* NV30 (app #8A6B64 is 4.49:1 on surface, fails AA) */
  --md-sys-color-outline: #8F706B; /* NV50 */
  --md-sys-color-outline-variant: #FBE0E0; /* anchor: app border (NV90 = #FFDAD5) */
  --md-sys-color-inverse-surface: #3D2320; /* NV17, deep warm brown-red */
  --md-sys-color-inverse-on-surface: #FDEDEB; /* N95 */
  --md-sys-color-inverse-primary: #FFB4A9; /* P80 */
  --md-sys-color-scrim: #000000; /* N0 */
  --md-sys-color-shadow: #000000; /* N0 */
  /* ---- brand tokens from the app (Sunset Red) ---- */
  --brand-red: #FB1E32;
  --brand-orange: #FE7502;
  --brand-accent: #FA0545;
  --brand-deep: #C8102E;
  --brand-ink-muted: #8A6B64;
  --hero: #C8102E;
  --hero-deep: #930015;
  --hero-chip: #930015;
  --hero-highlight: #FFDAD5;
  --bezel: #06101F;
  --player: #0F1B33;
  --player-border: #1C2A45;
  --brand-gradient: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-orange) 100%);
  /* ---- type scale (M3, px values; rem = px / 16) ---- */
  --md-ref-typeface-brand: Roboto, "Google Sans", system-ui, "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --md-ref-typeface-plain: Roboto, system-ui, "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --md-ref-typeface-mono: "Roboto Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --md-sys-typescale-display-large: 400 3.5625rem/4rem var(--md-ref-typeface-brand);      --md-sys-typescale-display-large-tracking: -0.25px;
  --md-sys-typescale-display-medium: 400 2.8125rem/3.25rem var(--md-ref-typeface-brand);  --md-sys-typescale-display-medium-tracking: 0;
  --md-sys-typescale-display-small: 400 2.25rem/2.75rem var(--md-ref-typeface-brand);     --md-sys-typescale-display-small-tracking: 0;
  --md-sys-typescale-headline-large: 400 2rem/2.5rem var(--md-ref-typeface-brand);        --md-sys-typescale-headline-large-tracking: 0;
  --md-sys-typescale-headline-medium: 400 1.75rem/2.25rem var(--md-ref-typeface-brand);   --md-sys-typescale-headline-medium-tracking: 0;
  --md-sys-typescale-headline-small: 400 1.5rem/2rem var(--md-ref-typeface-brand);        --md-sys-typescale-headline-small-tracking: 0;
  --md-sys-typescale-title-large: 400 1.375rem/1.75rem var(--md-ref-typeface-brand);      --md-sys-typescale-title-large-tracking: 0;
  --md-sys-typescale-title-medium: 500 1rem/1.5rem var(--md-ref-typeface-plain);          --md-sys-typescale-title-medium-tracking: 0.15px;
  --md-sys-typescale-title-small: 500 0.875rem/1.25rem var(--md-ref-typeface-plain);      --md-sys-typescale-title-small-tracking: 0.1px;
  --md-sys-typescale-body-large: 400 1rem/1.5rem var(--md-ref-typeface-plain);            --md-sys-typescale-body-large-tracking: 0.5px;
  --md-sys-typescale-body-medium: 400 0.875rem/1.25rem var(--md-ref-typeface-plain);      --md-sys-typescale-body-medium-tracking: 0.25px;
  --md-sys-typescale-body-small: 400 0.75rem/1rem var(--md-ref-typeface-plain);           --md-sys-typescale-body-small-tracking: 0.4px;
  --md-sys-typescale-label-large: 500 0.875rem/1.25rem var(--md-ref-typeface-plain);      --md-sys-typescale-label-large-tracking: 0.1px;
  --md-sys-typescale-label-medium: 500 0.75rem/1rem var(--md-ref-typeface-plain);         --md-sys-typescale-label-medium-tracking: 0.5px;
  --md-sys-typescale-label-small: 500 0.6875rem/1rem var(--md-ref-typeface-plain);        --md-sys-typescale-label-small-tracking: 0.5px;
  --md-sys-typescale-emphasized-weight: 600; /* M3 Expressive "emphasized" styles for headings */

  /* ---- shape scale ---- */
  --md-sys-shape-corner-none: 0;
  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-extra-large: 28px;
  --md-sys-shape-corner-full: 9999px;

  /* ---- elevation: tonal surface first, shadow second ---- */
  --md-sys-elevation-level0: none;
  --md-sys-elevation-level1: 0 1px 2px rgb(0 0 0 / .30), 0 1px 3px 1px rgb(0 0 0 / .15);
  --md-sys-elevation-level2: 0 1px 2px rgb(0 0 0 / .30), 0 2px 6px 2px rgb(0 0 0 / .15);
  --md-sys-elevation-level3: 0 1px 3px rgb(0 0 0 / .30), 0 4px 8px 3px rgb(0 0 0 / .15);
  --md-sys-elevation-level4: 0 2px 3px rgb(0 0 0 / .30), 0 6px 10px 4px rgb(0 0 0 / .15);
  --md-sys-elevation-level5: 0 4px 4px rgb(0 0 0 / .30), 0 8px 12px 6px rgb(0 0 0 / .15);
  --md-sys-elevation-surface-level1: var(--md-sys-color-surface-container-low);
  --md-sys-elevation-surface-level2: var(--md-sys-color-surface-container);
  --md-sys-elevation-surface-level3: var(--md-sys-color-surface-container-high);
  --md-sys-elevation-surface-level4: var(--md-sys-color-surface-container-high);
  --md-sys-elevation-surface-level5: var(--md-sys-color-surface-container-highest);

  /* ---- state layers ---- */
  --md-sys-state-hover-opacity: .08;
  --md-sys-state-focus-opacity: .10;
  --md-sys-state-pressed-opacity: .10;
  --md-sys-state-dragged-opacity: .16;
  --md-sys-state-disabled-container-opacity: .12;
  --md-sys-state-disabled-content-opacity: .38;

  /* ---- motion ---- */
  --md-sys-motion-easing-standard: cubic-bezier(.2, 0, 0, 1);
  --md-sys-motion-easing-standard-decelerate: cubic-bezier(0, 0, 0, 1);
  --md-sys-motion-easing-standard-accelerate: cubic-bezier(.3, 0, 1, 1);
  --md-sys-motion-easing-emphasized: cubic-bezier(.2, 0, 0, 1);
  --md-sys-motion-easing-emphasized-decelerate: cubic-bezier(.05, .7, .1, 1);
  --md-sys-motion-easing-emphasized-accelerate: cubic-bezier(.3, 0, .8, .15);
  --md-sys-motion-duration-short1: 50ms;  --md-sys-motion-duration-short2: 100ms;
  --md-sys-motion-duration-short3: 150ms; --md-sys-motion-duration-short4: 200ms;
  --md-sys-motion-duration-medium1: 250ms; --md-sys-motion-duration-medium2: 300ms;
  --md-sys-motion-duration-medium3: 350ms; --md-sys-motion-duration-medium4: 400ms;
  --md-sys-motion-duration-long1: 450ms; --md-sys-motion-duration-long2: 500ms;
  --md-sys-motion-duration-long3: 550ms; --md-sys-motion-duration-long4: 600ms;

  /* ---- layout: 8dp grid and window size classes ---- */
  --grid: 8px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 40px; --space-8: 48px; --space-9: 64px; --space-10: 80px; --space-11: 96px; --space-12: 128px;
  --layout-margin: 16px;   /* compact */
  --layout-gutter: 16px;
  --layout-columns: 4;
  --layout-max: 1200px;
}
/* window size classes (M3): compact <600, medium 600-839, expanded 840-1199, large 1200-1599, extra-large >=1600 */
@media (min-width: 600px) { :root { --layout-margin: 24px; --layout-gutter: 24px; --layout-columns: 8; } }
@media (min-width: 840px) { :root { --layout-margin: 24px; --layout-gutter: 24px; --layout-columns: 12; } }
@media (min-width: 1200px) { :root { --layout-margin: 32px; --layout-gutter: 24px; --layout-columns: 12; } }
@media (min-width: 1600px) { :root { --layout-margin: 40px; --layout-gutter: 32px; --layout-columns: 12; --layout-max: 1360px; } }


/* Flixotech: site styles built on the M3 tokens in tokens.css (build.py puts both into one file).
   1 base · 2 layout + window classes · 3 type roles · 4 state layer + ripple · 5 buttons, FAB, icon buttons
   6 chips · 7 cards · 8 lists, dividers, badges, progress · 9 announce + top app bar + drawer
   10 hero + page hero · 11 phone mockups · 12 home sections · 13 app page · 14 expansion (FAQ)
   15 text fields + form + snackbar · 16 status pages · 17 footer · 18 install bar
   19 motion (entrance, reveal, view transitions) · 20 reduced motion · 21 window-class rules */

/* 1. BASE ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; min-width: 320px; overflow-x: hidden;
  background: var(--md-sys-color-surface); color: var(--md-sys-color-on-surface);
  font: var(--md-sys-typescale-body-large); letter-spacing: var(--md-sys-typescale-body-large-tracking);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
p, ul, ol, dl, dd, figure, h1, h2, h3 { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
b, strong { font-weight: 600; }
a { color: var(--md-sys-color-primary); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--md-sys-color-primary); outline-offset: 2px; }
main:focus { outline: none; }
.icon { width: 24px; height: 24px; flex: none; }
[hidden] { display: none !important; }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200; padding: 12px 16px;
  background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface);
  border-radius: var(--md-sys-shape-corner-full); font: var(--md-sys-typescale-label-large); text-decoration: none;
}
.skip-link:focus { top: 12px; }
.divider { border: 0; border-top: 1px solid var(--md-sys-color-outline-variant); margin: 0; }
.shape { width: 100%; height: 100%; }

/* 2. LAYOUT ----------------------------------------------------------- */
.container {
  width: 100%; max-width: calc(var(--layout-max) + 2 * var(--layout-margin)); margin-inline: auto;
  padding-inline: max(var(--layout-margin), env(safe-area-inset-left)) max(var(--layout-margin), env(safe-area-inset-right));
}
.section { padding-block: var(--space-9); }
.section--low { background: var(--md-sys-color-surface-container-low); }
.section--inverse { background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); }
.section__head { max-width: 720px; margin-bottom: var(--space-7); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-6); }
/* canonical layout: supporting pane */
.pane { display: grid; gap: var(--space-7); align-items: start; }
.pane__support > * + * { margin-top: var(--space-4); }
.pane__support .btn { margin-top: var(--space-5); }

/* 3. TYPE ROLES ------------------------------------------------------- */
.headline {
  font: var(--md-sys-typescale-headline-medium); letter-spacing: var(--md-sys-typescale-headline-medium-tracking);
  font-weight: 500; text-wrap: balance;
}
.title-l { font: var(--md-sys-typescale-title-large); font-weight: 500; }
.title-m { font: var(--md-sys-typescale-title-medium); letter-spacing: var(--md-sys-typescale-title-medium-tracking); }
.body-lead { color: var(--md-sys-color-on-surface-variant); margin-top: var(--space-4); max-width: 640px; text-wrap: pretty; }
.muted { color: var(--md-sys-color-on-surface-variant); font: var(--md-sys-typescale-body-medium); letter-spacing: var(--md-sys-typescale-body-medium-tracking); }
.overline {
  display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3);
  font: var(--md-sys-typescale-label-large); letter-spacing: 0.8px; text-transform: uppercase; color: var(--md-sys-color-primary);
}
.overline::before { content: ""; width: 24px; height: 4px; border-radius: 2px; background: var(--brand-gradient); }
.section--inverse .overline, .overline--inverse { color: var(--md-sys-color-inverse-primary); }

/* 4. STATE LAYER + RIPPLE --------------------------------------------- */
.ripple { position: relative; overflow: hidden; isolation: isolate; -webkit-tap-highlight-color: transparent; }
.ripple::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: currentColor; opacity: 0;
  transition: opacity var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard);
  pointer-events: none;
}
.ripple:hover::before { opacity: var(--md-sys-state-hover-opacity); }
.ripple:focus-visible::before { opacity: var(--md-sys-state-focus-opacity); }
.ripple:active::before { opacity: var(--md-sys-state-pressed-opacity); }
.ripple__wave {
  position: absolute; z-index: -1; border-radius: 50%; background: currentColor; opacity: .14; pointer-events: none;
  transform: scale(0); animation: ripple var(--md-sys-motion-duration-long1) var(--md-sys-motion-easing-standard) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* 5. BUTTONS, FAB, ICON BUTTONS --------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 10px 24px; border: 0; border-radius: var(--md-sys-shape-corner-full);
  font: var(--md-sys-typescale-label-large); letter-spacing: var(--md-sys-typescale-label-large-tracking);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: box-shadow var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
              transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
              background-color var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}
.btn .icon { width: 18px; height: 18px; transition: transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn:hover { text-decoration: none; }
.btn--lg { min-height: 56px; padding: 16px 28px; font: var(--md-sys-typescale-title-medium); letter-spacing: var(--md-sys-typescale-title-medium-tracking); }
.btn--lg .icon { width: 20px; height: 20px; }
.btn--filled { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.btn--filled:hover { box-shadow: var(--md-sys-elevation-level1); }
.btn--tonal { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.btn--tonal:hover { box-shadow: var(--md-sys-elevation-level1); }
.btn--outlined { background: transparent; color: var(--md-sys-color-primary); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline); }
.btn--text { background: transparent; color: var(--md-sys-color-primary); padding-inline: 12px; }
.btn--elevated { background: var(--md-sys-color-surface-container-low); color: var(--md-sys-color-primary); box-shadow: var(--md-sys-elevation-level1); }
.btn--elevated:hover { box-shadow: var(--md-sys-elevation-level2); }
.btn--on-brand { background: var(--md-sys-color-surface-container-lowest); color: var(--md-sys-color-primary); box-shadow: var(--md-sys-elevation-level1); }
.btn--on-brand:hover { box-shadow: var(--md-sys-elevation-level3); }
.btn--outlined-on-brand { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7); }
.btn--text-inverse { background: transparent; color: var(--md-sys-color-inverse-primary); padding-inline: 12px; }
.btn:disabled, .btn[aria-disabled="true"] {
  background: rgb(26 11 11 / var(--md-sys-state-disabled-container-opacity)); color: rgb(26 11 11 / var(--md-sys-state-disabled-content-opacity));
  box-shadow: none; cursor: default; pointer-events: none;
}
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 1s linear infinite; }
.is-busy .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* extended FAB used for the Google Play button (official badge slot) */
.play-fab {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 10px;
  border-radius: var(--md-sys-shape-corner-large);
  background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container);
  box-shadow: var(--md-sys-elevation-level3); text-decoration: none; line-height: 1.1;
  transition: box-shadow var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard), transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}
.play-fab:hover { box-shadow: var(--md-sys-elevation-level4); text-decoration: none; }
.play-fab:active { transform: scale(.98); }
.play-fab__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--md-sys-shape-corner-medium); background: var(--brand-gradient); color: #fff; flex: none; }
.play-fab__icon .icon { width: 22px; height: 22px; }
.play-fab__text { display: flex; flex-direction: column; text-align: left; }
.play-fab__small { font: var(--md-sys-typescale-label-small); letter-spacing: .8px; text-transform: uppercase; }
.play-fab__big { font: var(--md-sys-typescale-title-large); font-weight: 600; letter-spacing: -.2px; }
.play-fab--badge { padding: 0; background: none; box-shadow: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--md-sys-shape-corner-full);
  background: transparent; color: var(--md-sys-color-on-surface-variant); cursor: pointer;
}

/* 6. CHIPS ------------------------------------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 32px; padding: 6px 16px 6px 8px;
  border-radius: var(--md-sys-shape-corner-small); border: 1px solid var(--md-sys-color-outline);
  font: var(--md-sys-typescale-label-large); letter-spacing: var(--md-sys-typescale-label-large-tracking);
  color: var(--md-sys-color-on-surface); background: transparent;
}
.chip .icon { width: 18px; height: 18px; color: var(--md-sys-color-primary); }
.chip--assist { background: var(--md-sys-color-surface-container-lowest); border-color: var(--md-sys-color-outline-variant); }
.chip--suggestion { margin-top: var(--space-3); border-color: var(--md-sys-color-outline-variant); color: var(--md-sys-color-on-surface-variant); padding-left: 10px; }
.chip--filter { min-height: 44px; cursor: pointer; padding-left: 16px; transition: background-color var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard), padding var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard); }
.chip--filter .icon { width: 0; opacity: 0; transition: width var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard), opacity var(--md-sys-motion-duration-short4); margin-left: -8px; }
.chip--filter[aria-pressed="true"] { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); border-color: transparent; padding-left: 10px; }
.chip--filter[aria-pressed="true"] .icon { width: 18px; opacity: 1; margin-left: 0; color: currentColor; }
.chip--on-brand { color: #fff; border-color: rgb(255 255 255 / .5); background: var(--hero-chip); }
.chip--on-brand .icon { color: var(--hero-highlight); }
.chip.is-filtered-out { display: none; }

/* 7. CARDS ------------------------------------------------------------- */
.card {
  border-radius: var(--md-sys-shape-corner-large); padding: var(--space-5); position: relative;
  transition: box-shadow var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-standard),
              transform var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized),
              background-color var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-standard);
}
.card--elevated { background: var(--md-sys-color-surface-container-low); box-shadow: var(--md-sys-elevation-level1); }
.card--elevated:hover { box-shadow: var(--md-sys-elevation-level2); }
.card--filled { background: var(--md-sys-color-surface-container-highest); }
.card--filled:hover { box-shadow: var(--md-sys-elevation-level1); }
.card--outlined { background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant); }
.card--outlined:hover { box-shadow: var(--md-sys-elevation-level1); }
.card--tonal { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.card--tonal:hover { box-shadow: var(--md-sys-elevation-level1); }
.card--secondary { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }

/* 8. LISTS, BADGES, PROGRESS ------------------------------------------ */
.list { display: grid; margin-top: var(--space-5); }
.list-item { display: flex; align-items: center; gap: var(--space-4); min-height: 72px; padding: 8px 0; }
.list-item__lead {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container);
}
.list-item__lead .icon { width: 22px; height: 22px; }
.list-item__lead--num { border-radius: var(--md-sys-shape-corner-full); font: var(--md-sys-typescale-title-medium); }
.list-item__lead--img { background: none; }
.list-item__lead--img img { border-radius: var(--md-sys-shape-corner-medium); }
.list-item__text { display: flex; flex-direction: column; min-width: 0; }
.list-item__text b { font: var(--md-sys-typescale-body-large); letter-spacing: var(--md-sys-typescale-body-large-tracking); font-weight: 500; }
.list-item__text > span { font: var(--md-sys-typescale-body-medium); letter-spacing: var(--md-sys-typescale-body-medium-tracking); color: var(--md-sys-color-on-surface-variant); }
.list-item--link { padding: 8px 16px; color: var(--md-sys-color-on-surface); text-decoration: none; border-radius: var(--md-sys-shape-corner-medium); }
.list-item--link > .icon:last-child { margin-left: auto; color: var(--md-sys-color-on-surface-variant); transition: transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard); }
.list-item--link:hover > .icon:last-child { transform: translateX(4px); }

.lin-progress { display: block; height: 4px; border-radius: 2px; background: var(--md-sys-color-primary-container); overflow: hidden; position: relative; }
.lin-progress__bar { position: absolute; inset: 0 auto 0 0; width: 64%; border-radius: inherit; background: var(--md-sys-color-primary); }
.lin-progress--indeterminate .lin-progress__bar { width: 40%; animation: lin-indet 1.8s var(--md-sys-motion-easing-standard) infinite; }
@keyframes lin-indet { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* 9. ANNOUNCE + TOP APP BAR + DRAWER ---------------------------------- */
.announce { background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); font: var(--md-sys-typescale-body-medium); letter-spacing: var(--md-sys-typescale-body-medium-tracking); }
.announce__inner { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; }
.announce__icon { width: 24px; height: 24px; border-radius: 6px; }
.announce__text { flex: 1; min-width: 0; }
.announce__lead { font-weight: 600; }
.announce__link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; flex: none; white-space: nowrap;
  color: var(--md-sys-color-inverse-primary); font: var(--md-sys-typescale-label-large); text-decoration: none;
}
.announce__link .icon { width: 18px; height: 18px; transition: transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard); }
.announce__link:hover .icon { transform: translateX(3px); }
.announce__link:focus-visible { outline-color: var(--md-sys-color-inverse-primary); }
.announce__short { display: none; }

.top-app-bar {
  position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top);
  background: var(--md-sys-color-surface); view-transition-name: top-app-bar;
  transition: background-color var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-standard), box-shadow var(--md-sys-motion-duration-medium2);
}
.top-app-bar.is-scrolled { background: var(--md-sys-color-surface-container); }
.top-app-bar__inner { display: flex; align-items: center; gap: var(--space-2); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-right: auto; color: var(--md-sys-color-on-surface); text-decoration: none; }
.brand__mark { width: 36px; height: 36px; }
.brand__name { display: flex; flex-direction: column; font: var(--md-sys-typescale-title-large); font-weight: 600; letter-spacing: -.2px; line-height: 1; }
.brand__sub { font: var(--md-sys-typescale-label-small); letter-spacing: 1.6px; text-transform: uppercase; color: var(--md-sys-color-on-surface-variant); margin-top: 4px; }
.top-nav { display: none; }
.top-nav__list { display: flex; gap: 4px; }
.top-nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--md-sys-shape-corner-full);
  color: var(--md-sys-color-on-surface-variant); text-decoration: none; font: var(--md-sys-typescale-label-large); letter-spacing: var(--md-sys-typescale-label-large-tracking);
}
.top-nav__link[aria-current="page"] { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.top-app-bar__cta { display: none; margin-left: var(--space-3); }

.drawer {
  position: fixed; inset: 0 auto 0 0; margin: 0; width: min(360px, 86vw); max-width: none; height: 100dvh; max-height: none;
  padding: max(12px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  border: 0; border-radius: 0 var(--md-sys-shape-corner-large) var(--md-sys-shape-corner-large) 0;
  background: var(--md-sys-color-surface-container-low); color: var(--md-sys-color-on-surface);
  box-shadow: var(--md-sys-elevation-level1); overflow-y: auto;
}
.drawer[open] { animation: drawer-in var(--md-sys-motion-duration-long1) var(--md-sys-motion-easing-emphasized-decelerate); }
.drawer.is-closing { animation: drawer-out var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized-accelerate) forwards; }
.drawer::backdrop { background: rgb(0 0 0 / .32); animation: fade-in var(--md-sys-motion-duration-medium2) linear; }
.drawer.is-closing::backdrop { animation: fade-out var(--md-sys-motion-duration-short4) linear forwards; }
@keyframes drawer-in { from { transform: translateX(-100%); } }
@keyframes drawer-out { to { transform: translateX(-100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px 16px; }
.drawer__title { font: var(--md-sys-typescale-title-small); color: var(--md-sys-color-on-surface-variant); }
.drawer__list { display: grid; gap: 2px; margin-bottom: 12px; }
.drawer__item {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 24px 0 16px; border-radius: var(--md-sys-shape-corner-full);
  color: var(--md-sys-color-on-surface-variant); text-decoration: none; font: var(--md-sys-typescale-label-large); letter-spacing: var(--md-sys-typescale-label-large-tracking);
}
.drawer__item[aria-current="page"] { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.drawer__label { padding: 16px 16px 8px; font: var(--md-sys-typescale-title-small); color: var(--md-sys-color-on-surface-variant); }
.drawer__app { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--md-sys-shape-corner-large); color: var(--md-sys-color-on-surface); text-decoration: none; background: var(--md-sys-color-surface-container-highest); }
.drawer__app img { border-radius: 10px; }
.drawer__app span { display: flex; flex-direction: column; font: var(--md-sys-typescale-body-medium); color: var(--md-sys-color-on-surface-variant); }
.drawer__app strong { color: var(--md-sys-color-on-surface); font-weight: 500; }

/* 10. HERO + PAGE HERO ------------------------------------------------- */
.hero, .page-hero, .cta-band {
  position: relative; overflow: hidden; color: #fff;
  background: var(--hero);
  border-radius: 0 0 48px 48px;
}
.hero { padding-block: var(--space-8) var(--space-9); }
.hero__grid { display: grid; gap: var(--space-8); align-items: center; }
.hero__overline { font: var(--md-sys-typescale-label-large); letter-spacing: .8px; text-transform: uppercase; color: var(--hero-highlight); margin-bottom: var(--space-4); }
.hero__title {
  font: var(--md-sys-typescale-display-small); letter-spacing: var(--md-sys-typescale-display-small-tracking);
  font-weight: var(--md-sys-typescale-emphasized-weight); max-width: 18ch; text-wrap: balance;
}
.hl { color: var(--hero-highlight); text-decoration: underline; text-decoration-color: var(--brand-orange); text-decoration-thickness: .08em; text-underline-offset: .12em; }
.hero__lede { margin-top: var(--space-5); max-width: 560px; color: #fff; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-6); }
.hero__chips { margin-top: var(--space-6); }
.hero a:focus-visible, .hero button:focus-visible, .page-hero a:focus-visible, .cta-band a:focus-visible { outline-color: #fff; }
.app-id { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-5); }
.app-id img { width: 80px; height: 80px; border-radius: 22px; box-shadow: var(--md-sys-elevation-level3); }
.app-id p { display: flex; flex-direction: column; font: var(--md-sys-typescale-title-medium); }
.app-id span { font: var(--md-sys-typescale-body-medium); color: var(--hero-highlight); }
.hero--app .hero__title { max-width: 13ch; }

.page-hero { padding-block: var(--space-9) var(--space-10); }
.page-hero__inner { position: relative; }
.page-hero__title { font: var(--md-sys-typescale-display-small); font-weight: var(--md-sys-typescale-emphasized-weight); max-width: 18ch; position: relative; }
.page-hero__lede { margin-top: var(--space-4); max-width: 600px; position: relative; }
.page-hero__shape { position: absolute; right: -40px; top: -60px; width: 260px; height: 260px; opacity: .9; pointer-events: none; }
.parallax { will-change: transform; transform: translate3d(0, calc(var(--py, 0) * 1px), 0); }

/* 11. PHONE MOCKUPS --------------------------------------------------- */
.phones { --w: min(236px, 60vw); --wb: calc(var(--w) * .84); position: relative; margin: 0; }
.phones__stage { position: relative; height: calc(var(--w) * 2.15 + 24px); }
.phones__shape { position: absolute; pointer-events: none; }
.phones__shape--a { width: calc(var(--w) * 2.3); height: calc(var(--w) * 2.3); left: 50%; top: 46%; margin: calc(var(--w) * -1.15) 0 0 calc(var(--w) * -1.15); }
.phones__shape--b { width: calc(var(--w) * .7); height: calc(var(--w) * .7); right: 4%; top: -2%; opacity: .55; }
.phones__shape .shape { animation: spin 60s linear infinite; }
.phones__cap { margin-top: var(--space-4); text-align: center; font: var(--md-sys-typescale-body-small); color: var(--hero-highlight); }
.phone {
  position: absolute; top: 0; width: var(--w); aspect-ratio: 9 / 19.2; font-size: calc(var(--w) / 29);
  padding: .65em; border-radius: 3.2em; background: linear-gradient(145deg, #1a2740, var(--bezel));
  box-shadow: var(--md-sys-elevation-level5), inset 0 0 0 1.5px #2a3a58;
}
.phone--front { left: 50%; margin-left: calc(var(--w) / -2); z-index: 3; }
.phone--back { width: var(--wb); font-size: calc(var(--wb) / 29); top: 9%; z-index: 2; box-shadow: var(--md-sys-elevation-level3), inset 0 0 0 1.5px #2a3a58; }
.phone--left { right: calc(50% + var(--w) * .2); animation: fan-left var(--md-sys-motion-duration-long4) var(--md-sys-motion-easing-emphasized-decelerate) 400ms both; }
.phone--right { left: calc(50% + var(--w) * .2); animation: fan-right var(--md-sys-motion-duration-long4) var(--md-sys-motion-easing-emphasized-decelerate) 400ms both; }
@keyframes fan-left { from { transform: translateX(45%); opacity: 0; } }
@keyframes fan-right { from { transform: translateX(-45%); opacity: 0; } }
.phone__screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 2.6em; display: flex; flex-direction: column;
  padding: 0 1.1em; background: var(--md-sys-color-surface); color: var(--md-sys-color-on-surface); line-height: 1.25;
}
.phone__screen--dark { background: var(--bezel); color: #fff; }
.phone .icon { width: 1.6em; height: 1.6em; }
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 2.8em; padding: .5em .6em 0; font-weight: 600; }
.ph-status__icons { display: flex; gap: .3em; }
.ph-status__icons i { width: .9em; height: .9em; border-radius: .2em; background: currentColor; opacity: .8; }
.ph-status__icons i:last-child { width: 1.8em; }
.ph-appbar, .ph-topbar { display: flex; align-items: center; gap: .6em; height: 3.4em; }
.ph-appbar img { width: 2.2em; height: 2.2em; border-radius: .6em; }
.ph-appbar__title, .ph-topbar__title { flex: 1; font-weight: 600; font-size: 1.3em; }
.ph-topbar--dark .ph-topbar__title { font-size: 1.15em; }
.ph-link, .ph-search {
  display: flex; align-items: center; gap: .55em; height: 3.6em; padding: 0 1em; border-radius: 1.8em; white-space: nowrap; overflow: hidden;
  background: var(--md-sys-color-surface-container-highest); color: var(--md-sys-color-on-surface-variant);
}
.ph-link .icon, .ph-search .icon { width: 1.4em; height: 1.4em; color: var(--md-sys-color-primary); }
.ph-link__text { color: var(--md-sys-color-on-surface); overflow: hidden; text-overflow: ellipsis; }
.ph-caret { width: .12em; height: 1.3em; background: var(--md-sys-color-primary); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ph-video, .ph-player { position: relative; margin-top: 1em; aspect-ratio: 16 / 9.5; border-radius: 1.2em; overflow: hidden; }
.ph-scene { position: absolute; inset: 0; background: #13305f; }
.ph-scene i { position: absolute; left: 0; right: 0; }
.ph-scene__sky { top: 0; height: 55%; background: linear-gradient(180deg, #13305f, #2b5a8c); }
.ph-scene__sea { top: 55%; height: 22%; background: linear-gradient(180deg, #1b4f7a, #123a5c); }
.ph-scene__sand { top: 77%; bottom: 0; background: #4a3a30; }
.ph-scene::after { content: ""; position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; right: 20%; top: 14%; background: radial-gradient(circle, #ffb36b 0 55%, rgb(255 179 107 / 0) 70%); }
.ph-play, .ph-player__btn {
  position: absolute; left: 50%; top: 50%; width: 3.6em; height: 3.6em; margin: -1.8em 0 0 -1.8em; z-index: 2;
  display: grid; place-items: center; border-radius: 50%; background: rgb(0 0 0 / .45); color: #fff;
}
.ph-player__btn { animation: pulse 2.4s var(--md-sys-motion-easing-standard) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(255 255 255 / .45); } 60% { box-shadow: 0 0 0 1em rgb(255 255 255 / 0); } }
.ph-time { position: absolute; left: .7em; bottom: .6em; z-index: 2; font-size: .85em; font-weight: 600; color: #fff; background: rgb(0 0 0 / .55); padding: .15em .45em; border-radius: .4em; }
.ph-fab {
  position: absolute; right: .7em; bottom: .6em; z-index: 2; width: 3.4em; height: 3.4em; border-radius: 1em;
  display: grid; place-items: center; background: var(--brand-gradient); color: #fff; box-shadow: var(--md-sys-elevation-level3);
  animation: fab-pulse 10s var(--md-sys-motion-easing-standard) infinite;
}
@keyframes fab-pulse { 0%, 6%, 18%, 100% { transform: scale(1); } 10% { transform: scale(1.12); } 14% { transform: scale(.92); } }
.ph-caption { font-weight: 600; margin-top: .6em; }
.ph-dl { margin-top: 1em; }
.ph-dl__label { display: block; font-size: .8em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--md-sys-color-on-surface-variant); margin-bottom: .5em; }
.ph-dl__card {
  display: flex; gap: .8em; align-items: center; padding: .8em; border-radius: 1.2em;
  background: var(--md-sys-color-surface-container-low); box-shadow: var(--md-sys-elevation-level1);
  animation: dl-card 10s var(--md-sys-motion-easing-emphasized) infinite;
}
@keyframes dl-card { 0%, 44% { opacity: .4; transform: translateY(.4em); } 50%, 96% { opacity: 1; transform: none; } 100% { opacity: .4; transform: translateY(.4em); } }
.ph-thumb { width: 3.6em; height: 2.6em; flex: none; border-radius: .7em; background: linear-gradient(180deg, #2b5a8c 0 55%, #1b4f7a 55% 78%, #4a3a30 78%); }
.ph-thumb--b { background: linear-gradient(160deg, #ffd6c2, #fb7a55); }
.ph-thumb--c { background: linear-gradient(180deg, #a7d38a 0 60%, #4f7d3a 60%); }
.ph-thumb--d { background: linear-gradient(160deg, #e8e2d9, #9c8f80); }
.ph-dl__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .35em; }
.ph-dl__name { font-weight: 600; }
.ph-bar { height: .45em; border-radius: 1em; background: var(--md-sys-color-primary-container); overflow: hidden; }
.ph-bar__fill { display: block; height: 100%; border-radius: inherit; background: var(--brand-gradient); transform-origin: left; transform: scaleX(0); animation: dl-fill 10s linear infinite; }
@keyframes dl-fill { 0%, 48% { transform: scaleX(0); } 86%, 98% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.ph-dl__meta { display: flex; justify-content: space-between; font-size: .85em; color: var(--md-sys-color-on-surface-variant); }
.ph-dl__state { position: relative; flex: 1; height: 1.25em; }
.ph-s1, .ph-s2 { position: absolute; left: 0; top: 0; white-space: nowrap; }
.ph-s1 { animation: st1 10s steps(1) infinite; }
.ph-s2 { opacity: 0; color: #146c3a; font-weight: 600; animation: st2 10s steps(1) infinite; }
@keyframes st1 { 0% { opacity: 1; } 87% { opacity: 0; } }
@keyframes st2 { 0% { opacity: 0; } 87% { opacity: 1; } 99% { opacity: 0; } }
@property --pct { syntax: "<integer>"; inherits: false; initial-value: 0; }
.ph-dl__pct { counter-reset: pct var(--pct); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--md-sys-color-on-surface); animation: pct 10s linear infinite; }
.ph-dl__pct::after { content: counter(pct) "%"; }
@keyframes pct { 0%, 48% { --pct: 0; } 86%, 99% { --pct: 100; } 100% { --pct: 0; } }
.ph-navbar {
  margin: auto -1.1em 0; display: flex; justify-content: space-around; padding: .8em .4em 1.4em;
  background: var(--md-sys-color-surface-container); font-size: .82em; color: var(--md-sys-color-on-surface-variant);
}
.ph-navbar > span { display: flex; flex-direction: column; align-items: center; gap: .3em; min-width: 4.5em; }
.ph-navbar em { font-style: normal; font-weight: 500; }
.ph-navbar .icon { width: 1.9em; height: 1.9em; }
.ph-navbar__pill { display: grid; place-items: center; width: 4.4em; height: 2.6em; border-radius: 1.3em; background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.ph-navbar .is-on em { color: var(--md-sys-color-on-surface); font-weight: 700; }
.ph-navbar__icon { position: relative; height: 2.6em; display: grid; place-items: center; }
.ph-badge {
  position: absolute; top: .1em; right: -.6em; min-width: 1.4em; height: 1.4em; padding: 0 .35em; border-radius: .7em;
  display: grid; place-items: center; font-size: .9em; font-weight: 700; background: var(--md-sys-color-error); color: var(--md-sys-color-on-error);
  animation: badge-pop 10s var(--md-sys-motion-easing-emphasized-decelerate) infinite;
}
@keyframes badge-pop { 0%, 40% { transform: scale(0); } 46%, 90% { transform: scale(1); } 96%, 100% { transform: scale(0); } }
.ph-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: .55em;
  padding: .8em 1.4em 1.6em; background: var(--md-sys-color-surface-container-low); border-radius: 2em 2em 0 0;
  box-shadow: 0 -.4em 2em rgb(0 0 0 / .25); transform: translateY(105%);
  animation: sheet 10s var(--md-sys-motion-easing-emphasized) infinite;
}
@keyframes sheet { 0%, 15% { transform: translateY(105%); } 22%, 41% { transform: translateY(0); } 47%, 100% { transform: translateY(105%); } }
.ph-sheet__handle { align-self: center; width: 3.2em; height: .4em; border-radius: 1em; background: var(--md-sys-color-outline); opacity: .5; }
.ph-sheet__title { font-weight: 600; font-size: 1.35em; }
.ph-sheet__sub { font-size: .9em; color: var(--md-sys-color-on-surface-variant); margin-top: -.3em; }
.ph-q { display: flex; align-items: center; gap: .7em; padding: .75em .8em; border-radius: 1em; border: .1em solid var(--md-sys-color-outline-variant); background: var(--md-sys-color-surface-container-lowest); }
.ph-q__radio { width: 1.25em; height: 1.25em; border-radius: 50%; border: .16em solid var(--md-sys-color-outline); flex: none; }
.ph-q__res { font-weight: 700; }
.ph-q__info { margin-left: auto; font-size: .9em; color: var(--md-sys-color-on-surface-variant); }
.ph-q.is-on { border-color: var(--md-sys-color-primary); background: var(--md-sys-color-primary-container); }
.ph-q.is-on .ph-q__radio { border-color: var(--md-sys-color-primary); background: var(--md-sys-color-primary); box-shadow: inset 0 0 0 .22em var(--md-sys-color-primary-container); }
.ph-sheet__btn { position: relative; margin-top: .3em; padding: .85em; text-align: center; border-radius: 2em; background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); font-weight: 600; font-size: 1.05em; }
.ph-tap { position: absolute; width: 2.8em; height: 2.8em; border-radius: 50%; pointer-events: none; z-index: 6; background: rgb(255 255 255 / .35); border: .15em solid rgb(255 255 255 / .9); opacity: 0; }
.ph-tap--fab { right: .9em; bottom: .9em; animation: tap-fab 10s var(--md-sys-motion-easing-standard) infinite; }
.ph-tap--btn { left: 50%; top: 50%; margin: -1.4em 0 0 -1.4em; animation: tap-btn 10s var(--md-sys-motion-easing-standard) infinite; }
@keyframes tap-fab { 0%, 9% { opacity: 0; transform: scale(1.6); } 11% { opacity: 1; transform: scale(1); } 15%, 100% { opacity: 0; transform: scale(.8); } }
@keyframes tap-btn { 0%, 36% { opacity: 0; transform: scale(1.6); } 38% { opacity: 1; transform: scale(1); } 42%, 100% { opacity: 0; transform: scale(.8); } }
/* library phone */
.ph-search { margin: .2em 0 .6em; }
.ph-list { display: grid; gap: .25em; }
.ph-list li { display: flex; align-items: center; gap: .8em; padding: .55em .2em; }
.ph-list__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ph-list__text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-list__text i { font-style: normal; font-size: .85em; color: var(--md-sys-color-on-surface-variant); }
.is-busy .ph-list__text i { color: var(--md-sys-color-primary); font-weight: 600; }
.ph-circ { width: 2.4em; height: 2.4em; flex: none; transform: rotate(-90deg); }
.ph-circ circle { fill: none; stroke-width: 4; }
.ph-circ__track { stroke: var(--md-sys-color-primary-container); }
.ph-circ__bar { stroke: var(--md-sys-color-primary); stroke-linecap: round; stroke-dasharray: 88; stroke-dashoffset: 88; animation: circ 10s linear infinite; }
@keyframes circ { 0% { stroke-dashoffset: 88; } 90% { stroke-dashoffset: 8; } 100% { stroke-dashoffset: 88; } }
/* player phone */
.ph-topbar--dark .icon { width: 1.6em; height: 1.6em; }
.ph-player { margin-top: 2.4em; }
.ph-player__btn .icon { width: 1.8em; height: 1.8em; }
.ph-seek { margin-top: 1.6em; }
.ph-seek__bar { position: relative; display: block; height: .4em; border-radius: 1em; background: rgb(255 255 255 / .25); }
.ph-seek__fill { position: absolute; inset: 0 auto 0 0; width: 54%; border-radius: inherit; background: var(--brand-gradient); animation: seek 10s linear infinite; }
.ph-seek__thumb { position: absolute; top: 50%; left: 54%; width: 1.1em; height: 1.1em; margin: -.55em 0 0 -.55em; border-radius: 50%; background: #fff; animation: seek-thumb 10s linear infinite; }
@keyframes seek { from { width: 30%; } to { width: 78%; } }
@keyframes seek-thumb { from { left: 30%; } to { left: 78%; } }
.ph-seek__time { display: flex; justify-content: space-between; margin-top: .5em; font-size: .85em; color: #cfd6e4; }
.ph-seek__time i { font-style: normal; }
.ph-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 1.4em; }
.ph-chip { padding: .35em .8em; border-radius: .6em; border: .1em solid rgb(255 255 255 / .4); font-weight: 600; }
.ph-ctl { display: grid; place-items: center; width: 3em; height: 3em; border-radius: 50%; background: rgb(255 255 255 / .1); }
.ph-note { margin-top: auto; margin-bottom: 2em; font-size: .85em; color: #cfd6e4; text-align: center; }
.phones.is-paused .phone__screen *, .phones.is-paused .shape { animation-play-state: paused !important; }

/* 12. HOME SECTIONS --------------------------------------------------- */
.showcase { display: grid; gap: var(--space-7); align-items: start; }
.app-tag { display: flex; align-items: center; gap: var(--space-5); margin-bottom: var(--space-5); }
.app-tag__icon { width: 72px; height: 72px; flex: none; border-radius: 20px; box-shadow: var(--md-sys-elevation-level2); }
.app-tag .overline { margin-bottom: var(--space-1); }
.app-tag__by { margin-top: var(--space-1); font: var(--md-sys-typescale-body-medium); color: var(--md-sys-color-on-surface-variant); }
.showcase .body-lead { color: var(--md-sys-color-on-surface); }
.stack { padding: var(--space-6) var(--space-5); border-radius: var(--md-sys-shape-corner-extra-large); }
.stack .muted { margin-top: var(--space-2); }
.stack__filters { margin-top: var(--space-4); }
.stack__items { margin-top: var(--space-4); }
.stack__note { margin-top: var(--space-5); font: var(--md-sys-typescale-body-small); color: var(--md-sys-color-on-surface-variant); }

.bento { display: grid; gap: var(--space-4); }
.svc { padding: var(--space-6) var(--space-5); border-radius: var(--md-sys-shape-corner-extra-large); }
.svc__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--md-sys-shape-corner-large); margin-bottom: var(--space-5); }
.svc__icon .icon { width: 28px; height: 28px; }
.svc__icon--primary { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.svc__icon--secondary { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.svc__icon--tertiary { background: var(--md-sys-color-tertiary-container); color: var(--md-sys-color-on-tertiary-container); }
.svc dl { margin-top: var(--space-4); display: grid; }
.svc dt { font: var(--md-sys-typescale-title-medium); letter-spacing: var(--md-sys-typescale-title-medium-tracking); padding-top: var(--space-4); border-top: 1px solid var(--md-sys-color-outline-variant); }
.svc dt:first-child { border-top: 0; padding-top: 0; }
.svc dd { font: var(--md-sys-typescale-body-medium); letter-spacing: var(--md-sys-typescale-body-medium-tracking); color: var(--md-sys-color-on-surface-variant); margin: var(--space-1) 0 var(--space-4); }
.card--tonal.svc dd { color: var(--md-sys-color-on-primary-container); }
.card--tonal.svc dt { border-color: var(--md-sys-color-inverse-primary); }

.stepper { position: relative; display: grid; gap: var(--space-2); }
.stepper__step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: var(--space-4); padding-bottom: var(--space-5); }
.stepper__step::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 0; width: 2px; background: var(--md-sys-color-outline-variant); }
.stepper__step:last-child::before { display: none; }
.stepper__dot {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); font: var(--md-sys-typescale-title-medium);
}
.stepper__step:last-child .stepper__dot { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.stepper__step h3 { padding-top: 8px; }
.stepper__step p { margin-top: var(--space-1); color: var(--md-sys-color-on-surface-variant); max-width: 560px; }

.about { display: grid; gap: var(--space-7); align-items: center; }
.about .body-lead { color: var(--md-sys-color-inverse-on-surface); font: var(--md-sys-typescale-title-large); }
.about__text p:not([class]) { margin-top: var(--space-4); max-width: 600px; }
.about__list { display: grid; gap: var(--space-3); }
.about__list li { display: flex; gap: var(--space-4); padding: var(--space-5); border-radius: var(--md-sys-shape-corner-extra-large); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); }
.about__list .icon { color: var(--md-sys-color-inverse-primary); }
.about__list b { display: block; }
.section--inverse :focus-visible { outline-color: var(--md-sys-color-inverse-primary); }

.form-card { padding: var(--space-6) var(--space-5); border-radius: var(--md-sys-shape-corner-extra-large); }

/* 13. APP PAGE --------------------------------------------------------- */
.steps { display: grid; gap: var(--space-4); }
.step { display: flex; flex-direction: column; border-radius: var(--md-sys-shape-corner-extra-large); }
.step__badge { align-self: flex-start; padding: 4px 12px; border-radius: var(--md-sys-shape-corner-small); background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); font: var(--md-sys-typescale-label-medium); letter-spacing: var(--md-sys-typescale-label-medium-tracking); }
.step h3 { margin-top: var(--space-3); }
.step > p { margin-top: var(--space-2); color: var(--md-sys-color-on-surface-variant); font: var(--md-sys-typescale-body-medium); letter-spacing: var(--md-sys-typescale-body-medium-tracking); }
.mini { margin-top: auto; padding-top: var(--space-5); font: var(--md-sys-typescale-body-medium); }
.mini--bar { display: flex; align-items: center; gap: 8px; margin-top: var(--space-5); padding: 12px 16px; border-radius: var(--md-sys-shape-corner-full); background: var(--md-sys-color-surface-container-lowest); color: var(--md-sys-color-on-surface-variant); }
.mini--bar .icon { width: 20px; height: 20px; color: var(--md-sys-color-primary); }
.mini--video { position: relative; height: 96px; margin-top: var(--space-5); padding: 0; border-radius: var(--md-sys-shape-corner-large); overflow: hidden; }
.mini__fab { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--md-sys-shape-corner-medium); background: var(--brand-gradient); color: #fff; }
.mini__fab .icon { width: 22px; height: 22px; }
.mini--sheet { display: grid; gap: 8px; }
.mini--sheet span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--md-sys-shape-corner-medium); background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant); font-weight: 600; }
.mini--sheet i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--md-sys-color-outline); flex: none; }
.mini--sheet em { margin-left: auto; font-style: normal; font-weight: 400; color: var(--md-sys-color-on-surface-variant); }
.mini--sheet .is-on { border-color: var(--md-sys-color-primary); background: var(--md-sys-color-primary-container); }
.mini--sheet .is-on i { border-color: var(--md-sys-color-primary); background: var(--md-sys-color-primary); box-shadow: inset 0 0 0 2px var(--md-sys-color-primary-container); }
.mini--progress { display: grid; gap: 10px; font-weight: 600; }

.tile { display: flex; flex-direction: column; border-radius: var(--md-sys-shape-corner-extra-large); padding: var(--space-6) var(--space-5); overflow: hidden; }
.tile__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--md-sys-shape-corner-large); background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); margin-bottom: var(--space-4); }
.tile > p { margin-top: var(--space-2); color: var(--md-sys-color-on-surface-variant); font: var(--md-sys-typescale-body-medium); letter-spacing: var(--md-sys-typescale-body-medium-tracking); }
.card--tonal.tile > p { color: var(--md-sys-color-on-primary-container); }
.card--tonal .tile__icon { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.tile__ui { margin-top: var(--space-5); }
.tile .lin-progress { margin-top: var(--space-5); }
.tile--inverse { background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); }
.tile--inverse > p { color: var(--md-sys-color-inverse-on-surface); }
.tile--inverse .tile__icon { background: var(--brand-gradient); color: #fff; }
.tile--inverse:hover { box-shadow: var(--md-sys-elevation-level2); }
.ui-browser { display: grid; gap: 10px; margin-top: auto; padding-top: var(--space-5); }
.ui-browser__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--md-sys-shape-corner-full); background: var(--md-sys-color-surface-container-highest); font: var(--md-sys-typescale-body-medium); color: var(--md-sys-color-on-surface); }
.ui-browser__bar .icon { width: 20px; height: 20px; color: var(--md-sys-color-primary); }
.ui-browser__tabs { display: flex; gap: 8px; }
.ui-browser__tabs i { font-style: normal; padding: 6px 12px; border-radius: var(--md-sys-shape-corner-small); border: 1px solid var(--md-sys-color-outline-variant); font: var(--md-sys-typescale-label-medium); color: var(--md-sys-color-on-surface-variant); }
.ui-browser__tabs .is-on { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); border-color: transparent; }
.ui-browser__page { position: relative; height: 150px; border-radius: var(--md-sys-shape-corner-large); overflow: hidden; }
.ui-player { display: grid; gap: 16px; margin-top: auto; padding-top: var(--space-5); }
.ui-player__seek { display: block; height: 6px; border-radius: 3px; background: rgb(255 255 255 / .2); position: relative; }
.ui-player__seek span { position: absolute; inset: 0 auto 0 0; width: 58%; border-radius: inherit; background: var(--brand-gradient); }
.ui-player__ctl { display: flex; align-items: center; justify-content: space-between; color: var(--md-sys-color-inverse-on-surface); }
.ui-player__ctl i { font-style: normal; padding: 4px 12px; border-radius: var(--md-sys-shape-corner-small); border: 1px solid rgb(255 255 255 / .4); font: var(--md-sys-typescale-label-large); }
.platforms { margin-top: var(--space-6); font: var(--md-sys-typescale-body-medium); letter-spacing: var(--md-sys-typescale-body-medium-tracking); color: var(--md-sys-color-on-surface-variant); max-width: 760px; }

.notice { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: flex-start; max-width: 880px; padding: var(--space-6); border-radius: var(--md-sys-shape-corner-extra-large); }
.notice > div { flex: 1 1 260px; }
.notice__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--md-sys-shape-corner-large); background: var(--md-sys-color-secondary); color: var(--md-sys-color-on-secondary); flex: none; }
.notice__icon .icon { width: 28px; height: 28px; }
.notice p { margin-top: var(--space-3); }

.cta-band { border-radius: 48px; margin: 0 var(--layout-margin) var(--space-9); padding-block: var(--space-8); }
.cta-band__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); }
.cta-band__icon { position: relative; border-radius: 20px; box-shadow: var(--md-sys-elevation-level3); }
.cta-band__text { position: relative; flex: 1 1 260px; }
.cta-band__text p { margin-top: var(--space-1); }
.cta-band__shape { position: absolute; right: -60px; top: -120px; width: 300px; height: 300px; opacity: .85; pointer-events: none; }
.cta-band .play-fab { position: relative; }

/* legal (privacy draft) */
.legal { max-width: 760px; }
.legal h2 { font: var(--md-sys-typescale-title-large); margin-top: var(--space-6); }
.legal p, .legal ul { margin-top: var(--space-3); }

/* 14. EXPANSION LIST (FAQ) -------------------------------------------- */
.expansion { padding: 8px; border-radius: var(--md-sys-shape-corner-extra-large); }
.exp + .exp { border-top: 1px solid var(--md-sys-color-outline-variant); }
.exp__head {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 64px; padding: 12px 16px; border-radius: var(--md-sys-shape-corner-large); cursor: pointer;
  font: var(--md-sys-typescale-title-medium); letter-spacing: var(--md-sys-typescale-title-medium-tracking);
}
.exp__head::-webkit-details-marker { display: none; }
.exp__head .icon { color: var(--md-sys-color-on-surface-variant); transition: transform var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized); }
.exp[open] .exp__head .icon { transform: rotate(180deg); }
.exp[open] { background: var(--md-sys-color-surface-container-low); border-radius: var(--md-sys-shape-corner-large); }
.exp__body { overflow: hidden; }
.exp__body p { padding: 0 16px 20px; color: var(--md-sys-color-on-surface-variant); max-width: 680px; }

/* 15. TEXT FIELDS, FORM, SNACKBAR ------------------------------------- */
.form { display: grid; gap: var(--space-4); }
.form__row { display: grid; gap: var(--space-4); }
.tf { position: relative; padding-top: 6px; }
.tf__input {
  display: block; width: 100%; min-height: 56px; padding: 16px; font-size: 16px; line-height: 24px;
  background: transparent; color: var(--md-sys-color-on-surface); border: 1px solid var(--md-sys-color-outline); border-radius: var(--md-sys-shape-corner-extra-small);
  transition: border-color var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard), box-shadow var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}
.tf__input:hover { border-color: var(--md-sys-color-on-surface); }
.tf__input:focus { outline: none; border-color: var(--md-sys-color-primary); box-shadow: inset 0 0 0 1px var(--md-sys-color-primary); }
textarea.tf__input { min-height: 160px; resize: vertical; }
.tf--select .tf__input { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; }
.tf__trail { position: absolute; right: 12px; top: 22px; color: var(--md-sys-color-on-surface-variant); pointer-events: none; }
.tf__label {
  position: absolute; left: 12px; top: 22px; padding: 0 4px; max-width: calc(100% - 24px);
  font-size: 16px; line-height: 24px; color: var(--md-sys-color-on-surface-variant);
  background: var(--md-sys-color-surface-container-low); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform-origin: left top;
  transition: transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard), color var(--md-sys-motion-duration-short4);
}
.tf__input:focus + .tf__label, .tf__input:not(:placeholder-shown) + .tf__label, .tf--select .tf__label {
  transform: translateY(-28px) scale(.75);
}
.tf__input:focus + .tf__label { color: var(--md-sys-color-primary); }
.tf__sup { padding: 4px 16px 0; min-height: 20px; font: var(--md-sys-typescale-body-small); letter-spacing: var(--md-sys-typescale-body-small-tracking); color: var(--md-sys-color-on-surface-variant); }
.tf.is-invalid .tf__input { border-color: var(--md-sys-color-error); box-shadow: inset 0 0 0 1px var(--md-sys-color-error); }
.tf.is-invalid .tf__label, .tf.is-invalid .tf__sup { color: var(--md-sys-color-error); }
.tf.is-invalid .tf__sup::before { content: "! "; font-weight: 700; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-3); }
.form__note { font: var(--md-sys-typescale-body-small); letter-spacing: var(--md-sys-typescale-body-small-tracking); color: var(--md-sys-color-on-surface-variant); }
.form.is-busy button[type="submit"] { pointer-events: none; opacity: .8; }

.snackbar {
  position: fixed; z-index: 90; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); width: min(560px, calc(100% - 32px));
  display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 16px; min-height: 48px;
  background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface);
  border-radius: var(--md-sys-shape-corner-extra-small); box-shadow: var(--md-sys-elevation-level3);
  font: var(--md-sys-typescale-body-medium); letter-spacing: var(--md-sys-typescale-body-medium-tracking);
  transform: translateX(-50%); animation: snack-in var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized-decelerate);
}
.snackbar__text { flex: 1; padding: 8px 0; }
.snackbar__text a { color: var(--md-sys-color-inverse-primary); font-weight: 600; }
.snackbar :focus-visible { outline-color: var(--md-sys-color-inverse-primary); }
@keyframes snack-in { from { transform: translate(-50%, 24px); opacity: 0; } }

/* 16. STATUS PAGES ----------------------------------------------------- */
.status-page { position: relative; overflow: hidden; padding-block: var(--space-10) var(--space-11); }
.status-page__inner { position: relative; max-width: 720px; }
.status-page p:not(.overline) { margin-top: var(--space-4); color: var(--md-sys-color-on-surface-variant); }
.status-page__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--md-sys-shape-corner-large); margin-bottom: var(--space-5); }
.status-page__icon .icon { width: 32px; height: 32px; }
.status-page__icon--ok { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.status-page__icon--warn { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.status-page__shape { position: absolute; right: -80px; top: 40px; width: 360px; height: 360px; opacity: .18; pointer-events: none; }
.side-app { display: flex; gap: var(--space-4); align-items: flex-start; margin-top: var(--space-5); }
.side-app img { border-radius: 12px; flex: none; }
.pane__side .list { margin-top: var(--space-3); }
.nf-list { margin-top: var(--space-6); padding: 8px; border-radius: var(--md-sys-shape-corner-extra-large); }

/* 17. FOOTER ----------------------------------------------------------- */
.site-footer { background: var(--md-sys-color-surface-container); color: var(--md-sys-color-on-surface-variant); padding-top: var(--space-9); padding-bottom: max(var(--space-6), env(safe-area-inset-bottom)); font: var(--md-sys-typescale-body-medium); letter-spacing: var(--md-sys-typescale-body-medium-tracking); }
.site-footer__top { display: grid; gap: var(--space-7); padding-bottom: var(--space-7); }
.site-footer__about p { margin: var(--space-4) 0 var(--space-5); max-width: 360px; }
.site-footer__title { font: var(--md-sys-typescale-title-small); color: var(--md-sys-color-on-surface); margin-bottom: var(--space-2); }
.site-footer__col ul { list-style: none; padding: 0; }
.site-footer__col a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--md-sys-color-on-surface-variant); text-decoration: none; }
.site-footer__col a:hover { color: var(--md-sys-color-primary); text-decoration: underline; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-5); padding-top: var(--space-5); font: var(--md-sys-typescale-body-small); }
.has-installbar .site-footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }

/* 18. INSTALL BAR (compact windows only, shown by JS) ----------------- */
.installbar { display: none; }
@media (max-width: 599.98px) {
  .installbar:not([hidden]) {
    position: fixed; z-index: 60; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 12px; padding: 8px 4px 8px 12px;
    background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface);
    border-radius: var(--md-sys-shape-corner-extra-large); box-shadow: var(--md-sys-elevation-level3);
    animation: bar-in var(--md-sys-motion-duration-long2) var(--md-sys-motion-easing-emphasized-decelerate) 600ms both;
  }
  .installbar img { border-radius: 10px; flex: none; }
  .installbar__text { flex: 1; min-width: 0; display: flex; flex-direction: column; font: var(--md-sys-typescale-body-small); color: var(--md-sys-color-on-surface-variant); }
  .installbar__text strong { font: var(--md-sys-typescale-title-small); color: var(--md-sys-color-on-surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .installbar__get { flex: none; padding-inline: 16px; }
  .installbar__close { flex: none; }
  .installbar.is-leaving { animation: bar-out var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized-accelerate) both; }
  .has-installbar .snackbar { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@keyframes bar-in { from { transform: translateY(130%); } }
@keyframes bar-out { to { transform: translateY(130%); opacity: 0; } }

/* 19. MOTION ----------------------------------------------------------- */
.enter { animation: enter var(--md-sys-motion-duration-long2) var(--md-sys-motion-easing-emphasized-decelerate) both; }
.e1 { animation-delay: 0ms; } .e2 { animation-delay: 80ms; } .e3 { animation-delay: 160ms; } .e4 { animation-delay: 240ms; } .e5 { animation-delay: 320ms; }
@keyframes enter { from { opacity: 0; transform: translateY(24px); } }
.js .reveal.is-pending { opacity: 0; transform: translateY(32px); }
.js .reveal.is-in {
  opacity: 1; transform: none; transition-delay: var(--delay, 0ms);
  transition: opacity var(--md-sys-motion-duration-long1) var(--md-sys-motion-easing-emphasized-decelerate) var(--delay, 0ms),
              transform var(--md-sys-motion-duration-long2) var(--md-sys-motion-easing-emphasized-decelerate) var(--delay, 0ms);
}
.js .reveal.d1 { --delay: 60ms; } .js .reveal.d2 { --delay: 120ms; } .js .reveal.d3 { --delay: 180ms; } .js .reveal.d4 { --delay: 240ms; } .js .reveal.d5 { --delay: 300ms; }
/* page-to-page: cross-document View Transitions (fade-through); browsers without support just load the page */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-emphasized-accelerate) both; }
::view-transition-new(root) { animation: vt-in var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized-decelerate) 50ms both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: scale(.98); } }

/* 20. REDUCED MOTION --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal.is-pending { opacity: 1; transform: none; }
  .parallax { transform: none !important; }
  .ph-sheet { animation: none !important; transform: none; }
  .ph-tap, .ph-caret { animation: none !important; opacity: 0; }
  .ph-fab, .ph-dl__card, .ph-s1, .ph-s2, .ph-badge, .ph-player__btn, .phones__shape .shape { animation: none !important; }
  .ph-bar__fill { animation: none !important; transform: scaleX(.64); }
  .ph-dl__pct { animation: none !important; --pct: 64; }
  .ph-circ__bar { animation: none !important; stroke-dashoffset: 30; }
  .ph-seek__fill { animation: none !important; width: 54%; }
  .ph-seek__thumb { animation: none !important; left: 54%; }
  .lin-progress--indeterminate .lin-progress__bar { animation: none !important; width: 64%; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* 21. WINDOW SIZE CLASSES ---------------------------------------------- */
/* compact (<600) is the default above */
@media (max-width: 599.98px) {
  .announce__text, .announce__full { display: none; }
  .announce__short { display: inline; }
  .announce__inner { justify-content: center; }
  .hero__actions > * { flex: 1 1 100%; justify-content: center; }
  .hero, .page-hero { border-radius: 0 0 32px 32px; }
  .cta-band { border-radius: 32px; }
  html:not(.js) .top-nav { display: block; width: 100%; }
}
@media (max-width: 839.98px) {
  html:not(.js) .top-app-bar__inner { flex-wrap: wrap; }
  html:not(.js) .top-nav { display: block; order: 3; width: 100%; padding-bottom: 8px; }
  html:not(.js) .top-nav__list { flex-wrap: wrap; }
  html:not(.js) .drawer-open { display: none; }
  html:not(.js) .top-app-bar__cta { display: inline-flex; }
}
/* medium 600-839 */
@media (min-width: 600px) {
  .section { padding-block: var(--space-10); }
  .hero__title, .page-hero__title { font: var(--md-sys-typescale-display-medium); font-weight: var(--md-sys-typescale-emphasized-weight); }
  .headline { font: var(--md-sys-typescale-headline-large); font-weight: 500; }
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  .bento--services, .steps, .bento--features { grid-template-columns: 1fr 1fr; }
  .phones { --w: min(250px, 38vw); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__about { grid-column: 1 / -1; }
  .form-card { padding: var(--space-7) var(--space-6); }
  .tile--browser { grid-column: 1 / -1; }
  .tile--lang { grid-column: 1 / -1; }
}
/* expanded 840-1199 */
@media (min-width: 840px) {
  .top-nav { display: block; }
  .top-app-bar__cta { display: inline-flex; }
  .drawer-open { display: none; }
  .hero { padding-block: var(--space-9) var(--space-10); }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); }
  .phones { --w: clamp(200px, calc((100vh - 280px) / 2.3), min(270px, 21vw)); }
  .headline { font: var(--md-sys-typescale-display-small); font-weight: 500; }
  .showcase { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); }
  .pane { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); }
  .pane__support { position: sticky; top: 96px; }
  .pane--contact-page { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .pane__side { position: sticky; top: 96px; }
  .about { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .bento--features { grid-template-columns: repeat(4, 1fr); }
  .tile--browser { grid-column: span 2; grid-row: span 2; }
  .tile--quality, .tile--player { grid-column: span 2; }
  .tile--wide { grid-column: span 2; }
  .site-footer__top { grid-template-columns: 2fr 1fr 1fr; }
  .site-footer__about { grid-column: auto; }
}
/* large 1200-1599 */
@media (min-width: 1200px) {
  .hero__title { font: var(--md-sys-typescale-display-large); letter-spacing: var(--md-sys-typescale-display-large-tracking); font-weight: var(--md-sys-typescale-emphasized-weight); }
  .phones { --w: clamp(210px, calc((100vh - 280px) / 2.3), 290px); }
  .bento--services { grid-template-columns: repeat(12, 1fr); }
  .bento--services > :nth-child(1) { grid-column: span 7; }
  .bento--services > :nth-child(2) { grid-column: span 5; }
  .bento--services > :nth-child(3) { grid-column: span 5; }
  .bento--services > :nth-child(4) { grid-column: span 7; }
}
/* extra-large >= 1600 */
@media (min-width: 1600px) {
  .phones { --w: clamp(220px, calc((100vh - 280px) / 2.3), 320px); }
}
/* short landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .top-app-bar { position: relative; }
  .phones { --w: 200px; }
}
