/* ============ TOKENS — "Studio Console" ============ */
:root {
  /* mono-forward: this is a rack-hardware UI, not a lifestyle brand.
     Spline Sans Mono carries headlines/labels/chrome; Instrument Sans is
     kept only for long-form body copy (manuals aren't set in monospace
     either), so paragraphs stay readable at length. */
  --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, monospace;

  --bg: #131517;
  --bg-raised: #17191C;
  --surface: #1C1F22;
  --surface-2: #24282C;
  --line: rgba(232, 230, 225, 0.09);
  --line-strong: rgba(232, 230, 225, 0.18);

  --ink: #E8E6E1;
  --muted: #8B9088;
  --dim: #5A5F5A;

  /* three console-readout tones, not three brand colors — same role
     CHAPTER_COLORS/--chapter-color already rotate through, just retuned */
  --indigo: #39FF6A;  /* phosphor green — primary active/readout color */
  --magenta: #FFB627; /* amber — secondary readout / warning */
  --amber: #C97C3D;   /* copper — tertiary readout, warmer accent */

  --ok: #39FF6A;
  --danger: #FF4433;

  --r-sm: 3px;
  --r-md: 5px;
  --r-lg: 8px;

  --shadow-soft: 0 30px 60px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --inset-panel: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* ============ RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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; }
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 1200px 600px at 50% -10%, rgba(57, 255, 106, 0.05), transparent),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }

/* Rack-panel screws — four-corner decoration, applied to any module face */
.rack-screws::before, .rack-screws::after,
.rack-screws-top::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.35), rgba(0,0,0,0.5));
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4);
}
.rack-screws::before { top: 8px; left: 8px; }
.rack-screws::after { top: 8px; right: 8px; }

/* Small pulsing status LED — used next to live/real data */
.led {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 6px 1px var(--indigo);
  animation: led-pulse 2.2s ease-in-out infinite;
}
@keyframes led-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  backdrop-filter: blur(14px);
  background: rgba(19, 21, 23, 0.75);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease;
}
.nav.scrolled { background: rgba(19, 21, 23, 0.94); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav-logo img { height: 20px; width: auto; filter: grayscale(1) brightness(1.6); }
.nav-logo::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 6px 1px var(--indigo);
  animation: led-pulse 2.2s ease-in-out infinite;
}

.nav-links { display: flex; align-items: center; gap: 2rem; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--indigo); }

.nav-actions { display: flex; align-items: center; gap: .6rem; }

.nav-account,
.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .4rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color .2s, color .2s;
}
.nav-account:hover,
.nav-cart:hover { border-color: var(--indigo); color: var(--indigo); }
.nav-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--r-sm);
  background: var(--indigo);
  color: #0A0B0A;
  font-size: .7rem;
  font-weight: 700;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
}

@media (max-width: 420px) {
  .nav-account,
  .nav-cart { padding: .4rem .55rem; font-size: .72rem; }
  .nav-actions { gap: .4rem; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform .12s ease, filter .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn-primary {
  background: var(--indigo);
  color: #0A0B0A;
  box-shadow: 0 0 0 1px rgba(57,255,106,0.3), 0 2px 16px rgba(57,255,106,0.15);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); filter: brightness(0.95); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-block { width: 100%; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line-strong);
  background: var(--bg-raised);
  padding: 4rem 2rem 2rem;
}
.footer a { font-family: var(--font-mono); }
.footer-top {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.6;
  max-width: 32ch;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 1rem;
}
.footer-col { display: flex; flex-direction: column; gap: .65rem; }
.footer a { color: var(--muted); font-size: .9rem; }
.footer a:hover { color: var(--ink); }
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: .8rem;
}
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ============ HOME / HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--indigo);
  margin-bottom: 1.75rem;
  letter-spacing: .05em;
  padding: .4rem .75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.hero-title {
  font-size: clamp(2.5rem, 6.5vw, 5.75rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
  max-width: 15ch;
}

.hero-sub {
  margin-top: 1.75rem;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.6;
}

.hero-cta-row {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.hero-scroll-hint .line {
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--indigo), transparent);
  animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { opacity: .3; }
  50% { opacity: 1; }
}

/* ============ PRODUCT CHAPTERS — rack modules on a signal chain ============ */
#chapters { position: relative; }

