/* Floe – Website. Farben: color-60-30-10 „forged-titanium-modena“ (dunkel) + geprüfte Hell-Variante. Schrift: Gloock / Onest. */

/* 60-30-10 · 60% --c-main (Grund) · 30% --c-second (Marke, Überschriften) · 10% --c-accent (nur Download, Auswahl, Fokus) */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --c-main: #1B1C1F;
  --c-second: #B9BCC2;
  --c-strong: #ECEDEF;
  --c-accent: #FFD100;
  --c-on-accent: #111111;
  --c-on-second: #111111;
  --c-ink: #B9BCC2;
  --c-muted: #A5A6A9;
  --c-surface: #27282B;
  --c-line: #393A3C;
  --c-accent-edge: #FFD100;
  --c-focus: #FFD100;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
[data-theme="light"] {
  color-scheme: light;
  --c-main: #EEEFF1;
  --c-second: #1B1C1F;
  --c-strong: #141518;
  --c-ink: #2A2B2F;
  --c-muted: #5C5E63;
  --c-surface: #FFFFFF;
  --c-line: #D5D7DB;
  --c-accent-edge: #1B1C1F;
  --c-focus: #1B1C1F;
  --shadow: 0 24px 60px rgba(20, 22, 30, .16);
}

:root {
  --font-display: "Gloock", "Iowan Old Style", Georgia, serif;
  --font-body: "Onest", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --r-ctl: 10px;
  --r-panel: 18px;
  --r-stage: 28px;
  --edge: clamp(20px, 5vw, 56px);
  --max: 1240px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0; background: var(--c-main); color: var(--c-ink);
  font: 400 17px/1.55 var(--font-body); font-synthesis: none;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; }
h1, h2, h3 { color: var(--c-strong); margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
h3 { font: 600 17px/1.35 var(--font-body); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
code { font: 500 .9em/1 var(--font-ui); padding: .12em .38em; border-radius: 6px; background: var(--c-surface); border: 1px solid var(--c-line); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; border-radius: 6px; }

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

.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: var(--r-ctl);
  background: var(--c-accent); color: var(--c-on-accent); font-weight: 600; text-decoration: none; translate: 0 -200%; }
.skip:focus-visible { translate: 0 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--c-accent); color: var(--c-on-accent); border-color: var(--c-accent-edge); }
.btn-ghost { color: var(--c-strong); border-color: var(--c-line); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
@media (hover: hover) and (pointer: fine) {
  .btn-accent:hover { background: #FFDB33; }
  .btn-ghost:hover { border-color: var(--c-second); }
}

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--c-main) 82%, transparent); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid color-mix(in srgb, var(--c-line) 60%, transparent); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-strong);
  font: 400 24px/1 var(--font-display); min-height: 44px; }
.brand img { border-radius: 7px; }
.links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--c-muted);
  text-decoration: none; font-size: 15px; font-weight: 500; transition: color 160ms ease, background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .links a:hover { color: var(--c-strong); background: var(--c-surface); } }
nav[aria-label] { margin-left: auto; }
.nav-end { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--c-line);
  background: transparent; color: var(--c-strong); cursor: pointer; transition: transform 160ms var(--ease-out), border-color 200ms ease; }
