/* Setpiece site. Material 3 Expressive, using the app's own Iris palette (generated from
   UI/src/theme.ts colorRoles) so the page and the screenshots read as one product. */

:root {
  color-scheme: dark;
  --primary:#c2c1ff;--on-primary:#1800a7;--primary-container:#332dbc;--on-primary-container:#e2dfff;
  --secondary-container:#444465;--on-secondary-container:#e2dfff;
  --tertiary:#f4b4d7;--tertiary-container:#673754;--on-tertiary-container:#ffd8eb;
  --play-container:#135224;--on-play-container:#b1f2b4;
  --surface:#131317;--surface-lowest:#0e0e12;--surface-low:#1c1b20;--surface-container:#201f24;--surface-high:#2a292e;--surface-highest:#353439;
  --on-surface:#e5e1e7;--on-surface-variant:#c8c5d1;--outline:#918f9b;--outline-variant:#474650;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
  --glow: 0 0 120px color-mix(in srgb, var(--primary-container) 55%, transparent);

  --font: 'Roboto Flex', 'Segoe UI Variable', system-ui, sans-serif;
  --shape-sm: 8px; --shape-md: 12px; --shape-lg: 16px; --shape-xl: 28px; --shape-xxl: 40px; --shape-full: 999px;
  --spatial: cubic-bezier(0.38, 1.21, 0.22, 1);
  --spatial-fast: cubic-bezier(0.42, 1.67, 0.21, 0.9);
  --effects: cubic-bezier(0.34, 0.8, 0.34, 1);
  --container: 1200px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    color-scheme: light;
    --primary:#4d4ad5;--on-primary:#ffffff;--primary-container:#e2dfff;--on-primary-container:#332dbc;
    --secondary-container:#e8e6f6;--on-secondary-container:#444465;
    --tertiary:#824e6d;--tertiary-container:#ffd8eb;--on-tertiary-container:#673754;
    --play-container:#b1f2b4;--on-play-container:#002108;
    --surface:#fcf8fe;--surface-lowest:#ffffff;--surface-low:#f6f2f9;--surface-container:#f0ecf3;--surface-high:#eae7ed;--surface-highest:#e5e1e7;
    --on-surface:#1c1b20;--on-surface-variant:#474650;--outline:#777681;--outline-variant:#c8c5d1;
    --shadow: 0 1px 2px rgb(40 30 90 / .12), 0 12px 32px rgb(40 30 90 / .12);
    --glow: 0 0 120px color-mix(in srgb, var(--primary) 18%, transparent);
  }
}
:root[data-theme='light'] {
  color-scheme: light;
  --primary:#4d4ad5;--on-primary:#ffffff;--primary-container:#e2dfff;--on-primary-container:#332dbc;
  --secondary-container:#e8e6f6;--on-secondary-container:#444465;
  --tertiary:#824e6d;--tertiary-container:#ffd8eb;--on-tertiary-container:#673754;
  --play-container:#b1f2b4;--on-play-container:#002108;
  --surface:#fcf8fe;--surface-lowest:#ffffff;--surface-low:#f6f2f9;--surface-container:#f0ecf3;--surface-high:#eae7ed;--surface-highest:#e5e1e7;
  --on-surface:#1c1b20;--on-surface-variant:#474650;--outline:#777681;--outline-variant:#c8c5d1;
  --shadow: 0 1px 2px rgb(40 30 90 / .12), 0 12px 32px rgb(40 30 90 / .12);
  --glow: 0 0 120px color-mix(in srgb, var(--primary) 18%, transparent);
}

/* Themed images: dark by default, light when the page is light. */
.only-light { display: none !important; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .only-light { display: block !important; }
  :root:not([data-theme='dark']) .only-dark { display: none !important; }
}
:root[data-theme='light'] .only-light { display: block !important; }
:root[data-theme='light'] .only-dark { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--surface); color: var(--on-surface); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); }
h1, h2, h3, p { margin: 0; }
code { font-family: 'Cascadia Code', Consolas, monospace; font-size: .92em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 16px; border-radius: var(--shape-full); background: var(--primary); color: var(--on-primary); }
.skip-link:focus { top: 12px; }

/* Material Symbols */
.ms { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 22px; line-height: 1; display: inline-block; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; font-variation-settings: 'FILL' 0, 'opsz' 24; user-select: none; }
.ms.filled { font-variation-settings: 'FILL' 1, 'opsz' 24; }

