@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
  --bg: #121a23;
  --bg-elevated: rgba(21, 33, 45, 0.86);
  --surface: rgba(14, 23, 32, 0.8);
  --surface-strong: rgba(17, 28, 40, 0.94);
  --line: rgba(150, 183, 205, 0.17);
  --text: #edf4f7;
  --muted: #a6b8c5;
  --accent: #8ad2e0;
  --accent-strong: #5c83b4;
  --accent-soft: rgba(138, 210, 224, 0.14);
  --highlight: #edc493;
  --shadow: 0 24px 70px rgba(3, 11, 20, 0.42);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 999px;
  --max-width: 1180px;
  --font-body: "Space Grotesk", sans-serif;
  --font-display: "Cormorant Garamond", serif;
}

:root[data-theme="light"] {
  --bg: #eef3f2;
  --bg-elevated: rgba(255, 255, 252, 0.92);
  --surface: rgba(255, 252, 247, 0.9);
  --surface-strong: rgba(255, 254, 251, 0.97);
  --line: rgba(88, 115, 132, 0.16);
  --text: #1a2c38;
  --muted: #617483;
  --accent: #2d93a7;
  --accent-strong: #456e99;
  --accent-soft: rgba(45, 147, 167, 0.1);
  --highlight: #bf7b39;
  --shadow: 0 18px 42px rgba(56, 73, 88, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 24% 16%, rgba(138, 210, 224, 0.26), transparent 22%),
    radial-gradient(circle at 72% 15%, rgba(237, 196, 147, 0.24), transparent 18%),
    radial-gradient(circle at 50% 72%, rgba(92, 131, 180, 0.18), transparent 26%),
    linear-gradient(180deg, #161f2a 0%, #101821 52%, #0b1118 100%);
  background-attachment: fixed;
}

body[data-theme="light"] {
  background:
    radial-gradient(circle at 20% 12%, rgba(45, 147, 167, 0.12), transparent 24%),
    radial-gradient(circle at 76% 14%, rgba(191, 123, 57, 0.12), transparent 18%),
    radial-gradient(circle at 52% 70%, rgba(69, 110, 153, 0.1), transparent 28%),
    linear-gradient(180deg, #f4f7f6 0%, #edf1ef 54%, #e7ecea 100%);
}

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

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

::selection {
  background: rgba(138, 210, 224, 0.22);
  color: white;
}

button,
input,
select,
textarea {
  font: inherit;
}

.loading-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: var(--muted);
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.ambient {
  position: fixed;
  inset: auto auto 10% -8rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.38;
  pointer-events: none;
}

.ambient-one {
  background: rgba(237, 196, 147, 0.18);
}

.ambient-two {
  inset: 6rem -7rem auto auto;
  background: rgba(138, 210, 224, 0.18);
}

.site-header,
.page-root,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0 0.8rem;
  z-index: 8;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 4.35rem;
  height: 3.8rem;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(138, 210, 224, 0.2);
  background:
    radial-gradient(circle at 48% 34%, rgba(138, 210, 224, 0.24), transparent 52%),
    linear-gradient(180deg, rgba(20, 32, 44, 0.98), rgba(10, 16, 24, 0.98));
  box-shadow: 0 14px 32px rgba(6, 14, 24, 0.34);
}

.brand-mark img {
  width: 155%;
  height: 155%;
  object-fit: cover;
  object-position: center 24%;
  transform: scale(1.04);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-title,
h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text);
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(12, 19, 27, 0.68);
  backdrop-filter: blur(14px);
}

.site-nav a,
.language-switcher a,
.language-switcher summary {
  color: var(--muted);
  transition: color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.language-switcher a:hover,
.language-switcher a.is-active,
.language-switcher summary:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.language-switcher {
  position: relative;
  font-size: 1.15rem;
  z-index: 20;
}

.settings-toggle,
.settings-close,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 24, 34, 0.9);
  color: var(--text);
  cursor: pointer;
}

.settings-toggle {
  font-size: 1.05rem;
}

.theme-toggle {
  width: auto;
  min-width: 4.7rem;
  padding: 0 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(6, 14, 24, 0.18);
}

.theme-toggle__label {
  line-height: 1;
}