.icon-btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { border-color: var(--c-second); } }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.i-moon { display: none !important; }
[data-theme="light"] .i-moon { display: block !important; }
[data-theme="light"] .i-sun { display: none !important; }
@media (max-width: 760px) { .links { display: none; } .nav .btn-sm { display: none; } nav[aria-label] { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { min-height: calc(100svh - var(--nav-h)); display: flex; padding-block: clamp(28px, 5vh, 56px) clamp(20px, 4vh, 40px); }
.hero-in { display: grid; grid-template-rows: auto 1fr; gap: clamp(24px, 4vh, 44px); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; }
.hero h1 { font-size: clamp(42px, 6.2vw, 84px); line-height: 1.02; grid-row: span 3; }
.lead { font-size: 18px; color: var(--c-ink); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fact { font-size: 15px; color: var(--c-muted); }
@media (max-width: 900px) {
  .hero-copy { grid-template-columns: 1fr; }
  .hero h1 { grid-row: auto; }
}
@media (max-width: 520px) {
  .hero { padding-top: 24px; }
  .hero-in { gap: 22px; }
  .hero-copy { gap: 14px; }
  .hero h1 { font-size: clamp(34px, 10vw, 42px); }
  .lead { font-size: 16px; }
  .actions .btn { flex: 1 1 auto; padding: 0 16px; }
  .hero .stage-hero { min-height: 200px; }
  .fact { font-size: 14px; }
  .explorer .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* hero entrance: once, on load */
[data-enter] .hero-copy > *, [data-enter] .stage-hero { animation: enter 700ms var(--ease-out) both; }
[data-enter] .hero-copy > :nth-child(2) { animation-delay: 60ms; }
[data-enter] .hero-copy > :nth-child(3) { animation-delay: 120ms; }
[data-enter] .hero-copy > :nth-child(4) { animation-delay: 160ms; }
[data-enter] .stage-hero { animation-delay: 180ms; animation-duration: 900ms; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }

/* ---------- stages (a desktop with the bar on it) ---------- */
.stage { position: relative; overflow: hidden; border-radius: var(--r-stage); isolation: isolate; min-height: 300px;
  background: #c8645a url("wall.svg") center / cover no-repeat; box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--c-line) 70%, transparent); }
.stage .desk { position: absolute; inset: 0; z-index: -1; }
.stage-hero { min-height: max(320px, 100%); }
.stage-lab { background-size: 150%; background-position: 50% 78%; min-height: 0; height: clamp(260px, 34vh, 360px); }
.stage-panels { background-position: 30% 60%; min-height: 560px; }
.stage-panels .desk { background: rgba(10, 12, 16, .18); }

.bar-fit { position: absolute; left: 50%; bottom: 18px; transform-origin: 50% 100%; transform: translateX(-50%) scale(var(--fit, 1)); }
.bar-fit:has(.bar[data-shape="notch"]) { bottom: 0; }

/* ---------- the bar ---------- */
.bar {
  --h: 56px; --icon: 36px; --it: 46px; --r: 28px; --gap: 10px; --clar: .7; --fg: #fff; --fg2: rgba(255, 255, 255, .78);
  position: relative; display: flex; align-items: center; gap: var(--gap); height: var(--h);
  font-family: var(--font-ui); color: var(--fg); user-select: none; -webkit-user-select: none;
  transition: gap 320ms var(--ease-out);
}
.bar .glass, .grp::before { content: ""; position: absolute; inset: 0; border-radius: var(--r); pointer-events: none; z-index: 0;
  transition: border-radius 320ms var(--ease-out), opacity 240ms ease, background-color 240ms ease; }
.bar > .glass { display: none; }
.grp { position: relative; display: flex; align-items: center; height: 100%; padding: 0 8px; border-radius: var(--r);
  transition: border-radius 320ms var(--ease-out); }
.grp > * { position: relative; z-index: 1; }
.bar .spec { position: absolute; inset: 0; border-radius: var(--r); pointer-events: none; z-index: 2; opacity: 0; transition: opacity 240ms ease;
  background: radial-gradient(160px 60px at var(--mx, 50%) -10%, rgba(255, 255, 255, .5), transparent 70%); mix-blend-mode: soft-light; }

/* one shape: glass on the whole bar */
.bar[data-shape="insel"] > .glass, .bar[data-shape="notch"] > .glass { display: block; }
.bar[data-shape="insel"] .grp::before, .bar[data-shape="notch"] .grp::before { display: none; }
.bar[data-shape="insel"], .bar[data-shape="notch"] { gap: 0; }
.bar[data-shape="insel"] .g-media, .bar[data-shape="notch"] .g-media { padding-inline: 4px; }

/* notch: stands on the screen edge, with soft fillets into it (clip-path set by app.js) */
.bar[data-shape="notch"] > .glass { left: -16px; right: -16px; border-radius: 0; }
.bar[data-shape="notch"] { --h: 52px; }

/* fluid: islands that merge while the pointer is over the bar */
.bar[data-shape="fluid"].hot { gap: 0; }
.bar[data-shape="fluid"].hot .g-apps, .bar[data-shape="fluid"].hot .g-apps::before { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.bar[data-shape="fluid"].hot .g-media, .bar[data-shape="fluid"].hot .g-media::before { border-radius: 0; }
.bar[data-shape="fluid"].hot .g-tray, .bar[data-shape="fluid"].hot .g-tray::before { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.bar[data-shape="fluid"] > .glass { display: block; background: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  opacity: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .5); z-index: 1; }
.bar[data-shape="fluid"].hot > .glass { opacity: 1; transition-delay: 120ms; }
.bar[data-shape="fluid"].hot .grp::before { box-shadow: 0 12px 32px rgba(0, 0, 0, .26); }

/* materials (on .glass for one shape, on each island otherwise) */
.bar[data-mat="schwarz"] > .glass, .bar[data-mat="schwarz"] .grp::before { background: #050506; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 28px rgba(0, 0, 0, .35); }
.bar[data-mat="graphit"] > .glass, .bar[data-mat="graphit"] .grp::before { background: linear-gradient(#34363b, #26272b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 28px rgba(0, 0, 0, .35); }
.bar[data-mat="glas"] > .glass, .bar[data-mat="glas"] .grp::before { background: rgba(255, 255, 255, .16); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 30px rgba(0, 0, 0, .22); }
.bar[data-mat="rauch"] > .glass, .bar[data-mat="rauch"] .grp::before { background: rgba(18, 19, 23, .52); backdrop-filter: blur(40px) saturate(140%); -webkit-backdrop-filter: blur(40px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 32px rgba(0, 0, 0, .32); }
.bar[data-mat="frost"] { --fg: #1d1d1f; --fg2: rgba(0, 0, 0, .62); }
.bar[data-mat="frost"] > .glass, .bar[data-mat="frost"] .grp::before { background: rgba(246, 247, 249, .62); backdrop-filter: blur(30px) saturate(170%); -webkit-backdrop-filter: blur(30px) saturate(170%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 10px 30px rgba(0, 0, 0, .18); }
.bar[data-mat="liquid"] > .glass, .bar[data-mat="liquid"] .grp::before {
  background: rgba(255, 255, 255, calc(.03 + (1 - var(--clar)) * .2)); background-image: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .16));
  backdrop-filter: blur(calc((1 - var(--clar)) * 18px + 1.5px)) saturate(185%) brightness(1.05);
  -webkit-backdrop-filter: blur(calc((1 - var(--clar)) * 18px + 1.5px)) saturate(185%) brightness(1.05);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .65), inset 0 -1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(255, 255, 255, .22),
    inset 6px 0 14px -8px rgba(255, 255, 255, .45), inset -6px 0 14px -8px rgba(255, 255, 255, .45), inset 0 -10px 18px -12px rgba(0, 0, 0, .25),
    0 12px 32px rgba(0, 0, 0, .22);
}
.bar[data-mat="liquid"] .spec { opacity: 1; }
.bar[data-mat="liquid"] { text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.bar[data-shape="notch"][data-mat="liquid"] .spec { display: none; }

/* items */
.it { position: relative; width: var(--it); height: 100%; display: grid; place-items: center; flex: none; }
.it .ic { width: var(--icon); height: var(--icon); transform-origin: 50% 100%; will-change: transform; position: relative; }
.it .ic img { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.it .dot { position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 9px; background: var(--fg2); }
.it.active .dot { width: 14px; margin-left: -7px; background: var(--fg); }
.it.start .ic { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 9px; }
.it.start .ic i { border-radius: 3px; background: var(--fg); opacity: .92; }
.bar[data-tint="getoent"] .it:not(.start) .ic img { filter: grayscale(1) contrast(.9) brightness(1.05) drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.bar[data-tint="getoent"] .it:not(.start) .ic::after { content: ""; position: absolute; inset: 0; background: #c9ad6a; mix-blend-mode: color; opacity: .85;
  -webkit-mask: url("tile.svg") center / 100% 100%; mask: url("tile.svg") center / 100% 100%; }

.media { display: flex; align-items: center; gap: 10px; padding: 0 6px 0 4px; height: 100%; }
.media .cover { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #f4a259, #bc4b51 55%, #5b8e7d); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.media .mt { display: grid; line-height: 1.2; font-size: 12.5px; }
.media .mt b { font-weight: 600; }
.media .mt em { font-style: normal; color: var(--fg2); }
.media .g { width: 30px; height: 30px; display: grid; place-items: center; }
.media .g svg, .tray svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.media .g svg { fill: currentColor; stroke: none; }
.tray { display: flex; align-items: center; gap: 2px; height: 100%; padding: 0 4px; }
.tray > span { display: grid; place-items: center; min-width: 28px; height: 36px; }
.tray .clock { display: grid; text-align: right; font-size: 12.5px; line-height: 1.25; padding: 0 6px; font-variant-numeric: tabular-nums; }
.tray .clock small { font-size: 11.5px; color: var(--fg2); }

/* ---------- sections ---------- */
.sec { padding-block: clamp(72px, 12vh, 128px); min-height: 100svh; display: flex; align-items: center; }
.sec > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vh, 44px); }
.sec-alt { background: var(--c-surface); }
[data-theme="light"] .sec-alt { background: #E4E5E8; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; }
.sec-head h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.06; }
.sec-head p { max-width: 52ch; color: var(--c-ink); }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; } }
.note { font-size: 15px; color: var(--c-muted); max-width: 70ch; }

/* ---------- lab ---------- */
.lab { display: grid; gap: 16px; }
.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px 28px; align-content: start; align-items: start; padding: 22px; border-radius: var(--r-stage); background: var(--c-surface); border: 1px solid var(--c-line); }
[data-theme="light"] .controls { background: #fff; }
.ctl { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.ctl legend, .ctl .lbl, .ctl-row > label { padding: 0; font-size: 14px; font-weight: 600; color: var(--c-strong); }
.ctl legend { margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 3px; border-radius: 12px; background: var(--c-main); border: 1px solid var(--c-line); }
.seg-6 { grid-template-columns: repeat(3, 1fr); }
.seg-2 { grid-template-columns: repeat(2, 1fr); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 44px; padding: 0 6px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--c-muted);
  transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out); }
.seg label:active span { transform: scale(.96); }
.seg input:checked + span { background: var(--c-accent); color: var(--c-on-accent); font-weight: 600; }
[data-theme="light"] .seg input:checked + span { box-shadow: inset 0 0 0 2px var(--c-accent-edge); }
.seg input:focus-visible + span { outline: 2px solid var(--c-focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .seg label:hover input:not(:checked) + span { color: var(--c-strong); } }
.hint { font-size: 14px; color: var(--c-muted); min-height: 1.4em; }
.ctl-row { grid-template-columns: 1fr auto; align-items: center; }
.ctl-row .hint, .ctl-row .seg, .ctl-row input[type="range"] { grid-column: 1 / -1; }
.ctl-row output { grid-row: 1; grid-column: 2; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--c-ink); }
input[type="range"] { width: 100%; height: 44px; font-size: 16px; margin: 0; background: none; accent-color: var(--c-accent); cursor: pointer; }
input[type="range"]:disabled { opacity: .45; cursor: not-allowed; }
.ctl-row.is-off > label, .ctl-row.is-off output { color: var(--c-muted); }

/* ---------- panels ---------- */
.explorer { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; }
.tabs { display: grid; gap: 6px; align-content: start; }
.tabs button { text-align: left; display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-panel); border: 1px solid transparent; background: none;
  color: var(--c-muted); font: inherit; cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease, transform 160ms var(--ease-out); }
.tabs button b { font-size: 17px; font-weight: 600; color: var(--c-strong); }
.tabs button span { font-size: 15px; line-height: 1.45; }
.tabs button:active { transform: scale(.98); }
.tabs button[aria-selected="true"] { background: var(--c-main); border-color: var(--c-line); box-shadow: inset 3px 0 0 var(--c-accent); }
[data-theme="light"] .tabs button[aria-selected="true"] { background: #fff; box-shadow: inset 3px 0 0 var(--c-accent-edge); }
@media (hover: hover) and (pointer: fine) { .tabs button:hover { background: color-mix(in srgb, var(--c-main) 60%, transparent); } }
@media (max-width: 1020px) {
  .explorer { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tabs button { padding: 10px 12px; min-height: 48px; place-content: center; text-align: center; }
  .tabs button span { display: none; }
  .tabs button b { font-size: 15px; }
  .tabs button[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--c-accent); }
  [data-theme="light"] .tabs button[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--c-accent-edge); }
  .stage-panels { min-height: 540px; }
}
.tab-desc { display: none; font-size: 15px; color: var(--c-muted); }
@media (max-width: 1020px) { .tab-desc { display: block; } }

.pan { position: absolute; left: 50%; bottom: 92px; width: min(380px, calc(100% - 24px)); translate: -50% 0; z-index: 3;
  padding: 16px; border-radius: 22px; color: #fff; font: 13px/1.35 var(--font-ui);
  background: rgba(24, 25, 29, .78); backdrop-filter: blur(36px) saturate(160%); -webkit-backdrop-filter: blur(36px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 60px rgba(0, 0, 0, .4);
  transform-origin: 50% 100%; animation: pan-in 220ms var(--ease-out); }
@keyframes pan-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.pan[hidden] { display: none; }
.pan svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.sp-field { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 12px; background: rgba(255, 255, 255, .1); font-size: 16px; margin-bottom: 8px; }
.sp-field svg { width: 16px; height: 16px; opacity: .8; }
.sp-field .ph { color: rgba(255, 255, 255, .72); }
.sp-group { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .72); margin: 10px 8px 4px; }
.sp-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; }
.sp-row.is-on { background: rgba(255, 255, 255, .14); }
.sp-row b { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-row.is-on b { font-size: 18px; font-weight: 600; }
.sp-row em { flex: none; font-style: normal; color: rgba(255, 255, 255, .72); font-size: 12px; }
.sp-ic { width: 28px; height: 28px; border-radius: 7px; flex: none; background: rgba(255, 255, 255, .14) center / 100% no-repeat; display: grid; place-items: center; font-weight: 600; }
.sp-ic.calc { background: #3a3b40; font-size: 17px; }
.sp-ic.file { background: #e9e9ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M9 6h7l4 4v12H9z' fill='%23fff' stroke='%23b9bcc2'/%3E%3Cpath d='M11 15h7M11 18h5' stroke='%23d0453a' stroke-width='1.4'/%3E%3C/svg%3E") center / 100%; }
.sp-ic.set { background: #6b6e76 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='4' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3Cpath d='M14 6v3M14 19v3M6 14h3M19 14h3M8.3 8.3l2.1 2.1M17.6 17.6l2.1 2.1M8.3 19.7l2.1-2.1M17.6 10.4l2.1-2.1' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100%; }
.sp-ic.web { background: #2f7a55 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%23fff' stroke-width='1.4'%3E%3Ccircle cx='14' cy='14' r='7'/%3E%3Cpath d='M7 14h14M14 7c-3 3.5-3 10.5 0 14M14 7c3 3.5 3 10.5 0 14'/%3E%3C/svg%3E") center / 100%; }

.st-head, .nt-head { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 6px 10px; }
.st-head b, .nt-head b { font-size: 14px; font-weight: 600; }
.st-head span, .nt-head span { font-size: 12px; color: rgba(255, 255, 255, .7); }
.st-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; }
.st-grid span { display: grid; justify-items: center; gap: 6px; font-size: 11.5px; color: rgba(255, 255, 255, .88); }
.st-grid img { width: 38px; height: 38px; }
.st-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 10px 6px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.st-user { display: flex; align-items: center; gap: 8px; }
.st-user i { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(#b9bcc2, #6b6e76); }
.st-power svg { width: 18px; height: 18px; }

.cc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-tile { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .1); }
.cc-tile svg { width: 18px; height: 18px; grid-row: span 2; }
.cc-tile b { font-weight: 600; }
.cc-tile span { font-size: 12px; color: rgba(255, 255, 255, .72); }
.cc-tile.on { background: rgba(255, 255, 255, .9); color: #1b1c1f; }
.cc-tile.on span { color: rgba(0, 0, 0, .6); }
.cc-slider { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 0 4px; }
.cc-slider svg { width: 18px; height: 18px; }
.cc-slider i, .pan-vol i { flex: 1; height: 6px; border-radius: 9px; background: linear-gradient(90deg, #fff calc(var(--v) * 100%), rgba(255, 255, 255, .2) 0); }
.cc-out { display: flex; justify-content: space-between; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.cc-out span { color: rgba(255, 255, 255, .65); }
.cc-media { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.cc-media .cover { width: 40px; height: 40px; border-radius: 9px; background: linear-gradient(135deg, #f4a259, #bc4b51 55%, #5b8e7d); }
.cc-media .mt { display: grid; flex: 1; }
.cc-media em { font-style: normal; color: rgba(255, 255, 255, .6); }
.cc-media .mc svg { width: 18px; height: 18px; fill: #fff; stroke: none; }

.ck-date { font-size: 15px; font-weight: 600; margin: 4px 6px 10px; }
.ck-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.ck-cal span { padding: 5px 0; border-radius: 8px; }
.ck-cal .dow { color: rgba(255, 255, 255, .72); font-weight: 600; }
.ck-cal .today { background: #fff; color: #1b1c1f; font-weight: 700; }
.ck-cal .out { opacity: .3; }
.ck-world { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.ck-world span { display: grid; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: 12px; color: rgba(255, 255, 255, .65); }
.ck-world b { font-size: 16px; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.ck-timer { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.ck-timer b { margin-right: auto; font-weight: 600; }
.ck-timer span { padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); font-size: 12px; }

.nt-card { display: flex; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .1); margin-bottom: 8px; }
.nt-card p { color: rgba(255, 255, 255, .7); }
.nt-foot { margin-top: 6px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .7); }

.pan-vol { width: 260px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 999px; bottom: 50%; translate: -50% 50%; }
.pan-vol svg { width: 20px; height: 20px; }
.pan-vol b { font-size: 14px; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.stage-panels:has(.pan-vol:not([hidden])) .bar-fit { display: none; }

/* ---------- facts ---------- */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--c-line); }
.facts li { display: grid; align-content: start; gap: 14px; padding: 44px 28px 28px 0; }
.facts li + li { padding-left: 28px; border-left: 1px solid var(--c-line); }
.facts .big { font: 400 clamp(32px, 4.2vw, 56px)/1 var(--font-display); color: var(--c-strong); min-height: 60px; display: flex; align-items: center; }
.facts .big.ic svg { width: 60px; height: 60px; fill: none; stroke: var(--c-strong); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.facts h3 { font-size: 19px; }
.facts p { font-size: 16px; color: var(--c-ink); }
@media (max-width: 1020px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--c-line); }
}
@media (max-width: 600px) {
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 24px 0 20px; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--c-line); }
}

/* ---------- download ---------- */
.sec-dl { background: var(--c-surface); }
[data-theme="light"] .sec-dl { background: #E4E5E8; }
.dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 56px !important; }
.dl-main { display: grid; gap: 22px; justify-items: start; }
.dl-main h2 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.04; }
.dl-main p { max-width: 50ch; }
.dl-main .meta { font-size: 15px; color: var(--c-muted); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; row-gap: 4px; padding: 20px 0; border-top: 1px solid var(--c-line); }
.steps li:last-child { border-bottom: 1px solid var(--c-line); }
.steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font: 600 14px/1 var(--font-body); color: var(--c-strong); border: 1px solid var(--c-line); }
.steps p { font-size: 16px; }
@media (max-width: 900px) { .dl { grid-template-columns: 1fr; gap: 36px !important; } .dl-main .btn { width: 100%; } }

/* ---------- footer ---------- */
.foot { padding-block: 36px; border-top: 1px solid var(--c-line); font-size: 15px; color: var(--c-muted); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot-in p { flex: 1 1 280px; }
.brand-sm { font-size: 19px; min-height: 0; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }

/* ---------- reduced motion & fallbacks ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-enter] .hero-copy > *, [data-enter] .stage-hero, .pan { animation: none; }
  .bar, .bar *, .bar *::before { transition: none !important; }
  .btn:active, .icon-btn:active, .seg label:active span, .tabs button:active { transform: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bar[data-mat="liquid"] > .glass, .bar[data-mat="liquid"] .grp::before, .bar[data-mat="glas"] > .glass, .bar[data-mat="glas"] .grp::before { background: rgba(40, 42, 48, .72); }
  .pan { background: rgba(28, 29, 34, .92); }
}

/* narrow stages: drop the media island so the icons stay readable */
.stage { container-type: inline-size; }
@container (max-width: 560px) { .bar .g-media { display: none; } }
