/* KANSU AUDIO — VDS v2.1 */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  /* VDS Core */
  --bg:        #181818;
  --bg-raised: #202020;
  --bg-card:   #1e1e1e;
  --border:    #3a3a3a;        /* 1.55:1 - separators, decorative */
  --border-hi: #646464;        /* 3.00:1 - button and field outlines */

  /* 和色 palette (24 colors, used contextually) */
  --iro-asagi:    #6ee5dc; /* SHINDO (matches plugin accent) */
  --iro-benikaba: #d77152; /* HIBIKI (matches plugin accent) */
  --iro-koke:     #f2f2f0; /* MUGEN (neutral white, matches plugin) */
  --iro-kaki:     #f1a14f; /* XL-185 (matches the device's accent) */
  --iro-shironeri:#f0ede0;
  --iro-sumi:     #2b2b2b;
  --iro-kincha:   #c8872f;
  --iro-fuji:     #8a7bb5;
  --iro-miru:     #3d6b62;

  /* Text */
  --text-primary:   #e8e4db;
  --text-secondary: #a8a29a;   /* 7.02:1 on --bg */
  --text-dim:       #8d867e;   /* AA on every surface, down to --bg-raised */

  /* Type */
  --font: 'JetBrains Mono', monospace;

  /* Spacing */
  --gap: 24px;
  --section-pad: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

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

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hi); }

/* ─── KANJI BADGE ─── */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border: 1px solid currentColor;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--section-pad);
  height: 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.nav-logo .kanji {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.nav-logo .wordmark {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.15s;
  white-space: nowrap;
}

/* Long nav labels get a short form for phones (Max for Live -> M4L). */
.nav-short { display: none; }

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

/* ─── HERO ─── */
.hero {
  padding-top: 56px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  padding: var(--section-pad);
  max-width: 1200px;
}

.hero-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.hero-title em {
  font-style: normal;
  color: var(--text-secondary);
}

.hero-sub {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 48px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51,166,184,0.06) 0%, transparent 70%);
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--border-hi);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--text-primary);
  color: var(--bg);
  border-color: var(--text-primary);
}

.btn-primary:hover {
  background: var(--iro-shironeri);
  border-color: var(--iro-shironeri);
  color: var(--bg);
}

.btn-accent {
  border-color: currentColor;
}

/* ─── PLUGIN GRID ─── */
.plugins-section {
  padding: var(--section-pad);
  max-width: 1200px;
  margin: 0 auto;
}

/* Heading system, two levels and nothing else:
   1. .section-header + .section-title — every major section announces itself
      the same way, tracked caps over a hairline rule.
   2. .text-intro-heading — the large statement a section may make underneath.
   The old third pattern (a dim .manifesto-label eyebrow with no rule) is gone;
   two sections used it and read as captions rather than as sections. */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.section-count {
  font-size: 10px;
  color: var(--text-dim);
}

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

/* ─── PLUGIN CARD ─── */
.plugin-card {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background 0.15s;
  cursor: pointer;
}

.plugin-card:hover {
  background: var(--bg-card);
}

.plugin-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.plugin-kanji {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.15;
  user-select: none;
}

.plugin-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
}

.plugin-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.plugin-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.plugin-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.plugin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.plugin-price {
  font-size: 13px;
  font-weight: 700;
}

.plugin-price.free {
  color: var(--iro-koke);
}

.plugin-arrow {
  font-size: 16px;
  color: var(--text-dim);
  transition: transform 0.15s, color 0.15s;
}

.plugin-card:hover .plugin-arrow {
  transform: translateX(4px);
  color: var(--text-primary);
}

/* ─── MANIFESTO / ABOUT ─── */
.manifesto {
  padding: var(--section-pad);
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.manifesto-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.manifesto-text {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
}

.manifesto-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

.manifesto-pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
}

