/* TuneForge — shared styles for the home page, Privacy Policy and Terms and Conditions. */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@property --tint {
  syntax: "<color>";
  inherits: true;
  initial-value: #3ddb83;
}

:root {
  color-scheme: dark;
  interpolate-size: allow-keywords;
  --bg: #050807;
  --bg-raised: #090e0c;
  --surface: #0d1311;
  --surface-2: #121a17;
  --line: rgba(190, 230, 208, .085);
  --line-strong: rgba(190, 230, 208, .16);
  --text: #eef3ef;
  --text-2: #b3bdb7;
  --muted: #87948c;
  --dim: #5f6d66;
  --accent: #3ddb83;
  --accent-rgb: 61, 219, 131;
  --accent-bright: #74f0ab;
  --accent-ink: #03140a;
  --amber: #f5b940;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 72px;
  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --section-pad: clamp(96px, 11vw, 168px);
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
/* Decorative glows may extend past the edges; clip them so phones never get a wider layout. `clip` keeps sticky elements working. */
main { overflow-x: clip; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 650; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
p, li { text-wrap: pretty; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: rgba(var(--accent-rgb), .9); color: var(--accent-ink); }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.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-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 18px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; translate: 0 -200%; transition: translate .2s; }
.skip-link:focus { translate: 0 0; }
.accent-text { color: var(--accent); }
.dim { color: var(--dim); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s, border-color .25s, color .25s;
}
.btn .i { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .5), 0 12px 36px -12px rgba(var(--accent-rgb), .65), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { background: #52e695; box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .6), 0 18px 48px -12px rgba(var(--accent-rgb), .8), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-strong); color: var(--text); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 1rem; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn-store { gap: 12px; padding-left: 22px; }
.btn-store .i { width: 22px; height: 22px; }
.btn-store-text { display: grid; text-align: left; line-height: 1.12; }
.btn-store-text small { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .72; }
.btn-store-text strong { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), -webkit-backdrop-filter .4s, backdrop-filter .4s;
}
.site-header.is-scrolled, body.menu-open .site-header {
  background: rgba(5, 8, 7, .76);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; letter-spacing: -.035em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 6px 16px rgba(var(--accent-rgb), .22)); }
.brand-forge { color: var(--accent); }
.site-nav {
  display: flex;
  gap: 2px;
  margin-inline: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 15, 13, .45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-nav a { padding: 8px 16px; border-radius: 999px; font-size: .875rem; font-weight: 500; color: var(--text-2); transition: color .2s, background-color .2s; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current] { color: var(--text); background: rgba(255, 255, 255, .08); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-nav + .header-actions { margin-left: 0; }
.menu-toggle { display: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); }
.menu-toggle span { grid-area: 1 / 1; width: 18px; height: 1.5px; border-radius: 2px; background: var(--text); transition: translate .3s var(--ease-out), rotate .3s var(--ease-out); }
.menu-toggle span:first-child { translate: 0 -3.5px; }
.menu-toggle span:last-child { translate: 0 3.5px; }
.menu-toggle[aria-expanded="true"] span:first-child { translate: 0 0; rotate: 45deg; }
.menu-toggle[aria-expanded="true"] span:last-child { translate: 0 0; rotate: -45deg; }
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: 16px var(--gutter) 32px;
  overflow-y: auto;
  background: rgba(5, 8, 7, .97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  animation: menu-in .4s var(--ease-out) both;
}
.mobile-menu a:not(.btn) { display: flex; align-items: center; justify-content: space-between; padding: 18px 2px; border-bottom: 1px solid var(--line); font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; }
.mobile-menu a:not(.btn) .i { color: var(--muted); }
.mobile-menu-cta { margin-top: 28px; }

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

.hero { position: relative; isolation: isolate; overflow: clip; background: #030706; }
.hero-media {
  position: relative;
  z-index: -2;
  container-type: inline-size;
  --dial-x: 49%;
  --dial-y: 44%;
  --glow-size: 96cqw;
  --pill-x: 48.1%;
  --pill-y: 63.6%;
  --pill-font: max(10px, 2.1cqw);
}
.hero-media-inner {
  position: relative;
  translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -9px);
  transition: translate 1.2s var(--ease-out);
  animation: hero-zoom 2.6s var(--ease-out) both;
}
.hero-media img { width: 100%; }
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(3, 7, 6, .7) 0%, transparent 16%, transparent 50%, rgba(5, 8, 7, .82) 78%, var(--bg) 97%); }
.hero-glow {
  position: absolute;
  left: var(--dial-x);
  top: var(--dial-y);
  width: var(--glow-size);
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .3), rgba(var(--accent-rgb), .07) 55%, transparent 72%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: glow-breathe 6s ease-in-out infinite;
  transition: filter .8s var(--ease);
}
.hero-media.is-in-tune .hero-glow { filter: brightness(1.45); }
.hero-particles i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s, 3px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), .9);
  opacity: 0;
  animation: drift var(--t, 10s) linear var(--d, 0s) infinite;
}
.hero-pill {
  position: absolute;
  left: var(--pill-x);
  top: var(--pill-y);
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .6em 1.1em .6em .9em;
  border: 1px solid rgba(245, 185, 64, .38);
  border-radius: 999px;
  background: rgba(12, 16, 13, .74);
  box-shadow: 0 0 2.4em rgba(245, 185, 64, .16), inset 0 1px 0 rgba(255, 255, 255, .06);
  color: var(--amber);
  font-size: var(--pill-font);
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: pill-in 1s 1.2s var(--ease-out) both;
  transition: color .5s, border-color .5s, box-shadow .5s, background-color .5s;
}
.hero-pill .i { width: 1.15em; height: 1.15em; stroke-width: 2.5; display: none; }
.hero-pill.is-flat .pill-up, .hero-pill.is-sharp .pill-down, .hero-pill.is-in-tune .pill-check { display: block; }
.hero-pill-cents { min-width: 3.6em; font-weight: 500; font-variant-numeric: tabular-nums; opacity: .8; text-align: right; }
.hero-pill.is-in-tune { color: var(--accent-bright); border-color: rgba(var(--accent-rgb), .5); background: rgba(6, 26, 16, .74); box-shadow: 0 0 2.6em rgba(var(--accent-rgb), .38), inset 0 1px 0 rgba(255, 255, 255, .08); }
.hero-pill-label { display: none; }
.hero-shade { display: none; }
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(190, 230, 208, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(190, 230, 208, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 18% 55%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 60% at 18% 55%, #000, transparent 72%);
}
.hero-content { position: relative; margin-top: -19%; padding-bottom: 72px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 16, 13, .55);
  color: var(--text-2);
  font-size: .8125rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.pulse-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); animation: ping 2.6s var(--ease) infinite; }
