/* Gruuvr marketing site — editorial instrument aesthetic (Gruuvr Dark palette) */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --scroll-progress: 0;
  --bg-1-opacity: 1;
  --bg-2-opacity: 0;
  --bg-3-opacity: 0;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --bg-app: #141718;
  --bg-editorial: #1b1e20;
  --bg-editorial-deep: #141718;
  --bg-panel: #1b1e20;
  --bg-panel-secondary: #25292d;
  --border-panel: #3a3f44;
  --border-subtle: rgba(255, 255, 255, 0.08);

  --text-primary: #d8dce0;
  --text-secondary: #a8aaa4;
  --text-muted: #7a7d80;

  --kinkajou-pink: #ffddc7;
  --neon-cyan: #95a3d2;
  --neon-cyan-low: #7a85a7;
  --active-cyan: #5d7ca5;

  --radius-panel: 2px;
  --radius-control: 2px;
  --header-h: 3.75rem;
  --container: min(1140px, calc(100% - 2.5rem));
}

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

/* Product visibility flags must win over component display declarations. */
[data-gruuvr-public][hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ——— Typography ——— */
h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.mono-label,
.tech-meta,
.hero-eyebrow,
.section-eyebrow,
.proof-mark__text,
.stage-num,
.credential-rail li,
.download-meta,
.compat-line {
  font-family: var(--font-mono);
}

.brand-wordmark {
  font-family: var(--font-mono);
}

.section-eyebrow,
.hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon-cyan-low);
  margin: 0 0 1rem;
}

.section-eyebrow--pink {
  color: var(--kinkajou-pink);
}

.editorial-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.editorial-body {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 1rem;
  max-width: 38rem;
}

.editorial-body:last-child {
  margin-bottom: 0;
}

a {
  color: var(--neon-cyan-low);
  text-decoration: none;
}

a:hover {
  color: var(--neon-cyan);
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  background: rgba(13, 16, 18, 0.96);
  padding-inline: max(1.25rem, env(safe-area-inset-left, 0px)) max(1.25rem, env(safe-area-inset-right, 0px));
}

.site-header .container.brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-logo {
  width: 94px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(122, 133, 167, 0.28));
}

.brand-wordmark {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-byline {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kinkajou-pink);
  opacity: 0.85;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-control);
  background: var(--bg-panel);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--active-cyan);
  outline-offset: 2px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  padding: 0.4rem 0.65rem;
  border-radius: 0;
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: transparent;
}

.nav-link.is-active {
  color: var(--text-primary);
  background: transparent;
}

