/* VOII — voii.dev. Follows the 2Blue website standard (sites/standard, 2026-10-16): the app's
   controls, corners, focus, type and motion; white pages, ink type, deep blue for the one thing to
   do, light blue only as text or the >> on deep blue or black. The recurring motif is the logo: a
   synthesizer's LED level meter, 7 columns of 4 cells. */

@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/BarlowSemiCondensed-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --white: #ffffff;
  --ink: #0e0f11;
  --ink-2: #4a4f57;
  --ink-3: #676c75;
  --fill: #f2f3f5;
  --black: #0a0b0d;
  --black-raised: #16181b;
  --on-black: #f5f6f7;
  --on-black-2: #b4bac2;
  --blue: #196db6;
  --blue-deep: #12548d;
  --cyan: #3bc7ed;
  --unlit: #e2e7ee;

  --bg: var(--white);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --rule: #e3e5e8;
  --rule-strong: #c9cdd2;
  --fill-2: #e6e8eb;
  --wash: #e8f1fa;
  --wash-1: #f5f9fd;
  --halo: rgb(25 109 182 / .18);
  --halo-fill: rgb(25 109 182 / .22);

  --cjk: "PingFang HK", "PingFang TC", "Hiragino Sans", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", var(--cjk);
  --text: "Barlow", "Helvetica Neue", Arial, var(--cjk);
  --label: "Barlow Semi Condensed", "Barlow", var(--cjk);

  --margin: clamp(20px, 3.4vw, 64px);
  --gutter: clamp(12px, 1.6vw, 28px);
  --section: clamp(72px, 9vw, 160px);
  --measure: 34rem;
  --header: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --fast: 160ms;
}