.pillar {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pillar:last-child {
  border-bottom: none;
}

.pillar-num {
  font-size: 10px;
  color: var(--text-dim);
  min-width: 20px;
  margin-top: 2px;
}

.pillar-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pillar-text strong {
  display: block;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px var(--section-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  font-size: 11px;
  color: var(--text-dim);
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-right a {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  transition: color 0.15s;
}

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

/* ─── PLUGIN PAGE ─── */
.plugin-hero {
  padding-top: 56px;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.plugin-hero-inner {
  padding: var(--section-pad);
  padding-top: 80px;
  width: 100%;
  max-width: 1200px;
  position: relative;
  z-index: 2;
}

.plugin-hero-bg-kanji {
  position: absolute;
  right: 60px;
  bottom: -20px;
  font-size: 320px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.04;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.plugin-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.plugin-hero-name {
  font-size: clamp(52px, 8vw, 100px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
}

.plugin-hero-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.plugin-cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ─── PLUGIN CONTENT ─── */
.plugin-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section-pad);
}

/* Lead band: the player carries the page, the spec sheet sits beside it.
   Ratio is deliberate — demos are what a producer came for, specs are a
   reference they scan once. */
.plugin-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.85fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 88px;
}

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

/* In the hero the sheet answers "will it run here, what do I get" right under
   the buttons, without turning the first screen into a data table. */
.hc-specs {
  margin-top: 28px;
  max-width: 380px;
}

/* A value that wraps (the Live line on the Hibiki page, or a translated page)
   grows the row instead of running over its rule; one-line rows stay 38px. */
.hc-specs .spec-row { height: auto; min-height: 38px; padding: 8px 0; }
.hc-specs .spec-value { text-wrap: balance; }

/* Five rows at the player's row height, so the sheet and the player end on the
   same line — the band reads as one object rather than two stacked lists. */
.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 44px;
  border-bottom: 1px solid var(--border);
}

.spec-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.spec-value {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
}

.spec-value strong {
  color: var(--text-primary);
  font-size: 14px;
}

.engines-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 40px;
}

.engine-card {
  background: var(--bg);
  padding: 24px;
}

/* On SHINDO the waveform glyphs are the plugin's own engine-tab icons, same
   paths as design/src/shared.jsx. One accent for every card - cards are told
   apart by shape and name, never by colour (VDS: one accent per plugin). The
   accent comes from the page's <body>, so this rule serves every product. */
.engine-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--accent, var(--text-primary));
}

.engine-icon {
  width: 30px;
  height: 16px;
  flex-shrink: 0;
}

.engine-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.engine-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* SHINDO: one band per engine. Words and one-shots on the left, that engine's
   face on the right, so what you read, hear and see sit side by side. The
   icon keeps the accent; the name is a heading, so it stays in the text colour. */
.engine-section {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
  padding: 48px 0;
}

.section-header + .engine-section { padding-top: 8px; }

.engine-section + .engine-section { border-top: 1px solid var(--border); }

.engine-section .engine-head { margin-bottom: 16px; }

.engine-section .engine-icon {
  width: 36px;
  height: 18px;
}

.engine-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: var(--text-primary);
}

.engine-lede {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.engine-section .engine-player { margin-top: 24px; }

.engine-shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .engine-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0;
  }
}

/* ─── DIVIDER ─── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 var(--section-pad);
}

/* ─── PLUGIN UI MOCKUP ─── */
.plugin-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 16/7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}

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

.mockup-placeholder .big-kanji {
  font-size: 80px;
  font-weight: 700;
  opacity: 0.08;
  display: block;
  line-height: 1;
  margin-bottom: 16px;
}

.mockup-placeholder p {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─── BACK LINK ─── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.15s;
  margin-bottom: 48px;
}

.back-link:hover {
  color: var(--text-secondary);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.5s ease forwards;
}

.fade-up-1 { animation-delay: 0.05s; opacity: 0; }
.fade-up-2 { animation-delay: 0.15s; opacity: 0; }
.fade-up-3 { animation-delay: 0.25s; opacity: 0; }
.fade-up-4 { animation-delay: 0.35s; opacity: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .hero-inner,
  .plugins-section,
  .manifesto,
  .plugin-content,
  .plugin-hero-inner { padding: 40px 24px; }
  .divider { margin: 0 24px; }
  footer { padding: 24px; flex-direction: column; gap: 16px; text-align: center; }
  .plugin-grid { grid-template-columns: 1fr; }
  .manifesto { grid-template-columns: 1fr; gap: 40px; }
  .plugin-lead { grid-template-columns: 1fr; gap: 32px; }
  .engines-grid { grid-template-columns: 1fr; }
  .plugin-hero-bg-kanji { font-size: 160px; right: 16px; }
  nav { padding: 0 24px; }
  .nav-links { gap: 20px; }
}

/* ─── BILINGUAL (EN / JP) ─── */
/* Default markup carries data-lang="en" on <html>; CSS hides the inactive variant. */
html[data-lang="en"] [data-lang="jp"] { display: none; }
html[data-lang="jp"] [data-lang="en"] { display: none; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.lang-btn:hover { color: var(--text-secondary); }
.lang-btn.active { color: var(--text-primary); }

.lang-sep {
  color: var(--text-dim);
  font-size: 11px;
}

/* Menu button, phones only (see the 600px block). */
.nav-menu-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -12px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.15s, opacity 0.15s;
}
nav.nav-open .nav-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .nav-menu-btn span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── COMING SOON ─── */
.plugin-price.soon { color: var(--text-dim); }

