/* =========================================================================
   Sole Audio — Design System
   Apple-inspired minimalism with scientific audio-technology precision.
   Parent brand: warm beige. Products carry their own accents.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens
   ---------------------------------------------------------------------- */

/* Light — warm off-white surfaces, ink text */
.theme-light {
  color-scheme: light;

  --bg: #faf8f3;
  --bg-2: #f3efe6;
  --surface: #ffffff;
  --surface-2: #efeade;

  --text: #17160f;
  --text-2: #4f4b43;
  --text-3: #8c8779;

  --line: rgba(23, 22, 15, 0.12);
  --line-2: rgba(23, 22, 15, 0.24);

  --header-bg: rgba(250, 248, 243, 0.82);
  --chip-bg: rgba(23, 22, 15, 0.06);

  --shadow-sm: 0 1px 2px rgba(23, 22, 15, 0.05);
  --shadow-md: 0 18px 40px -26px rgba(23, 22, 15, 0.35);
  --shadow-lg: 0 48px 90px -50px rgba(23, 22, 15, 0.5);

  --accent-ink: color-mix(in srgb, var(--accent) 52%, var(--text));
}

/* Dark — charcoal surfaces, warm paper text */
.theme-dark {
  color-scheme: dark;

  --bg: #0f0f0d;
  --bg-2: #141412;
  --surface: #171715;
  --surface-2: #1f1f1b;

  --text: #f5f2ea;
  --text-2: #aca69a;
  --text-3: #8c8779;

  --line: rgba(245, 242, 234, 0.12);
  --line-2: rgba(245, 242, 234, 0.24);

  --header-bg: rgba(15, 15, 13, 0.78);
  --chip-bg: rgba(245, 242, 234, 0.07);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 22px 44px -26px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 56px 100px -50px rgba(0, 0, 0, 0.9);

  --accent-ink: color-mix(in srgb, var(--accent) 55%, var(--text));
}

:root {
  --brand: #d9c58b;
  --brand-soft: rgba(217, 197, 139, 0.16);
  --brand-ink: #6f5a22;

  --accent: #d9c58b;
  --accent-soft: rgba(217, 197, 139, 0.16);
  --accent-contrast: #1a1509;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 240ms;
}

/* Per-product accents — scoped, never applied site-wide */
body.app-helium,
.accent-helium {
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.14);
  --accent-contrast: #ffffff;
}

body.app-plv,
.accent-plv {
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.14);
  --accent-contrast: #ffffff;
}

body.app-lm1,
.accent-lm1 {
  --accent: #10b981;
  --accent-soft: rgba(16, 185, 129, 0.14);
  --accent-contrast: #ffffff;
}

/* Recompute the readable accent on product pages, where the accent is set
   on <body> rather than inherited from the page theme. */
body.app-helium,
body.app-plv,
body.app-lm1 {
  --accent-ink: color-mix(in srgb, var(--accent) 52%, var(--text));
}

/* -------------------------------------------------------------------------
   2. Reset & base
   ---------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--brand);
  color: #1a1509;
}

:focus-visible {
  border: 3px solid #ffffff;
  border-radius: 4px;
  filter: brightness(1.15);
}

.theme-dark .btn:focus-visible {
  background: #000000;
  border: 5px solid #ffffff;
  border-radius: 4px;
  color: #ffffff;
  filter: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
}

h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  letter-spacing: -0.015em;
}

p {
  color: var(--text-2);
  text-wrap: pretty;
}

/* -------------------------------------------------------------------------
   3. Layout
   ---------------------------------------------------------------------- */

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

.wrap--narrow {
  max-width: 820px;
}

.section {
  min-height: 0;
  height: auto;
  padding-block: clamp(64px, 9vw, 128px);
  overflow: visible;
}

.section--tight {
  min-height: 100vh;
  height: auto;
  padding-block: clamp(48px, 6vw, 80px);
  overflow: visible;
  scroll-snap-align: start;
}

.section--bordered {
  border-top: 0;
  padding-top: clamp(80px, 10vw, 140px);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.25rem;
}

.eyebrow--accent {
  color: var(--accent-ink);
}

.section-head h2 + p {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  max-width: 60ch;
}

.section-head--center h2 + p {
  margin-inline: auto;
}

/* -------------------------------------------------------------------------
   4. Buttons
   ---------------------------------------------------------------------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.04);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}

.btn--ghost:hover {
  border-color: var(--text);
  background: var(--chip-bg);
}

/* Company pages: one ink primary. Product pages keep their accent via .btn--primary. */
.btn--solid {
  background: var(--text);
  color: var(--bg);
}

.btn--solid:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--brand {
  background: var(--brand);
  color: #1a1509;
}

.btn--brand:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn--block {
  width: 100%;
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-ink);
}

.link-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* Header & footer span the wrap edge-to-edge; content inside stays on the wrap lines. */
.site-header > .wrap {
  padding-inline: 0;
}

.site-footer > .wrap {
  padding-inline: 0;
}

.site-header .header-inner,
.site-footer .footer-top,
.site-footer .footer-bottom {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* -------------------------------------------------------------------------
   5. Header & navigation
   ---------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 58px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand);
  color: #1a1509;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(26, 21, 9, 0.14);
}

.brand-name {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--chip-bg);
}

.nav-links a.is-active {
  color: var(--text);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

/* Theme toggle */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 58px;
  height: 30px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--chip-bg);
  color: var(--text-3);
  transition: border-color var(--dur) var(--ease);
}

.theme-toggle:hover {
  border-color: var(--text-3);
}

.theme-toggle__icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  transition: color var(--dur) var(--ease);
}

.theme-toggle__icon svg {
  width: 14px;
  height: 14px;
}

.theme-light .theme-toggle__icon--sun,
.theme-dark .theme-toggle__icon--moon {
  color: var(--text);
}

.theme-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 280ms var(--ease);
}

.theme-dark .theme-toggle__thumb {
  transform: translateX(28px);
  background: #2c2c26;
  border-color: rgba(245, 242, 234, 0.24);
}

