/* ==========================================================================
   SkillMorrow — Deep Slate Product Studio (Approved mau-b Design System)
   ========================================================================== */

:root {
  --bg: #0B0F17;
  --bg-alt: #080C13;
  --surface: #111827;
  --surface-raised: #172133;
  --surface-hover: #1D2940;
  --ink: #F1F5F9;
  --ink-muted: #9BAAC0;
  --ink-subtle: #7888A1;
  --accent: #3B82F6;
  --accent-btn: #2563EB;
  --accent-btn-hover: #1D4ED8;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --accent-bright: #60A5FA;
  --mint: #34D399;
  --mint-soft: rgba(52, 211, 153, 0.14);
  --amber: #F59E0B;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --rose: #F87171;
  --rose-soft: rgba(248, 113, 113, 0.12);
  --border: rgba(148, 163, 184, 0.15);
  --border-strong: rgba(148, 163, 184, 0.28);
  --shadow-lg: 0 24px 60px rgba(2, 6, 23, 0.55);
  --shadow-md: 0 12px 30px rgba(2, 6, 23, 0.38);
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --max-w: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-color: #2A3750 #0B0F17;
  scrollbar-width: thin;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 65% 32% at 50% 0%, rgba(59, 130, 246, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.35) 0%, transparent 28%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

::selection {
  background: var(--accent);
  color: #FFFFFF;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #28354E;
  border-radius: 99px;
  border: 2px solid var(--bg);
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

svg {
  display: block;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-btn);
  color: #FFFFFF;
  padding: 10px 16px;
  z-index: 120;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Browser language auto-suggest bar */
.lang-banner {
  background: #13223D;
  border-bottom: 1px solid rgba(96, 165, 250, 0.32);
  font-size: 0.88rem;
  color: var(--ink);
}
.lang-banner[hidden] {
  display: none;
}
.lang-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.lang-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 23, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-btn);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-select {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 26px 7px 10px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239BAAC0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.lang-select:hover {
  border-color: var(--accent-bright);
}

.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 14px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.mobile-menu.is-open {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-menu a {
  color: var(--ink-muted);
  padding: 4px 0;
}
.mobile-menu a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}
.mobile-lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s var(--ease);
}

.btn-primary {
  background: var(--accent-btn);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--accent-btn-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-raised);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--border-strong);
}

.btn-mint {
  background: var(--mint-soft);
  color: var(--mint);
  border-color: rgba(52, 211, 153, 0.35);
}
.btn-mint:hover {
  background: rgba(52, 211, 153, 0.22);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
}
.status-badge.is-free {
  background: var(--mint-soft);
  color: var(--mint);
  border-color: rgba(52, 211, 153, 0.34);
}
.status-badge.is-available {
  background: var(--accent-soft);
  color: var(--accent-bright);
  border-color: rgba(96, 165, 250, 0.34);
}
.status-badge.is-soon {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.32);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-subtle);
  margin-bottom: 18px;
}
.breadcrumbs a:hover {
  color: var(--ink);
}
.breadcrumbs span[aria-current="page"] {
  color: var(--ink-muted);
}

/* Centered Hero + Demo Theater */
.hero {
  padding: 72px 0 84px;
  border-bottom: 1px solid var(--border);
}

.hero-head {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}

.hero-head h1 {
  overflow-wrap: anywhere;
  hyphens: auto;
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.65rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-head p {
  margin: 0 auto 28px;
  max-width: 60ch;
  font-size: 1.06rem;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.compat-strip {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 0.85rem;
  color: var(--ink-subtle);
}

.compat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
}
.compat-pill svg {
  color: var(--mint);
  flex-shrink: 0;
}

/* Inner Page Header */
.page-head {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--border);
}

.page-head h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 24ch;
}

.page-head p.lead {
  margin: 0;
  max-width: 64ch;
  font-size: 1.05rem;
  color: var(--ink-muted);
}

/* Interactive Demo Theater */
.theater {
  max-width: 980px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: theaterRise 0.55s var(--ease) both;
}

@keyframes theaterRise {
  from {
    opacity: 0.88;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.theater-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
}

.theater-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.theater-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
}

.chapter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chapter-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.chapter-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.chapter-btn[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--accent-bright);
  border-color: rgba(96, 165, 250, 0.35);
}

.theater-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  padding: 26px;
  background: linear-gradient(180deg, #0E1421 0%, #111827 100%);
  align-items: center;
}

.stage-screen {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.screen-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-subtle);
  overflow-wrap: anywhere;
}

.screen-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.screen-line {
  padding: 10px 13px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.87rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.screen-line.is-accent {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(96, 165, 250, 0.32);
}

.screen-line code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-bright);
}

.stage-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: var(--surface-raised);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 33%;
  border-radius: 99px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.stage-notes {
  min-width: 0;
}