.badge.soon {
  color: var(--text-secondary);
  border-color: var(--border-hi);
}

/* ─── DEMO TRACKS ─── */
/* ─── DEMO PLAYER (SHINDO kick loops) ─── */
.demo-player {
  --demo-row-h: 44px;
  --demo-accent: var(--iro-asagi);
  border: 1px solid var(--border);
}

/* Five rows visible, the rest on scroll: the player keeps its height whatever
   the list holds, so it never pushes the page around. The mask fades the last
   row so it reads as "continues" without a count or a scrollbar to lean on;
   it lifts once you reach the end. */
.demo-list {
  max-height: calc(var(--demo-row-h) * 5);
  overflow-y: auto;
  overscroll-behavior: contain;
  mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
}

.demo-list.at-end {
  mask-image: none;
}

.demo-row {
  --progress: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: var(--demo-row-h);
  padding: 0 16px;
  background: var(--bg);
  border: none;
  border-bottom: 1px solid var(--border);
  font: inherit;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.15s;
}

.demo-row:last-child { border-bottom: none; }

/* Scale, not width: transform is composited and cannot thrash layout. */
.demo-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--demo-accent) 12%, transparent);
  transform: scaleX(var(--progress));
  transform-origin: left center;
  transition: transform 0.1s linear;
  pointer-events: none;
}

.demo-row:hover { background: var(--bg-raised); }
.demo-row:focus-visible { outline: 1px solid var(--demo-accent); outline-offset: -2px; }

.demo-play {
  position: relative;
  width: 0;
  height: 0;
  flex-shrink: 0;
  border-left: 8px solid var(--text-secondary);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transition: border-color 0.15s;
}

.demo-row:hover .demo-play { border-left-color: var(--text-primary); }

.demo-row.playing .demo-play {
  width: 8px;
  height: 10px;
  border: none;
  background: linear-gradient(to right,
    var(--demo-accent) 0 3px, transparent 3px 5px, var(--demo-accent) 5px 8px);
}