.hero h1 { margin-top: 24px; font-size: clamp(3.1rem, 1rem + 5.4vw, 5.9rem); font-weight: 680; letter-spacing: -.05em; line-height: .96; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .line > span { display: inline-block; animation: line-up 1.2s var(--ease-out) both; animation-delay: calc(.3s + var(--i, 0) * .12s); }
.hero-gradient {
  background: linear-gradient(100deg, #f4fff8 0%, #a4f5c8 25%, var(--accent) 52%, #1fc49c 78%, #a4f5c8 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.js .hero h1 .hero-gradient { animation: line-up 1.2s var(--ease-out) both, shimmer 9s ease-in-out 2s infinite; animation-delay: calc(.3s + var(--i, 0) * .12s), 2s; }
.hero-lead { max-width: 34em; margin-top: 24px; color: var(--text-2); font-size: clamp(1.05rem, .98rem + .3vw, 1.22rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-instruments { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 36px; }
.hero-instruments-label { color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hero-instruments ul { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-instruments li { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .025); color: var(--text-2); font-size: .85rem; font-weight: 500; }
.rise { animation: rise 1s var(--ease-out) both; animation-delay: calc(.3s + var(--i, 0) * .12s); }

/* ---------- Stats ---------- */

.stats { position: relative; z-index: 2; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(20, 29, 25, .78), rgba(9, 14, 12, .78));
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}
.stat { position: relative; display: grid; align-content: start; padding: 30px 32px; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line-strong); }
.stat strong {
  font-size: clamp(2.4rem, 1.6rem + 1.6vw, 3.3rem);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 20%, #8fa79b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { margin-top: 12px; font-weight: 600; letter-spacing: -.01em; }
.stat small { margin-top: 2px; color: var(--muted); font-size: .875rem; line-height: 1.45; }

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

.section { position: relative; padding-block: var(--section-pad); }
.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: .78rem; font-weight: 600; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; }
.eyebrow .num { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.eyebrow .num::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.section-head h2 { margin-top: 18px; font-size: clamp(2.5rem, 1.2rem + 3.9vw, 4.6rem); letter-spacing: -.048em; line-height: 1.01; }
.lead { max-width: 38em; margin-top: 22px; color: var(--text-2); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.65; }
.split .section-head h2, .faq-head h2 { font-size: clamp(2.4rem, 1.3rem + 2.5vw, 3.8rem); }
.split { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(48px, 7vw, 112px); align-items: center; }
.orb { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(620px, 120%); aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .2), rgba(var(--accent-rgb), .05) 55%, transparent 75%); pointer-events: none; }

/* ---------- Device frame ---------- */

.device {
  --w: 290px;
  position: relative;
  width: var(--w);
  flex: none;
  padding: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .15);
  background: linear-gradient(150deg, #454f4a 0%, #161b19 16%, #0b0e0d 48%, #171d1a 84%, #3d4742 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .13),
    inset 0 0 0 calc(var(--w) * .011) #050706,
    0 0 0 1px rgba(0, 0, 0, .7),
    0 50px 90px -30px rgba(0, 0, 0, .9),
    0 30px 90px -40px rgba(var(--accent-rgb), .35);
}
.device::before { content: ""; position: absolute; z-index: 2; top: calc(var(--w) * .063); left: 50%; width: calc(var(--w) * .032); aspect-ratio: 1; border-radius: 50%; translate: -50% 0; background: radial-gradient(circle at 35% 35%, #2c3642, #040608 62%); box-shadow: 0 0 0 1.5px #000; }
.device::after { content: ""; position: absolute; top: 21%; right: calc(var(--w) * -.013); width: calc(var(--w) * .014); height: 10%; border-radius: 0 4px 4px 0; background: linear-gradient(90deg, #2a322e, #4a5550); box-shadow: 0 calc(var(--w) * .2) 0 0 #333c38; }
.device-screen { position: relative; overflow: hidden; border-radius: calc(var(--w) * .118); background: #0b0d0f; isolation: isolate; }
.device-screen img { width: 100%; }
.device-screen::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .02) 26%, transparent 42%); }
.screens { display: grid; }
.screens > img { grid-area: 1 / 1; opacity: 0; scale: 1.035; transition: opacity .6s var(--ease), scale .9s var(--ease-out); }
.screens > img.is-active { opacity: 1; scale: 1; }

/* ---------- Tuner ---------- */

.tuner-visual { position: relative; isolation: isolate; display: flex; justify-content: center; padding-block: 40px; }
.tuner-visual .device-back { --w: 250px; position: absolute; top: 16%; left: max(0px, calc(50% - 300px)); rotate: -9deg; filter: brightness(.62) saturate(.85); }
.tuner-visual .device-front { --w: 300px; margin-left: min(34%, 200px); rotate: 2.5deg; }
.feature-list { display: grid; gap: 4px; margin-top: 44px; }
.feature { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; margin-inline: -20px; padding: 20px; border: 1px solid transparent; border-radius: var(--radius); transition: background-color .3s, border-color .3s; }
.feature:hover { background: rgba(255, 255, 255, .022); border-color: var(--line); }
.feature h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.feature p { margin-top: 6px; color: var(--text-2); font-size: .98rem; line-height: 1.6; }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(var(--accent-rgb), .2); border-radius: 14px; background: linear-gradient(180deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .04)); color: var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.feature-icon .i { width: 22px; height: 22px; }

/* ---------- Tunings ---------- */

.tunings-section { overflow: clip; }
.tunings-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(48px, 7vw, 112px); align-items: center; margin-top: 72px; }
.tab-list { display: grid; gap: 10px; }
.tab {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 16px;
  width: 100%;
  padding: 22px 26px 22px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .015);
  text-align: left;
  transition: background-color .35s, border-color .35s;
}
.tab:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .03); }
.tab[aria-selected="true"] { border-color: rgba(var(--accent-rgb), .3); background: linear-gradient(135deg, rgba(var(--accent-rgb), .1), rgba(var(--accent-rgb), .02) 60%); }
.tab::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 18px rgba(var(--accent-rgb), .9); opacity: 0; transition: opacity .35s; }
.tab[aria-selected="true"]::before { opacity: 1; }
.tab-index { padding-top: 3px; color: var(--muted); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tab-title { color: var(--text-2); font-size: 1.22rem; font-weight: 600; letter-spacing: -.025em; transition: color .3s; }
.tab[aria-selected="true"] .tab-index { color: var(--accent); }
.tab[aria-selected="true"] .tab-title { color: var(--text); }
.tab-desc { grid-column: 2; display: grid; grid-template-rows: 0fr; opacity: 0; color: var(--text-2); font-size: .98rem; line-height: 1.6; transition: grid-template-rows .5s var(--ease-out), opacity .4s; }
.tab-desc > span { overflow: hidden; }
.tab[aria-selected="true"] .tab-desc { grid-template-rows: 1fr; opacity: 1; }
.tab[aria-selected="true"] .tab-desc > span { padding-top: 8px; }
.tunings-stage { position: relative; isolation: isolate; display: grid; place-items: center; border-radius: var(--radius-l); }
.tunings-stage .device { --w: 310px; }
.marquee { display: flex; margin-top: clamp(72px, 9vw, 120px); padding-block: 26px; overflow: hidden; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; flex: none; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 30px; padding-right: 30px; color: var(--text-2); font-size: clamp(1.15rem, .9rem + .9vw, 1.7rem); font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), .8); }