@media (max-width: 959px) {
  .brand-byline {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1rem;
    background: #0d1012;
    border-bottom: 1px solid var(--border-subtle);
    gap: 0.25rem;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav .nav-link {
    padding: 0.75rem 0.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ——— CTAs ——— */
.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.text-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}

.text-link:hover {
  color: var(--neon-cyan);
  text-decoration: none;
}

.text-link--secondary {
  border-bottom: 1px solid rgba(122, 133, 167, 0.5);
}

.download-disclosure {
  max-width: 42rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.mac-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 1.35rem 0.72rem 1.1rem;
  border: none;
  border-radius: var(--radius-control);
  background: #202326;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, background 0.15s ease;
}

.mac-download-btn:hover {
  background: #252525;
  transform: translateY(-1px);
}

.mac-download-btn:focus-visible {
  outline: 2px solid var(--active-cyan);
  outline-offset: 3px;
}

.mac-download-btn.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.mac-download-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.mac-download-btn .apple-mark {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.mac-download-btn .btn-sublabel {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 0.08rem;
}

.purchase-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.35rem;
  border: 1px solid rgba(122, 133, 167, 0.72);
  border-radius: var(--radius-control);
  background: rgba(93, 124, 165, 0.12);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.purchase-btn:hover {
  background: rgba(93, 124, 165, 0.2);
  border-color: rgba(149, 163, 210, 0.8);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.purchase-btn:focus-visible {
  outline: 2px solid var(--kinkajou-pink);
  outline-offset: 3px;
}

.purchase-btn .btn-sublabel {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.08rem;
}

.purchase-btn[hidden] {
  display: none;
}

.purchase-btn--soon,
.purchase-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

.purchase-btn--soon:hover,
.purchase-btn[aria-disabled="true"]:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: none;
}

.tech-meta,
.compat-line,
.hero-proof,
.download-meta {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0;
}

.hero-proof {
  margin-bottom: 0.85rem;
  max-width: 28rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.compat-line {
  text-transform: none;
  letter-spacing: 0.02em;
}

/* ——— Product hero typography ——— */
.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 1.75rem;
  max-width: 32rem;
}

.app-showcase {
  margin: 0;
}

.app-showcase-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.app-showcase-caption span:last-child {
  color: var(--kinkajou-pink);
  text-align: right;
}

.app-showcase-frame {
  border-radius: var(--radius-panel);
  border: 1px solid var(--border-panel);
  overflow: hidden;
  background: var(--bg-panel);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.25);
  will-change: transform;
}

.window-chrome {
  display: flex;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(180deg, #25292d, #1e2124);
  border-bottom: 1px solid var(--border-panel);
}

.window-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3f44;
}

.window-chrome span:nth-child(1) { background: #5c6066; }
.window-chrome span:nth-child(2) { background: #4a4f55; }

.app-showcase-images {
  position: relative;
  line-height: 0;
}

.app-showcase-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ——— Editorial sections ——— */
.editorial-flow {
  background: transparent;
  position: relative;
  z-index: 3;
}

.editorial-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-editorial);
}

.editorial-section--accent-cyan {
  --section-accent: var(--neon-cyan-low);
}

.editorial-section--accent-pink {
  --section-accent: var(--kinkajou-pink);
}

.section-intro {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* Proof strip */
.proof-strip {
  background: var(--bg-editorial-deep);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  border-top: none;
}

.proof-strip .section-eyebrow {
  color: var(--kinkajou-pink);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
}

.proof-mark {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.proof-mark__slot {
  aspect-ratio: 16 / 9;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 0;
}

.proof-mark__text {
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.proof-mark__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  display: none;
}

.proof-mark.has-logo .proof-mark__text {
  display: none;
}

.proof-mark.has-logo .proof-mark__img {
  display: block;
}

.proof-mark p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.proof-disclaimer {
  margin: 2.5rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 52rem;
}

/* Product + sequencer */
.split-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.sequencer-demo {
  --seq-cols: 16;
  position: relative;
  padding: 1.25rem 1rem 1rem;
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-panel);
  background: rgba(30, 33, 36, 0.6);
  overflow: hidden;
}

.sequencer-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: calc(100% / var(--seq-cols)) 1.5rem;
  pointer-events: none;
}

.sequencer-rows {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sequencer-row {
  display: grid;
  grid-template-columns: repeat(var(--seq-cols), 1fr);
  align-items: end;
  height: 1.5rem;
  gap: 2px;
}

.seq-note {
  justify-self: center;
  width: 10px;
  border-radius: 2px;
  background: var(--neon-cyan-low);
  opacity: 0.85;
}

.seq-note--hat { height: 0.45rem; background: rgba(122, 133, 167, 0.55); }
.seq-note--snare { height: 0.75rem; }
.seq-note--kick { height: 1rem; background: var(--active-cyan); }

.sequencer-demo.is-running .seq-note--rigid {
  animation: seq-rigid 4s ease-in-out infinite;
}

.sequencer-demo.is-running .seq-note--groove {
  animation: seq-groove 4s ease-in-out infinite;
}

.sequencer-demo.is-running .seq-velocity {
  animation: seq-velocity 4s ease-in-out infinite;
}

.sequencer-playhead {
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 1px;
  background: var(--kinkajou-pink);
  opacity: 0.7;
  z-index: 2;
  left: 0;
}

.sequencer-demo.is-running .sequencer-playhead {
  animation: seq-playhead 4s linear infinite;
}

.sequencer-demo.is-static .seq-note--groove {
  opacity: 1;
}

.sequencer-demo.is-static .seq-note--rigid {
  opacity: 0.35;
}

@keyframes seq-rigid {
  0%, 35% { transform: translateX(0); opacity: 0.9; }
  50%, 100% { transform: translateX(0); opacity: 0.25; }
}

@keyframes seq-groove {
  0%, 35% { transform: translateX(0); opacity: 0.2; }
  50%, 100% { transform: translateX(var(--groove-offset, 6px)); opacity: 0.95; }
}

@keyframes seq-velocity {
  0%, 35% { transform: scaleY(1); }
  50%, 100% { transform: scaleY(var(--vel-scale, 1.35)); }
}

@keyframes seq-playhead {
  0% { left: 0; }
  100% { left: calc(100% - 2px); }
}

/* How it works */
.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  margin-top: 2.5rem;
}

.stages::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan-low), transparent);
  opacity: 0.45;
}