/* Type */
h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; font-weight: 640; font-stretch: 112%; letter-spacing: -.03em; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; font-weight: 620; font-stretch: 110%; letter-spacing: -.02em; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--on-surface-variant); max-width: 56ch; }
.eyebrow { display: inline-block; margin-bottom: 12px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.accent-text { color: var(--primary); }
.fineprint { font-size: 14px; color: var(--on-surface-variant); }
.fineprint.center { text-align: center; margin-top: 32px; }
.muted { color: var(--on-surface-variant); }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px; border: 0; border-radius: var(--shape-full); font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: border-radius .35s var(--spatial-fast), background-color .2s var(--effects), transform .35s var(--spatial-fast); }
.button:active { border-radius: var(--shape-md); }
.button .ms { font-size: 20px; margin-left: -4px; }
.button svg { width: 18px; height: 18px; fill: currentColor; }
.button.small { height: 40px; padding: 0 16px; font-size: 14px; }
.button.filled { background: var(--primary); color: var(--on-primary); }
.button.filled:hover { background: color-mix(in srgb, var(--on-primary) 8%, var(--primary)); }
.button.tonal { background: var(--secondary-container); color: var(--on-secondary-container); }
.button.tonal:hover { background: color-mix(in srgb, var(--on-secondary-container) 8%, var(--secondary-container)); }
.button.outlined { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1px var(--outline); }
.button.outlined:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.button.text { background: transparent; color: var(--primary); padding: 0 12px; }
.button.text:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--on-surface-variant); cursor: pointer; }
.icon-button:hover { background: color-mix(in srgb, var(--on-surface) 8%, transparent); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px 0 12px; border-radius: var(--shape-sm); border: 1px solid var(--outline-variant); color: var(--on-surface-variant); font-size: 14px; font-weight: 500; }
.chip .ms { font-size: 18px; color: var(--primary); }
.text-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }
.text-link .ms { font-size: 16px; }
.text-link:hover { text-decoration: underline; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid color-mix(in srgb, var(--outline-variant) 50%, transparent); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-surface); text-decoration: none; font-weight: 650; font-size: 20px; font-stretch: 110%; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--shape-md); background: var(--primary-container); color: var(--on-primary-container); }
.brand-mark .ms { font-size: 22px; }
.version { padding: 2px 8px; border-radius: var(--shape-sm); background: var(--surface-high); color: var(--on-surface-variant); font-size: 12px; font-weight: 600; }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { padding: 8px 14px; border-radius: var(--shape-full); color: var(--on-surface-variant); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav nav a:hover { background: color-mix(in srgb, var(--on-surface) 8%, transparent); color: var(--on-surface); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 860px) { .nav nav { display: none; } .nav-actions { margin-left: auto; } }

/* Windows (screenshot frames) */
.window { display: block; overflow: hidden; border-radius: var(--shape-xl); background: var(--surface-container); box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--outline-variant) 60%, transparent); }
.window img { width: 100%; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 72px 0 96px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; }
.hero-visual .window { box-shadow: var(--shadow), var(--glow), 0 0 0 1px color-mix(in srgb, var(--outline-variant) 60%, transparent); }
.float { position: absolute; width: 30%; filter: drop-shadow(0 18px 30px rgb(0 0 0 / .35)); animation: bob 7s ease-in-out infinite alternate; }
.float-a { right: -6%; bottom: -14%; }
.float-b { left: -8%; top: 58%; width: 27%; animation-delay: -3s; }
@keyframes bob { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-14px) rotate(1deg); } }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; padding-top: 40px; } html:root .hero-visual img.float.float-b { display: none !important; } .float-a { right: -2%; } }

/* Section scaffolding */
section { position: relative; }
.section-heading { max-width: 720px; margin-bottom: 40px; }
.section-heading p { margin-top: 16px; color: var(--on-surface-variant); font-size: 18px; }

/* Reel */
.reel { padding: 24px 0 64px; }
.reel-frame { position: relative; aspect-ratio: 16 / 9; background: #08080c; box-shadow: var(--shadow), var(--glow), 0 0 0 1px color-mix(in srgb, var(--outline-variant) 60%, transparent); }
.reel-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel-sound { position: absolute; right: 16px; top: 16px; box-shadow: var(--shadow); }
.reel-sound .ms { font-size: 20px; }
@media (max-width: 600px) { .reel-sound .label { display: none; } .reel-sound { padding: 0 12px; right: 10px; top: 10px; } .reel-sound .ms { margin: 0; } }

/* Tour */
.tour { padding: 48px 0 112px; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; margin-bottom: 24px; padding: 4px; border-radius: var(--shape-full); background: var(--surface-container); }
.segmented button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: var(--shape-full); background: transparent; color: var(--on-surface-variant); font: 600 15px/1 var(--font); cursor: pointer; transition: background-color .2s var(--effects), color .2s var(--effects); }
.segmented button .ms { font-size: 20px; }
.segmented button:hover { color: var(--on-surface); background: color-mix(in srgb, var(--on-surface) 6%, transparent); }
.segmented button[aria-selected='true'] { background: var(--secondary-container); color: var(--on-secondary-container); }
.segmented button[aria-selected='true'] .ms { font-variation-settings: 'FILL' 1, 'opsz' 24; }
.tour-panel { outline: none; }
.tour-panel .window { max-height: 820px; overflow: hidden; }
.tour-panel img { transition: opacity .25s var(--effects); }
.tour-panel img.loading { opacity: .3; }
.caption { margin-top: 20px; max-width: 72ch; color: var(--on-surface-variant); font-size: 17px; }