/* Mobile menu button */
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle span + span {
  margin-top: 5px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* -------------------------------------------------------------------------
   6. Hero
   ---------------------------------------------------------------------- */

/* The hero is always dark, in both themes, so it re-declares the ink tokens
   locally instead of inheriting the page theme. */
.hero {
  position: relative;
  overflow: hidden;
  height: calc(100vh - 58px);
  min-height: calc(100vh - 58px);
  background: var(--bg);
  color: var(--text);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  transform-origin: center;
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.hero__heading {
  max-width: 16ch;
  font-size: clamp(3rem, 6.5vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  transform-origin: 50% 50%;
  will-change: transform, opacity, filter;
  transition: opacity 220ms linear, transform 620ms cubic-bezier(0.55, 0, 0.85, 0.4),
    color 300ms linear, filter 620ms cubic-bezier(0.55, 0, 0.85, 0.4);
}

.hero__sub {
  margin-top: 1.5rem;
  max-width: 52ch;
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  color: var(--text-2);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}

.hero__cta {
  margin-top: 2rem;
  transition: opacity 300ms var(--ease) 40ms, transform 300ms var(--ease) 40ms;
}

/* Scroll-down arrow below hero */


@media (prefers-reduced-motion: reduce) {
  .hero__heading,
  .hero__sub,
  .hero__cta,
  .scroll-down {
    transition: none;
    animation: none;
  }
}

.hero__visual {
  margin-top: clamp(16px, 3vh, 30px);
  width: min(100%, 700px);
}

.hero-text {
  text-align: left;
  max-width: 640px;
}

.hero-text .eyebrow,
.hero-text h1,
.hero-text .hero__sub,
.hero-text .btn-row,
.hero-text .hero__meta {
  margin-left: 0;
}

.hero-text .btn-row {
  justify-content: flex-start;
  gap: 12px;
}

.hero-text .hero__meta {
  justify-content: flex-start;
  border-top: 0;
  padding-top: clamp(24px, 4vh, 40px);
  width: 100%;
}

.hero-text .hero__meta li {
  flex: none;
  width: 25%;
  text-align: left;
}

.hero-text .hero__meta li + li::before {
  top: 0;
  left: 0;
  width: 28px;
  height: 1px;
  transform: translateX(-50%);
}

.hero__visual svg,
.stage svg,
.keydeck > svg {
  display: block;
  width: 100%;
  max-width: min(100%, 780px);
  margin: 0 auto;
  color: var(--accent);
}

.hero__rule {
  margin-top: clamp(24px, 4vh, 40px);
  height: 1px;
  width: min(100%, 780px);
  background: var(--line);
}

.hero__visual .wave {
  height: 40px;
  gap: 4px;
}

.hero__visual .wave span {
  background: var(--accent);
  opacity: 0.5;
}

/* -------------------------------------------------------------------------
   7. Philosophy
   ---------------------------------------------------------------------- */

.philosophy {
  background: var(--bg-2);
}

.philosophy .eyebrow {
  color: var(--brand-ink);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.philosophy h2 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 28ch;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.philosophy h2 em {
  font-style: normal;
  color: var(--brand);
}

.philosophy__lead {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 55ch;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.philosophy__secondary {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: var(--text);
  font-weight: 500;
  max-width: 55ch;
  margin-bottom: clamp(48px, 7vw, 80px);
}

.philosophy__principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 40px);
  margin-top: clamp(8px, 2vw, 16px);
}

.philosophy__principle {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2px;
}

.philosophy__principle__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--brand);
  font-weight: 500;
}

.philosophy__principle h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}

.philosophy__principle p {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.65;
  color: var(--text-2);
  margin: 0;
}

@media (max-width: 1080px) {
  .philosophy__principles {
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 28px);
  }

  .philosophy h2 {
    max-width: none;
  }

  .philosophy__lead,
  .philosophy__secondary {
    max-width: none;
  }
}

/* -------------------------------------------------------------------------
   8. Editorial product showcases
   ---------------------------------------------------------------------- */

.showcase {
  padding-block: clamp(64px, 9vw, 120px);
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid var(--line);
}

.showcase__grid {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  align-items: stretch;
  gap: clamp(32px, 6vw, 88px);
}

.showcase--soft {
  background: var(--bg-2);
}

.showcase--reverse .showcase__copy {
  order: 2;
}

.showcase--reverse .showcase__visual {
  order: 1;
}

.showcase__copy {
  max-width: 520px;
}

.product-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.product-label__name {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-3);
}

.status--live::before {
  background: #4a9d5f;
}

.status--beta::before {
  background: var(--accent);
}

.showcase__copy h2 {
  margin-bottom: 1.15rem;
}

.showcase__copy > p {
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  max-width: 46ch;
}

.feature-list {
  margin-block: 1.75rem 2rem;
  border-top: 1px solid var(--line);
}

.feature-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--text-2);
}

.feature-list li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}

.showcase__visual {
  position: relative;
}

.showcase__visual .stage {
  max-width: 620px;
  margin-inline: auto;
}

.showcase__visual .macbook-mockup {
  max-width: 1000px;
  margin-inline: auto;
}

/* PLV showcase: keep the full product shot visible (no side cropping) and
   scale it up on wide screens so it reads at the copy block's height. */
.showcase__visual .plv-hero-shot {
  max-width: 1000px;
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase__visual .plv-hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

@media (min-width: 1360px) {
  .showcase__visual .plv-hero-shot img {
    transform: scale(1.12);
    transform-origin: center top;
  }
}

/* Abstract interface compositions — not screenshots */
.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.stage__chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.stage__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
}

.stage__name {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.stage__body {
  display: grid;
  grid-template-columns: 38% 1fr;
  flex: 1;
  min-height: 0;
}

.stage__rail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.rail-row {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 9px;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
}

.rail-row span:first-child {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--text-3);
  flex: none;
}

.rail-row span:last-child {
  height: 5px;
  border-radius: 2px;
  background: var(--line-2);
  width: 60%;
}

.rail-row--active {
  background: var(--accent-soft);
}

.rail-row--active span:first-child {
  background: var(--accent);
}

.rail-row--active span:last-child {
  background: var(--accent);
  opacity: 0.55;
}

.stage__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(16px, 3vw, 28px);
}

.stage__toolbar {
  display: flex;
  gap: 6px;
}

.stage__toolbar span {
  height: 8px;
  border-radius: 3px;
  background: var(--line-2);
}

.stage__toolbar span:nth-child(1) {
  width: 42px;
}

.stage__toolbar span:nth-child(2) {
  width: 26px;
  background: var(--accent);
  opacity: 0.6;
}