.stage {
  padding: 0 1.25rem 0 0;
}

.stage-num {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--neon-cyan-low);
  margin-bottom: 0.75rem;
}

.stage h3 {
  font-size: 1.35rem;
  margin: 0 0 0.65rem;
}

.stage p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 18rem;
}

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--border-subtle);
}

.feature-row:first-child {
  border-top: none;
  padding-top: 0;
}

.feature-row--reverse .feature-row__visual {
  order: -1;
}

.feature-row h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 1rem;
}

.feature-row p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 28rem;
}

.feature-visual {
  position: relative;
  border-radius: var(--radius-panel);
  overflow: hidden;
  border: 1px solid var(--border-panel);
  background: var(--bg-panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.feature-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-visual--crop-tight img {
  object-fit: cover;
  object-position: 55% 35%;
  max-height: 22rem;
}

.feature-visual--crop-wide img {
  object-fit: cover;
  object-position: center top;
  max-height: 20rem;
}

.feature-visual--sync::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(93, 124, 165, 0.4);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(93, 124, 165, 0.12);
}

.sync-pulse {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--neon-cyan-low);
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(93, 124, 165, 0.5);
  border-radius: 4px;
  background: rgba(8, 10, 14, 0.75);
}

.feature-theme-note {
  max-width: 52rem;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border-subtle);
  line-height: 1.65;
}

/* In the wild */
.credits-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2rem;
}

.credit-card {
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--border-subtle);
}

.credit-card--lead {
  grid-column: 1 / -1;
  border-top: none;
  padding-top: 0;
}

.credit-card__mark {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.credit-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  margin: 0 0 0.75rem;
}

.credit-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 36rem;
}

.credit-meta {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.credits-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Testimonials */
.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: 2rem;
}

.quote {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.quote--cyan {
  border-left: 2px solid rgba(93, 124, 165, 0.75);
  padding-left: 1.5rem;
}

.quote--pink {
  border-left: 2px solid rgba(255, 221, 199, 0.5);
  padding-left: 1.5rem;
}

.quote blockquote {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.quote cite {
  font-style: normal;
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.quote span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Founder story */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.credential-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border-panel);
}

.credential-rail li {
  padding: 0.85rem 0 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.credential-rail li span {
  display: block;
  color: var(--text-muted);
  font-size: 0.65rem;
  margin-top: 0.2rem;
}

.story-grid::before {
  content: none;
}

.story-aside {
  position: relative;
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    rgba(30, 33, 36, 0.5);
  background-size: 24px 24px;
  padding: 0.5rem 0;
}

.story-aside .credential-rail {
  border-left: none;
}

/* FAQ */
.faq-list {
  margin-top: 2rem;
  max-width: 42rem;
}

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

.faq-item summary {
  cursor: pointer;
  padding: 1.15rem 0;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--neon-cyan-low);
  font-family: var(--font-mono);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--active-cyan);
  outline-offset: 2px;
}

.faq-item p {
  margin: 0 0 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: linear-gradient(180deg, rgba(22, 24, 26, 0.82), rgba(14, 16, 18, 0.78));
}

.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 auto 1rem;
  max-width: 16ch;
}

.final-cta .editorial-body {
  margin-inline: auto;
  text-align: center;
}

.final-cta .cta-row {
  justify-content: center;
  margin-top: 1.5rem;
}

.final-cta .compat-line {
  margin-top: 1.25rem;
}

/* Footer */
.site-footer {
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  background: #0e1012;
}

.site-footer a {
  color: var(--kinkajou-pink);
}

/* ——— Download page ——— */
.download-main {
  flex: 1;
  padding: clamp(2.5rem, 6vw, 4rem) 0 4rem;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.download-intro h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.5rem;
}

.version-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.download-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 1.75rem;
  max-width: 32rem;
}

.download-lead strong {
  color: var(--text-primary);
}