.demo-name {
  position: relative;
  flex: 1;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-row.playing .demo-name { color: var(--demo-accent); }

.demo-engine-tag {
  position: relative;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

/* A player per engine: the sound sits next to the words describing it, so the
   claim and the proof are read together. Four visible rows, scroll for more —
   ANALOG has seven, FM three, and the cards still line up. */
.engine-player {
  margin-top: 18px;
}

.engine-player .demo-list {
  max-height: calc(var(--demo-row-h) * 4);
}

.engine-player .demo-row {
  padding: 0 14px;
}

/* Loops: one full-width list, all six rows visible, so it needs no scroll
   fade. */
.loops-player {
  margin-top: 28px;
}

.loops-player .demo-list {
  max-height: none;
  mask-image: none;
}

/* ─── BUY BAND ─── */
.buy-band {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.buy-price {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}

/* Nothing to price yet: the band still has to close the page, so the release
   status takes the headline slot instead of a fake number. */
.buy-price.soon {
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.buy-terms {
  font-size: 12px;
  color: var(--text-secondary);
  max-width: 46ch;
  line-height: 1.7;
}

.buy-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.buy-note {
  font-size: 11px;
  color: var(--text-dim);
  max-width: 34ch;
  text-align: right;
  line-height: 1.6;
}

/* ─── FEATURE BLOCKS (Transient / Mutation / Chromatic) ─── */
/* TRANSIENT and MUTATION are the two slots the copy above promises, so they
   sit side by side and read as a pair. A real gap, not a hairline, keeps them
   from turning into another grid like the engines above. */
.feature-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.feature-block {
  border: 1px solid var(--border);
  padding: 28px;
  margin-top: 40px;
}

/* Both halves align at the top (one image ratio) and at the bottom (the
   parameter list is pushed down), so a one-line heading on the left and a
   two-line one on the right no longer knock everything out of step. */
.feature-pair .feature-block {
  margin-top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-pair .feature-list {
  margin-top: auto;
}

/* At half width three columns of one-line descriptions get cramped; stacking
   them keeps the label/description pairing readable. */
.feature-pair .feature-list {
  grid-template-columns: 1fr;
}

.feature-heading {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.feature-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 28px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.feature-item {
  background: var(--bg);
  padding: 18px 20px;
}

.feature-item-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.feature-item-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.text-intro {
  margin: 80px 0 0;
}

.text-intro-heading {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.text-intro-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 620px;
  margin-top: 20px;
}

/* ─── SCREENSHOTS ─── */
/* .plugin-mockup.shot drops the fixed 16/7 ratio and sizes to the image. */
.plugin-mockup.shot {
  aspect-ratio: auto;
  padding: 32px;
}

.mockup-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 640px;
  object-fit: contain;
  margin: 0 auto;
}

/* width:auto left an unloaded lazy image at zero width, which collapsed the
   slot and stopped the fetch from ever starting once the blocks were halved.
   A full-width box with the source's own ratio reserves the space up front, so
   nothing jumps when the screenshot arrives. */
.feature-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1344 / 544;
  object-fit: contain;
  border: 1px solid var(--border);
  margin: 0 0 28px;
}

/* The engine strip with the keys toggle switched on: a thin band under the
   Chromatic Mode text, shown whole so the toggle sits at the strip's right end. */
.chromatic-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 32px;
  border: 1px solid var(--border);
}

/* A Max for Live device face shown whole: one wide strip under the text that
   explains it, so every label on the device stays readable at full width. */
.strip-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 32px;
  border: 1px solid var(--border);
}

/* The picture on a Max for Live device in four states, shown in pairs: each
   capture sits above its caption, so the two captures in a row line up. */
.scope-block .strip-img { margin: 0 0 20px; }
.scope-block .feature-body { margin-bottom: 0; }

/* Loops open the content right under the hero, so the first intro drops the
   section gap the others keep. */
.plugin-content > .text-intro:first-child { margin-top: 0; }

/* ─── SIGNATURE ─── */
.manifesto-sig {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: right;
}

/* ─── QUOTES ─── */
/* Hidden until the quotes are real: the current ones are placeholders, and
   invented endorsements from named producers are the kind of thing a small
   scene checks. Markup and styles stay put — delete this one rule to bring the
   section back once beta testers have said something quotable. */
.quotes-section { display: none !important; }

.quotes-section {
  padding: var(--section-pad);
  max-width: 1200px;
  margin: 0 auto;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.quote-card {
  background: var(--bg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.quote-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--border-hi);
  flex-shrink: 0;
}

.quote-name {
  font-size: 12px;
  color: var(--text-primary);
}

.quote-role {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--iro-asagi);
  margin-top: 2px;
}

/* ─── SUPPORT ─── */
.support-section {
  padding: var(--section-pad);
  max-width: 1200px;
  margin: 0 auto;
}

.support-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}

.support-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 40px;
}

.support-card {
  border: 1px solid var(--border);
  padding: 32px;
}

.support-email-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--iro-asagi);
  margin-bottom: 16px;
}

.support-email {
  display: block;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 28px;
  transition: color 0.15s;
}

.support-email:hover { color: var(--iro-shironeri); }

.support-meta {
  display: flex;
  gap: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.support-meta-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.support-meta-value {
  font-size: 12px;
  color: var(--text-secondary);
}

.support-topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-top: none;
}

.topic {
  background: var(--bg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.topic-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--iro-asagi);
  opacity: 0.6;
  flex-shrink: 0;
}

/* ─── RESPONSIVE (new sections) ─── */
@media (max-width: 900px) {
  .nav-right { gap: 16px; }
  .feature-pair { grid-template-columns: 1fr; gap: 32px; }
  .quotes-section,
  .support-section { padding: 40px 24px; }
  .quotes-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-list { grid-template-columns: 1fr; }
  .support-topics { grid-template-columns: 1fr; }
  .support-meta { gap: 32px; }
}

/* ─── HERO CAROUSEL ─── */
.hero-carousel {
  --hc-controls-h: 76px;        /* the strip under the slide, see .hc-controls */
  position: relative;
  margin-top: 56px;             /* clear the fixed nav */
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hc-viewport {
  overflow: hidden;
  touch-action: pan-y;          /* allow vertical scroll, capture horizontal swipe */
}

.hc-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hc-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - 56px - var(--hc-controls-h));
}

/* Media panel (screenshot) */
.hc-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.hc-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.18;
  pointer-events: none;
}

.hc-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,0.035) 0%, transparent 70%);
  pointer-events: none;
}

.hc-media img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.55));
}

/* Placeholder media (no screenshot yet, e.g. MUGEN) */
.hc-media.placeholder .hc-ph-kanji {
  position: relative;
  z-index: 1;
  font-size: clamp(120px, 22vw, 280px);
  font-weight: 700;
  line-height: 1;
  opacity: 0.1;
  user-select: none;
}