.stage__toolbar span:nth-child(3) {
  width: 34px;
}

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 80px;
}

.wave span {
  flex: 1;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    color-mix(in srgb, var(--accent) 55%, transparent) 100%
  );
  opacity: 0.9;
}

.stage__grid-lines {
  display: grid;
  gap: 5px;
}

.stage__grid-lines span {
  height: 1px;
  background: var(--line);
}

/* Keycap deck composition */
.keydeck {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 1.6vw, 12px);
  padding: clamp(16px, 3vw, 30px) clamp(16px, 3vw, 30px) clamp(46px, 4vw, 60px);
}

.keydeck__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(6px, 1.2vw, 10px);
}

.keycap {
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 2px 0 var(--line);
}

.keycap--on {
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 55%, #000),
    0 0 0 3px var(--accent-soft);
}

.keycap--wide {
  grid-column: span 2;
  aspect-ratio: auto;
}

.keycap--space {
  grid-column: span 2;
  aspect-ratio: auto;
}

.keydeck__row--bottom {
  min-height: clamp(26px, 3vw, 38px);
}

.keydeck__legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(10px, 2vw, 18px);
  margin-bottom: clamp(10px, 1vw, 16px);
  padding-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.keydeck__legend::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
}

/* -------------------------------------------------------------------------
   9. Future products
   ---------------------------------------------------------------------- */

.next-slot {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(28px, 4vw, 44px);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--chip-bg), transparent 70%);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.next-slot:hover {
  border-color: var(--brand);
}

.next-slot__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.next-slot h3 {
  max-width: 22ch;
}

.next-slot p {
  max-width: 48ch;
  font-size: 0.95rem;
}

.next-slot__mark {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--brand-ink);
}

.theme-dark .next-slot__mark {
  color: var(--brand);
}

/* -------------------------------------------------------------------------
   10. Products index
   ---------------------------------------------------------------------- */

.page-hero {
  padding-block: clamp(56px, 8vw, 96px) clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
}

.page-hero p {
  margin-top: 1.1rem;
  max-width: 56ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.product-rows {
  border-bottom: 1px solid var(--line);
}

.product-row {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1.4fr) minmax(0, 1fr) 2.5rem;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
  transition: padding-left var(--dur) var(--ease);
}

.product-row:first-child {
  border-top: 0;
}

.product-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--row-accent, var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 320ms var(--ease);
}

.product-row:hover {
  padding-left: clamp(8px, 2vw, 20px);
}

.product-row:hover::before {
  transform: scaleY(1);
}

.product-row__index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

.product-row__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0.6rem;
}

.product-row__title h2,
.product-row__title h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
}

.product-row__title .status--beta::before,
.product-row .status--beta::before {
  background: var(--row-accent, var(--accent));
}

.product-row__desc {
  font-size: 0.94rem;
  max-width: 46ch;
}

.product-row__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}

.product-row__arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-2);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.product-row:hover .product-row__arrow {
  background: var(--row-accent, var(--accent));
  border-color: transparent;
  color: var(--accent-contrast);
  transform: translateX(3px);
}

.product-row__arrow svg {
  width: 15px;
  height: 15px;
}

/* -------------------------------------------------------------------------
   11. Product pages
   ---------------------------------------------------------------------- */

.product-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px);
}

.product-hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.product-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.product-hero__copy {
  max-width: 560px;
}

.product-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  margin-bottom: 1.25rem;
}

.product-hero__copy > p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 46ch;
}

.product-hero .btn-row {
  margin-top: 2rem;
}

.product-hero__copy > p.product-hero__note {
  max-width: none;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.product-hero__visual .stage {
  max-width: 620px;
  margin-inline: auto;
}

.compat {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2rem;
}

.compat span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
}

.product-hero__visual .stage {
  aspect-ratio: 5 / 4;
}

/* -------------------------------------------------------------------------
   Hero — Helium product page
   ---------------------------------------------------------------------- */

.hero--helium {
  background: var(--bg);
  color: var(--text);
  padding-top: clamp(12px, 2vw, 32px);
  padding-bottom: clamp(40px, 5vw, 72px);
  overflow: hidden;
  /* Override the base .hero viewport clamp so the MacBook + text + CTAs
     are never cut off at the fold. */
  height: auto;
  min-height: 0;
}

.hero--helium .hero__headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text);
  text-wrap: balance;
}

.hero--helium .hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-2);
  max-width: 48ch;
  margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.6;
}

.hero--helium .hero__cta {
  margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
}

.hero--helium .compat {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero--helium .compat span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
}

/* Short laptop screens (1280×720, 1536×864 at 125–150% scaling): shrink the
   MacBook and tighten vertical spacing so the Helium hero stays on one screen
   instead of running past the fold. */
@media (max-height: 920px) {
  .hero--helium {
    padding-bottom: 44px;
  }

  .hero--helium.hero--product .hero__visual {
    max-width: min(760px, 50vw, 72vh);
    margin-bottom: 28px;
  }
}

@media (max-height: 800px) {
  .hero--helium {
    padding-bottom: 36px;
  }

  .hero--helium.hero--product .hero__visual {
    max-width: min(700px, 50vw, 62vh);
    margin-bottom: 20px;
  }

  .hero--helium .hero__sub {
    margin-bottom: 1.25rem;
  }

  .hero--helium .hero__cta {
    margin-bottom: 1rem;
  }
}

/* Vertical hero layout — MacBook mockup first, then text */
.hero--product .hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  height: auto;
  /* Let the 16-inch-class laptop dominate the hero on large screens. */
  max-width: min(94vw, 1440px);
}

.hero--product .hero__visual {
  width: 100%;
  /* 80vh is the width that yields a 48vh-tall MacBook at its 1.657 ratio.
     Capping width (not height) keeps the frame and screen perfectly aligned. */
  max-width: min(800px, 50vw, 80vh);
  margin: 0 auto clamp(24px, 3vw, 48px);
}

.macbook-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 3803 / 2296;
}

.macbook-mockup__screen {
  position: absolute;
  left: 10.09%;
  top: 2.73%;
  width: 79.85%;
  height: 87.1%;
  overflow: hidden;
  background: var(--surface);
  z-index: 1;
  border-radius: 10px;
  container-type: size;
}

.macbook-mockup__screen .helium-ui {
  width: 100%;
  height: 100%;
  /* Scale the whole interface with the screen width so it always fits
     the landscape display instead of overflowing the bottom. */
  font-size: 2.65cqw;
}