.install-path {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.install-step {
  position: relative;
  padding: 1.25rem 0 1.25rem 3.5rem;
  border-top: 1px solid var(--border-subtle);
  counter-increment: step;
}

.install-step:first-child {
  border-top: none;
}

.install-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--neon-cyan-low);
}

.install-step strong {
  color: var(--text-primary);
}

.install-step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.download-aside {
  padding: 1.75rem;
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-panel);
  background: rgba(30, 33, 36, 0.5);
}

.download-aside h2 {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon-cyan-low);
  margin: 0 0 1rem;
}

.download-specs {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.download-specs li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.download-specs li:last-child {
  border-bottom: none;
}

.support-line {
  margin: 2rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ——— INSU AUDIO company homepage ——— */
.page-company {
  background: #0b1014;
}

.page-company .site-header {
  background: rgba(9, 13, 17, 0.97);
}

.company-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0;
  background:
    linear-gradient(98deg, rgba(5, 10, 15, 0.96) 0%, rgba(5, 10, 15, 0.77) 45%, rgba(5, 10, 15, 0.28) 100%),
    url("../img/kinkajou-studio.png") center / cover no-repeat;
}

.company-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 68%, #0c1217 100%);
}

.company-hero__content {
  position: relative;
  z-index: 1;
}

.company-hero h1 {
  max-width: 11ch;
  margin: 0 0 1.5rem;
  font-size: clamp(3.25rem, 7vw, 7rem);
  line-height: 0.95;
}

.company-hero__lead {
  max-width: 38rem;
  margin: 0 0 2rem;
  color: #c4c8ca;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.65;
}

.company-primary-btn {
  background: rgba(93, 124, 165, 0.18);
}

.company-hero__credit {
  position: absolute;
  z-index: 1;
  right: max(1.25rem, calc((100% - min(1140px, calc(100% - 2.5rem))) / 2));
  bottom: 1.4rem;
  margin: 0;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.company-story {
  background: #11171c;
}

.company-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 7vw, 6rem);
}

.company-practice {
  background: #0c1217;
}

.company-practice__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 7vw, 6rem);
}

/* ——— INSU parent brand and product navigation ——— */
.nav-products {
  position: relative;
}

.nav-products summary {
  list-style: none;
  cursor: pointer;
}

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

.nav-products summary::after {
  content: "⌄";
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--kinkajou-pink);
  transform: translateY(-0.1rem);
}

.nav-products[open] summary {
  color: var(--text-primary);
  background: transparent;
}

.product-menu {
  position: absolute;
  top: calc(100% + 1.1rem);
  right: 0;
  left: auto;
  width: 20rem;
  padding: 0.45rem 0;
  border: 0;
  border-radius: 0;
  background: #101315;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.58);
}

.product-menu__item {
  position: relative;
  display: block;
  padding: 0.85rem 1rem 0.85rem 1.25rem;
  border-left: 2px solid transparent;
  border-radius: 0;
  color: var(--text-primary);
}

.product-menu__item:hover {
  color: #fff;
}

.product-menu__item.is-current {
  color: var(--text-primary);
  border-left-color: var(--neon-cyan-low);
}

.product-menu__item span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-menu__item small {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.product-identity {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(122, 133, 167, 0.45);
  border-radius: 0;
  background: rgba(7, 12, 17, 0.72);
  backdrop-filter: blur(8px);
}

.product-identity__name,
.product-identity__type {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.product-identity__name {
  color: var(--kinkajou-pink);
  font-size: 0.75rem;
  letter-spacing: 0.13em;
}

.product-identity__type {
  color: var(--text-secondary);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

/* ——— Gruuvr product page ——— */
.page-gruuvr {
  overflow-x: hidden;
  background: #0b1117;
}

.page-gruuvr .site-header {
  background: rgba(8, 13, 18, 0.97);
}

.gruuvr-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: #0a1117;
}

.gruuvr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7, 12, 17, 0.98) 0%, rgba(7, 12, 17, 0.82) 50%, rgba(7, 12, 17, 0.42) 100%),
    url("../img/kinkajou-studio.png") center / cover no-repeat;
  opacity: 0.78;
}