/* Widgets */
.widgets-section { padding: 112px 0; background: var(--surface-low); border-radius: var(--shape-xxl); margin-inline: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 40px; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: var(--shape-lg); background: var(--surface-container); font-weight: 600; }
.legend li span { font-weight: 400; color: var(--on-surface-variant); font-size: 14px; }
.legend i { width: 24px; height: 24px; border-radius: 8px; }
.legend [data-cat='daily'] i { background: var(--primary-container); }
.legend [data-cat='connected'] i { background: var(--secondary-container); border-bottom-left-radius: 2px; box-shadow: inset 0 0 0 1px var(--outline-variant); }
.legend [data-cat='device'] i { background: var(--tertiary-container); border-top-right-radius: 2px; }
.widget-wall { columns: 4 240px; column-gap: 20px; }
.widget-wall figure { break-inside: avoid; margin: 0 0 20px; }
.widget-wall img { width: 100%; filter: drop-shadow(0 10px 22px rgb(0 0 0 / .22)); transition: transform .5s var(--spatial); }
.widget-wall figure:hover img { transform: translateY(-4px) rotate(-.6deg); }
.widget-wall figcaption { margin-top: 8px; padding-left: 6px; font-size: 14px; color: var(--on-surface-variant); }

/* Shared browsers */
.browsers-section { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 128px 0; }
@media (max-width: 1000px) { .browsers-section { grid-template-columns: 1fr; } }
.browsers-copy { display: flex; flex-direction: column; gap: 20px; }
.browsers-copy em { font-style: normal; color: var(--primary); font-weight: 600; }
.checks { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 16px; padding: 14px 16px; border-radius: var(--shape-sm); background: var(--surface-container); color: var(--on-surface-variant); }
.checks li:first-child { border-radius: var(--shape-xl) var(--shape-xl) var(--shape-sm) var(--shape-sm); }
.checks li:last-child { border-radius: var(--shape-sm) var(--shape-sm) var(--shape-xl) var(--shape-xl); }
.checks strong { color: var(--on-surface); }
.checks .ms { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--shape-md); background: var(--secondary-container); color: var(--on-secondary-container); font-size: 20px; }

/* The fullscreen demo: a 1920 x 1080 desktop laid out in real pixels (so the toolbar,
   widgets and page are all at true 1080p size) and scaled as one piece by site.js. */