.language-switcher summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(14, 23, 32, 0.72);
  border: 1px solid var(--line);
  list-style: none;
  cursor: pointer;
}

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

.language-switcher[open] summary,
.language-switcher a.is-active {
  background: rgba(20, 33, 46, 0.92);
}

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  min-width: 12rem;
  padding: 0.45rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(11, 18, 27, 0.96);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.2rem;
  z-index: 30;
}

.language-switcher__menu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
}

.language-switcher__menu a:hover,
.language-switcher__menu a.is-active {
  background: rgba(138, 210, 224, 0.1);
}

.language-switcher__flag {
  font-size: 1rem;
}

.settings-panel,
.selection-translator {
  position: fixed;
  z-index: 30;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.settings-panel {
  top: 5.5rem;
  right: max(1rem, calc((100vw - var(--max-width)) / 2 + 1rem));
  width: min(28rem, calc(100vw - 2rem));
  padding: 1.2rem;
  border-radius: var(--radius-lg);
}

.settings-panel__header,
.selection-translator__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.settings-panel__header h2,
.selection-translator__header h3 {
  margin-top: 0.15rem;
}

.settings-note,
.selection-translator__meta,
.selection-translator__translation {
  color: var(--muted);
}

.settings-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.settings-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.65rem;
}

.settings-fieldset legend {
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.settings-row,
.settings-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.settings-choice {
  justify-content: flex-start;
}

.settings-choice input,
.settings-row input {
  width: auto;
}

.selection-translator {
  right: max(1rem, calc((100vw - var(--max-width)) / 2 + 1rem));
  bottom: 1.2rem;
  width: min(30rem, calc(100vw - 2rem));
  padding: 1.1rem;
  border-radius: var(--radius-lg);
}

.selection-translator__section + .selection-translator__section {
  margin-top: 1rem;
}

.selection-translator__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--highlight);
  text-transform: uppercase;
}

.selection-translator__source,
.selection-translator__translation {
  margin: 0;
  line-height: 1.6;
}