.gruuvr-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(19rem, 0.88fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.gruuvr-hero h1 {
  max-width: 11ch;
  margin: 0 0 1.5rem;
  font-size: clamp(2.75rem, 6vw, 5.8rem);
  line-height: 0.98;
}

.gruuvr-hero .app-showcase {
  width: 100%;
  max-width: 36rem;
  justify-self: end;
}

/* ——— INSU RECORDR product page ——— */
.page-kasr {
  background: #0b1117;
}

.page-kasr .site-header {
  background: rgba(8, 13, 18, 0.97);
}

.kasr-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: #0a1117;
}

.kasr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7, 12, 17, 0.98) 0%, rgba(7, 12, 17, 0.82) 50%, rgba(7, 12, 17, 0.42) 100%),
    url("../img/kinkajou-studio.png") center / cover no-repeat;
  opacity: 0.78;
}

.kasr-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: end;
}

.kasr-mark {
  display: block;
  width: clamp(8rem, 16vw, 12rem);
  height: auto;
  margin: 0 0 1.5rem;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.35));
  opacity: 0.92;
}

.kasr-hero h1 {
  max-width: 11ch;
  margin: 0 0 1.5rem;
  font-size: clamp(2.75rem, 6vw, 5.8rem);
  line-height: 0.98;
}

.kasr-lead {
  max-width: 39rem;
  margin: 0 0 1.75rem;
  color: #c3c9cc;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.7;
}

.kasr-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--kinkajou-pink);
  box-shadow: 0 0 0 5px rgba(122, 133, 167, 0.14);
}

.kasr-principle {
  padding: 1.75rem;
  border: 1px solid rgba(122, 133, 167, 0.36);
  border-radius: var(--radius-panel);
  background: rgba(9, 15, 20, 0.68);
  backdrop-filter: blur(12px);
}

.kasr-principle .mono-label {
  margin: 0 0 1.25rem;
  color: var(--kinkajou-pink);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
}

.kasr-principle blockquote {
  margin: 0 0 1rem;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.kasr-principle > p:last-child {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.kasr-flow {
  background: #11171c;
}

.kasr-visual-section {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0;
  background: #0c1217;
  border-top: 1px solid rgba(93, 124, 165, 0.28);
  border-bottom: 1px solid rgba(93, 124, 165, 0.2);
}

.kasr-product-shot {
  margin: 0 auto;
}

.kasr-product-shot__frame {
  overflow: hidden;
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-panel);
  background: #121617;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

.kasr-product-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.kasr-product-shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kasr-product-shot figcaption span:last-child {
  color: #95a3d2;
}

.kasr-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 3.5rem;
}

.kasr-steps article {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(93, 124, 165, 0.5);
}

.kasr-steps span {
  font-family: var(--font-mono);
  color: var(--neon-cyan-low);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.kasr-steps h3 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1.35rem;
}

.kasr-steps p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.kasr-note {
  background: #0c1217;
  border-top-color: rgba(122, 133, 167, 0.3);
}

.kasr-back {
  display: inline-block;
  margin-left: 1.25rem;
}

.kasr-player-link {
  background: #101820;
  border-top-color: rgba(111, 198, 218, 0.2);
  border-bottom-color: rgba(111, 198, 218, 0.14);
}

/* ——— INSU SESSION product page ——— */
.page-player {
  overflow-x: hidden;
  background: #091116;
}

.page-player .site-header {
  background: rgba(7, 14, 18, 0.97);
}

.player-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(73, 68, 128, 0.22), transparent 36%),
    linear-gradient(118deg, #071116 0%, #0b171b 52%, #111221 100%);
}

.player-hero::before {
  content: "";
  position: absolute;
  width: min(48rem, 72vw);
  height: min(48rem, 72vw);
  right: -18rem;
  bottom: -30rem;
  border: 1px solid rgba(111, 198, 218, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 7rem rgba(111, 198, 218, 0.018),
    0 0 0 14rem rgba(125, 117, 207, 0.018);
}

.player-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.9fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: end;
}

.player-product-name {
  margin: 0 0 1.2rem;
  font-family: var(--font-mono);
  color: #6fc6da;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-mark {
  display: block;
  width: clamp(6rem, 12vw, 9rem);
  height: auto;
  margin: 0 0 1rem;
  opacity: 0.92;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.35));
}

.player-hero h1 {
  max-width: 10ch;
  margin: 0 0 1.5rem;
  font-size: clamp(3rem, 6.5vw, 6.3rem);
  line-height: 0.96;
}