/* Hero screen: em-based sizing so every part scales with the container. */
.macbook-mockup__screen .helium-sidebar {
  width: 11em;
}

.macbook-mockup__screen .helium-logo {
  height: 3.2em;
  font-size: 1.05em;
}

.macbook-mockup__screen .helium-nav {
  padding: 0.6em 0.45em;
  gap: 0.15em;
}

.macbook-mockup__screen .helium-nav__item {
  padding: 0.5em 0.6em;
  font-size: 0.82em;
  border-radius: 0.5em;
}

.macbook-mockup__screen .helium-content {
  max-width: 18em;
  padding: 1em 1.1em;
}

.macbook-mockup__screen .helium-card {
  border-radius: 0.9em;
}

.macbook-mockup__screen .helium-card__header {
  padding: 0.7em 1em;
}

.macbook-mockup__screen .helium-card__tag,
.macbook-mockup__screen .helium-card__status {
  font-size: 0.62em;
}

.macbook-mockup__screen .helium-card__body {
  padding: 1em;
}

.macbook-mockup__screen .helium-track-list {
  gap: 0.5em;
  margin-bottom: 1em;
}

.macbook-mockup__screen .helium-track {
  padding: 0.55em 0.75em;
  font-size: 0.8em;
  border-radius: 0.45em;
}

.macbook-mockup__screen .helium-track__status {
  font-size: 0.85em;
}

.macbook-mockup__screen .helium-btn {
  padding: 0.75em;
  font-size: 0.85em;
  border-radius: 0.55em;
}

.macbook-mockup__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

.hero--product .hero__copy {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.hero--product .hero__sub {
  max-width: 650px;
  margin-inline: auto;
}

.hero--product .hero__cta {
  justify-content: center;
}

.hero--product .compat {
  text-align: center;
}

.macbook__name {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.macbook__content {
  height: 620px;
  background: var(--surface);
  overflow: hidden;
}

/* Helium UI inside MacBook */
.helium-ui {
  height: 100%;
  display: flex;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Helvetica, Arial, sans-serif;
  color: var(--text);
}

.helium-sidebar {
  width: 210px;
  flex: none;
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.helium-logo {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.helium-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 8px;
}

.helium-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.helium-nav__item:hover {
  background: var(--chip-bg);
  color: var(--text-2);
}

.helium-nav__item--active {
  background: var(--accent);
  color: var(--accent-contrast);
}

.helium-nav__item--active .helium-nav__name {
  color: var(--accent-contrast);
}

.helium-main {
  flex: 1;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.helium-content {
  width: 100%;
  max-width: 320px;
  padding: 24px;
}

.helium-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.helium-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.helium-card__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.helium-card__status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-3);
}

.helium-card__body {
  padding: 16px;
}

.helium-track-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.helium-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--chip-bg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-2);
}

.helium-track--active {
  background: var(--accent-soft);
  color: var(--text);
}

.helium-track__status {
  font-size: 0.75rem;
}

.helium-track--active .helium-track__status {
  color: var(--accent);
}

.helium-btn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur) var(--ease), filter var(--dur) var(--ease);
}

.helium-btn:hover {
  filter: brightness(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .macbook__frame {
    transition: none !important;
  }
  .helium-nav__item {
    transition: none !important;
  }
  .helium-btn {
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 1080px) {
  .hero--helium .hero__inner {
    grid-template-columns: 1fr;
    gap: clamp(32px, 6vw, 72px);
  }

  .hero--helium .hero__copy {
    max-width: none;
    text-align: center;
  }

  .hero--helium .btn-row {
    justify-content: center;
  }

  .hero--helium .compat {
    justify-content: center;
  }

  .macbook {
    max-width: 420px;
  }

  .helium-content {
    max-width: none;
    padding: 16px;
  }

  .helium-sidebar {
    width: 160px;
  }
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-bottom: 1px solid var(--line);
}

.spec-strip__item {
  padding: clamp(20px, 2.6vw, 30px) clamp(16px, 2.4vw, 28px);
  border-right: 1px solid var(--line);
}

.spec-strip__item:last-child {
  border-right: 0;
}

.spec-strip__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}

.spec-strip__value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-card {
  padding: clamp(22px, 3vw, 32px) clamp(20px, 2.6vw, 30px) clamp(22px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--line);
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.feature-card__icon svg {
  width: 16px;
  height: 16px;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.92rem;
  max-width: 40ch;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.split h2 {
  margin-bottom: 1rem;
}

.split p + p {
  margin-top: 1rem;
}

.definition-list {
  border-top: 1px solid var(--line);
}

.definition-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) 1fr;
  gap: 16px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.definition-list dt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
}

.definition-list dd {
  font-size: 0.92rem;
  color: var(--text-2);
}

.endorsement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

.endorsement .brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 0.55rem;
}

.endorsement strong {
  color: var(--text-2);
  font-weight: 600;
}

.pricing-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: clamp(56px, 8vw, 96px);
}

.pricing-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.pricing-band h2 {
  margin-bottom: 0.75rem;
}

.pricing-band p {
  max-width: 48ch;
}

/* Helium launch switch — one attribute on <html> flips every CTA.
   "beta" hides the buy links; "live" hides the beta ones. */
html[data-helium-mode="beta"] [data-live-only],
html[data-helium-mode="live"] [data-beta-only] {
  display: none !important;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 1rem;
}

.price__amount {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
}

.price__suffix {
  font-size: 0.85rem;
  color: var(--text-2);
}

/* -------------------------------------------------------------------------
   12. Checkout
   ---------------------------------------------------------------------- */

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(48px, 7vw, 88px);
}

.checkout h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.checkout__lead {
  margin-bottom: 2rem;
  max-width: 52ch;
}

.checkout__steps {
  border-top: 1px solid var(--line);
  counter-reset: step;
}

.checkout__step {
  position: relative;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 16px;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.checkout__step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--accent-ink);
}

.checkout__step h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.checkout__step p {
  font-size: 0.92rem;
}

.checkout__step p + p {
  margin-top: 0.6rem;
}