.stage-notes h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stage-notes p {
  margin: 0 0 18px;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.stage-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.stage-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.stage-bullets svg {
  color: var(--mint);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Sections */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.section-compact {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.section-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.section-top h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.1vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-top p {
  margin: 0;
  max-width: 58ch;
  color: var(--ink-muted);
}

/* Filter tabs */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.filter-tab {
  padding: 7px 14px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.filter-tab:hover {
  color: var(--ink);
}

.filter-tab[aria-pressed="true"] {
  background: var(--surface-raised);
  color: var(--ink);
}

/* 3-Column Product Grid with Visual Headers */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: border-color 0.18s ease, transform 0.2s var(--ease);
  min-width: 0;
}

.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.product-card.is-coming-soon {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.22);
}

.product-card[hidden] {
  display: none;
}

.card-visual {
  height: 132px;
  padding: 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-visual svg {
  width: 100%;
  height: 100%;
}

.card-visual-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card-head h3 a:hover {
  color: var(--accent-bright);
}

.price-tag {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.price-tag.is-free {
  color: var(--mint);
}
.price-tag.is-soon {
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 600;
}

.card-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ink-subtle);
}

.meta-chip {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--ink-muted);
}

.card-files {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.card-files[hidden] {
  display: none;
}

.card-actions {
  margin-top: auto;
  padding-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.card-inspect-row {
  display: flex;
  justify-content: flex-start;
}

.link-inline {
  color: var(--accent-bright);
  font-size: 0.85rem;
  font-weight: 500;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.link-inline:hover {
  text-decoration: underline;
}

/* 3-Step Flow */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.step-time {
  font-size: 0.8rem;
  color: var(--ink-subtle);
}

.step-box h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.step-box p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* Free Starter Pack CTA */
.free-panel {
  background: linear-gradient(125deg, #13223D 0%, #111827 58%);
  border: 1px solid rgba(96, 165, 250, 0.34);
  border-radius: var(--radius-lg);
  padding: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.free-panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.free-panel p {
  margin: 0 0 22px;
  color: var(--ink-muted);
  max-width: 52ch;
}

.free-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.text-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 0.93rem;
}

.text-input::placeholder {
  color: var(--ink-subtle);
}

.form-msg {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--mint);
  min-height: 1.3em;
}

.free-checklist {
  background: rgba(8, 12, 19, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.free-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.free-item strong {
  color: var(--ink);
}

.free-item svg {
  color: var(--mint);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Honest Limits Matrix */
.limits-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.limit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}

.limit-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--amber);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.limit-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
}

.limit-card p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--ink-muted);
}

/* FAQ 2-Column Accordion Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.faq-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 20px;
}

.faq-box summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
}

.faq-box summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--accent-bright);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.faq-box[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-box p {
  margin: 0 0 18px;
  font-size: 0.91rem;
  color: var(--ink-muted);
}

/* Product Detail Page */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: start;
}

.product-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.product-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.buy-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.buy-card-visual {
  height: 148px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.buy-card-visual svg {
  width: 100%;
  height: 100%;
}

.buy-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.buy-price-big {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.checkout-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-subtle);
  line-height: 1.5;
}

.checkout-note strong {
  color: var(--ink-muted);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.spec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  min-width: 0;
}

.spec-card.is-limits {
  border-color: rgba(245, 158, 11, 0.25);
}

.spec-card h2,
.spec-card h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-list svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.check-list.is-yes svg {
  color: var(--mint);
}

.check-list.is-no svg {
  color: var(--amber);
}

.file-list-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.file-list-box ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.file-list-box li {
  overflow-wrap: anywhere;
}

.tested-tools-box {
  background: var(--surface-raised);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.tested-tools-box[hidden] {
  display: none;
}

/* Prose / About / Contact / Legal pages */
.prose-wrap {
  max-width: 760px;
}

.prose-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.prose-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  min-width: 0;
}

.prose-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.prose-card p {
  margin: 0 0 12px;
  color: var(--ink-muted);
}
.prose-card p:last-child {
  margin-bottom: 0;
}

.prose-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose-card a.text-link {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.callout-box {
  background: #13223D;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  color: var(--ink);
}
.callout-box p {
  margin: 0;
  color: var(--ink-muted);
}
.callout-box strong {
  color: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}

.email-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--accent-bright);
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* 404 */
.notfound-box {
  max-width: 640px;
  margin: 72px auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.notfound-code {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-bright);
  margin: 0 0 12px;
}
.notfound-box h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.7rem;
}
.notfound-box p {
  margin: 0 auto 24px;
  max-width: 46ch;
  color: var(--ink-muted);
}

/* Footer */
.footer {
  background: var(--bg-alt);
  padding: 60px 0 40px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 0.65fr));
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-copy {
  margin: 12px 0 20px;
  max-width: 44ch;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.footer-col h3 {
  margin: 0 0 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.footer-list a:hover {
  color: var(--ink);
}

.footer-bar {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--ink-subtle);
}

.lang-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}
.lang-pill:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.lang-pill[aria-current="true"],
.lang-pill.is-active {
  background: var(--accent-soft);
  border-color: rgba(96, 165, 250, 0.45);
  color: var(--accent-bright);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(380px, calc(100vw - 40px));
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--surface-raised);
  border: 1px solid var(--accent);
  color: var(--ink);
  font-size: 0.87rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s var(--ease);
  z-index: 90;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .theater-stage,
  .free-panel,
  .product-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .product-sidebar {
    position: static;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav,
  .topbar-actions .btn-ghost,
  .topbar-actions .lang-select {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .steps-row,
  .limits-matrix,
  .faq-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    padding-inline: 16px;
  }
  .hero {
    padding: 44px 0 54px;
  }
  .page-head {
    padding: 36px 0 32px;
  }
  .section {
    padding: 56px 0;
  }
  .catalog-grid,
  .footer-grid,
  .file-list-box ul {
    grid-template-columns: 1fr;
  }
  .theater-stage,
  .free-panel,
  .buy-card,
  .prose-card {
    padding: 20px;
  }
  .topbar-actions .btn-primary {
    padding: 8px 12px;
    font-size: 0.82rem;
  }
  .card-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