.player-lead {
  max-width: 43rem;
  margin: 0 0 2rem;
  color: #bec9cd;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.72;
}

.player-lead a,
.player-cta .editorial-body a {
  color: #88cedd;
  border-bottom: 1px solid rgba(136, 206, 221, 0.45);
}

.player-primary-btn {
  border-color: rgba(111, 198, 218, 0.65);
  background: rgba(73, 151, 171, 0.18);
}

.player-access-note {
  max-width: 36rem;
  margin: 0;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.player-hero__principle {
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border: 1px solid rgba(111, 198, 218, 0.28);
  background: rgba(6, 15, 20, 0.68);
  backdrop-filter: blur(12px);
}

.player-hero__principle .mono-label {
  margin: 0 0 1.5rem;
  color: #88cedd;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
}

.player-hero__principle ol {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.player-hero__principle li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  column-gap: 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.player-hero__principle li:first-child {
  padding-top: 0;
  border-top: 0;
}

.player-hero__principle li > span {
  grid-row: span 2;
  font-family: var(--font-mono);
  color: #6fc6da;
  font-size: 0.67rem;
}

.player-hero__principle strong {
  font-size: 1rem;
}

.player-hero__principle small {
  margin-top: 0.25rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.player-visual-section {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0;
  border-top: 1px solid rgba(111, 198, 218, 0.22);
  border-bottom: 1px solid rgba(125, 117, 207, 0.18);
  background: #080d11;
}

.player-product-shot {
  margin: 0 auto;
}

.player-product-shot__frame {
  overflow: hidden;
  border: 1px solid rgba(133, 149, 157, 0.3);
  background: #0c1317;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.48);
}

.player-product-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.player-product-shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-product-shot figcaption span:last-child {
  color: #6fc6da;
}

.player-purpose {
  background: #10171b;
}

.player-capabilities {
  background: #0b1115;
  border-top-color: rgba(111, 198, 218, 0.16);
}

.player-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 3.5rem;
}

.player-capability-grid article {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(111, 198, 218, 0.42);
}

.player-capability-grid span {
  font-family: var(--font-mono);
  color: #6fc6da;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.player-capability-grid h3 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1.35rem;
}

.player-capability-grid p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.player-cta {
  background: #101820;
  border-top-color: rgba(111, 198, 218, 0.22);
}

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .split-editorial,
  .feature-row,
  .story-grid,
  .download-layout,
  .gruuvr-hero__grid,
  .kasr-hero__grid,
  .player-hero__grid,
  .company-story__grid,
  .company-practice__grid {
    grid-template-columns: 1fr;
  }

  .gruuvr-hero .app-showcase {
    justify-self: start;
  }

  .kasr-principle {
    max-width: 34rem;
  }

  .player-hero__principle {
    max-width: 38rem;
  }

  .feature-row--reverse .feature-row__visual {
    order: 0;
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .credits-grid {
    grid-template-columns: 1fr;
  }

  .credits-secondary {
    grid-template-columns: 1fr;
  }

  .quotes {
    grid-template-columns: 1fr;
  }

  .stages {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stages::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .gruuvr-hero h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(1140px, calc(100% - 1.25rem));
  }

  .product-identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .kasr-steps {
    grid-template-columns: 1fr;
  }

  .player-capability-grid {
    grid-template-columns: 1fr;
  }

  .company-hero__credit {
    right: 0.75rem;
  }

  .kasr-back {
    display: block;
    width: max-content;
    margin: 1rem 0 0;
  }

  .app-showcase-caption,
  .kasr-product-shot figcaption,
  .player-product-shot figcaption {
    font-size: 0.56rem;
  }
}

@media (max-width: 959px) {
  .nav-products {
    width: 100%;
  }

  .nav-products summary.nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.75rem 0.5rem;
  }

  .product-menu {
    position: static;
    width: 100%;
    right: auto;
    margin-bottom: 0.35rem;
    border-radius: 0;
    box-shadow: none;
  }
}

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

  .sequencer-demo.is-running .sequencer-playhead,
  .sequencer-demo.is-running .seq-note--groove,
  .sequencer-demo.is-running .seq-note--rigid,
  .sequencer-demo.is-running .seq-velocity {
    animation: none;
  }

  .app-showcase-frame {
    transform: none !important;
  }
}
