/* ==========================================================================
   MinivoPro — retro skeuomorphic site
   Tokens mirror src/theme/tokens.ts so the site and the app share one look.
   ========================================================================== */

@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("../assets/fonts/Montserrat_400Regular.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../assets/fonts/Montserrat_600SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../assets/fonts/Montserrat_700Bold.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("../assets/fonts/Montserrat_800ExtraBold.woff2") format("woff2"); }

:root {
  color-scheme: light;

  --page: #E7E2D7;
  --page-top: #EEEAE1;
  --page-bottom: #E2DCCF;

  --surface-top: #F4F1EA;
  --surface-bottom: #E8E3D9;
  --surface-border: rgba(110, 95, 70, .20);
  --surface-border-strong: rgba(110, 95, 70, .30);
  --divider: rgba(110, 95, 70, .16);
  --divider-light: rgba(255, 255, 255, .85);

  --inset: #E1DCD0;
  --inset-deep: #D9D3C6;
  --inset-border: rgba(110, 95, 70, .22);

  --text: #5C574E;
  --text-strong: #4E4A42;
  --text-soft: #7D776B;
  --text-muted: #A19B8E;
  --emboss: rgba(255, 255, 255, .9);

  --green-top: #A9D585;
  --green-bottom: #86B95F;
  --green-border: #74A54E;
  --green-shadow: rgba(62, 105, 32, .55);
  --green-led: #8BD15A;

  --amber-top: #FCE19C;
  --amber-mid: #F4C76E;
  --amber-bottom: #E9AC46;
  --amber-border: #D3993A;
  --amber-shadow: rgba(150, 92, 12, .55);

  --led-yellow: #FFD12E;
  --led-core: #FFF2A8;
  --led-glow: rgba(255, 198, 30, .95);
  --led-off: #CBC4B5;
  --led-red: #F07A5A;

  --knob-indicator: #5F5A51;

  --sh-raised: 0 1px 1px rgba(80, 62, 35, .16), 0 3px 6px rgba(80, 62, 35, .10), 0 10px 18px rgba(80, 62, 35, .06);
  --sh-raised-sm: 0 1px 1px rgba(80, 62, 35, .18), 0 2px 4px rgba(80, 62, 35, .10);
  --sh-floating: 0 2px 3px rgba(80, 62, 35, .18), 0 8px 16px rgba(80, 62, 35, .14), 0 20px 34px rgba(80, 62, 35, .10);
  --sh-knob: 0 2px 2px rgba(70, 55, 30, .22), 0 8px 14px rgba(70, 55, 30, .20), 0 16px 26px rgba(70, 55, 30, .12);
  --sh-top: inset 0 1px 0 rgba(255, 255, 255, .95);
  --sh-inset: inset 0 1px 3px rgba(70, 55, 30, .22), inset 0 0 1px rgba(70, 55, 30, .10);
  --sh-inset-deep: inset 0 2px 5px rgba(70, 55, 30, .28), inset 0 0 2px rgba(70, 55, 30, .14);
  --sh-pressed: inset 0 2px 4px rgba(70, 55, 30, .22);
  --sh-ledge: 0 1px 0 rgba(255, 255, 255, .85);

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;

  --wrap: 1160px;
  --gutter: 24px;
  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--page);
  background-image:
    url("../assets/img/grain.png"),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 253, 247, .75), transparent 70%),
    linear-gradient(180deg, var(--page-top), var(--page-bottom));
  background-size: 160px 160px, 100% 100%, 100% 100%;
  background-attachment: scroll;
  text-shadow: 0 1px 0 var(--emboss);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 { color: var(--text-strong); line-height: 1.15; margin: 0; }

p { margin: 0; }

::selection { background: var(--amber-mid); color: #fff; text-shadow: none; }

:focus-visible { outline: 2px solid var(--amber-bottom); outline-offset: 3px; border-radius: var(--r-md); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--surface-top); border-radius: var(--r-md);
  box-shadow: var(--sh-floating); font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Materials ---------- */

.surface {
  background: linear-gradient(180deg, var(--surface-top), var(--surface-bottom));
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-top), var(--sh-raised);
}