.summary-card {
  position: sticky;
  top: 96px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.summary-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.summary-card__title {
  font-size: 1rem;
  font-weight: 600;
}

.summary-card__sub {
  font-size: 0.78rem;
  color: var(--text-3);
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: var(--text-2);
}

.summary-row--total {
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.summary-card .btn {
  margin-top: 1.5rem;
}

.summary-card__note {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-3);
  text-align: center;
}

/* Helium checkout — keep the horizontal two-column layout but drop every
   divider line (per request) and keep it compact so it fits without scrolling. */
.checkout--clean {
  padding-block: clamp(32px, 5vw, 72px);
}

.checkout--clean .checkout__steps {
  border-top: 0;
}

.checkout--clean .checkout__step {
  border-bottom: 0;
  padding: 0 0 clamp(16px, 2vw, 24px);
}

.checkout--clean .checkout__step:last-child {
  padding-bottom: 0;
}

.checkout--clean .summary-card {
  position: static;
}

.checkout--clean .summary-card__head {
  border-bottom: 0;
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
}

.checkout--clean .summary-row--total {
  border-top: 0;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
}

/* Razorpay Checkout is light-only. When the page uses color-scheme: dark,
   the browser forces an opaque white canvas onto the iframe, hiding the
   site behind it. Pin the iframe to light so the backdrop stays transparent. */
.razorpay-container,
iframe.razorpay-checkout-frame {
  color-scheme: light !important;
}

/* Checkout form — drives the worker order/verify flow */
.summary-card [hidden] {
  display: none !important;
}

.buy-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.buy-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.buy-field {
  display: grid;
  gap: 0.3rem;
}

.buy-field > span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.buy-field input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.buy-field input::placeholder {
  color: var(--text-3);
}

.buy-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.buy-field input.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.buy-form .btn {
  margin-top: 0.25rem;
}

.buy-form .btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.buy-status {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-2);
}

.buy-status--muted {
  color: var(--text-3);
}

.theme-light .buy-status--error {
  color: #b42318;
}

.theme-dark .buy-status--error {
  color: #fca5a5;
}

.buy-done {
  margin-top: 1.1rem;
}

.buy-done__title {
  font-weight: 600;
}

.buy-done__text {
  margin: 0.2rem 0 0.8rem;
  font-size: 0.9rem;
  color: var(--text-2);
}

.buy-test {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.buy-test__btn {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  font-size: 0.74rem;
  color: var(--text-3);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.buy-test__btn:hover {
  color: var(--text);
}

.buy-test__btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.buy-test__state {
  font-size: 0.74rem;
  color: var(--text-3);
}

/* Amount presets for LM-1 donation */
.amount-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.preset-btn {
  flex: 1;
  min-width: 60px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.preset-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.preset-btn.preset-btn--active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
}

@media (max-width: 480px) {
  .preset-btn {
    flex: 1 1 calc(50% - 4px);
  }
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.12em 0.45em;
  border-radius: var(--radius-xs);
  background: var(--chip-bg);
  border: 1px solid var(--line);
  color: var(--text);
  white-space: nowrap;
}

.callout {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-xs);
  background: var(--chip-bg);
  font-size: 0.9rem;
  color: var(--text-2);
}

.callout strong {
  color: var(--text);
}

/* -------------------------------------------------------------------------
   13. Prose / legal pages
   ---------------------------------------------------------------------- */

.prose-wrap {
  padding-block: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.prose-aside {
  position: sticky;
  top: 96px;
  font-size: 0.82rem;
  color: var(--text-3);
}

.prose-aside dl {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.prose-aside dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.prose-aside dt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prose-aside dd {
  color: var(--text-2);
  text-align: right;
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.prose p + p {
  margin-top: 1rem;
}

.prose ul {
  margin: 1rem 0;
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-2);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-ink);
}

.prose a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose .updated {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2rem;
}

/* -------------------------------------------------------------------------
   14. FAQ / support
   ---------------------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 1.15rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-3);
  transition: transform var(--dur) var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > div {
  padding-bottom: 1.25rem;
  max-width: 68ch;
  font-size: 0.93rem;
  color: var(--text-2);
}

.faq details > div p + p {
  margin-top: 0.75rem;
}

.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.support-card {
  padding: clamp(22px, 3vw, 30px) clamp(20px, 2.6vw, 28px);
  border-right: 1px solid var(--line);
}

.support-card:last-child {
  border-right: 0;
}

.support-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.support-card p {
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.support-card a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-ink);
}

/* -------------------------------------------------------------------------
   15. Changelog
   ---------------------------------------------------------------------- */

.log {
  border-top: 1px solid var(--line);
}

.log-entry {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}

.log-entry__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.9;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.log-entry__meta strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.log-entry h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.log-entry ul {
  margin-top: 0.75rem;
}

.log-entry ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  font-size: 0.93rem;
  color: var(--text-2);
}

.log-entry ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* -------------------------------------------------------------------------
   16. Footer
   ---------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 72px) clamp(28px, 4vw, 40px);
  background: var(--bg);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: clamp(32px, 6vw, 80px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 32ch;
  font-size: 0.88rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-cols h4 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}

.footer-cols li + li {
  margin-top: 0.6rem;
}

.footer-cols a {
  font-size: 0.88rem;
  color: var(--text-2);
  transition: color var(--dur) var(--ease);
}

.footer-cols a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--text-3);
}

.footer-bottom p {
  color: inherit;
  font-size: inherit;
}

/* -------------------------------------------------------------------------
   17. Reveal animation
   ---------------------------------------------------------------------- */

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------------------------------
   18. Utilities
   ---------------------------------------------------------------------- */

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.muted {
  color: var(--text-3);
}

.accent-text {
  color: var(--accent-ink);
}

.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;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  border-radius: var(--radius-xs);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  top: 72px;
}