.demo { margin: 0; }
.monitor {
  --scale: .34;
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; margin: 11px;
  background: #000;
  box-shadow: var(--shadow), var(--glow), 0 0 0 10px var(--surface-high), 0 0 0 11px var(--outline-variant);
}
.stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform: scale(var(--scale)); transform-origin: 0 0; font-family: Roboto, var(--font); }
.desk { position: absolute; inset: 0; background: url('assets/desk-fjord-glass.jpg') center / cover; }
.desk::after { content: ''; position: absolute; inset: 0; background: rgb(0 0 0 / .3); }
.win { position: absolute; display: block; max-width: none; }
.browser { left: 16px; top: 16px; width: 1352px; height: 1048px; overflow: hidden; background: #0f0f0f; color: #f1f1f1; }
.browser .toolbar { width: 1352px; height: 124px; max-width: none; }
.w-clock, .w-chat, .w-system { left: 1380px; width: 524px; }
.w-clock { top: 16px; height: 341px; }
.w-chat { top: 369px; height: 341px; }
.w-system { top: 722px; height: 342px; }

/* A video site watch page, in the style people know from YouTube. */
.watch { display: flex; gap: 24px; padding: 24px 24px 0; height: 924px; overflow: hidden; }
.primary { width: 896px; flex-shrink: 0; }
.player-slot { width: 896px; height: 504px; border-radius: 12px; background: #000; }
.watch-title { margin: 12px 0 8px; font-size: 20px; line-height: 28px; font-weight: 700; }
.channel-row { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; max-width: none; }
.channel { display: flex; flex-direction: column; line-height: 1.3; }
.channel strong { font-size: 16px; display: flex; align-items: center; gap: 4px; }
.channel span { font-size: 12px; color: #aaa; }
.verified { font-size: 14px; color: #aaa; }
.spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 18px; background: rgb(255 255 255 / .1); font-size: 14px; font-weight: 500; white-space: nowrap; }
.pill .ms { font-size: 22px; }
.pill i { width: 1px; height: 24px; margin: 0 6px; background: rgb(255 255 255 / .2); }
.pill.solid, .pill.active { background: #f1f1f1; color: #0f0f0f; }
.pill.round { width: 36px; padding: 0; justify-content: center; }
.description { margin-top: 12px; padding: 12px; border-radius: 12px; background: rgb(255 255 255 / .1); font-size: 14px; line-height: 20px; }
.up-next { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.chips-row { display: flex; gap: 12px; margin-bottom: 4px; }
.chips-row .pill { height: 32px; padding: 0 12px; border-radius: 8px; }
.rec { display: flex; gap: 8px; }
.rec img { width: 168px; height: 94px; border-radius: 8px; object-fit: cover; flex-shrink: 0; max-width: none; }
.rec div { display: flex; flex-direction: column; min-width: 0; font-size: 12px; line-height: 18px; color: #aaa; }
.rec strong { margin-bottom: 4px; color: #f1f1f1; font-size: 14px; line-height: 20px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Light theme for the page, whether chosen by the toggle or by the system. */
:root[data-theme='light'] .browser { background: #fff; color: #0f0f0f; }
:root[data-theme='light'] .pill, :root[data-theme='light'] .description { background: rgb(0 0 0 / .05); }
:root[data-theme='light'] .pill.solid, :root[data-theme='light'] .pill.active { background: #0f0f0f; color: #fff; }
:root[data-theme='light'] .rec strong { color: #0f0f0f; }
:root[data-theme='light'] .rec div, :root[data-theme='light'] .channel span { color: #606060; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .browser { background: #fff; color: #0f0f0f; }
  :root:not([data-theme='dark']) .pill, :root:not([data-theme='dark']) .description { background: rgb(0 0 0 / .05); }
  :root:not([data-theme='dark']) .pill.solid, :root:not([data-theme='dark']) .pill.active { background: #0f0f0f; color: #fff; }
  :root:not([data-theme='dark']) .rec strong { color: #0f0f0f; }
  :root:not([data-theme='dark']) .rec div, :root:not([data-theme='dark']) .channel span { color: #606060; }
}

/* The player moves between three rectangles: in the page, the tile, and the whole display. */
.player {
  --x: 40px; --y: 164px; --w: 896px; --h: 504px; --r: 12px;
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); z-index: 5;
  overflow: hidden; border-radius: var(--r); background: #000; color: #fff;
  transition: left .7s var(--spatial), top .7s var(--spatial), width .7s var(--spatial), height .7s var(--spatial), border-radius .7s var(--spatial);
}
.demo[data-fullscreen='true'][data-contained='true'] .player { --x: 16px; --y: 16px; --w: 1352px; --h: 1048px; --r: 0px; }
.demo[data-fullscreen='true'][data-contained='false'] .player { --x: 0px; --y: 0px; --w: 1920px; --h: 1080px; --r: 0px; }
.player .video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.demo[data-fullscreen='true'] .player .video { animation: drift 20s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.player-top { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; gap: 2px; padding: 24px 28px 48px; background: linear-gradient(rgb(0 0 0 / .6), transparent); opacity: 0; transition: opacity .3s var(--effects); }
.player-top strong { font-size: 22px; font-weight: 500; }
.player-top span { font-size: 15px; color: rgb(255 255 255 / .75); }
.demo[data-fullscreen='true'] .player-top { opacity: 1; }
.player-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 4px; background: linear-gradient(transparent, rgb(0 0 0 / .7)); }
.scrub { height: 4px; margin: 0 4px; background: rgb(255 255 255 / .3); }
.scrub i { display: block; width: 100%; height: 100%; background: #f03; }
.controls { display: flex; align-items: center; gap: 22px; height: 48px; padding: 0 8px; }
.controls .ms { font-size: 30px; }
.demo[data-fullscreen='true'] .controls .ms { font-size: 34px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #f03; }

/* Labels sit outside the scaled stage so they stay readable. */
.tag { position: absolute; z-index: 6; padding: 4px 10px; border-radius: 99px; background: var(--surface-highest); color: var(--on-surface); font-size: 11px; font-weight: 600; box-shadow: 0 2px 8px rgb(0 0 0 / .25); white-space: nowrap; transition: opacity .3s var(--effects), transform .5s var(--spatial-fast); }
.tag-tile { left: 2%; bottom: 3.5%; }
.tag-widgets { right: 2%; bottom: 3.5%; background: var(--primary); color: var(--on-primary); opacity: 0; transform: scale(.8); }
.demo[data-fullscreen='true'][data-contained='true'] .tag-widgets { opacity: 1; transform: none; }
.demo[data-fullscreen='true'] .tag-tile { opacity: 0; }
.demo[data-contained='false'][data-fullscreen='true'] .tag { opacity: 0; }

.demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; padding-inline: 11px; }
.demo-status { flex-basis: 100%; color: var(--on-surface-variant); min-height: 1.6em; }

/* M3 switch */
.switch { display: inline-flex; align-items: center; gap: 14px; font-weight: 500; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 52px; height: 32px; border-radius: 16px; background: var(--surface-highest); box-shadow: inset 0 0 0 2px var(--outline); transition: background-color .2s var(--effects); }
.switch .handle { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--outline); color: transparent; transition: all .35s var(--spatial-fast); }
.switch .handle .ms { font-size: 16px; }
.switch input:checked + .track { background: var(--primary); box-shadow: none; }
.switch input:checked + .track .handle { top: 4px; left: 24px; width: 24px; height: 24px; background: var(--on-primary); color: var(--primary); }
.switch input:focus-visible + .track { outline: 3px solid var(--primary); outline-offset: 3px; }

/* Color */
.color-section { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 64px 0 128px; }
@media (max-width: 1000px) { .color-section { grid-template-columns: 1fr; } }
.color-copy { display: flex; flex-direction: column; gap: 20px; }
.swatches { display: flex; gap: 14px; margin: 8px 0; }
.swatches button { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: var(--swatch); color: #fff; cursor: pointer; transition: border-radius .35s var(--spatial-fast), transform .35s var(--spatial-fast); }
.swatches button:hover { transform: scale(1.06); }
.swatches button[aria-checked='true'] { border-radius: var(--shape-lg); box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--swatch); }
.color-shot img { transition: opacity .25s var(--effects); }

/* Features */
.features { padding: 64px 0 128px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.feature-grid article { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--shape-xl); background: var(--surface-container); transition: border-radius .5s var(--spatial), background-color .2s var(--effects); }
.feature-grid article:hover { border-radius: var(--shape-xxl); background: var(--surface-high); }
.feature-grid p { color: var(--on-surface-variant); }
.shape { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px; }
.shape .ms { font-size: 28px; }
.s1 { border-radius: var(--shape-lg); background: var(--primary-container); color: var(--on-primary-container); }
.s2 { border-radius: var(--shape-lg) var(--shape-lg) var(--shape-lg) 4px; background: var(--secondary-container); color: var(--on-secondary-container); }
.s3 { border-radius: var(--shape-lg) 4px var(--shape-lg) var(--shape-lg); background: var(--tertiary-container); color: var(--on-tertiary-container); }
.s4 { border-radius: 50%; background: var(--primary-container); color: var(--on-primary-container); }
.s5 { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; background: var(--play-container); color: var(--on-play-container); }
.s6 { border-radius: var(--shape-lg); background: var(--secondary-container); color: var(--on-secondary-container); }

/* Setup */
.setup { padding: 64px 0 96px; }
.setup-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
@media (max-width: 860px) { .setup-grid { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--shape-xl); background: var(--surface-container); }
.code-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
pre { margin: 0; padding: 20px 24px; border-radius: var(--shape-lg); background: var(--surface-lowest); overflow-x: auto; line-height: 1.7; }
.copy-status { min-height: 1.2em; font-size: 14px; color: var(--primary); }
.copy-status:empty { display: none; }
dl { display: flex; flex-direction: column; gap: 2px; margin: 0; }
dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 16px; background: var(--surface-high); border-radius: var(--shape-sm); }
dl > div:first-child { border-radius: var(--shape-lg) var(--shape-lg) var(--shape-sm) var(--shape-sm); }
dl > div:last-child { border-radius: var(--shape-sm) var(--shape-sm) var(--shape-lg) var(--shape-lg); }
dt { color: var(--on-surface-variant); }
dd { margin: 0; }

/* Footer */
.footer { padding: 40px 0 56px; border-top: 1px solid var(--outline-variant); color: var(--on-surface-variant); font-size: 14px; }
.footer-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.footer-main .brand { font-size: 18px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--on-surface-variant); text-decoration: none; }
.footer-links a:hover { color: var(--on-surface); }

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