.inset {
  background: linear-gradient(180deg, var(--inset-deep), var(--inset));
  border: 1px solid var(--inset-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-inset), var(--sh-ledge);
}

.screw {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #D5CFC2 70%);
  box-shadow: inset 0 0 0 1px rgba(110, 95, 70, .25), 0 1px 0 #fff;
}
.screw::after {
  content: ""; position: absolute; left: 1px; right: 1px; top: 4px; height: 1px;
  background: rgba(95, 90, 81, .45); transform: rotate(-35deg);
}
.screw.tl { top: 10px; left: 10px; }
.screw.tr { top: 10px; right: 10px; }
.screw.bl { bottom: 10px; left: 10px; }
.screw.br { bottom: 10px; right: 10px; }

/* LED */
.led {
  display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--led-core), var(--led-yellow) 60%);
  box-shadow: 0 0 6px var(--led-glow), 0 0 0 1px rgba(160, 120, 20, .25);
}
.led.green {
  background: radial-gradient(circle at 40% 35%, #E3F7C9, var(--green-led) 60%);
  box-shadow: 0 0 6px rgba(139, 209, 90, .9), 0 0 0 1px rgba(80, 130, 40, .3);
}
.led.red {
  background: radial-gradient(circle at 40% 35%, #FFD9CC, var(--led-red) 60%);
  box-shadow: 0 0 6px rgba(240, 122, 90, .9), 0 0 0 1px rgba(150, 60, 40, .3);
}
.led.off {
  background: radial-gradient(circle at 40% 35%, #E2DDD2, var(--led-off) 70%);
  box-shadow: inset 0 1px 1px rgba(70, 55, 30, .25);
}
.led.blink { animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Buttons ---------- */

.btn {
  --h: 52px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px;
  font: 700 16px/1 var(--font); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; user-select: none;
  border-radius: var(--r-lg);
  transition: transform .08s, box-shadow .12s, filter .12s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-amber {
  color: #fff;
  text-shadow: 0 -1px 0 var(--amber-shadow);
  background: linear-gradient(180deg, var(--amber-top), var(--amber-mid) 45%, var(--amber-bottom));
  border: 1px solid var(--amber-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), var(--sh-raised);
}
.btn-amber:hover { filter: brightness(1.03) saturate(1.05); }
.btn-amber:active { background: linear-gradient(180deg, #E7AD4C, #F3C56C); box-shadow: var(--sh-pressed); }

.btn-cream {
  color: var(--text-strong);
  background: linear-gradient(180deg, var(--surface-top), var(--surface-bottom));
  border: 1px solid var(--surface-border-strong);
  box-shadow: var(--sh-top), var(--sh-raised);
}
.btn-cream:hover { filter: brightness(1.02); }
.btn-cream:active { background: linear-gradient(180deg, #E6E1D6, #EDE9E1); box-shadow: var(--sh-pressed); }

.btn-green {
  color: #fff;
  text-shadow: 0 -1px 0 var(--green-shadow);
  background: linear-gradient(180deg, var(--green-top), var(--green-bottom));
  border: 1px solid var(--green-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), var(--sh-raised);
}

.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; }

.store-btn { --h: 58px; padding: 0 22px 0 18px; text-align: left; }
.store-btn small { display: block; font-size: 11px; font-weight: 600; opacity: .85; margin-bottom: 3px; letter-spacing: .04em; text-transform: uppercase; }
.store-btn span { display: block; line-height: 1; }
.store-btn svg { width: 26px; height: 26px; }

/* "f | Share | 3K" style split button */
.split {
  display: inline-flex; align-items: stretch; height: 44px;
  border-radius: var(--r-lg); box-shadow: var(--sh-raised);
  text-decoration: none; font-weight: 700;
}
.split > * { display: flex; align-items: center; padding: 0 16px; }
.split .ico, .split .lbl {
  color: #fff; text-shadow: 0 -1px 0 var(--green-shadow);
  background: linear-gradient(180deg, var(--green-top), var(--green-bottom));
  border: 1px solid var(--green-border);
}
.split .ico { border-radius: var(--r-lg) 0 0 var(--r-lg); border-right-color: rgba(255, 255, 255, .25); }
.split .lbl { border-left: 0; position: relative; }
.split .lbl::after {
  content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px;
  background: var(--surface-top); transform: translateY(-50%) rotate(45deg);
  border-left: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border);
}
.split .cnt {
  color: var(--text-strong);
  background: linear-gradient(180deg, #FBFAF6, var(--surface-top));
  border: 1px solid var(--surface-border); border-left: 0;
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}

/* Tags */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px;
  font: 600 13px/1 var(--font); color: var(--text-strong);
  background: linear-gradient(180deg, var(--surface-top), var(--surface-bottom));
  border: 1px solid var(--surface-border); border-radius: var(--r-md);
  box-shadow: var(--sh-top), var(--sh-raised-sm);
  cursor: pointer;
  transition: transform .08s;
}
.tag:active { transform: translateY(1px); }
.tag[aria-pressed="true"] {
  color: #fff; text-shadow: 0 -1px 0 var(--green-shadow);
  background: linear-gradient(180deg, var(--green-top), var(--green-bottom));
  border-color: var(--green-border); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
.tag .led { width: 7px; height: 7px; }

/* Segmented control */
.seg {
  display: inline-flex; padding: 0;
  border-radius: var(--r-md); box-shadow: var(--sh-raised-sm);
}
.seg button {
  font: 700 13px/1 var(--font); color: var(--text-soft); text-shadow: 0 1px 0 var(--emboss);
  height: 36px; min-width: 46px; padding: 0 12px; cursor: pointer;
  background: linear-gradient(180deg, var(--surface-top), var(--surface-bottom));
  border: 1px solid var(--surface-border); border-left-width: 0;
  box-shadow: var(--sh-top);
}
.seg button:first-child { border-left-width: 1px; border-radius: var(--r-md) 0 0 var(--r-md); }
.seg button:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] {
  color: #fff; text-shadow: 0 -1px 0 var(--green-shadow);
  background: linear-gradient(180deg, var(--green-top), var(--green-bottom));
  border-color: var(--green-border);
  box-shadow: inset 0 1px 3px rgba(40, 80, 20, .35);
}

/* Toggle switch (Remember me? style) */
.switch {
  position: relative; display: inline-flex; align-items: center; flex: none;
  width: 92px; height: 38px; padding: 4px; cursor: pointer;
  border: 1px solid var(--inset-border); border-radius: 999px;
  background: linear-gradient(180deg, var(--inset-deep), var(--inset));
  box-shadow: var(--sh-inset), var(--sh-ledge);
}
.switch .thumb {
  width: 52px; height: 28px; border-radius: 999px;
  background: linear-gradient(180deg, #fff, #ECE8DF);
  border: 1px solid var(--surface-border);
  box-shadow: var(--sh-raised-sm);
  display: flex; align-items: center; justify-content: center; gap: 3px;
  transition: transform .25s var(--ease);
}
.switch .thumb i { width: 1px; height: 10px; background: rgba(110, 95, 70, .35); box-shadow: 1px 0 0 #fff; }
.switch .led { position: absolute; right: 12px; top: 50%; margin-top: -4px; width: 8px; height: 8px; }
.switch.nope { animation: nope .45s; }
.switch.nope .thumb { transform: translateX(14px); }
@keyframes nope {
  0%, 100% { translate: 0; }
  20% { translate: -4px; } 40% { translate: 4px; } 60% { translate: -3px; } 80% { translate: 2px; }
}

/* ---------- Header ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  padding: 12px 0;
  transition: padding .2s;
}
.topbar .bar {
  display: flex; align-items: center; gap: 16px;
  height: 64px; padding: 0 12px 0 16px;
}
.topbar.scrolled { padding: 8px 0; }
.topbar.scrolled .bar { box-shadow: var(--sh-top), var(--sh-floating); }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 19px; color: var(--text-strong); text-decoration: none;
  letter-spacing: -.01em;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: var(--sh-raised-sm); }
.brand b { color: var(--amber-bottom); text-shadow: 0 1px 0 #fff; }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: var(--r-md);
  font-weight: 600; font-size: 14px; color: var(--text-soft); text-decoration: none;
}
.nav a:hover { color: var(--text-strong); background: rgba(255, 255, 255, .45); }

.bar-actions { display: flex; align-items: center; gap: 10px; }

.menu-btn { display: none; }

/* Options-menu style mobile dropdown */
.mobile-menu {
  display: none;
  margin-top: 8px; overflow: hidden;
}
.mobile-menu.open { display: block; animation: drop .2s var(--ease); }
.mobile-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; font-weight: 600; text-decoration: none;
  border-top: 1px solid var(--divider); box-shadow: inset 0 1px 0 var(--divider-light);
}
.mobile-menu a:first-child { border-top: 0; box-shadow: none; }
.mobile-menu a:active { background: linear-gradient(180deg, var(--green-top), var(--green-bottom)); color: #fff; text-shadow: none; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Sections ---------- */

section { padding: 96px 0; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; margin-bottom: 18px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft);
}

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.02em; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--text-soft); }

.engraved {
  /* Big letterpress headlines: pressed into the panel */
  color: var(--text-strong);
  text-shadow: 0 1px 0 #fff, 0 -1px 0 rgba(70, 55, 30, .12);
}
.amber-text {
  color: var(--amber-bottom);
  text-shadow: 0 1px 0 #fff, 0 -1px 0 rgba(150, 92, 12, .2);
}

/* Divider like the app's header hairline */
.groove { height: 2px; border: 0; margin: 0; background: linear-gradient(180deg, var(--divider), var(--divider-light)); }

/* ---------- Hero ---------- */

.hero { padding: 56px 0 96px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 74px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02;
}
.hero .lead { margin-top: 22px; font-size: 19px; color: var(--text-soft); max-width: 520px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.hero .facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero .facts .led { width: 8px; height: 8px; }

/* Phone mockup */
.device-stage { position: relative; display: flex; justify-content: center; }
.device-stage::before {
  content: ""; position: absolute; inset: 8% 4% -2%;
  background: radial-gradient(ellipse at center, rgba(255, 210, 120, .35), transparent 65%);
  filter: blur(10px);
}
.phone {
  position: relative; width: 320px; max-width: 100%; aspect-ratio: 9 / 19.2;
  padding: 12px; border-radius: 48px;
  background: linear-gradient(145deg, #FBFAF7, #D9D3C6);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 4px rgba(70, 55, 30, .15), var(--sh-floating), 0 40px 60px -20px rgba(80, 62, 35, .35);
  transform: rotate(-2.5deg);
  transition: transform .6s var(--ease);
}
.phone:hover { transform: rotate(0deg) translateY(-4px); }
.phone .screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 37px;
  background-color: var(--page);
  background-image: url("../assets/img/grain.png"), linear-gradient(180deg, var(--page-top), var(--page-bottom));
  background-size: 120px, 100%;
  box-shadow: inset 0 0 0 1px rgba(70, 55, 30, .25);
  display: flex; flex-direction: column; padding: 14px 14px 10px;
}
.phone .island { position: absolute; top: 10px; left: 50%; width: 90px; height: 26px; margin-left: -45px; border-radius: 20px; background: #2B2925; }
.statusbar { display: flex; justify-content: space-between; align-items: center; height: 26px; padding: 0 12px; font-size: 12px; font-weight: 700; color: var(--text-strong); }
.statusbar .bat { width: 22px; height: 10px; border-radius: 3px; background: var(--text-strong); }
.app-title { margin: 14px 4px 10px; display: flex; align-items: center; justify-content: space-between; }
.app-title strong { font-size: 22px; font-weight: 800; color: var(--text-strong); }
.app-title .led { width: 8px; height: 8px; }

.cassette-slot { padding: 12px; margin: 0 2px; }
.cassette { width: 100%; height: auto; filter: drop-shadow(0 4px 6px rgba(80, 62, 35, .25)); }
.cassette .reel { transform-box: fill-box; transform-origin: center; animation: spin 1.6s linear infinite; }
.cassette.paused .reel { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }

.mini-progress { margin: 10px 4px 0; height: 12px; padding: 2px; border-radius: 99px; }
.mini-progress i {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(180deg, var(--amber-top), var(--amber-bottom));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 6px rgba(244, 199, 110, .7);
}
.mini-meta { display: flex; justify-content: space-between; margin: 6px 6px 0; font-size: 11px; font-weight: 700; color: var(--text-soft); }

.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 12px 2px 0; }
.mini-stats div { padding: 9px 4px; text-align: center; }
.mini-stats div + div { border-left: 1px solid var(--divider); box-shadow: inset 1px 0 0 var(--divider-light); }
.mini-stats b { display: block; font-size: 15px; font-weight: 800; color: var(--text-strong); }
.mini-stats small { font-size: 9.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

.mini-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 2px 0; }
.mini-tags .tag { height: 28px; padding: 0 9px; font-size: 11px; gap: 6px; }

.mini-cta { margin: auto 2px 6px; }
.mini-cta .btn { width: 100%; --h: 44px; font-size: 15px; }

.mini-tabs { display: flex; justify-content: space-around; padding: 8px 0 2px; margin: 0 -14px -10px; border-top: 1px solid var(--divider); box-shadow: inset 0 1px 0 var(--divider-light); }
.mini-tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 700; color: var(--text-muted); }
.mini-tabs span.on { color: var(--amber-bottom); }
.mini-tabs svg { width: 18px; height: 18px; }

/* Speech bubble */
.bubble {
  position: absolute; z-index: 2;
  padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--text-strong);
  background: #FBFAF6; border: 1px solid rgba(110, 95, 70, .25); border-radius: var(--r-lg);
  box-shadow: var(--sh-floating);
  white-space: nowrap;
  animation: float 5s ease-in-out infinite;
}
.bubble::after {
  content: ""; position: absolute; width: 12px; height: 12px; background: #FBFAF6;
  border: 1px solid rgba(110, 95, 70, .25); border-top: 0; border-left: 0;
}
.bubble.b1 { top: 47%; left: -4%; }
.bubble.b1::after { right: 22px; bottom: -7px; transform: rotate(45deg); }
.bubble.b2 { bottom: 18%; right: -4%; animation-delay: -2.5s; }
.bubble.b2::after { left: 22px; top: -7px; transform: rotate(-135deg); }
.bubble b { color: var(--green-bottom); }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Knob demo ---------- */

.console {
  position: relative; padding: 48px;
  display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center;
}
.knob-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.knob {
  --size: 260px;
  position: relative; width: var(--size); height: var(--size);
  touch-action: none; cursor: grab; user-select: none;
}
.knob:active { cursor: grabbing; }
.knob .ticks { position: absolute; inset: 0; }
.knob .ticks i {
  position: absolute; left: 50%; top: 0; width: 4px; height: 15px; margin-left: -2px;
  border-radius: 1px; transform-origin: 2px calc(var(--size) / 2);
  background: #9C9381; box-shadow: 0 1px 0 #fff;
  transition: background .15s, box-shadow .15s;
}
.knob .ticks i.lit { background: #EBAA2E; box-shadow: 0 0 6px rgba(255, 190, 50, .55), 0 1px 0 #fff; }
.knob .well {
  position: absolute; inset: 15%;
  border-radius: 50%;
  background: linear-gradient(180deg, #D3CCBE, #E5E0D5);
  box-shadow: inset 0 3px 8px rgba(70, 55, 30, .25), 0 1px 0 #fff;
}
.knob .cap {
  position: absolute; inset: 19.5%;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #E9E5DC);
  box-shadow: var(--sh-knob), inset 0 -3px 5px rgba(70, 55, 30, .08), inset 0 2px 0 #fff;
}
.knob .rotor { position: absolute; inset: 19.5%; border-radius: 50%; }
.knob .rotor .dot {
  position: absolute; left: 50%; top: 12%; width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #FFF7C7, #FFD12E 55%, #E9A91C);
  box-shadow: 0 0 14px 4px rgba(255, 200, 40, .55), inset 0 -1px 2px rgba(150, 100, 0, .4);
}
.knob-label { font-weight: 700; color: var(--text-soft); letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.knob-hint { font-size: 12px; color: var(--text-muted); }

.readout h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.readout > p { margin-top: 12px; color: var(--text-soft); font-size: 17px; max-width: 520px; }

.lcd {
  margin-top: 28px; padding: 20px 22px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center;
}
.lcd .cell small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.lcd .cell b { display: block; margin-top: 4px; font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--text-strong); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.lcd .arrow { color: var(--text-muted); }
.lcd .cell.out b { color: var(--green-bottom); }

.meter { margin-top: 18px; height: 16px; padding: 3px; border-radius: 99px; }
.meter i {
  display: block; height: 100%; border-radius: 99px; width: 50%;
  background: linear-gradient(180deg, var(--amber-top), var(--amber-bottom));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: width .2s var(--ease);
}
.readout-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.readout-row .label { font-weight: 700; font-size: 14px; color: var(--text-soft); margin-right: 10px; }
.pct-badge { position: relative; }

/* ---------- Features ---------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { position: relative; padding: 30px 28px 28px; transition: transform .3s var(--ease), box-shadow .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh-top), var(--sh-floating); }
.feature .socket {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #D3CCBE, #E5E0D5);
  box-shadow: inset 0 2px 5px rgba(70, 55, 30, .25), 0 1px 0 #fff;
}
.feature .socket span {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #fff, #ECE8DF); box-shadow: var(--sh-raised-sm);
  color: var(--text-strong);
}
.feature .socket svg { width: 22px; height: 22px; }
.feature .led { position: absolute; top: 24px; right: 24px; }
.feature h3 { margin-top: 22px; font-size: 20px; font-weight: 800; }
.feature p { margin-top: 10px; color: var(--text-soft); font-size: 15.5px; }

/* ---------- Presets ---------- */

.presets-grid { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }

.options { overflow: hidden; padding: 0; }
.options-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px 14px 20px;
  border-bottom: 1px solid var(--divider); box-shadow: 0 1px 0 var(--divider-light);
}
.options-head strong { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: var(--text-strong); }
.options-head svg { width: 18px; height: 18px; }
.options ul { list-style: none; margin: 0; padding: 0; }
.options li + li { border-top: 1px solid var(--divider); box-shadow: inset 0 1px 0 var(--divider-light); }
.options button {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 15px 20px; border: 0; background: transparent; cursor: pointer; text-align: left;
  font: 600 16px/1.2 var(--font); color: var(--text); text-shadow: 0 1px 0 var(--emboss);
}
.options button svg { width: 20px; height: 20px; flex: none; color: var(--text-soft); }
.options button small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.options button .led { margin-left: auto; }
.options button:hover { background: rgba(255, 255, 255, .35); }
.options button[aria-selected="true"] {
  color: #fff; text-shadow: 0 -1px 0 var(--green-shadow);
  background: linear-gradient(180deg, var(--green-top), var(--green-bottom));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 var(--green-border);
}
.options button[aria-selected="true"] svg, .options button[aria-selected="true"] small { color: rgba(255, 255, 255, .92); text-shadow: none; }

.deck { position: relative; padding: 36px; }
.deck-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.deck-top h3 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.deck-top h3 svg { width: 30px; height: 30px; }
.deck-desc { margin-top: 10px; color: var(--text-soft); font-size: 16.5px; max-width: 560px; }

.spec { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 26px; }
.spec div { padding: 16px 18px; }
.spec div + div { border-left: 1px solid var(--inset-border); box-shadow: inset 1px 0 0 rgba(255, 255, 255, .5); }
.spec small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.spec b { display: block; margin-top: 4px; font-size: 17px; white-space: nowrap; font-weight: 800; color: var(--text-strong); }

.player {
  display: flex; align-items: stretch; margin-top: 26px; overflow: hidden; padding: 0;
}
.player .play {
  flex: none; width: 72px; display: grid; place-items: center; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--amber-top), var(--amber-mid) 45%, var(--amber-bottom));
  border-right: 1px solid var(--amber-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.player .play span {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #F1B954, #F9D88A); box-shadow: inset 0 1px 3px rgba(150, 92, 12, .45), 0 1px 0 rgba(255, 255, 255, .5);
  color: #fff;
}
.player .play svg { width: 14px; height: 14px; filter: drop-shadow(0 -1px 0 var(--amber-shadow)); }
.player .track { flex: 1; padding: 14px 20px; min-width: 0; }
.player .track-top { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; color: var(--text-strong); }
.player .track-top em { font-style: normal; font-weight: 600; color: var(--text-soft); }
.player .track-top span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player .bar-track { height: 6px; margin-top: 10px; border-radius: 9px; background: var(--inset); box-shadow: var(--sh-inset); overflow: hidden; }
.player .bar-track i { display: block; height: 100%; width: 0; background: linear-gradient(180deg, var(--amber-mid), var(--amber-bottom)); border-radius: 9px; }

.deck-note { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.deck-note .led { width: 8px; height: 8px; }

/* ---------- Photos ---------- */

.photo-band { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.photo-band h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.02em; }
.photo-band > div > p { margin-top: 16px; font-size: 18px; color: var(--text-soft); }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; }
.checks li > span:first-child {
  flex: none; width: 28px; height: 28px; margin-top: -2px; border-radius: 6px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--surface-top), var(--surface-bottom));
  border: 1px solid var(--surface-border); box-shadow: var(--sh-top), var(--sh-raised-sm);
  color: var(--green-bottom);
}
.checks svg { width: 14px; height: 14px; }

.contact-sheet { position: relative; padding: 26px; }
.sheet-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sheet-grid span {
  aspect-ratio: 1; border-radius: 5px; position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(70, 55, 30, .18), 0 1px 0 #fff;
  transition: transform .3s var(--ease), filter .3s;
}
.sheet-grid span.done::after {
  content: ""; position: absolute; right: 4px; bottom: 4px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-led); box-shadow: 0 0 5px rgba(139, 209, 90, .9), 0 0 0 1px #fff;
}
.sheet-grid span.busy { transform: scale(.92); filter: brightness(1.12); }
.sheet-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 20px; font-size: 14px; font-weight: 700; color: var(--text-soft); }
.sheet-meta b { color: var(--text-strong); font-variant-numeric: tabular-nums; }
.formats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { text-align: center; padding: 36px 26px 30px; position: relative; }
.step .round {
  width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #D3CCBE, #E5E0D5);
  box-shadow: inset 0 2px 5px rgba(70, 55, 30, .25), 0 1px 0 #fff;
}
.step .round span {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #fff, #ECE8DF); box-shadow: var(--sh-raised);
  font-size: 22px; font-weight: 800; color: var(--text-strong);
}
.step h3 { margin-top: 20px; font-size: 20px; font-weight: 800; }
.step p { margin-top: 8px; color: var(--text-soft); font-size: 15.5px; }
.step::after {
  content: ""; position: absolute; top: 74px; right: -22px; width: 22px; height: 2px;
  background: linear-gradient(180deg, var(--divider), var(--divider-light));
}
.step:last-child::after { display: none; }

/* ---------- Privacy ---------- */

.vault { position: relative; padding: 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.vault h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.02em; }
.vault > div > p { margin-top: 16px; color: var(--text-soft); font-size: 18px; }

.panel-rows { padding: 0; overflow: hidden; }
.panel-row { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.panel-row + .panel-row { border-top: 1px solid var(--divider); box-shadow: inset 0 1px 0 var(--divider-light); }
.panel-row .txt { flex: 1; font-weight: 700; color: var(--text-strong); }
.panel-row .txt small { display: block; font-weight: 600; font-size: 13px; color: var(--text-muted); }
.panel-row .state { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }

.nope-msg { min-height: 24px; margin-top: 14px; font-weight: 700; font-size: 14px; color: #C8664A; opacity: 0; transition: opacity .2s; }
.nope-msg.show { opacity: 1; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; }
.faq details + details { border-top: 1px solid var(--divider); box-shadow: inset 0 1px 0 var(--divider-light); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px; font-size: 17px; font-weight: 700; color: var(--text-strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; flex: none;
  border: 6px solid transparent; border-top: 7px solid #9C9381; border-bottom: 0;
  filter: drop-shadow(0 1px 0 #fff);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details[open] summary .led { background: radial-gradient(circle at 40% 35%, var(--led-core), var(--led-yellow) 60%); box-shadow: 0 0 6px var(--led-glow); }
.faq .answer { padding: 0 22px 22px 46px; color: var(--text-soft); }

/* ---------- CTA ---------- */

.cta { position: relative; overflow: hidden; padding: 64px 48px; text-align: center; }
.cta h2 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; letter-spacing: -.03em; }
.cta p { margin: 16px auto 0; max-width: 520px; font-size: 18px; color: var(--text-soft); }
.cta .ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.cta .label-strip {
  position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: repeating-linear-gradient(90deg, var(--amber-mid) 0 40px, var(--amber-bottom) 40px 80px, #E7D9B8 80px 120px);
  opacity: .8;
}

/* ---------- Footer ---------- */

footer { padding: 40px 0 56px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { font-weight: 600; font-size: 14px; color: var(--text-soft); text-decoration: none; }
.foot a:hover { color: var(--text-strong); }
.foot small { font-size: 13px; color: var(--text-muted); }

/* ---------- Doc pages (privacy, 404) ---------- */

.doc { max-width: 820px; margin: 24px auto 0; padding: 48px; position: relative; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 800; letter-spacing: -.02em; }
.doc h2 { font-size: 21px; font-weight: 800; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--text-soft); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc .updated { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--text-muted); }

.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.lost h1 { font-size: clamp(64px, 14vw, 140px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.lost p { margin: 12px 0 28px; font-size: 18px; color: var(--text-soft); }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .bar-actions { margin-left: auto; }
  .hero-grid, .photo-band, .vault { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .ctas, .hero .facts { justify-content: center; }
  .presets-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .console { grid-template-columns: 1fr; text-align: center; }
  .readout > p { margin-left: auto; margin-right: auto; }
  .readout-row { justify-content: center; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  section { padding: 64px 0; }
  .hero { padding: 28px 0 64px; }
  .topbar .bar { height: 58px; padding: 0 8px 0 10px; gap: 8px; }
  .brand { font-size: 17px; }
  .brand img { width: 34px; height: 34px; }
  .bar-actions .btn-amber { display: none; }
  .features, .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .console, .deck, .vault, .cta, .doc { padding: 28px 20px; }
  .knob { --size: 220px; }
  .spec { grid-template-columns: repeat(2, 1fr); }
  .spec div:nth-child(3) { border-left: 0; box-shadow: none; }
  .spec div:nth-child(n+3) { border-top: 1px solid var(--inset-border); }
  .lcd { grid-template-columns: 1fr; text-align: center; }
  .lcd .arrow { transform: rotate(90deg); justify-self: center; }
  .bubble.b1 { left: 0; }
  .bubble.b2 { right: 0; }
  .phone { width: 290px; }
  .store-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