.chapter {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 6rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.chapter:nth-child(even) { direction: rtl; }
.chapter:nth-child(even) > * { direction: ltr; }

/* patch cable connecting this module down to the next */
.chapter:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 1px;
  height: 6rem;
  background: repeating-linear-gradient(var(--line-strong) 0 6px, transparent 6px 12px);
  z-index: 1;
}

.chapter-visual {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft), var(--inset-panel);
  padding: 14px;
}
.chapter-visual canvas { width: 100%; height: 100%; }
.chapter-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  will-change: transform;
  filter: saturate(0.9) contrast(1.05);
}

.chapter-copy { position: relative; }

.chapter-index {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .05em;
  color: var(--chapter-color, var(--indigo));
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.chapter-index::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--chapter-color, var(--indigo));
  box-shadow: 0 0 6px 1px var(--chapter-color, var(--indigo));
}

.chapter-name {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.chapter-tagline {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 38ch;
  line-height: 1.6;
}

.chapter-specs {
  display: flex;
  gap: .75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.chapter-spec {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .03em;
  color: var(--dim);
  padding: .4rem .7rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
}

.chapter-cta {
  margin-top: 2.25rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--chapter-color, var(--indigo));
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.chapter-price {
  font-family: var(--font-mono);
  color: var(--muted);
  margin-top: 1.5rem;
  font-size: .95rem;
}

@media (max-width: 900px) {
  .chapter { grid-template-columns: 1fr; direction: ltr !important; }
  .chapter:nth-child(even) > * { direction: ltr; }
  .chapter-visual { aspect-ratio: 16/10; }
}

/* ============ HOME: MORE PRODUCTS GRID ============ */
.more-section {
  padding: 6rem 2rem 4rem;
}
.more-title {
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.product-card {
  display: block;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.product-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); border-color: var(--indigo); }
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; padding: 8px; background: var(--bg-raised); }
.product-card-body { padding: 1rem 1.2rem 1.3rem; border-top: 1px solid var(--line); }
.product-card-name { font-family: var(--font-mono); font-weight: 500; font-size: .9rem; letter-spacing: .01em; }
.product-card-tagline {
  margin-top: .5rem;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-price {
  margin-top: .75rem;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--indigo);
}

/* ============ HOME: ABOUT / CTA STRIP ============ */
.cta-strip {
  padding: 8rem 2rem;
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta-strip h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin: 0 auto;
}
.cta-strip p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-strip .btn { margin-top: 2rem; }

/* ============ PLUGINS LISTING ============ */
.plugins-page {
  padding: 9rem 2rem 6rem;
}
.plugins-header {
  margin-bottom: 3rem;
}
.plugins-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.plugins-header p {
  margin-top: .75rem;
  color: var(--muted);
}
.plugins-toolbar {
  display: flex;
  gap: .75rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.plugins-toolbar input,
.plugins-toolbar select {
  padding: .75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: .85rem;
}
.plugins-toolbar input:focus, .plugins-toolbar select:focus { border-color: var(--indigo); }
#plugins-search { flex: 1; min-width: 220px; }
.plugins-empty {
  color: var(--muted);
  padding: 3rem 0;
  text-align: center;
}

/* ============ PRODUCT DETAIL ============ */
.product-detail {
  padding: 9rem 2rem 6rem;
}
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.pd-visual {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft), var(--inset-panel);
  position: sticky;
  top: 7rem;
  padding: 14px;
}
.pd-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; filter: saturate(0.9) contrast(1.05); }

.pd-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--indigo);
}
.pd-name {
  margin-top: .75rem;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pd-tagline {
  margin-top: .75rem;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}
.pd-price-row {
  margin-top: 1.75rem;
  display: flex;
  align-items: baseline;
  gap: .75rem;
}
.pd-price {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--indigo);
}
.pd-price-was {
  font-family: var(--font-mono);
  color: var(--dim);
  text-decoration: line-through;
}
#add-to-cart { margin-top: 1.5rem; }

.pd-specs {
  margin-top: 1.75rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.pd-features {
  margin-top: 2rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.pd-features li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}
.pd-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo);
}
.pd-description {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.75;
}
.pd-description h1, .pd-description h2, .pd-description h3 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 1.75rem 0 .75rem;
}
.pd-description p { margin: .9rem 0; }
.pd-description ul { margin: .9rem 0 .9rem 1.2rem; }
.pd-description strong { color: var(--ink); }