/* -------------------------------------------------------------------------
   19. Responsive
   ---------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .showcase__grid,
  .product-hero__inner,
  .split,
  .checkout,
  .prose-wrap,
  .principles,
  .philosophy__principles {
    grid-template-columns: 1fr;
  }

  .showcase--reverse .showcase__copy,
  .showcase--reverse .showcase__visual {
    order: 0;
  }

  .showcase__copy {
    max-width: 640px;
    order: 2;
  }

  .showcase__visual {
    order: 1;
  }

  .product-hero__copy {
    max-width: 640px;
  }

  .summary-card {
    position: static;
  }

  .prose-aside {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 28px;
  }

  .prose-aside dl {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin-top: 0;
    border-top: 0;
  }

  .prose-aside dl > div {
    gap: 8px;
    padding: 0;
    border-bottom: 0;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms var(--ease), transform 200ms var(--ease),
      visibility 200ms;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links a {
    padding: 0.85rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }

  .header-actions {
    margin-left: 0;
  }

  .header-inner {
    justify-content: space-between;
  }

  .nav-links + .header-actions {
    order: 3;
  }

  .product-row {
    grid-template-columns: 2.25rem minmax(0, 1fr) 2.5rem;
    gap: 16px;
    align-items: start;
  }

  .product-row__meta {
    display: none;
  }

  .product-row__arrow {
    margin-top: 4px;
  }

  .principle {
    border-right: 0;
    padding-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.5rem;
  }

  .principle:last-child {
    border-bottom: 0;
  }

  .pricing-band__inner {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero__meta li {
    flex: none;
    padding: 0.8rem 0.5rem;
    text-align: center;
    white-space: nowrap;
  }

  .hero__meta li + li::before {
    display: none;
  }

  .hero__meta li:nth-child(2n) {
    border-left: 1px solid var(--line);
  }

  .hero__meta li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .product-row {
    grid-template-columns: minmax(0, 1fr) 2.5rem;
  }

  .product-row__index {
    display: none;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
  }

  .log-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .definition-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .support-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .support-card:last-child {
    border-bottom: 0;
  }

  .btn {
    width: 100%;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero .btn-row,
  .product-hero .btn-row {
    align-items: stretch;
  }

  .checkout .btn,
  .summary-card .btn {
    width: 100%;
  }

  .keydeck__row {
    grid-template-columns: repeat(5, 1fr);
  }

  .keydeck__row:nth-child(3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------------------------------------------
   20. Helium product page — feature sections
   ---------------------------------------------------------------------- */

.feature-section {
  position: relative;
  padding-block: clamp(64px, 9vw, 120px);
  overflow: visible;
}

.feature-section:nth-of-type(even) {
  background: var(--bg-2);
}

.feature-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(32px, 6vw, 88px);
}

.feature-wrapper--reverse {
  grid-template-columns: 1fr 1fr;
}

.feature-copy {
  max-width: 540px;
}

.feature-number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
  display: block;
}

.feature-wrapper--reverse .feature-copy {
  order: 2;
}

.feature-wrapper--reverse .feature-visual {
  order: 1;
}

.feature-visual {
  position: relative;
}

.feature-visual .helium-mockup {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.feature-edition {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 0.5rem;
  display: block;
}

.feature-heading {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 1.15rem;
  color: var(--text);
}

.feature-desc {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--text-2);
  max-width: 44ch;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.feature-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.55rem 0;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.5;
  color: var(--text-2);
}

.feature-points li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  align-self: center;
  margin-top: 0;
}

/* -------------------------------------------------------------------------
   PLV product page
   ---------------------------------------------------------------------- */

.plv-hero .hero__visual {
  /* The keyboard is 2.1:1. 100vh of width equals ~48vh of height, so on a
     short laptop it stays inside the first screen instead of dominating it. */
  max-width: min(94vw, 1120px, 100vh);
  /* Pull the headline closer to the keyboard deck; the default 48px read as
     a gap once the copy below is only a headline and one button. */
  margin-bottom: clamp(20px, 2.4vw, 32px);
}

.plv-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: auto;
  min-height: calc(100vh - 58px);
  min-height: calc(100svh - 58px);
  padding-bottom: clamp(32px, 3vw, 48px);
}

.plv-hero .hero__cta {
  margin-top: 1.5rem;
}

/* The product shot carries its own window chrome and shadow, so the wrapper
   stays invisible — no white card around the transparent edges. */
.plv-hero-shot {
  background: transparent;
}

.plv-hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.plv-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

/* Plain rows on alternating bands — no card capsules. */
.plv-features-grid .feature-section {
  padding-block: clamp(20px, 2.4vw, 34px);
}

.plv-features-grid .feature-section:first-child {
  border-top: 1px solid var(--line);
}

.plv-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
  min-height: 88px;
}