.selection-translator__source strong {
  color: var(--text);
  background: rgba(237, 196, 147, 0.12);
  padding: 0.05rem 0.15rem;
  border-radius: 0.3rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-root {
  padding: 1.5rem 0 5rem;
}

.hero-panel,
.content-section,
.panel,
.support-panel,
.filters-panel,
.request-form {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-panel,
.content-section {
  border-radius: var(--radius-lg);
}

.hero-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.hero-panel.compact {
  margin-bottom: 1.5rem;
}

.hero-grid,
.split-section {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--highlight);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  max-width: 14ch;
  text-wrap: balance;
  font-weight: 700;
  color: #f4f8fb;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
}

.lede,
.content-section p,
.panel p,
.support-panel p,
.request-form p {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  margin: 1rem 0 0;
  max-width: 60ch;
  font-size: 1.05rem;
}

.hero-actions,
.cta-actions,
.card-actions,
.chip-row,
.footer-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-actions,
.cta-actions {
  margin-top: 1.5rem;
}

.hero-values {
  margin-top: 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #07131a;
  box-shadow: 0 12px 30px rgba(92, 131, 180, 0.28);
}

.button-secondary {
  background: rgba(15, 24, 34, 0.78);
  border-color: var(--line);
  color: var(--text);
}

.stats-panel,
.step-card,
.trust-card,
.mission-card,
.series-card,
.episode-card,
.panel,
.support-panel {
  border-radius: var(--radius-md);
}

.stats-panel {
  display: grid;
  gap: 1rem;
}

.stat {
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
}

.stat-label {
  color: var(--muted);
}

.content-section {
  margin-top: 1.5rem;
  padding: 1.5rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.steps-grid,
.trust-list,
.series-grid,
.episode-list,
.variant-list {
  display: grid;
  gap: 1rem;
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card,
.trust-card,
.mission-card,
.panel,
.support-panel,
.episode-card {
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.mission-grid {
  display: grid;
  gap: 1rem;
}

.mission-brief {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at top left, rgba(237, 196, 147, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(17, 28, 40, 0.96), rgba(18, 33, 45, 0.86));
  border: 1px solid var(--line);
}

.logo-panel {
  padding: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(138, 210, 224, 0.14);
  background:
    radial-gradient(circle at 40% 28%, rgba(138, 210, 224, 0.2), transparent 48%),
    radial-gradient(circle at 70% 22%, rgba(237, 196, 147, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(18, 29, 40, 0.98), rgba(10, 17, 24, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.logo-panel img {
  width: min(100%, 18rem);
  margin-inline: auto;
  border-radius: 1rem;
}

.mission-brief h3,
.pricing-note strong {
  margin: 0 0 0.45rem;
}

.step-index {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--highlight);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.series-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.series-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.card-image-link {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.series-card:hover .card-image {
  transform: scale(1.03);
}

.card-body,
.card-actions {
  padding: 1rem 1rem 0;
}

.card-body {
  flex: 1;
}

.card-body p {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.card-actions {
  padding-bottom: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.chip-tag {
  background: rgba(237, 196, 147, 0.12);
  color: var(--highlight);
}

.chip-emphasis {
  background: rgba(138, 210, 224, 0.12);
  color: var(--accent);
}

.tag-row,
.detail-tags {
  margin-top: 0.7rem;
}

.cover-frame {
  padding: 0.7rem;
  border-radius: calc(var(--radius-lg) - 6px);
  background: linear-gradient(150deg, rgba(138, 210, 224, 0.16), rgba(237, 196, 147, 0.16));
}

.cover-frame img {
  border-radius: calc(var(--radius-lg) - 12px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.episode-list {
  margin-top: 1.2rem;
}

.episode-card audio {
  width: 100%;
  margin-top: 1rem;
}

.variant-card {
  display: grid;
  gap: 1rem;
}

.variant-episodes summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 700;
}

.episode-subcard {
  display: grid;
  grid-template-columns: minmax(100px, 144px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  background: rgba(20, 32, 44, 0.84);
}

.episode-subcard__image {
  overflow: hidden;
  border-radius: calc(var(--radius-md) - 2px);
  aspect-ratio: 1 / 1;
  background: rgba(138, 210, 224, 0.08);
}

.episode-subcard__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-subcard__content {
  min-width: 0;
}

.episode-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}

@media (max-width: 720px) {
  .episode-subcard {
    grid-template-columns: 1fr;
  }

  .episode-subcard__image {
    max-width: 11rem;
  }
}

.episode-number {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(138, 210, 224, 0.12);
  color: var(--accent);
  font-weight: 800;
}

.filters-panel,
.request-form {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.compact-heading {
  margin-bottom: 0;
}

.filters-panel {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.filters-panel label,
.request-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.filters-panel span,
.request-form span {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(150, 183, 205, 0.14);
  background: rgba(9, 15, 22, 0.9);
  color: var(--text);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
}

input::placeholder,
textarea::placeholder {
  color: rgba(166, 184, 197, 0.7);
}

textarea {
  resize: vertical;
}

.full-span {
  grid-column: 1 / -1;
}

.helper-note,
.form-status,
.back-link,
.empty-state {
  color: var(--muted);
}

.form-status[data-tone="success"] {
  color: var(--accent-strong);
}

.form-status[data-tone="error"] {
  color: #9f3b2c;
}

.form-status[data-tone="loading"] {
  color: var(--highlight);
}

.status-banner {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(138, 210, 224, 0.16);
  background: rgba(92, 131, 180, 0.18);
  color: var(--accent);
  font-weight: 700;
}

.status-banner-success {
  box-shadow: inset 0 0 0 1px rgba(138, 210, 224, 0.06);
}

.status-panel {
  margin-top: 1.25rem;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(138, 210, 224, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(18, 30, 42, 0.96), rgba(15, 24, 34, 0.92));
}

.status-panel h2 {
  margin-bottom: 0.6rem;
}

.status-panel-success {
  box-shadow: inset 0 0 0 1px rgba(138, 210, 224, 0.06);
}

.site-toast-root {
  position: fixed;
  top: clamp(5.25rem, 8vh, 6.5rem);
  right: max(1rem, calc((100vw - var(--max-width)) / 2 + 1rem));
  z-index: 1000;
  display: grid;
  gap: 0.7rem;
  pointer-events: none;
}

.site-toast {
  max-width: min(32rem, calc(100vw - 2rem));
  padding: 1rem 1rem 1rem 1.1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(138, 210, 224, 0.25);
  background: rgba(12, 20, 30, 0.98);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: start;
  pointer-events: auto;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-toast-success {
  border-color: rgba(138, 210, 224, 0.42);
  box-shadow: 0 22px 46px rgba(7, 17, 27, 0.34);
}

.site-toast__content {
  display: grid;
  gap: 0.28rem;
}

.site-toast__title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--highlight);
}

.site-toast__body {
  line-height: 1.45;
  font-weight: 500;
}

.site-toast__close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem;
}

.site-toast__close:hover {
  color: var(--text);
}

body[data-theme="light"] .site-nav,
body[data-theme="light"] .brand-mark,
body[data-theme="light"] .language-switcher summary,
body[data-theme="light"] .theme-toggle,
body[data-theme="light"] .settings-toggle,
body[data-theme="light"] .settings-close {
  background: rgba(255, 255, 251, 0.92);
}

body[data-theme="light"] .language-switcher__menu,
body[data-theme="light"] .site-toast {
  background: rgba(255, 252, 247, 0.96);
}

body[data-theme="light"] h1,
body[data-theme="light"] h2,
body[data-theme="light"] h3,
body[data-theme="light"] .brand-title {
  color: #1d3140;
  text-shadow: none;
}

body[data-theme="light"] .hero-panel,
body[data-theme="light"] .content-section,
body[data-theme="light"] .panel,
body[data-theme="light"] .support-panel,
body[data-theme="light"] .filters-panel,
body[data-theme="light"] .request-form {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(250, 246, 239, 0.92));
}

body[data-theme="light"] .hero-panel {
  background:
    radial-gradient(circle at top right, rgba(45, 147, 167, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(249, 245, 238, 0.94));
}

body[data-theme="light"] .hero-panel .lede,
body[data-theme="light"] .hero-panel .helper-note,
body[data-theme="light"] .content-section p,
body[data-theme="light"] .panel p,
body[data-theme="light"] .support-panel p,
body[data-theme="light"] .request-form p,
body[data-theme="light"] .brand-subtitle,
body[data-theme="light"] .stat-label,
body[data-theme="light"] .settings-note,
body[data-theme="light"] .selection-translator__meta,
body[data-theme="light"] .selection-translator__translation,
body[data-theme="light"] .helper-note {
  color: #5f7280;
}

body[data-theme="light"] .stat,
body[data-theme="light"] .step-card,
body[data-theme="light"] .trust-card,
body[data-theme="light"] .mission-card,
body[data-theme="light"] .panel,
body[data-theme="light"] .support-panel,
body[data-theme="light"] .episode-card,
body[data-theme="light"] .status-panel,
body[data-theme="light"] .pricing-note {
  background: rgba(255, 255, 252, 0.92);
}

body[data-theme="light"] .mission-brief,
body[data-theme="light"] .logo-panel {
  background:
    radial-gradient(circle at top left, rgba(45, 147, 167, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(251, 249, 244, 0.98), rgba(243, 238, 230, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

body[data-theme="light"] .series-card {
  background: rgba(255, 255, 252, 0.96);
}

body[data-theme="light"] .button-primary {
  color: #fbfffe;
  box-shadow: 0 12px 24px rgba(69, 110, 153, 0.18);
}

body[data-theme="light"] .button-secondary {
  background: rgba(255, 255, 252, 0.96);
  color: #1d3140;
}

body[data-theme="light"] .language-switcher[open] summary,
body[data-theme="light"] .language-switcher a.is-active {
  background: rgba(234, 242, 243, 0.96);
}

body[data-theme="light"] input,
body[data-theme="light"] select,
body[data-theme="light"] textarea {
  background: rgba(248, 250, 249, 0.98);
  color: #1a2c38;
  border-color: rgba(88, 115, 132, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

body[data-theme="light"] input::placeholder,
body[data-theme="light"] textarea::placeholder {
  color: #8a98a4;
}

body[data-theme="light"] .site-nav a,
body[data-theme="light"] .language-switcher a,
body[data-theme="light"] .language-switcher summary {
  color: #617483;
}

body[data-theme="light"] .site-nav a:hover,
body[data-theme="light"] .site-nav a.is-active,
body[data-theme="light"] .language-switcher a:hover,
body[data-theme="light"] .language-switcher a.is-active,
body[data-theme="light"] .language-switcher summary:hover {
  color: #1d3140;
}

.commission-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.quick-amount-button {
  min-height: 2.5rem;
}

.offer-grid,
.guided-fields__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guided-fields {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(10, 17, 24, 0.5);
}

.guided-fields summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.guided-fields[open] {
  background: rgba(15, 24, 34, 0.82);
}

.pricing-note {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(17, 28, 40, 0.9);
  border: 1px solid var(--line);
}

.brief-hint-list {
  margin: 0.85rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  display: grid;
  gap: 0.55rem;
}

.brief-example {
  margin: 0.85rem 0 0;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(9, 15, 22, 0.7);
  border: 1px solid rgba(150, 183, 205, 0.12);
}

.optional-templates {
  margin-top: 1.2rem;
}

.checkout-shell {
  margin-top: 1.5rem;
}

.checkout-frame {
  min-height: 26rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(17, 28, 40, 0.9);
  border: 1px solid var(--line);
}

.gate-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  width: min(calc(100% - 1rem), 54rem);
  margin: 0 auto;
  padding: 1.5rem 0;
}

.gate-panel,
.gate-form {
  width: 100%;
}

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

.admin-grid-stacked {
  align-items: start;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-list {
  display: grid;
  gap: 0.85rem;
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(10, 17, 24, 0.7);
}

.admin-list-item-column {
  display: grid;
  justify-content: stretch;
}

.admin-list-item code {
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

.studio-form {
  padding: 0;
}

.studio-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.studio-editor,
.studio-log,
.studio-result pre {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(9, 15, 22, 0.78);
  color: var(--text);
  padding: 1rem;
}

.studio-editor,
.studio-log {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.studio-log {
  min-height: 10rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.studio-result {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.studio-result-card {
  display: grid;
  gap: 0.9rem;
}

.studio-result .guided-fields {
  margin-top: 0;
}

.impact-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.impact-list li + li {
  margin-top: 0.55rem;
}

.cta-band {
  display: grid;
  grid-template-columns: 1.2fr auto;
  align-items: center;
  gap: 1.5rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 7.5rem;
  min-width: 7.5rem;
  padding: 0.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(138, 210, 224, 0.12);
  background:
    radial-gradient(circle at 48% 36%, rgba(138, 210, 224, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(18, 29, 40, 0.98), rgba(10, 17, 24, 0.98));
}

.footer-logo img {
  border-radius: 0.8rem;
}

.footer-links {
  align-items: flex-start;
}

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

.faq-item {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 29, 40, 0.92), rgba(14, 23, 32, 0.9));
}

.faq-item[open] {
  background:
    radial-gradient(circle at top left, rgba(138, 210, 224, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(18, 30, 42, 0.96), rgba(15, 24, 34, 0.92));
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--text);
}

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

.faq-item summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: rgba(138, 210, 224, 0.12);
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

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

.faq-item p {
  margin: 0.9rem 0 0;
}

[data-reveal] {
  animation: rise-in 560ms ease both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header,
  .site-footer,
  .hero-grid,
  .split-section,
  .cta-band,
  .filters-panel,
  .admin-grid,
  .admin-stat-grid,
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    display: grid;
  }

  .header-tools {
    justify-content: flex-start;
  }

  .site-nav {
    overflow-x: auto;
  }

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

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

  .offer-grid,
  .guided-fields__grid {
    grid-template-columns: 1fr;
  }

  .commission-actions {
    flex-direction: column;
  }

  .studio-inline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header,
  .page-root,
  .site-footer {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  h1 {
    font-size: clamp(2.3rem, 11vw, 3.5rem);
  }

  .hero-panel,
  .content-section {
    padding: 1.1rem;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-logo {
    width: 6.2rem;
    min-width: 6.2rem;
  }

  .settings-panel,
  .selection-translator {
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
  }

  .settings-panel {
    top: 6.3rem;
  }
}