/* ---------- Toolkit ---------- */

.toolkit-section { isolation: isolate; }
.toolkit-section::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 40px; width: min(1100px, 120vw); height: 560px; translate: -50% 0; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .075), transparent); pointer-events: none; }
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 72px; }
.tool-card {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: #030504;
  transition: border-color .45s, box-shadow .6s var(--ease-out), transform .6s var(--ease-out);
}
.tool-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; transition: scale 1.4s var(--ease-out), filter .6s; }
.tool-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 5, 4, .25) 0%, transparent 22%, transparent 42%, rgba(3, 5, 4, .78) 66%, rgba(3, 5, 4, .97) 100%); }
.tool-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .35); box-shadow: 0 34px 70px -34px rgba(var(--accent-rgb), .45); }
.tool-card:hover img { scale: 1.06; filter: brightness(1.12); }
.tool-tag { position: absolute; top: 20px; left: 20px; padding: 6px 11px; border: 1px solid rgba(var(--accent-rgb), .32); border-radius: 999px; background: rgba(3, 12, 7, .62); color: var(--accent); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tool-card-body { position: absolute; inset: auto 0 0; padding: 28px; }
.tool-card h3 { font-size: 1.55rem; letter-spacing: -.035em; }
.tool-card p { max-width: 26em; margin-top: 8px; color: var(--text-2); font-size: .98rem; line-height: 1.55; }

.spotlight {
  --pad: clamp(32px, 5.5vw, 80px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  margin-top: clamp(80px, 10vw, 140px);
  padding: var(--pad);
  padding-bottom: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: radial-gradient(ellipse 60% 70% at 78% 60%, rgba(var(--accent-rgb), .1), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--bg-raised));
}
.spotlight-copy { padding-bottom: var(--pad); }
.spotlight h3 { margin-top: 18px; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.3rem); letter-spacing: -.045em; }
.spotlight-copy > p:not(.eyebrow) { max-width: 30em; margin-top: 20px; color: var(--text-2); font-size: 1.08rem; }
.check-list { display: grid; gap: 12px; margin-top: 28px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.check-list .i { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(var(--accent-rgb), .14); color: var(--accent); stroke-width: 3; }
.bpm { display: inline-flex; align-items: center; gap: 16px; margin-top: 36px; padding: 14px 22px 14px 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(0, 0, 0, .28); }
.bpm strong { font-size: 2.3rem; font-weight: 250; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.bpm-meta { display: grid; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .1em; line-height: 1.5; text-transform: uppercase; }
.bpm-meta span:first-child { color: var(--text-2); }
.beats { display: flex; gap: 8px; margin-left: 6px; }
.beats i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.beats i:first-child { width: 12px; height: 12px; }
.spotlight.is-playing .beats i { animation: beat 2.4s linear infinite; animation-delay: calc(var(--n) * .6s); }
.spotlight-stage { position: relative; isolation: isolate; display: flex; justify-content: center; align-self: end; }
.spotlight-stage .device { --w: 320px; margin-bottom: -150px; }
.pulse-frame { position: absolute; inset: 0; z-index: 1; opacity: 0; -webkit-mask-image: radial-gradient(ellipse 34% 16% at 50% 38%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 34% 16% at 50% 38%, #000 62%, transparent 100%); }
.spotlight.is-playing .pulse-frame { animation: pulse-frame .6s ease-out infinite; }

/* ---------- Appearance ---------- */

.appearance-section { --tint: #3ddb83; transition: --tint .7s var(--ease); }
.split-reverse { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
.appearance-stage { position: relative; isolation: isolate; display: flex; justify-content: center; padding-block: 40px; }
.appearance-stage .device { --w: 310px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), inset 0 0 0 calc(var(--w) * .011) #050706, 0 0 0 1px rgba(0, 0, 0, .7), 0 50px 90px -30px rgba(0, 0, 0, .9), 0 30px 110px -30px color-mix(in srgb, var(--tint) 55%, transparent); }
.orb-tint { background: radial-gradient(closest-side, color-mix(in srgb, var(--tint) 26%, transparent), color-mix(in srgb, var(--tint) 6%, transparent) 55%, transparent 75%); }
.swatch-panel { margin-top: 40px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-l); background: linear-gradient(180deg, var(--surface-2), var(--bg-raised)); }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 8px; }
.swatch { display: grid; justify-items: center; gap: 10px; color: var(--muted); font-size: .8rem; font-weight: 500; transition: color .25s; }
.swatch:hover { color: var(--text); }
.swatch-dot { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -4px 10px rgba(0, 0, 0, .18), inset 0 2px 4px rgba(255, 255, 255, .25); transition: box-shadow .3s var(--ease-out), scale .3s var(--ease-out); }
.swatch:hover .swatch-dot { scale: 1.07; }
.swatch-dot .i { width: 22px; height: 22px; color: rgba(3, 10, 6, .82); stroke-width: 3; opacity: 0; scale: .5; transition: opacity .25s, scale .35s var(--ease-out); }
.swatch[aria-pressed="true"] { color: var(--text); }
.swatch[aria-pressed="true"] .swatch-dot { box-shadow: 0 0 0 3px var(--surface-2), 0 0 0 5px var(--c), 0 0 26px color-mix(in srgb, var(--c) 60%, transparent); }
.swatch[aria-pressed="true"] .swatch-dot .i { opacity: 1; scale: 1; }
.swatch-caption { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.swatch-caption .i { width: 20px; height: 20px; margin-top: 1px; color: var(--tint); transition: color .5s; }
.swatch-current { display: block; margin-top: 2px; color: var(--text-2); }
.swatch-current strong { color: var(--text); font-weight: 600; }

/* ---------- Details ---------- */

.details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 64px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--line); }
.detail { padding: 38px 34px 40px; background: var(--bg); transition: background-color .35s; }
.detail:hover { background: var(--bg-raised); }
.detail h3 { margin-top: 24px; font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; }
.detail p { margin-top: 8px; color: var(--text-2); font-size: .97rem; line-height: 1.6; }

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

.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 48px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 2px; font-size: 1.1rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.4; list-style: none; cursor: pointer; transition: color .2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent-bright); }
.faq-toggle { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text-2); transition: rotate .4s var(--ease-out), background-color .3s, border-color .3s, color .3s; }
.faq-toggle .i { width: 18px; height: 18px; }
.faq-list details[open] .faq-toggle { rotate: 45deg; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.faq-answer { padding: 0 64px 28px 2px; color: var(--text-2); line-height: 1.7; }
.faq-answer a, .legal-content a:not(.btn):not(.anchor) { color: var(--accent-bright); text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .4); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.faq-answer a:hover, .legal-content a:not(.btn):not(.anchor):hover { text-decoration-color: currentColor; }
.faq-list details::details-content { height: 0; overflow: clip; transition: height .45s var(--ease-out), content-visibility .45s allow-discrete; }
.faq-list details[open]::details-content { height: auto; }

/* ---------- Download ---------- */

.download { position: relative; isolation: isolate; overflow: clip; padding-top: var(--section-pad); text-align: center; background: radial-gradient(ellipse 60% 50% at 50% 42%, rgba(var(--accent-rgb), .1), transparent 70%); }
.download-rings span { position: absolute; z-index: -1; left: 50%; top: 40%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; pointer-events: none; }
.download-rings span:first-child { width: min(1040px, 160vw); background: repeating-conic-gradient(from -90deg, rgba(190, 230, 208, .2) 0 .3deg, transparent .3deg 3deg); -webkit-mask: radial-gradient(closest-side, transparent 88%, #000 88.5%, #000 94%, transparent 94.5%); mask: radial-gradient(closest-side, transparent 88%, #000 88.5%, #000 94%, transparent 94.5%); animation: spin 120s linear infinite; }
.download-rings span:last-child { width: min(760px, 120vw); border: 1px solid rgba(var(--accent-rgb), .14); box-shadow: 0 0 80px -10px rgba(var(--accent-rgb), .12) inset; }
.download-inner { display: grid; justify-items: center; }
.download-icon { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 70px -12px rgba(var(--accent-rgb), .5); }
.download .eyebrow { margin-top: 36px; }
.download h2 { margin-top: 18px; font-size: clamp(2.8rem, 1.3rem + 4.8vw, 5.6rem); letter-spacing: -.052em; line-height: .98; }
.download .lead { margin-inline: auto; }
.download-actions { margin-top: 40px; }
.release-status { margin-top: 18px; color: var(--muted); font-size: .92rem; }
.release-status:focus { outline: none; }
.download-phones { display: flex; justify-content: center; align-items: flex-start; height: clamp(300px, 36vw, 480px); margin-top: 88px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 98%); mask-image: linear-gradient(180deg, #000 50%, transparent 98%); }
.download-phones .device { --w: clamp(180px, 21vw, 290px); }
.download-phones .device:nth-child(1) { rotate: -10deg; translate: 16% 14%; filter: brightness(.7); }
.download-phones .device:nth-child(2) { z-index: 2; }
.download-phones .device:nth-child(3) { rotate: 10deg; translate: -16% 14%; filter: brightness(.7); }

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

.site-footer { position: relative; overflow: clip; padding-top: 88px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-raised), var(--bg) 60%); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)); gap: 48px 32px; }
.footer-brand p { max-width: 30ch; margin-top: 18px; color: var(--text-2); line-height: 1.6; }
.footer-store { margin-top: 26px; }
.footer-col h2 { color: var(--text); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 12px; margin-top: 20px; }
.footer-col a { color: var(--text-2); font-size: .94rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent-bright); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; margin-top: 72px; padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-trademarks { margin-right: auto; }
.back-to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 500; transition: color .2s; }
.back-to-top:hover { color: var(--accent-bright); }
.back-to-top .i { width: 16px; height: 16px; }
.footer-wordmark {
  margin-bottom: -.2em;
  font-size: clamp(4.5rem, 17vw, 15rem);
  font-weight: 750;
  letter-spacing: -.065em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(190, 230, 208, .12), rgba(190, 230, 208, 0) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

/* ---------- Legal pages ---------- */

.reading-progress { position: fixed; inset: 0 0 auto; z-index: 70; height: 2px; background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), .8); transform-origin: 0 50%; scale: var(--progress, 0) 1; }
.legal-hero { position: relative; isolation: isolate; overflow: clip; padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 50% 90% at 85% 0%, rgba(var(--accent-rgb), .12), transparent 70%); }
.legal-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(190, 230, 208, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(190, 230, 208, .04) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 100% at 80% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 100% at 80% 0%, #000, transparent 75%); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; color: var(--muted); font-size: .85rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.breadcrumb a:hover { color: var(--text); }
.legal-hero h1 { margin-top: 22px; font-size: clamp(2.8rem, 1.4rem + 4.6vw, 5.2rem); letter-spacing: -.052em; line-height: .98; }
.legal-lead { max-width: 40em; margin-top: 22px; color: var(--text-2); font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.6; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.legal-meta li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .025); color: var(--text-2); font-size: .85rem; }
.legal-meta .i { width: 16px; height: 16px; color: var(--accent); }
.legal-switch { display: inline-flex; gap: 4px; margin-top: 36px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .03); }
.legal-switch a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; color: var(--text-2); font-size: .9rem; font-weight: 500; transition: color .2s, background-color .2s; }
.legal-switch a:hover { color: var(--text); }
.legal-switch a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.legal-switch .i { width: 16px; height: 16px; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; padding-block: clamp(56px, 7vw, 88px) clamp(96px, 10vw, 144px); }
.legal-toc { position: sticky; top: calc(var(--header-h) + 28px); max-height: calc(100vh - var(--header-h) - 56px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.toc-details summary { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; list-style: none; pointer-events: none; }
.toc-details summary::-webkit-details-marker { display: none; }
.toc-details summary .i { display: none; width: 18px; height: 18px; }
.legal-toc ol { display: grid; gap: 2px; margin-top: 18px; padding: 0; list-style: none; border-left: 1px solid var(--line); counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc nav a { display: flex; gap: 10px; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; color: var(--muted); font-size: .9rem; line-height: 1.4; transition: color .2s, border-color .2s; }
.legal-toc nav a::before { content: counter(toc, decimal-leading-zero); flex: none; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; padding-top: 1px; }
.legal-toc nav a:hover { color: var(--text); }
.legal-toc nav a[aria-current] { border-left-color: var(--accent); color: var(--text); }
.legal-toc nav a[aria-current]::before { color: var(--accent); }
.legal-actions { display: grid; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-actions .btn { justify-content: flex-start; }
.legal-content { max-width: 780px; color: var(--text-2); font-size: 1.04rem; line-height: 1.75; }
.legal-content > section { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-content > section + section { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }
.legal-content h2 { position: relative; display: flex; align-items: baseline; gap: 16px; color: var(--text); font-size: clamp(1.55rem, 1.3rem + .9vw, 2rem); letter-spacing: -.035em; line-height: 1.2; }
.legal-content h2 .num { display: inline-grid; place-items: center; flex: none; min-width: 36px; height: 30px; padding-inline: 8px; translate: 0 -4px; border: 1px solid rgba(var(--accent-rgb), .3); border-radius: 9px; background: rgba(var(--accent-rgb), .08); color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.anchor { margin-left: auto; padding-left: 12px; color: var(--dim); font-size: 1.1rem; font-weight: 500; opacity: 0; transition: opacity .2s, color .2s; }
.legal-content h2:hover .anchor, .anchor:focus-visible { opacity: 1; }
.anchor:hover { color: var(--accent); }
.legal-content h3 { margin-top: 40px; color: var(--text); font-size: 1.18rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.35; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-content h2 + p, .legal-content h3 + p, .legal-content .in-short + p { margin-top: 18px; }
.legal-content p + p, .legal-content ul + p, .legal-content p + ul, .legal-content ol + p, .legal-content p + ol, .legal-content .table-wrap + p, .legal-content p + .table-wrap { margin-top: 18px; }
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-content ul:not([class]), .legal-content ol:not([class]) { display: grid; gap: 10px; padding: 0; list-style: none; }
.legal-content ul:not([class]) > li { position: relative; padding-left: 26px; }
.legal-content ul:not([class]) > li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .6); }
.legal-content ol:not([class]) { counter-reset: item; }
.legal-content ol:not([class]) > li { position: relative; padding-left: 38px; counter-increment: item; }
.legal-content ol:not([class]) > li::before { content: counter(item, lower-alpha) ")"; position: absolute; left: 4px; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.in-short { display: flex; gap: 14px; margin-top: 22px; padding: 16px 20px; border: 1px solid rgba(var(--accent-rgb), .2); border-radius: 16px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .08), rgba(var(--accent-rgb), .02)); color: var(--text); font-size: .98rem; line-height: 1.6; }
.in-short .i { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.in-short strong { color: var(--accent-bright); }
.glance { margin-bottom: 72px; padding-bottom: 72px; border-bottom: 1px solid var(--line); }
.glance h2 { color: var(--text); font-size: clamp(1.55rem, 1.3rem + .9vw, 2rem); letter-spacing: -.035em; }
.glance > p { margin-top: 14px; }
.glance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.glance-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-2), var(--bg-raised)); }
.glance-card .feature-icon { width: 44px; height: 44px; border-radius: 13px; }
.glance-card .feature-icon .i { width: 20px; height: 20px; }
.glance-card h3 { margin-top: 18px; color: var(--text); font-size: 1.05rem; font-weight: 600; letter-spacing: -.015em; }
.legal-content .glance-card p { margin-top: 6px; font-size: .95rem; line-height: 1.6; }
.table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .94rem; line-height: 1.55; }
.data-table caption { padding: 16px 20px; color: var(--muted); font-size: .85rem; text-align: left; caption-side: bottom; border-top: 1px solid var(--line); }
.data-table th, .data-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { background: rgba(255, 255, 255, .03); color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.data-table tbody th { color: var(--text); font-weight: 600; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pill-no { background: rgba(var(--accent-rgb), .12); color: var(--accent-bright); }
.pill-some { background: rgba(245, 185, 64, .12); color: var(--amber); }
.contact-card { display: grid; gap: 6px; margin-top: 24px; padding: 26px 28px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: linear-gradient(135deg, rgba(var(--accent-rgb), .08), transparent 60%), var(--surface); }
.contact-card .contact-label { color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.contact-card .contact-value { color: var(--text); font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.contact-card .contact-value a { color: var(--accent-bright); }
.legal-footnote { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* ---------- Scroll reveal ---------- */

.js .reveal { opacity: 0; translate: 0 32px; transition: opacity 1s var(--ease-out), translate 1.1s var(--ease-out); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

/* ---------- Keyframes ---------- */

@keyframes hero-zoom { from { opacity: 0; scale: 1.09; } to { opacity: 1; scale: 1; } }
@keyframes line-up { from { translate: 0 105%; } to { translate: 0 0; } }
@keyframes rise { from { opacity: 0; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }
@keyframes pill-in { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
@keyframes glow-breathe { 0%, 100% { opacity: .7; scale: .95; } 50% { opacity: 1; scale: 1.05; } }
@keyframes drift { 0% { opacity: 0; translate: 0 0; } 15% { opacity: .9; } 80% { opacity: .45; } 100% { opacity: 0; translate: var(--dx, 16px) -130px; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); } }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes marquee { to { translate: -50% 0; } }
@keyframes beat { 0% { background: var(--accent); box-shadow: 0 0 14px rgba(var(--accent-rgb), .9); } 22% { background: rgba(var(--accent-rgb), .45); box-shadow: none; } 25%, 100% { background: rgba(255, 255, 255, .13); box-shadow: none; } }
@keyframes pulse-frame { 0% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes menu-in { from { opacity: 0; translate: 0 -12px; } to { opacity: 1; translate: 0 0; } }

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

@media (min-width: 700px) {
  .hero-media { width: 150%; margin-left: -49%; --dial-x: 66%; --glow-size: 46cqw; --pill-x: 65.8%; --pill-font: max(11px, 1.02cqw); }
  .hero-content { margin-top: -19%; }
}

@media (min-width: 1100px) {
  .hero { --hero-min: 640px; display: flex; align-items: center; height: max(var(--hero-min), min(100vh, 56.25vw)); height: max(var(--hero-min), min(100svh, 56.25vw)); }
  .hero-media { position: absolute; top: 50%; right: 0; width: max(100%, calc(var(--hero-min) * 16 / 9)); margin: 0; transform: translateY(-50%); }
  .hero-media::after { display: none; }
  .hero-shade {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      linear-gradient(90deg, rgba(3, 7, 6, .94) 0%, rgba(3, 7, 6, .78) 24%, rgba(3, 7, 6, .3) 40%, transparent 52%),
      linear-gradient(0deg, var(--bg) 0%, rgba(5, 8, 7, .55) 12%, transparent 30%),
      linear-gradient(180deg, rgba(3, 7, 6, .75) 0%, transparent 18%);
  }
  .hero-pill-label { display: inline; }
  .hero-content { margin-top: 0; padding-top: calc(var(--header-h) - 24px); padding-bottom: 48px; }
  .hero-copy { max-width: min(730px, 43vw); }
  .hero-lead { max-width: 29em; }
  .stats { margin-top: -64px; }
}

@media (min-width: 1100px) and (max-height: 800px) {
  .hero h1 { margin-top: 18px; font-size: clamp(3.1rem, 1rem + 4.9vw, 5.9rem); }
  .hero-lead { margin-top: 18px; }
  .hero-actions, .hero-instruments { margin-top: 26px; }
  .hero-content { padding-bottom: 72px; }
}

@media (max-width: 1099px) {
  .stats { margin-top: 8px; }
}

@media (max-width: 1023px) {
  .site-nav { display: none; }
  .menu-toggle { display: grid; }
  .header-actions, .site-nav + .header-actions { margin-left: auto; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line-strong); }
  .split, .split-reverse, .tunings-layout, .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .tuner-copy { order: -1; }
  .appearance-copy { order: -1; }
  .tuner-visual { padding-block: 16px 0; }
  .faq-head { position: static; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spotlight { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
  .spotlight-copy { padding-bottom: 0; }
  .spotlight-stage .device { margin-bottom: -170px; }
  .spotlight-stage { height: 480px; align-items: flex-start; overflow: hidden; margin-inline: calc(-1 * var(--pad)); }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; max-height: none; overflow: visible; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .toc-details summary { pointer-events: auto; cursor: pointer; }
  .toc-details summary .i { display: block; transition: rotate .3s var(--ease-out); }
  .toc-details[open] summary .i { rotate: 180deg; }
  .legal-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 699px) {
  :root { --header-h: 64px; }
  .header-cta { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stat { padding: 24px 22px; }
  .stat small { display: none; }
  .tuner-visual .device-back { --w: 176px; left: 3%; top: 13%; rotate: -7deg; }
  .tuner-visual .device-front { --w: 216px; margin-left: 36%; }
  .tunings-layout { margin-top: 48px; }
  .tab { padding: 18px 20px 18px 18px; }
  .tunings-stage .device { --w: 270px; }
  .tools-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    margin-top: 48px;
  }
  .tools-grid::-webkit-scrollbar { display: none; }
  .tool-card { scroll-snap-align: start; }
  .js .tools-grid .reveal { transition-delay: 0s; }
  .tool-card-body { padding: 22px; }
  .spotlight { border-radius: 28px; }
  .spotlight-stage { height: 420px; }
  .spotlight-stage .device { --w: 270px; }
  .bpm { flex-wrap: wrap; }
  .appearance-stage .device { --w: 260px; }
  .swatch-panel { padding: 22px 16px; }
  .swatches { gap: 18px 4px; }
  .swatch-dot { width: 40px; height: 40px; }
  .swatch { font-size: .72rem; }
  .details-grid { grid-template-columns: minmax(0, 1fr); }
  .detail { padding: 30px 26px; }
  .faq-answer { padding-right: 8px; }
  .faq-list summary { font-size: 1.02rem; }
  .download-phones { margin-top: 64px; }
  .download-phones .device { --w: 44vw; }
  .download-phones .device:nth-child(1) { translate: 38% 16%; }
  .download-phones .device:nth-child(3) { translate: -38% 16%; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .glance-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-actions { grid-template-columns: minmax(0, 1fr); }
  .legal-content { font-size: 1rem; }
  .legal-content > section + section { margin-top: 56px; padding-top: 56px; }
  .anchor { display: none; }
}

@media (hover: none) {
  .tool-card:hover { transform: none; }
  .tool-card:hover img { scale: 1; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .hero-particles, .pulse-frame { display: none; }
  .marquee { overflow-x: auto; }
}

@media print {
  :root { --bg: #fff; --text: #000; --text-2: #1a1a1a; --muted: #444; --line: #ccc; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .mobile-menu, .site-footer, .legal-toc, .legal-switch, .skip-link, .reading-progress, .anchor, .sprite { display: none !important; }
  .legal-hero { padding: 0 0 18pt; border: 0; background: none; }
  .legal-hero::before { display: none; }
  .legal-layout { display: block; padding: 0; }
  .legal-content { max-width: none; color: #000; font-size: 11pt; line-height: 1.5; }
  .legal-content h2, .legal-content h3, .legal-content strong, .glance h2, .glance-card h3 { color: #000; }
  .legal-content > section + section { margin-top: 18pt; padding-top: 18pt; }
  .in-short, .glance-card, .table-wrap, .contact-card { break-inside: avoid; background: none !important; border-color: #bbb !important; color: #000; }
  .in-short strong, .legal-content h2 .num, .pill { color: #000 !important; background: none !important; }
  a { color: #000 !important; }
  h2, h3 { break-after: avoid; }
}