@media (max-width: 860px) {
  .plv-features-grid {
    grid-template-columns: 1fr;
  }

  .plv-feature {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.plv-feature__head .feature-heading {
  margin-bottom: 0;
}

/* Compact the PLV feature rows — the full-size editorial headings made each
   row ~232px tall. Scoped so Helium keeps its larger feature type. */
.plv-features-grid .feature-heading {
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.plv-features-grid .feature-desc {
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.55;
  margin-bottom: 0;
}

/* PLV Key — modifier keycaps */
.plv-modkeys {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.plv-modkey {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
  box-shadow: 0 2px 0 var(--line);
}

.plv-feature__body .feature-desc {
  max-width: 62ch;
  margin-bottom: 0;
}

.plv-feature__body .feature-desc + .plv-daw-list {
  margin-top: 1.6rem;
}

.plv-daw-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

.plv-daw-list li {
  display: grid;
  grid-template-columns: minmax(9rem, 0.42fr) 1fr;
  gap: 1rem;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.55;
  color: var(--text-2);
}

.plv-daw-list strong {
  color: var(--text);
  font-weight: 600;
}

.plv-key {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.08em 0.4em;
  border-radius: var(--radius-xs);
  background: var(--chip-bg);
  border: 1px solid var(--line);
  color: var(--text);
}

.price__mrp {
  font-size: 0.95rem;
  color: var(--text-3);
  text-decoration: line-through;
  margin-right: 0.5rem;
}

/* PLV DAW icons — same-sized circular icons */
.plv-daw-icons {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
  padding: 0;
  justify-content: center;
}

.plv-daw-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100px;
  color: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.plv-daw-icon:hover {
  transform: translateY(-4px);
}

.plv-daw-icon svg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.plv-daw-icon span {
  font-size: 0.82rem;
  color: var(--text-2);
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 860px) {
  .plv-feature {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .plv-daw-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .plv-daw-icons {
    gap: 0.75rem;
  }

  .plv-daw-icon {
    width: 80px;
  }

  .plv-daw-icon svg {
    width: 48px;
    height: 48px;
  }
}

.finder-demo {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.finder-visual .helium-mockup {
  max-width: 560px;
  margin-inline: auto;
}

/* Helium mockup — reusable */
.helium-mockup {
  position: relative;
  background: var(--bg-2);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.helium-mockup__frame {
  background: var(--surface-2);
  border-radius: 18px;
  overflow: hidden;
}

/* Video-driven feature mockups — keep the existing window frame, fill the
   display area with the supplied recording (all clips are 1080×1350). */
.helium-mockup__screen--video {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 1350;
  overflow: hidden;
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Still frame painted behind each clip. It shows before the video loads, if
   the poster attribute is missing/stale, or when autoplay is refused. */
#single .helium-mockup__screen--video { background-image: url("../assets/videos/single-mode-poster.jpg"); }
#album .helium-mockup__screen--video { background-image: url("../assets/videos/album-mode-poster.jpg"); }
#quick .helium-mockup__screen--video { background-image: url("../assets/videos/quick-create-single-poster.jpg"); }
#quick-single .helium-mockup__screen--video { background-image: url("../assets/videos/quick-create-single-poster.jpg"); }
#quick-multiple .helium-mockup__screen--video { background-image: url("../assets/videos/quick-create-multiple-poster.jpg"); }
#finder .helium-mockup__screen--video { background-image: url("../assets/videos/finder-create-poster.jpg"); }
#recents .helium-mockup__screen--video { background-image: url("../assets/videos/recents-poster.jpg"); }
#analytics .helium-mockup__screen--video { background-image: url("../assets/videos/analytics-poster.jpg"); }
#settings .helium-mockup__screen--video { background-image: url("../assets/videos/settings-poster.jpg"); }

/* Native still frame. Sits under the video so the mockup always shows the
   interface, even if the clip never loads or JavaScript never runs. */
.helium-mockup__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.helium-mockup__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  background: transparent;
  pointer-events: none;
  z-index: 1;
}

/* With JS available, keep the video layer out of the way until it actually
   has frames. Some browsers paint an empty video surface black, which would
   otherwise hide the still underneath. Without JS the element stays visible
   and its native controls are the fallback. */
.js .helium-mockup__video {
  visibility: hidden;
}

.js .helium-mockup__video.is-playing {
  visibility: visible;
}

/* Large centre play button shown whenever a clip is paused, so a refused
   autoplay is always obvious and one tap away from starting. */
.helium-mockup__bigplay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease, background 180ms ease;
}

.helium-mockup__screen--video.is-paused .helium-mockup__bigplay {
  opacity: 1;
  visibility: visible;
}

.helium-mockup__bigplay:hover {
  background: rgba(0, 0, 0, 0.78);
}

.helium-mockup__bigplay svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

/* Minimal video controls overlay */
.helium-mockup__controls {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 8px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
  z-index: 3;
}

.helium-mockup__screen--video:hover .helium-mockup__controls,
.helium-mockup__screen--video:focus-within .helium-mockup__controls,
.helium-mockup__screen--video.is-paused .helium-mockup__controls {
  opacity: 1;
  pointer-events: auto;
}

/* When a clip is paused (autoplay refused, Low Power Mode, or a tap) the
   controls stay visible so playback can always be started again. */
.helium-mockup__screen--video {
  cursor: pointer;
}

.helium-mockup__controls-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.helium-mockup__play {
  flex: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
  cursor: pointer;
  transition: background 120ms ease, transform 80ms ease;
}

.helium-mockup__play:hover {
  background: #fff;
  transform: scale(1.05);
}

.helium-mockup__play:active {
  transform: scale(0.95);
}

.helium-mockup__play:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.helium-mockup__play .icon-play,
.helium-mockup__play .icon-pause {
  width: 14px;
  height: 14px;
  display: none;
}

.helium-mockup__play[aria-label="Play"] .icon-play,
.helium-mockup__play[aria-label="Pause"] .icon-pause {
  display: block;
}

.helium-mockup__progress {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.helium-mockup__progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: var(--accent);
  transition: width 100ms linear;
}

.helium-mockup__progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 120ms ease, transform 120ms ease;
  pointer-events: none;
}

.helium-mockup__progress:hover .helium-mockup__progress-handle,
.helium-mockup__progress:focus .helium-mockup__progress-handle {
  opacity: 1;
  transform: scale(1);
}

.helium-mockup__progress:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.helium-mockup__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #1a1a1a;
}

.helium-mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.helium-mockup__dot--red { background: #ff5f56; }
.helium-mockup__dot--yellow { background: #ffbd2e; }
.helium-mockup__dot--green { background: #27c93f; }

.helium-mockup__name {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.helium-mockup__body {
  height: 100%;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.helium-mockup__content {
  width: 100%;
  max-width: 320px;
  padding: 24px;
}

.placeholder-note {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
  margin-top: 1rem;
}

@media (max-width: 1080px) {
  .feature-wrapper,
  .feature-wrapper--reverse {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 56px);
  }

  /* On mobile, always show the video/visual first, then the text points */
  .feature-wrapper .feature-visual,
  .feature-wrapper--reverse .feature-visual {
    order: -1;
  }
  .feature-wrapper .feature-copy,
  .feature-wrapper--reverse .feature-copy {
    order: 1;
  }

  .feature-copy {
    max-width: none;
    text-align: left;
  }

  .helium-mockup {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .helium-mockup {
    max-width: 100%;
  }

  .helium-mockup__content {
    max-width: none;
    padding: 16px;
  }

  .helium-sidebar {
    width: 140px;
  }

  .helium-nav__item {
    font-size: 0.8rem;
    padding: 6px 8px;
    gap: 8px;
  }
}

/* -------------------------------------------------------------------------
   Beta invite modal
   ---------------------------------------------------------------------- */

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 32px);
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal__card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--text-2);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.modal__close:hover {
  background: var(--surface-2);
  color: var(--text);
}

.modal__eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.modal h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.1;
}

.modal p {
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.65;
}

.modal p strong {
  color: var(--text);
}

.modal .btn {
  width: 100%;
  margin-top: 1.5rem;
}

.modal__note {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--text-3);
}



/* -------------------------------------------------------------------------
   LM-1 product shot
   The meter window is tall and narrow, so size it by height and let it float
   instead of stretching it across the full column.
   ---------------------------------------------------------------------- */

.lm1-hero-shot {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Homepage showcase sits beside a shorter copy block — keep it in proportion. */
.showcase__visual .showcase__lm1 {
  height: 100%;
  min-height: 320px;
}

.showcase__visual .showcase__lm1 img {
  display: block;
  width: auto;
  height: clamp(300px, 30vw, 450px);
}

@media (max-width: 900px) {
  .showcase__visual .showcase__lm1 {
    min-height: 0;
  }

  .showcase__visual .showcase__lm1 img {
    height: clamp(280px, 52vw, 400px);
  }
}

/* ========================================================================
   LM-1 PRODUCT PAGE — Hero & Features
   Scoped to .app-lm1 so it doesn't leak to other pages.
   ====================================================================== */

.app-lm1 .lm1-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 58px);
  padding: clamp(28px, 4vh, 48px) 0 clamp(24px, 3.5vh, 40px);
}

.app-lm1 .lm1-hero__inner {
  width: min(100%, 1160px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(48px, 7vw, 88px);
}

.app-lm1 .lm1-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(500px, 40vw);
  height: min(500px, 55vh);
  margin: 0 auto;
  overflow: hidden;
}

.app-lm1 .lm1-hero__image {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-lm1 .lm1-hero__image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.app-lm1 .lm1-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.app-lm1 .lm1-hero__copy h1 {
  margin: 0;
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 600;
  color: var(--text);
}

.app-lm1 .lm1-hero__sub {
  margin: 14px 0 0;
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 560px;
}

/* Simple points under the headline — larger, generous spacing. */
.app-lm1 .lm1-hero__points {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  max-width: 620px;
}

.app-lm1 .lm1-hero__points li {
  position: relative;
  padding-left: 24px;
  font-size: clamp(1.1rem, 1.3vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-2);
}

.app-lm1 .lm1-hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* MOBILE */

@media (max-width: 700px) {
  .app-lm1 .lm1-hero {
    min-height: 0;
    padding: 40px 0 56px;
  }

  .app-lm1 .lm1-hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .app-lm1 .lm1-hero__image {
    width: 100%;
  }

  .app-lm1 .lm1-hero__copy {
    align-items: center;
  }

  .app-lm1 .lm1-hero__copy h1 {
    font-size: clamp(42px, 11vw, 56px);
  }

  .app-lm1 .lm1-hero__points {
    width: 100%;
    max-width: 480px;
    margin-top: 28px;
    text-align: left;
    gap: 12px;
  }

  .app-lm1 .lm1-hero__points li {
    font-size: clamp(1rem, 3.8vw, 1.1rem);
    line-height: 1.55;
    padding-left: 20px;
  }

  .app-lm1 .lm1-hero__points li::before {
    width: 6px;
    height: 6px;
    top: 0.5em;
  }
}

/* -------------------------------------------------------------------------
   Products catalogue
   Every rule below is scoped to .products-page so the rest of the site is
   untouched. Product cards are uniform: adding one is a copy/paste of a
   single card block, and the grid reflows on its own.
   ---------------------------------------------------------------------- */

.products-page {
  width: 100%;
}

/* Intro */

.products-page .products-hero {
  padding: clamp(48px, 7vw, 80px) 24px clamp(32px, 5vw, 56px);
  text-align: center;
}

.products-page .products-hero__inner {
  /* Wide enough for the nowrap headline at 72px (~854px). A narrower box
     makes the overflowing text sit right of the grid centre. */
  max-width: 1040px;
  margin-inline: auto;
}

.products-page .products-hero__eyebrow {
  display: none;
}

.products-page .products-hero h1 {
  margin: 0;
  font-size: clamp(4rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.products-page .products-hero__description {
  display: none;
}

/* Catalogue */

.products-page .products-catalogue {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  padding-bottom: clamp(72px, 9vw, 120px);
}

.products-page .products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Card */

.products-page .product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 220ms var(--ease),
    border-color 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.products-page .product-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}

.products-page .product-card:focus-visible {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  filter: none;
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

/* Visual */

.products-page .product-card__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 4;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(120% 95% at 50% 0%, var(--surface-2) 0%, var(--bg-2) 78%);
}

/* Every shot keeps its full interface visible. The band is 5/4 and the three
   assets are portrait, wide and very tall, so each one is letterboxed to the
   largest size that still shows every control. */
.products-page .product-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(23, 22, 15, 0.16));
  transition: transform 350ms var(--ease);
}

.theme-dark .products-page .product-card__visual img {
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
}

/* LM-1 fills the height edge to edge; a little breathing room top and bottom
   keeps it off the band's border. */
.products-page .product-card__visual--lm1 {
  padding-block: 14px;
}

/* Helium is portrait in a 5/4 band — give it vertical breathing room so the
   window doesn't kiss the top/bottom edge of the visual area. */
.products-page .product-card__visual--helium {
  padding-block: 18px;
}

.products-page .product-card:hover .product-card__visual img {
  transform: scale(1.025);
}

/* Content */

.products-page .product-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  padding: 22px 22px 24px;
}

/* Status badges removed - no longer used */

.products-page .product-card h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  text-align: center;
}

.products-page .product-card p {
  margin: 6px 0 20px;
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.6;
  text-align: center;
}

.products-page .product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  transition: color 200ms var(--ease);
  text-align: center;
}

.products-page .product-card__link span {
  transition: transform 200ms var(--ease);
}

.products-page .product-card:hover .product-card__link {
  color: var(--accent-ink);
}

.products-page .product-card:hover .product-card__link span {
  transform: translate(3px, -3px);
}

/* Tablet */

@media (max-width: 900px) {
  .products-page .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

/* Mobile */

@media (max-width: 620px) {
  .products-page .products-hero {
    padding: 64px 20px 40px;
  }

  /* Below this width a single line would overflow; let it wrap cleanly. */
  @media (max-width: 380px) {
    .products-page .products-hero h1 {
      white-space: normal;
    }
  }

  .products-page .products-hero h1 {
    /* Sized so the nowrap headline still fits a 390px phone. */
    font-size: clamp(1.7rem, 7.2vw, 2rem);
  }

  .products-page .products-hero__description {
    font-size: 0.94rem;
  }

  .products-page .products-catalogue {
    width: calc(100% - 32px);
    padding-bottom: 72px;
  }

  .products-page .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .products-page .product-card__content {
    padding: 20px;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .products-page .product-card,
  .products-page .product-card__visual img,
  .products-page .product-card__link,
  .products-page .product-card__link span {
    transition: none;
  }

  .products-page .product-card:hover {
    transform: none;
  }

  .products-page .product-card:hover .product-card__visual img {
    transform: none;
  }
}