@media (max-width: 860px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-visual { position: static; }
}

/* ============ CART ============ */
.cart-page {
  padding: 9rem 2rem 6rem;
  max-width: 860px;
  margin: 0 auto;
}
.cart-page h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}
.cart-empty {
  color: var(--muted);
  padding: 3rem 0;
}
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-line-name { font-weight: 500; }
.cart-line-qty {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
}
.cart-line-qty button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
}
.cart-line-price { font-family: var(--font-mono); color: var(--muted); min-width: 5ch; text-align: right; }
.cart-line-remove { color: var(--dim); font-size: .85rem; }
.cart-line-remove:hover { color: var(--danger); }

.bundle-nudge {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.bundle-nudge div { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.bundle-nudge strong { color: var(--ink); }

.cart-summary {
  margin-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}
.cart-summary-total { font-family: var(--font-mono); font-size: 1.4rem; color: var(--indigo); }
.cart-actions { margin-top: 2rem; }

/* ============ CHECKOUT ============ */
.checkout-page {
  padding: 9rem 2rem 6rem;
  max-width: 560px;
  margin: 0 auto;
}
.checkout-page h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}
.field {
  margin-bottom: 1.25rem;
}
.field label {
  display: block;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .4rem;
}
.field input {
  width: 100%;
  padding: .8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}
.field input:focus { border-color: var(--indigo); }
.field-hint {
  margin-top: .45rem;
  font-size: .8rem;
  color: var(--dim);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkout-toggle {
  display: block;
  margin: .5rem 0 1.5rem;
  font-size: .85rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.checkout-toggle:hover { color: var(--ink); }
.checkout-summary {
  margin: 2rem 0;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: .9rem;
}
.checkout-summary-row { display: flex; justify-content: space-between; padding: .35rem 0; color: var(--muted); }
.checkout-summary-row.total { color: var(--indigo); font-size: 1.1rem; padding-top: .75rem; margin-top: .5rem; border-top: 1px solid var(--line); }
.checkout-error {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: var(--r-md);
  background: rgba(255, 68, 51, 0.08);
  border: 1px solid rgba(255, 68, 51, 0.25);
  color: var(--danger);
  font-family: var(--font-mono);
  font-size: .82rem;
  display: none;
}

/* ============ CHECKOUT RETURN ============ */
.return-page {
  padding: 10rem 2rem 6rem;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.return-status {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.return-page h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.return-order-number {
  margin-top: .75rem;
  font-family: var(--font-mono);
  color: var(--muted);
}
.license-list {
  margin-top: 2.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.license-row {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.license-row-product { font-size: .85rem; color: var(--muted); margin-bottom: .35rem; }
.license-row-key { font-family: var(--font-mono); letter-spacing: .02em; color: var(--indigo); }

.claim-panel {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: var(--surface);
  border-radius: var(--r-md);
  text-align: left;
}
.claim-panel h3 { font-size: 1rem; font-weight: 600; }
.claim-panel p { margin-top: .4rem; color: var(--muted); font-size: .85rem; }
.claim-panel form {
  margin-top: 1.25rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.claim-panel input {
  flex: 1;
  min-width: 200px;
  padding: .75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}

/* ============ ACCOUNT: LOGIN / REGISTER GATE ============ */
.account-gate {
  padding: 9rem 2rem 6rem;
  max-width: 440px;
  margin: 0 auto;
}
.account-gate-panel {
  background: var(--surface);
  box-shadow: var(--shadow-card);
  border-radius: var(--r-lg);
  padding: 2.5rem;
}
.account-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.account-tab {
  padding: .75rem 0;
  margin-right: 1.5rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-weight: 500;
}
.account-tab.active { color: var(--ink); border-bottom-color: var(--indigo); }

/* ============ ACCOUNT: DASHBOARD ============ */
.account-page {
  padding: 9rem 2rem 6rem;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  align-items: start;
}
.account-nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  position: sticky;
  top: 7rem;
}
.account-nav a {
  padding: .6rem .75rem;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: .9rem;
}
.account-nav a:hover { color: var(--ink); }
.account-nav a.active { color: var(--ink); background: var(--surface); }
.account-nav-logout {
  margin-top: 1rem;
  padding: .6rem .75rem;
  text-align: left;
  color: var(--dim);
  font-size: .85rem;
}
.account-nav-logout:hover { color: var(--danger); }

.account-content h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  gap: 1rem;
}
.account-row-main { display: flex; flex-direction: column; gap: .25rem; }
.account-row-title { font-weight: 500; }
.account-row-meta { font-size: .85rem; color: var(--muted); font-family: var(--font-mono); }
.account-row-status {
  font-family: var(--font-mono);
  font-size: .75rem;
  padding: .25rem .6rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(57, 255, 106, 0.3);
  background: rgba(57, 255, 106, 0.08);
  color: var(--ok);
  text-transform: uppercase;
}

.license-devices {
  margin-top: .75rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.license-device-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: var(--muted);
}
.license-device-row button { color: var(--danger); font-size: .8rem; }

@media (max-width: 720px) {
  .account-page { grid-template-columns: 1fr; }
  .account-nav { flex-direction: row; overflow-x: auto; position: static; }
}

/* ============ LEGAL ============ */
.legal-page {
  padding: 9rem 2rem 6rem;
  max-width: 68ch;
  margin: 0 auto;
}
.legal-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.legal-updated {
  margin-top: .75rem;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: .85rem;
}
.legal-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.legal-index {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--indigo);
  margin-bottom: .75rem;
}
.legal-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: .9rem;
}
.legal-section p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: .9rem;
}
.legal-section a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.tutorial-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.tutorial-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 2rem;
}
.links-item {
  display: block;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.links-item:hover {
  border-color: var(--indigo);
  background: var(--surface);
}
.links-item-title {
  font-weight: 600;
}
.links-item-desc {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .9rem;
}

.pd-owned-note {
  margin-top: .6rem;
  font-size: .85rem;
  color: var(--amber);
}

/* ============ HERO TRUST LINE ============ */
.hero-trust {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--dim);
}

/* ============ STATS BAND ============ */
.stats-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-band-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3rem 2rem;
}
.stat {
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  color: var(--indigo);
  text-shadow: 0 0 16px rgba(57, 255, 106, 0.35);
}
.stat-label {
  margin-top: .4rem;
  font-size: .85rem;
  color: var(--muted);
}
@media (max-width: 640px) {
  .stats-band-inner { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem 2rem; }
  .stat { border-left: none; border-top: 1px solid var(--line); padding-top: 1.5rem; }
  .stat:first-child { border-top: none; padding-top: 0; }
}

/* ============ DEMO PLAYER — channel-strip treatment ============ */
.demo-player {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.demo-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .6rem .9rem;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
}
.demo-track-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--indigo);
  min-width: 5.5rem;
}
.demo-track audio {
  height: 32px;
  max-width: 100%;
  flex: 1;
  min-width: 220px;
  filter: invert(0.85) hue-rotate(180deg) sepia(0.3) saturate(3);
}
.demo-player-compact .demo-track audio { height: 30px; }

/* ============ WHY SECTION ============ */
.why-section {
  padding: 6rem 2rem;
}
.why-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  text-align: center;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.why-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}
.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--indigo);
}
.why-card h3 {
  font-family: var(--font-mono);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.why-card p {
  margin-top: .6rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

/* ============ NEWSLETTER ============ */
.newsletter-section {
  padding: 6rem 2rem;
}
.newsletter-card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 3.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  box-shadow: var(--inset-panel), 0 0 60px rgba(57, 255, 106, 0.04);
}
.newsletter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  border: 1px solid rgba(57, 255, 106, 0.15);
  pointer-events: none;
}
.newsletter-card h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.newsletter-card p {
  margin-top: .5rem;
  color: var(--muted);
  font-size: .9rem;
}
.newsletter-form {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
}
.newsletter-form input {
  padding: .85rem 1.1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  min-width: 240px;
}
.newsletter-form input:focus { border-color: var(--indigo); }
.newsletter-form input::placeholder { color: var(--dim); }
.newsletter-note {
  position: absolute;
  bottom: -1.6rem;
  left: 0;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
}
.newsletter-note.ok { color: var(--ok); }
