/* BioSwitch Official Site — Precision Dark Bio-Chronograph Stylesheet
   Color & Typography tokens aligned with BioSwitch Dark Mode & ui-design spec */

:root {
  color-scheme: dark;

  /* Precision Dark Bio-Chronograph Palette */
  --bg-base: #0B0F17;
  --bg-card: #131B2C;
  --bg-elevated: #1B253B;
  --border-subtle: #1E293B;
  --border-active: #2E3E5B;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-on-accent: #05130E;

  /* Phase & Instrument Accents (zero red / zero forbidden hues) */
  --amber: #F59E0B;
  --emerald: #10B981;
  --emerald-hover: #059669;
  --cyan: #06B6D4;
  --accent: var(--emerald);
  --border-elevated: #2E3E5B;

  --header-bg: rgba(11, 15, 23, 0.88);
  --shadow-panel: 0 22px 54px rgba(2, 6, 14, 0.56);
  --shadow-card: 0 10px 28px rgba(2, 6, 14, 0.36);

  /* Typography */
  --font-display: "Bricolage Grotesque", "Noto Sans JP", sans-serif;
  --font-ja: "Noto Sans JP", sans-serif;
  --font-en: "Bricolage Grotesque", "Noto Sans JP", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius-card: 14px;
  --radius-panel: 18px;
  --radius-btn: 9px;
  --radius-pill: 999px;

  --wrap: 1180px;
  --gutter: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-rise: 540ms;
}

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

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

body {
  background-color: var(--bg-base);
  background-image:
    radial-gradient(circle at 78% 12%, rgba(16, 185, 129, 0.08), transparent 42%),
    radial-gradient(circle at 14% 38%, rgba(6, 182, 212, 0.06), transparent 36%),
    linear-gradient(to right, rgba(30, 41, 59, 0.24) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 41, 59, 0.24) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  color: var(--text-primary);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

html[lang="en"] body {
  font-family: var(--font-en);
  letter-spacing: 0.01em;
  line-height: 1.68;
}

::selection {
  background: var(--emerald);
  color: var(--text-on-accent);
}

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

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

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

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--emerald);
  color: var(--text-on-accent);
  font-weight: 700;
  border-radius: var(--radius-btn);
  transform: translateY(-220%);
}

.skip:focus {
  transform: translateY(0);
}

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

.narrow {
  max-width: 840px;
}

/* ---- Chrome Header ---- */
.chrome {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: calc(100% - 24px);
  max-width: var(--wrap);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 10px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  margin-right: auto;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 11px;
  border-radius: 7px;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.menu-all {
  display: none;
  position: relative;
}

.menu-all summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-card);
}

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

.menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-panel);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-list a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.menu-list a[aria-current="page"],
.menu-list a:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.lang-switch a {
  color: var(--text-secondary);
}

.lang-switch a:hover {
  color: var(--text-primary);
}

.lang-cur {
  color: var(--emerald);
}

.lang-sep {
  color: var(--border-active);
}

.toc {
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.toc::-webkit-scrollbar {
  display: none;
}

.toc-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}

.toc a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 6px;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.toc a:hover,
.toc a[aria-current="location"] {
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
}

/* ---- Visually hidden text & external-link marks ---- */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

a.ext {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.icon-ext {
  width: 0.95em;
  height: 0.95em;
  flex-shrink: 0;
  opacity: 0.8;
}

.nav-div {
  width: 1px;
  height: 18px;
  margin: 0 6px;
  background: var(--border-active);
}

.site-nav a.nav-ext {
  color: var(--text-muted);
  border: 1px dashed var(--border-active);
}

.menu-h {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 6px 12px 2px;
}

.menu-h-ext {
  margin-top: 6px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.menu-list a.ext {
  display: flex;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 20px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-active);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.94rem;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--cyan);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-main {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--text-on-accent);
}

.btn-main:hover:not(:disabled) {
  background: var(--emerald-hover);
  border-color: var(--emerald-hover);
}

.btn-head {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.84rem;
}