/* Info panel */
.hc-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px var(--section-pad);
  max-width: 620px;
}

.hc-kanji {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.18;
  margin-bottom: 20px;
  user-select: none;
}

.hc-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, var(--text-secondary));
  margin-bottom: 12px;
}

.hc-name {
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent, var(--text-primary));
  margin-bottom: 24px;
}

.hc-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hc-metarow {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.hc-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Free is the offer, not a status, so it carries the product accent where
   "coming soon" only gets the quiet outline. Same chip geometry either way. */
.hc-price.free {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, var(--text-primary));
  border: 1px solid currentColor;
  padding: 6px 12px;
}

.hc-price.soon {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-hi);
  padding: 6px 12px;
}

.hc-formats {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.hc-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Controls sit BELOW the carousel in their own strip, not floating over the
   slide. The slide's min-height is reduced by the strip height so the hero as
   a whole still fills exactly one viewport. */
.hc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: var(--hc-controls-h);
  border-top: 1px solid var(--border);
}

.hc-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-hi);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.hc-arrow:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
  background: var(--bg-raised);
}

.hc-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hc-dot {
  width: 28px;
  height: 3px;
  border: none;
  padding: 0;
  background: var(--border-hi);
  cursor: pointer;
  transition: background 0.15s;
}

.hc-dot:hover { background: var(--text-secondary); }
.hc-dot.active { background: var(--text-primary); }

@media (max-width: 900px) {
  .hero-carousel { margin-top: 56px; }
  .hc-slide {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hc-media {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 48px 24px 40px;
  }
  .hc-media img { max-height: 42vh; }
  .hc-info { padding: 40px 24px 40px; }   /* no floating controls to clear now */
  .hc-controls { gap: 14px; }
}

/* ─── LEGAL / TERMS ─── */
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px var(--section-pad) var(--section-pad);
}

.legal-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.legal-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 48px;
}

.legal-intro {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.legal-section { margin-bottom: 40px; }

.legal-section h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.legal-section p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 14px;
}

.legal-section p:last-child { margin-bottom: 0; }
.legal-section p strong { color: var(--text-primary); font-weight: 700; }
.legal-section a { color: var(--iro-asagi); }
.legal-section a:hover { color: var(--iro-shironeri); }

@media (max-width: 900px) {
  .legal-wrap { padding: 96px 24px 48px; }
}

/* ─── SUPPORT PAGE ─── */
.support-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px var(--section-pad) var(--section-pad);
}

.support-page .legal-title { margin-bottom: 24px; }

@media (max-width: 900px) {
  .support-page { padding: 96px 24px 48px; }
}

/* ─── PLUGIN PAGE HERO (split — screenshot + info, matches carousel) ─── */
.phero {
  position: relative;
  margin-top: 56px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.phero-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px var(--section-pad) 4px;
}

.phero-top .back-link { margin-bottom: 0; }

.phero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 540px;
}

.phero .hc-media img { max-height: 470px; }

@media (max-width: 900px) {
  .phero-top { padding: 16px 24px 0; }
  .phero-grid { grid-template-columns: 1fr; min-height: 0; }
  .phero .hc-media img { max-height: 40vh; }
  .phero .hc-info { padding: 40px 24px 48px; }
}

/* ─── CATALOGUE + ABOUT (pages) ─── */
.page-masthead {
  max-width: 1200px;
  margin: 0 auto;
  padding: 136px var(--section-pad) 0;
}

.page-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.page-title {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 20px 0 0;
}

.page-standfirst {
  margin: 24px 0 0;
  max-width: 58ch;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
}

/* ─── CATALOGUE BANDS ─── */
.cat-band {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 62vh;
}

.page-masthead + .cat-band { margin-top: 96px; }

.cat-band .hc-media { padding: 56px; }
.cat-band .hc-media img { max-height: 44vh; }
.cat-band .hc-info { padding: 56px var(--section-pad); }

/* Max for Live devices are wide strips (about 4.5 : 1). Above the stacking
   breakpoint their face takes the larger share of the band, so its labels stay
   readable; below it they stack like every other band. */
@media (min-width: 901px) {
  .cat-band.wide,
  .phero-grid.wide { grid-template-columns: 1.5fr 1fr; }
  .cat-band.wide .hc-media,
  .phero-grid.wide .hc-media { padding: 40px; }
  .phero-grid.wide .hc-info { padding: 64px 56px; }
}