.surface-black { --bg: var(--black); --fg: var(--on-black); --fg-2: var(--on-black-2); --fg-3: #8b929c; --rule: rgb(255 255 255 / .1); --rule-strong: #363c44; --unlit: #23272e; }
.surface-blue { --bg: var(--blue); --fg: var(--white); --fg-2: rgba(255, 255, 255, .84); --fg-3: rgba(255, 255, 255, .68); --rule: rgba(255, 255, 255, .24); --rule-strong: var(--white); }
.surface-black, .surface-blue { background: var(--bg); color: var(--fg); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; }

/* Two languages in the page; the html element's data-lang picks one. */
html[data-lang="en"] body [lang="zh-Hant"],
html[data-lang="zh-Hant"] body [lang="en"] { display: none !important; }

/* ——— Type ——— */
.display { font-family: var(--display); font-weight: 600; line-height: .92; letter-spacing: -.006em; }
.d-xxl { font-size: clamp(48px, 7.4vw, 96px); letter-spacing: -.02em; }
/* Chinese lines don't wrap (see below), so they are set smaller to stay in their column. */
.d-xxl [lang="zh-Hant"] { font-size: clamp(36px, 5.4vw, 76px); }
.d-l { font-size: clamp(32px, 4.4vw, 64px); letter-spacing: -.015em; line-height: .96; }
.d-m { font-size: clamp(28px, 2.6vw, 48px); }
.t-l { font-size: clamp(19px, 1.35vw, 24px); }
.label { font: 500 12px/1.3 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.muted { color: var(--fg-2); }
[lang="zh-Hant"].display, .display [lang="zh-Hant"] { letter-spacing: .02em; line-height: 1.1; }
/* Chinese headings break where the page says (<br>), not where the column ends. */
h1 [lang="zh-Hant"], h2 [lang="zh-Hant"] { display: inline-block; white-space: nowrap; }

/* ——— Layout ——— */
.wrap { box-sizing: border-box; width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--margin); }
.section { padding-block: var(--section); }
.grid { display: grid; gap: var(--gutter); grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* ——— LED cells (logo, meters, screens) ——— */
.led rect, .mark rect { transition: fill 90ms linear; }
.mark .l, .led .l { fill: var(--blue); }
.mark .a, .led .a { fill: var(--cyan); }
.mark .u, .led .u { fill: var(--unlit); }

/* ——— Header: 64, white, sticky; a hairline once scrolled. The lockup 24, the pages 15px ink-2,
   the language (quiet) and the one primary. ——— */
.site-header {
  position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  transition: box-shadow var(--fast) var(--ease);
}
.site-header.is-scrolled { box-shadow: inset 0 -1px 0 var(--rule); }
.head-in { display: flex; align-items: center; gap: 28px; height: var(--header); }
.lockup { display: inline-flex; align-items: center; gap: .32em; text-decoration: none; color: var(--fg); border-radius: 4px; }
.lockup .mark { width: 1.18em; height: auto; }
.lockup .word { font: 600 1em/1 var(--display); letter-spacing: .01em; }
.site-header .lockup { font-size: 24px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { text-decoration: none; font: 400 15px/1 var(--text); color: var(--fg-2); padding: 6px 0; border-radius: 4px; transition: color var(--fast) var(--ease); }
.nav a:hover { color: var(--fg); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ——— Buttons: the app's — sm 32, md 36, lg 44; radius 6 (8 for lg); deep blue only for the one
   thing to do, with the two-blue >> for a step forward. ——— */
.btn {
  --h: 36px; --px: 16px; --fs: 15px; --r: 6px; --ic: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
  height: var(--h); min-width: var(--h); padding: 0 var(--px); border-radius: var(--r);
  border: 1px solid transparent; background: transparent; color: var(--fg);
  font: 500 var(--fs)/1 var(--text); white-space: nowrap; text-decoration: none; cursor: pointer; outline: none;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), scale .15s cubic-bezier(.34, 1.5, .64, 1);
}
.btn.sm { --h: 32px; --px: 12px; --fs: 13px; }
.btn.lg { --h: 44px; --px: 20px; --fs: 16px; --r: 8px; --ic: 18px; }
.btn.primary { background: var(--blue); color: var(--white); --chev-1: var(--white); }
.btn.primary:hover { background: var(--blue-deep); }
.btn.secondary { background: var(--white); border-color: var(--rule-strong); }
.btn.secondary:hover { border-color: var(--blue); background: var(--wash-1); }
.btn.quiet { color: var(--fg-2); }
.btn.quiet:hover { background: var(--fill); color: var(--fg); }
.btn:active { scale: .97; }
.btn:focus-visible { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 4px var(--halo); }
.btn.primary:focus-visible { border-color: transparent; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .95), 0 0 0 4px var(--halo-fill); }
.btn.on-blue { background: var(--white); color: var(--blue-deep); }
.btn.on-blue:hover { background: var(--wash-1); }
.btn.on-blue:focus-visible { box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 4px rgb(255 255 255 / .35); }
.btn.on-black { background: transparent; color: var(--on-black-2); }
.btn.on-black:hover { background: rgb(255 255 255 / .08); color: var(--white); }
.btn.on-black:focus-visible { box-shadow: inset 0 0 0 2px #5aa7ea, 0 0 0 4px rgb(90 167 234 / .25); }
.mk { width: var(--ic); height: var(--ic); flex: none; overflow: visible; margin-right: -3px; }
.mk .c1 { fill: var(--chev-1, var(--blue)); }
.mk .c2 { fill: var(--chev-2, var(--cyan)); }
.mk path { transition: translate .34s cubic-bezier(.34, 1.5, .64, 1); }
.btn:hover .mk .c1 { translate: 1px 0; }
.btn:hover .mk .c2 { translate: 2px 0; }
.btn:active .mk path { translate: -1px 0; transition-duration: .1s; }
:where(a, button):not(.btn):focus-visible { outline: none; box-shadow: 0 0 0 2px var(--blue), 0 0 0 6px var(--halo); }

/* ——— Hero: the title (up to 120), one line in 19px ink-2, the primary with >> and a secondary;
   the LED meter on the right ——— */
.hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: center;
  padding-top: clamp(56px, 8vw, 128px); padding-bottom: clamp(40px, 5vw, 80px);
}
.hero .lede { margin-top: 24px; max-width: 34em; font-size: 19px; line-height: 1.6; }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero .meta { margin-top: 12px; font: 400 13px/1.4 var(--text); color: var(--fg-3); }
.hero-led { justify-self: end; width: min(100%, 440px); }
.led.big { width: 100%; height: auto; }

/* ——— Product picture: the app as it looks, in the shell's grey frame — radius 12, a hairline and a
   long soft shadow; the content on a white card ——— */
.product { padding-top: clamp(24px, 3vw, 48px); }
.stage { position: relative; }
.window {
  border-radius: 12px; overflow: hidden; background: var(--fill);
  box-shadow: 0 0 0 1px rgb(14 15 17 / .06), 0 40px 80px -40px rgb(14 15 17 / .35);
  display: grid; grid-template-columns: 180px 1fr; min-height: 440px; font-size: 13px;
}
.win-side { padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.dots { display: flex; gap: 7px; margin: 0 0 18px 4px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #d4d7dc; display: block; }
.win-side .lockup { font-size: 20px; margin: 0 0 16px 8px; }
.win-side > .item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.win-side > .item svg { width: 16px; height: 16px; flex: none; }
.win-side > .item.on { background: var(--wash); color: var(--blue-deep); }
.win-card { margin: 8px 8px 8px 0; background: var(--white); border-radius: 10px; box-shadow: 0 0 0 1px rgb(14 15 17 / .05); display: grid; grid-template-columns: 250px 1fr; overflow: hidden; }
.win-list { border-right: 1px solid var(--rule); }
.win-list h4 { margin: 0; padding: 22px 18px 14px; font: 600 26px/1 var(--display); border-bottom: 1px solid var(--rule); }
.row { padding: 12px 18px; border-bottom: 1px solid var(--rule); }
.row b { display: block; font-weight: 500; font-size: 13.5px; }
.row small { display: block; color: var(--ink-2); margin-top: 3px; line-height: 1.4; }
.row em { display: block; font: 400 11.5px/1 var(--text); color: var(--ink-3); font-style: normal; margin-top: 7px; }
.row.on { background: var(--wash); }
.win-detail { padding: 22px 24px; }
.win-detail h5 { margin: 0; font: 600 28px/1 var(--display); }
.win-detail .meta { display: block; margin: 6px 0 14px; font-size: 12px; color: var(--ink-3); }
.player { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.play { width: 28px; height: 28px; border-radius: 6px; background: var(--blue); flex: none; position: relative; }
.play::after { content: ""; position: absolute; left: 11px; top: 9px; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.player time { font: 600 13px/1 var(--display); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.track { flex: 1; height: 3px; border-radius: 2px; background: var(--fill-2); position: relative; }
.track::before { content: ""; position: absolute; left: 0; top: 0; width: 38%; height: 3px; border-radius: 2px; background: var(--blue); }
.track::after { content: ""; position: absolute; left: calc(38% - 5px); top: -4px; width: 7px; height: 7px; border-radius: 3px; background: var(--blue); border: 2px solid #fff; }
.tabs { display: flex; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.tab { font: 500 13px/1 var(--text); padding: 8px 10px; border-radius: 6px; color: var(--ink-2); }
.tab.on { background: var(--wash); color: var(--blue-deep); }
.seg { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 10px 0; }
.seg time { font: 400 12px/1.6 var(--text); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.seg.on time { color: var(--blue); }
.seg .who { display: block; font: 500 11px/1 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.seg p { font-size: 14px; line-height: 1.55; }

/* The floating capsule as a small hardware module: record key, LED meter, timer screen. */
.capsule {
  position: absolute; right: clamp(16px, 6vw, 110px); bottom: clamp(-26px, -1.8vw, -16px);
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; --unlit: rgba(255, 255, 255, .11);
  background: var(--black-raised); border-radius: 12px; box-shadow: 0 18px 40px -14px rgba(10, 11, 13, .55), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.capsule .key { width: 32px; height: 32px; border-radius: 6px; background: var(--blue); display: grid; place-items: center; position: relative; }
.capsule .key i { width: 11px; height: 11px; border-radius: 2.5px; background: #fff; }
.capsule .key::after { content: ""; position: absolute; inset: -4px; border-radius: 9px; border: 1.5px solid rgba(59, 199, 237, .5); }
.capsule .led.mini { width: 46px; height: auto; }
.capsule .screen {
  font: 600 15px/1 var(--display); color: var(--cyan); padding: 7px 10px; font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, .6); border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}

/* ——— Features: three columns, each with the icon in a 44 light-blue tile, a 17/600 title and a
   15px line ——— */
.features .lead { margin-top: 16px; max-width: 36em; color: var(--fg-2); }
.feature-list { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.feature .tile { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: var(--wash); color: var(--blue); }
.feature .tile svg { width: 20px; height: 20px; }
.feature h3 { margin: 18px 0 6px; font: 600 17px/1.35 var(--text); }
.feature p { margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.6; max-width: 30em; }

/* ——— Privacy: a deep-blue band, radius 24, inside the margins ——— */
.band-wrap { padding-top: 0; }
.privacy {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: center; overflow: hidden;
  border-radius: 24px; padding: clamp(48px, 6vw, 96px) clamp(24px, 5vw, 80px);
}
.privacy .body { margin-top: 20px; max-width: var(--measure); color: var(--fg-2); font-size: 17px; line-height: 1.6; }
.led.ghost { justify-self: end; width: min(100%, 360px); height: auto; --unlit: rgba(255, 255, 255, .1); }
.led.ghost .l { fill: rgba(255, 255, 255, .92); }
.led.ghost .a { fill: var(--cyan); }

/* ——— Download ——— */
.download h2 { grid-column: 1 / span 5; }
.download .side { grid-column: 7 / -1; }
.download .side p { max-width: var(--measure); color: var(--fg-2); }
.download .actions { margin-top: 28px; display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center; }
.download .actions .note { font-size: 13px; color: var(--fg-3); }
.specs { margin-top: 40px; width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 14px 0; border-top: 1px solid var(--rule); font-weight: 400; }
.specs th { width: 34%; padding-right: var(--gutter); }
.specs td { color: var(--fg-2); }

/* ——— Footer: black, the inverse lockup 24, labels #8B929C, links 15px #B4BAC2, legal 13px ——— */
.site-footer { padding-block: 72px 40px; font-size: 15px; }
.site-footer .lockup { font-size: 24px; --unlit: #23272e; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer h4 { margin: 0 0 14px; font: 500 12px/1 var(--label); letter-spacing: .08em; text-transform: uppercase; color: #8b929c; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--on-black-2); text-decoration: none; border-radius: 4px; }
.site-footer ul a:hover { color: var(--white); }
.legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 20px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .1); font-size: 13px; color: #8b929c; }

/* ——— Motion: as in the app — rise 6px over 300ms; nothing moves on scroll ——— */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 300ms var(--ease) both; }
  .rise.d1 { animation-delay: 60ms; } .rise.d2 { animation-delay: 120ms; } .rise.d3 { animation-delay: 180ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ——— Smaller screens ——— */
@media (max-width: 1100px) {
  .window { grid-template-columns: 160px 1fr; }
  .win-card { grid-template-columns: 220px 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .hero, .privacy { grid-template-columns: 1fr; }
  .hero-led { order: -1; justify-self: start; width: min(70%, 320px); }
  .led.ghost { justify-self: start; width: min(60%, 260px); margin-top: 40px; }
  .window { grid-template-columns: 1fr; min-height: 0; }
  .win-side, .win-list { display: none; }
  .win-card { margin: 8px; grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .download h2, .download .side { grid-column: 1 / -1; }
  .capsule { position: static; margin-top: 18px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .feature-list { grid-template-columns: 1fr; }
  .hero .lede { font-size: 17px; }
  .hero .actions .btn { flex: 1; }
  .privacy { border-radius: 12px; }
  .tools .btn.primary { display: none; }
}

/* ——— Reading pages (privacy, terms): 720 wide, 17px at 1.7, headings in Barlow Condensed 24 ——— */
.read { max-width: 720px; padding-block: clamp(48px, 6vw, 96px) 0; color: var(--fg-2); font-size: 17px; line-height: 1.7; }
.read h1 { margin: 0; color: var(--fg); font: 600 clamp(36px, 4.4vw, 56px)/.96 var(--display); letter-spacing: -.015em; }
.read h1 [lang="zh-Hant"] { letter-spacing: .02em; }
.read .updated { margin-top: 12px; font-size: 13px; color: var(--fg-3); }
.read .intro { margin-top: 32px; }
.read h2 { margin: 48px 0 12px; color: var(--fg); font: 600 24px/1.2 var(--display); }
.read p + p { margin-top: 12px; }
.read ul { margin: 0; padding-left: 1.2em; }
.read li + li { margin-top: 8px; }
.read b { color: var(--fg); font-weight: 500; }
.read a { color: var(--blue); text-underline-offset: 3px; }
.read code { font: 400 15px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--fg); }

/* ——— 404 ——— */
.notfound { padding-block: clamp(64px, 10vw, 160px); }
.notfound .actions { margin-top: 32px; }