.btn-sm {
  min-height: 40px;
  padding: 7px 13px;
  font-size: 0.82rem;
}

.icon-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---- Hero (Asymmetric 12-Col Editorial + Instrument Console) ---- */
.hero {
  padding: 162px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 36px 32px;
  align-items: center;
}

.hero-copy {
  grid-column: 1 / span 7;
  padding-left: 22px;
  border-left: 2px solid var(--emerald);
}

.hero-console-wrap {
  grid-column: 8 / span 5;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.1vw, 3.3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.headline .ln {
  display: block;
}

.headline .accent {
  color: var(--emerald);
}

.hero-subbrand {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.lede {
  font-size: 1.03rem;
  color: var(--text-secondary);
  max-width: 60ch;
  margin-bottom: 26px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}

/* ---- Interactive BioSwitch Ring (wordless meter + immersive spinner) ---- */
.ring-console {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  padding: 20px;
  position: relative;
}

.console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.console-app {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
}

.console-app img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.status-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-active);
  background: var(--bg-elevated);
  color: var(--emerald);
}

.ring-stage {
  position: relative;
  background: radial-gradient(circle at 50% 58%, rgba(16, 185, 129, 0.08), rgba(11, 15, 23, 0.92) 70%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 14px 12px 18px;
  overflow: hidden;
  margin-bottom: 14px;
}

.console-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  transition: opacity 250ms var(--ease), transform 250ms var(--ease);
}

.period-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.1);
}

.goal-line {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.goal-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  flex-shrink: 0;
}

.ring-field {
  position: relative;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-orbit {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ring-svg .orbit {
  fill: none;
  stroke: var(--border-active);
  stroke-width: 0.8;
}

.ring-svg .bezel {
  fill: none;
  stroke: #1B2538;
  stroke-width: 9;
}

.ring-svg .tick {
  stroke: #3A4A66;
  stroke-width: 0.8;
}

.ring-svg .tick.major {
  stroke: var(--cyan);
  stroke-width: 1.4;
  opacity: 0.75;
}

.ring-svg .seg-track {
  fill: none;
  stroke: #1E293B;
  stroke-width: 5;
}

.ring-svg .seg {
  fill: none;
  stroke: transparent;
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke 320ms var(--ease);
}

.ring-svg .sat {
  fill: var(--bg-base);
  stroke: var(--text-muted);
  stroke-width: 1.2;
  transition: fill 320ms var(--ease), stroke 320ms var(--ease);
}

.ring-svg .resonance {
  fill: none;
  stroke: var(--emerald);
  stroke-width: 1.4;
  opacity: 0;
  transition: opacity 420ms var(--ease);
}

.ring-console[data-done="1"] .seg-0,
.ring-console[data-done="2"] .seg-0,
.ring-console[data-done="2"] .seg-1,
.ring-console[data-done="3"] .seg {
  stroke: var(--emerald);
}

.ring-console[data-done="1"] .sat-0,
.ring-console[data-done="2"] .sat-0,
.ring-console[data-done="2"] .sat-1,
.ring-console[data-done="3"] .sat {
  fill: var(--emerald);
  stroke: var(--emerald);
}

.ring-console[data-done="3"] .resonance {
  opacity: 0.5;
}

.ring-console.is-spinning .ring-svg {
  animation: bioSpin 1.4s cubic-bezier(0.18, 0.88, 0.32, 1);
}

.ring-console.is-spinning .ring-orbit {
  animation: bioCentrifugal 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ring-core {
  position: relative;
  z-index: 3;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #1B2538, var(--bg-base) 72%);
  border: 1px solid var(--border-active);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow 250ms var(--ease);
}

.ring-core:hover {
  transform: scale(0.97);
  border-color: var(--emerald);
}

.core-glow {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--emerald);
  opacity: 0.55;
}

.ring-console.is-immersive .ring-core {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35);
}

.radial-slots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 250ms var(--ease), transform 250ms var(--ease);
}