/* ─── ABOUT ─── */
.about-statement {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px var(--section-pad);
  border-bottom: 1px solid var(--border);
}

.about-statement p {
  max-width: 24ch;
  /* Kept a clear step below .page-title (72px) so the two do not read as
     competing headlines. */
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.about-statement .jp { letter-spacing: 0; }

.about-story {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px var(--section-pad);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
}

.about-story-body {
  max-width: 68ch;
  font-size: 15px;
  line-height: 2;
  color: var(--text-secondary);
}

.about-story-body p + p { margin-top: 26px; }
.about-story-body strong { color: var(--text-primary); font-weight: 700; }

.about-sig {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.about-principles {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--section-pad) 96px;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.principle {
  background: var(--bg);
  padding: 32px;
}

.principle-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.principle-body {
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ─── CROSS-LINK STRIP ─── */
.outcome {
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px var(--section-pad) 96px;
}

.outcome-links {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.outcome-link {
  background: var(--bg);
  padding: 24px 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.15s;
}

.outcome-link:hover { background: var(--bg-card); }

.outcome-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent, var(--text-primary));
}

.outcome-type {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .page-masthead { padding: 104px 24px 0; }
  .page-masthead + .cat-band { margin-top: 56px; }
  .cat-band { grid-template-columns: 1fr; min-height: 0; }
  .cat-band .hc-media {
    padding: 40px 24px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .cat-band .hc-media img { max-height: 38vh; }
  .cat-band .hc-info { padding: 40px 24px 48px; }
  .about-statement { padding: 56px 24px; }
  .about-story {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 56px 24px;
  }
  .about-principles { padding: 0 24px 56px; }
  .principle-list { grid-template-columns: 1fr; }
  .outcome { padding: 48px 24px 64px; }
  .outcome-links { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOONBASE STOREFRONT PANEL — dressed as our own

   The account / checkout drawer is Moonbase's component, but it renders inside
   our page (light DOM, #moonbase), so we can restyle it. Their theme API only
   accepts an accent colour, one of four heading fonts and one of four body
   fonts - JetBrains Mono is not among them - so everything below is done here
   instead.

   Hooks are their namespaced class names, escaped for CSS: .moonbase\:drawer,
   .moonbase\:drawer-container, .moonbase\:drawer-overlay, .moonbase\:button,
   .moonbase\:text-display. If the panel ever starts looking foreign again,
   Moonbase changed its markup - re-check those five names first.
   ═══════════════════════════════════════════════════════════════════════════ */

#moonbase,
#moonbase * {
  font-family: var(--font) !important;
}

/* The drawer should sit ON the site, not replace it: the panel is the only
   thing that gets a surface, and the layers above it stay click-through so
   visitors can keep browsing with the account open. Their component marks
   itself aria-modal, but nothing here depends on modality - the sheet has its
   own close button, and a nav click simply takes you to the next page.
   (.drawer and .drawer-container are full-viewport fixed layers: giving them a
   background paints over the whole site.) */
#moonbase .moonbase\:drawer,
#moonbase .moonbase\:drawer-container,
#moonbase .moonbase\:drawer-overlay {
  background: transparent !important;
  pointer-events: none !important;
}

#moonbase .moonbase\:drawer-panel {
  pointer-events: auto !important;
}

/* Panel surface: our warm-black instead of their blue-grey. */
#moonbase .moonbase\:drawer-panel {
  background: var(--bg) !important;
  border-radius: 0 !important;
}

/* With no backdrop dimming the page, the sheet needs its own separation:
   hairline edge plus a soft cast shadow, same idea as the plugin windows. */
#moonbase .moonbase\:drawer-panel {
  border-left: 1px solid var(--border) !important;
  box-shadow: -28px 0 64px -24px rgba(0, 0, 0, 0.85) !important;
}

/* Their scroll hint is four stacked gradients painted in Moonbase's blue-grey,
   which shows up as a band across our flat surface. The site has no scroll
   shading anywhere, so drop it rather than re-tint it. */
#moonbase .moonbase\:drawer-content {
  background-image: none !important;
}

/* Headings — the site sets them big, tight and unstyled by weight. */
#moonbase .moonbase\:text-display {
  font-size: 26px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: var(--text-primary) !important;
}

/* Field labels read as our small caps labels (cf. .support-email-label). */
#moonbase label {
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--text-secondary) !important;
}

/* Inputs: flat, square, hairline — the site never uses filled fields.
   Checkboxes and radios are deliberately excluded: they are not fields, and a
   background/border here overrides whatever Moonbase paints their checked state
   with, so a ticked box can end up looking identical to an empty one. They get
   nothing but our accent below. */