.radial-slot {
  position: absolute;
  max-width: 34%;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-active);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 320ms var(--ease), background-color 320ms var(--ease);
}

.radial-slot.is-weight { color: var(--cyan); }

.radial-slot.is-empty {
  background: transparent;
  border-style: dashed;
  color: var(--text-secondary);
}

.ring-console[data-done="1"] .habit-0,
.ring-console[data-done="2"] .habit-0,
.ring-console[data-done="2"] .habit-1,
.ring-console[data-done="3"] .is-habit {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.14);
}

.slot-0 { top: 0; left: 50%; transform: translateX(-50%); }
.slot-1 { top: 22%; right: 0; }
.slot-2 { bottom: 22%; right: 0; }
.slot-3 { bottom: 0; left: 50%; transform: translateX(-50%); }
.slot-4 { bottom: 22%; left: 0; }
.slot-5 { top: 22%; left: 0; }

/* Immersive spinner: everything but the ring fades; the ring itself never moves. */
.ring-console.is-immersive .console-top,
.ring-console.is-immersive .radial-slots {
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  transition: opacity 250ms var(--ease), transform 250ms var(--ease), visibility 0s linear 250ms;
}

.ring-console.is-immersive .radial-slots {
  transform: translateY(6px);
}

.console-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.console-controls .btn {
  flex: 1 1 130px;
}

.console-controls .btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.console-caption {
  margin-top: 10px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

@keyframes bioSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(720deg); }
}

@keyframes bioCentrifugal {
  0% { transform: scaleX(1) scaleY(1); }
  35% { transform: scaleX(1.13) scaleY(0.96); }
  100% { transform: scaleX(1) scaleY(1); }
}

/* ---- Ticker Band ---- */
.band {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 14px 0;
  overflow: hidden;
}

.band-track {
  display: flex;
  width: max-content;
  animation: ticker 34s linear infinite;
}

.band-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-right: 22px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.band-sep {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Sections ---- */
.sec {
  padding: 78px 0;
}

.sec.alt {
  background: rgba(19, 27, 44, 0.56);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.sec-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.28;
  margin-bottom: 12px;
}

.sec-lead {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ---- Asymmetric Bento Features Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  grid-column: span 6;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.feature-card:nth-child(1) {
  grid-column: span 7;
}

.feature-card:nth-child(2) {
  grid-column: span 5;
}

.feature-card:nth-child(3) {
  grid-column: span 5;
}

.feature-card:nth-child(4) {
  grid-column: span 7;
}

.feature-card:nth-child(5) {
  grid-column: span 12;
}

.feature-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--emerald);
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* ---- Screens gallery ---- */
.shots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border-active);
  background: var(--bg-base);
  box-shadow: var(--shadow-card);
}

.shot figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- Research report parts ---- */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.part-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--emerald);
  border-radius: var(--radius-card);
  padding: 20px;
}

.part-card:nth-child(2) { border-top-color: var(--cyan); }
.part-card:nth-child(3) { border-top-color: var(--amber); }
.part-card:nth-child(4) { border-top-color: var(--cyan); }

.part-code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.part-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.ch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ch-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
}

.ch-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ch-title {
  font-size: 0.9rem;
  line-height: 1.5;
}

.ch-access {
  grid-column: 2;
  justify-self: start;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
}

.ch-list .is-free .ch-access {
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
}

.ch-list .is-preview .ch-access {
  color: var(--amber);
  background: rgba(245, 158, 11, 0.12);
}

.safety-banner {
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}

.safety-banner h3 {
  font-size: 1.02rem;
  color: var(--amber);
  margin-bottom: 6px;
}

.safety-banner p {
  font-size: 0.93rem;
  color: var(--text-secondary);
}