#moonbase input:not([type="checkbox"]):not([type="radio"]),
#moonbase select,
#moonbase textarea {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  color: var(--text-primary) !important;
  font-size: 13px !important;
}

#moonbase input::placeholder {
  color: var(--text-dim) !important;
}

/* Tick marks in the brand white rather than the browser's blue. accent-color
   only recolours the control; it never suppresses the check the way a
   background would. */
#moonbase input[type="checkbox"],
#moonbase input[type="radio"] {
  accent-color: var(--text-primary);
}

#moonbase input:focus,
#moonbase select:focus,
#moonbase textarea:focus {
  border-color: var(--border-hi) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Account tabs (Products / Account / Redeem). Moonbase renders them as plain
   <button role="tab"> with no class of their own, so the hooks here are the
   ARIA attributes - which is the sturdiest option available: aria-selected is
   part of the component's contract, not its styling. Their default is a
   blue-grey segmented bar with the accent filling the active tab; ours is a
   hairline frame with a quiet raised surface and an underline for the current
   tab, the way the site marks state. */
#moonbase [role="tablist"] {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
}

#moonbase [role="tab"] {
  background: transparent !important;
  color: var(--text-secondary) !important;
  border-radius: 0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

#moonbase [role="tab"][aria-selected="true"] {
  background: var(--bg-raised) !important;
  color: var(--text-primary) !important;
  box-shadow: inset 0 -2px 0 var(--text-primary) !important;
}

#moonbase [role="tab"]:hover {
  color: var(--text-primary) !important;
}

/* Buttons follow the site's hierarchy: one cream-filled primary, everything
   else outlined. Moonbase gives every button the same class, so the split is
   made on type - submit is the screen's primary action on every one of their
   screens, the rest are secondary. Brand surfaces stay warm white; the accent
   belongs to the products. */
#moonbase .moonbase\:button {
  background: transparent !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-hi) !important;
  border-radius: 0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

#moonbase button[type="submit"].moonbase\:button {
  background: var(--text-primary) !important;
  color: var(--bg) !important;
  border-color: var(--text-primary) !important;
}

#moonbase .moonbase\:button:hover {
  border-color: var(--text-primary) !important;
}

#moonbase button[type="submit"].moonbase\:button:hover {
  background: transparent !important;
  color: var(--text-primary) !important;
}

/* Phones: the menu folds behind a button and opens as a list under the bar. */
@media (max-width: 600px) {
  nav { padding: 0 16px; }
  .nav-right { gap: 4px; }
  .nav-menu-btn { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  nav.nav-open .nav-links { display: flex; }
  .nav-links li + li { border-top: 1px solid var(--border); }
  .nav-links a {
    display: block;
    padding: 16px;
    font-size: 13px;
  }
}

/* Small tablets: seven menu items need the short labels (M4L, VCV) to keep EN / JP on screen. */
@media (min-width: 601px) and (max-width: 760px) {
  .nav-links { gap: 12px; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
}

/* product name suffix on a second, smaller line: "Hibiki (M4L version)" */
.hc-name-sub { display: block; font-size: 0.42em; letter-spacing: 0.02em; margin-top: 0.15em; }

/* Hibiki (M4L version): how a strike reaches the gate, modular vs Live */
.lpg-diagram { margin: 32px 0 8px; max-width: 620px; }
.lpg-diagram svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.lpg-diagram .dg-box { fill: var(--bg-raised); stroke: var(--border-hi); stroke-width: 1; }
.lpg-diagram .dg-gate { stroke: var(--iro-benikaba); }
.lpg-diagram .dg-label { fill: var(--text-primary); font-size: 13px; text-anchor: middle; letter-spacing: 0.06em; }
.lpg-diagram .dg-gate-name { fill: var(--iro-benikaba); font-size: 15px; font-weight: 700; }
.lpg-diagram .dg-small { fill: var(--text-dim); font-size: 12px; text-anchor: middle; }
.lpg-diagram .dg-title { fill: var(--text-dim); font-size: 10px; letter-spacing: 0.18em; }
.lpg-diagram .dg-strike { stroke: var(--iro-benikaba); stroke-width: 1.5; }
.lpg-diagram .dg-strike-text { fill: var(--iro-benikaba); }
.lpg-diagram .dg-audio { stroke: var(--text-dim); stroke-width: 1; }
.lpg-diagram .dg-head-strike { fill: var(--iro-benikaba); }
.lpg-diagram .dg-head-audio { fill: var(--text-dim); }

/* Hibiki (M4L version): What It Is on the left, the demo list on the right */
.intro-split { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 56px; align-items: start; }
.intro-split > .text-intro { margin-top: 0; }
.intro-split-side .loops-player { margin-top: 0; }
.plugin-content > .intro-split:first-child { margin-top: 0; }
@media (max-width: 900px) {
  .intro-split { grid-template-columns: 1fr; gap: 0; }
  .intro-split-side { margin-top: 56px; }
}

/* Wide Max for Live faces in the home carousel get the same larger share as
   their catalogue band, so the face stays readable. */
@media (min-width: 901px) {
  .hc-slide.wide { grid-template-columns: 1.5fr 1fr; }
  .hc-slide.wide .hc-media { padding: 40px; }
}

/* ─── MORE FROM KANSU AUDIO ─── */
/* Closes every product page: the other products as plain cards, face first,
   then the same type / name / price grammar as the catalogue bands. */
.more-products { margin-top: 96px; }

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

.more-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s;
}

.more-card:hover { border-color: var(--accent); }

.more-media {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.more-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.more-info { padding: 24px 28px 28px; }

.more-name {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 12px;
}

.more-name .hc-name-sub { font-size: 0.55em; font-weight: 400; }

.more-line {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.more-meta {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

@media (max-width: 700px) {
  .more-grid { grid-template-columns: 1fr; }
  .more-media { height: 160px; padding: 20px; }
}

/* ─── BLOG ─── */
/* One reading column at the legal pages' width; body at 15px for long text. */
.post-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 136px var(--section-pad) var(--section-pad);
}

.post-meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.post-meta a { color: var(--text-dim); }
.post-meta a:hover { color: var(--text-primary); }

.post-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 20px 0 24px;
}

.post-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-secondary);
  padding-bottom: 40px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.post-body h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 48px 0 16px;
}