/* ---- Pricing Split & Comparison ---- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 34px;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  padding: 28px;
}

.plan-card.is-pro {
  border-color: var(--emerald);
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.08), var(--bg-card) 48%);
}

.plan-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  color: var(--emerald);
  margin-bottom: 14px;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.plan-price {
  font-family: var(--font-mono);
  font-size: 2.3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.plan-period {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.trial-pill {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-bottom: 16px;
}

.plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}

.cmp-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.cmp-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  margin-bottom: 16px;
}

.cmp {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
  font-size: 0.92rem;
}

.cmp th,
.cmp td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.cmp thead th {
  background: var(--bg-elevated);
  font-weight: 700;
}

.cmp tbody tr:last-child th,
.cmp tbody tr:last-child td {
  border-bottom: 0;
}

.cmp tbody th {
  font-weight: 600;
  color: var(--text-primary);
}

.cmp tbody td {
  color: var(--text-secondary);
}

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

/* ---- Privacy Boundary ---- */
.priv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.priv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px;
}

.priv-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  color: var(--cyan);
  margin-bottom: 12px;
}

.priv-card h3 {
  font-size: 1.12rem;
  margin-bottom: 12px;
}

.priv-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.priv-card li {
  position: relative;
  padding-left: 16px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.priv-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

/* ---- Honest Disclaimer ---- */
.disclaimer-box {
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-panel);
  padding: 28px;
}

.disclaimer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.disclaimer-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.disclaimer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

/* ---- Download Panel ---- */
.dl-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-panel);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: center;
}

.dl-panel h3 {
  font-size: 1.24rem;
  margin-bottom: 8px;
}

.dl-panel p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.dl-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.dl-links a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- FAQ ---- */
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qa-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 18px 20px;
}

.qa-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.qa-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--emerald);
}

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

.qa-item p {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* ---- Legal / Support Pages ---- */
.legal {
  padding: 136px 0 78px;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.legal-lead {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.legal-toc {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  margin-bottom: 30px;
}

.legal-toc-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--emerald);
  margin-bottom: 10px;
}

.legal-toc ol {
  padding-left: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  font-size: 0.9rem;
}

.legal-toc a {
  color: var(--text-secondary);
}

.legal-toc a:hover {
  color: var(--emerald);
}

.legal-body h2 {
  font-size: 1.24rem;
  font-weight: 700;
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-body p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-body ul {
  padding-left: 20px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-body a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--text-primary);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  margin: 14px 0 18px;
  background: var(--bg-card);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.table-wrap thead th {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.contact {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-left: 3px solid var(--emerald);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  margin: 14px 0 18px;
}

.contact p {
  margin-bottom: 6px;
  color: var(--text-primary);
}

.contact p:last-child {
  margin-bottom: 0;
}

.legal-end {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.legal-end a {
  color: var(--emerald);
}

/* ---- Footer ---- */
.foot {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 36px;
}

.foot-top {
  margin-bottom: 28px;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.foot-line {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.foot-line a {
  color: var(--emerald);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.foot-col-h {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.foot-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.foot-col a:hover,
.foot-col a[aria-current="page"] {
  color: var(--emerald);
}

.foot-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

/* ---- Progressive Reveal ---- */
.js .rise {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-rise) var(--ease), transform var(--t-rise) var(--ease);
}

.js .rise.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band-track { animation: none; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .ring-console.is-spinning .ring-svg,
  .ring-console.is-spinning .ring-orbit { animation: none; }
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero { padding-top: 150px; }
  .hero-copy { grid-column: 1 / -1; }
  .hero-console-wrap { grid-column: 1 / -1; max-width: 540px; }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card:nth-child(n) { grid-column: span 6; }
  .feature-card:nth-child(5) { grid-column: span 12; }
}

@media (max-width: 780px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ring-field { height: 250px; }
  .radial-slot { font-size: 0.64rem; }
  :root { --gutter: 18px; }
  .site-nav, .btn-head { display: none; }
  .menu-all { display: block; }
  .hero { padding-top: 136px; }
  .feature-card:nth-child(n),
  .plans-grid,
  .priv-grid,
  .dl-panel,
  .foot-cols,
  .parts-grid,
  .legal-toc ol {
    grid-template-columns: 1fr;
    grid-column: 1 / -1;
  }
}