.post-body p,
.post-body li,
.post-body dd {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.post-body p { margin-bottom: 16px; }
.post-body ul,
.post-body ol { padding-left: 22px; margin-bottom: 16px; }
.post-body li { margin-bottom: 10px; }
.post-body strong,
.post-body dt { color: var(--text-primary); font-weight: 700; }
.post-body a { color: var(--accent, var(--iro-benikaba)); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--text-primary); }
.post-body dt { font-size: 15px; margin-top: 24px; }
.post-body dd { margin: 6px 0 0; }

.post-body .lpg-diagram { margin: 32px 0 16px; }
.post-body .lpg-diagram figcaption { font-size: 12px; line-height: 1.7; color: var(--text-dim); margin-top: 8px; }
.lpg-diagram .dg-axis { stroke: var(--border-hi); stroke-width: 1; fill: none; }
.lpg-diagram .dg-level { stroke: var(--text-primary); stroke-width: 2; fill: none; }
.lpg-diagram .dg-bright { stroke: var(--iro-benikaba); stroke-width: 2; fill: none; }
.lpg-diagram .dg-left { text-anchor: start; }

.post-card { margin-top: 32px; }
.post-card .more-grid { grid-template-columns: 1fr; }

.post-sources { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-sources p,
.post-sources li { font-size: 13px; }

/* Blog index: one row per post, newest first. */
.post-list {
  max-width: 1200px;
  margin: 64px auto 0;
  padding: 0 var(--section-pad) var(--section-pad);
}

.post-row {
  display: block;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}

.post-row:last-child { border-bottom: 1px solid var(--border); }
.post-row-title {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 12px 0 10px;
  transition: color 0.15s;
}
.post-row:hover .post-row-title { color: var(--iro-benikaba); }
.post-row-summary {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 68ch;
}

@media (max-width: 900px) {
  .post-wrap { padding: 104px 24px 48px; }
  .post-list { padding: 0 24px 48px; margin-top: 40px; }
}

/* A link inside running text: underlined, so it reads as a link without colour. */
.inline-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-hi); }
.inline-link:hover { color: var(--text-primary); text-decoration-color: currentColor; }
.lpg-diagram .dg-end { text-anchor: end; }

/* Photos inside a blog post: full column width, credit in the caption. */
.post-photo { margin: 32px 0 24px; }
.post-photo img { display: block; width: 100%; height: auto; border: 1px solid var(--border); }
.post-photo figcaption { font-size: 12px; line-height: 1.7; color: var(--text-dim); margin-top: 10px; }
.post-body .post-photo figcaption a { color: var(--text-dim); }
