/* ==========================================================================
   VibAI Academy — Production Stylesheet (RTL & LTR Aware, Zero CDN Deps)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: var(--teal-border) transparent;
}

body {
  margin: 0;
  background-color: var(--bg-base);
  color: var(--ink-title);
  font-family: var(--font-body);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Visible comfortable scrollbar for trackpad & non-mouse navigation */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(18, 181, 166, 0.34);
  border-radius: 999px;
  border: 2px solid transparent;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(13, 148, 136, 0.58);
}

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

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

h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-title);
}

.font-latin {
  font-family: var(--font-latin);
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.font-mono-code {
  font-family: var(--font-mono);
  direction: ltr;
  unicode-bidi: isolate;
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2.5px solid var(--teal);
  outline-offset: 2px;
}

.container-shell {
  width: 100%;
  max-width: 1152px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .container-shell {
    padding-inline: 24px;
  }
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 0;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: contain;
  border: 1px solid var(--teal-border);
  box-shadow: 0 4px 12px -4px rgba(18, 181, 166, 0.35);
}

.brand-title {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--teal);
}

.brand-title span {
  color: var(--ink-title);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 1180px) {
  .desktop-nav {
    display: flex;
  }
  .mobile-only {
    display: none !important;
  }
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-body);
  background: transparent;
  border: 0;
  padding: 7px 9px;
  border-radius: 10px;
  white-space: nowrap;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-btn:hover, .nav-btn.active {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

body.dark-mode .nav-btn:hover,
body.dark-mode .nav-btn.active {
  color: var(--teal-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--glass-border);
  background: var(--surface);
  color: var(--ink-title);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.icon-btn:hover {
  border-color: var(--teal);
}

.lang-btn {
  height: 42px;
  min-width: 46px;
  padding-inline: 12px;
  border-radius: 11px;
  border: 1px solid var(--teal-border);
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-family: var(--font-latin);
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.16s ease, background-color 0.16s ease;
}

body.dark-mode .lang-btn {
  color: var(--teal-bright);
}

.lang-btn:hover {
  transform: translateY(-1px);
  background: var(--teal-soft-hover);
}

/* Mobile Drawer (Slides from start side cleanly in RTL & LTR) */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(10, 22, 27, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: min(320px, 86vw);
  max-height: 100dvh;
  z-index: 60;
  background: var(--surface);
  border-inline-end: 1px solid var(--glass-border);
  transform: translateX(-105%);
  transition: transform 0.26s ease;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}

[dir="rtl"] .drawer-panel {
  transform: translateX(105%);
}

.drawer-panel.open {
  transform: translateX(0) !important;
}

.drawer-head {
  padding: 16px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.drawer-body {
  padding: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-body .nav-btn {
  width: 100%;
  justify-content: flex-start;
  padding: 11px 12px;
  font-size: 14px;
}

.drawer-foot {
  padding: 16px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Core Glass Card & Buttons */
.ui-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

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

.eyebrow {
  font-family: var(--font-latin), var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

[dir="rtl"] .eyebrow {
  letter-spacing: 0;
  font-family: var(--font-display);
}

body.dark-mode .eyebrow {
  color: var(--teal-bright);
}

.mint-badge {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--teal-soft);
  border: 1px solid var(--teal-border);
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 14px;
}

body.dark-mode .mint-badge {
  color: var(--teal-bright);
}

.btn-teal {
  background: var(--teal);
  color: #FFFFFF;
  border: 1px solid var(--teal);
  border-radius: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.btn-teal:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: var(--teal-glow);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink-title);
  border: 1px solid var(--teal-border);
  border-radius: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.btn-outline:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

/* Distinct Section Banner Heads (Prevents visual mixing between sections) */
.section-band {
  padding-top: 28px;
  border-top: 1px dashed var(--teal-border);
}

.section-banner-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: var(--step-band-bg);
  border: 1px solid var(--step-band-border);
}

.section-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.section-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -6px rgba(18, 181, 166, 0.48);
}

.section-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--teal-dark);
  border: 1px solid var(--teal-border);
  margin-bottom: 4px;
}

body.dark-mode .section-step-pill {
  color: var(--teal-bright);
}

.section-heading {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.28;
}

.section-sub {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--ink-body);
}

/* Tool Brand Chips */
.tool-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 7px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-title);
}

.tool-chip-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-chip-icon--light {
  background: #FFFFFF;
  border: 1px solid rgba(20, 48, 52, 0.14);
}

.tool-chip-icon--dark {
  background: #0F1A21;
  border: 1px solid rgba(45, 212, 191, 0.35);
}

.tool-brand-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hero & 3D Robot Frame */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 36px;
  }
}

.hero-title {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.24;
}

.robot-transparent-frame {
  position: relative;
  width: 100%;
  height: 350px;
  background: radial-gradient(circle at 50% 45%, rgba(18, 181, 166, 0.11), rgba(18, 181, 166, 0.02) 70%);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  touch-action: pan-y;
}

@media (min-width: 1024px) {
  .robot-transparent-frame {
    height: 420px;
  }
}

.robot-state-badge {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 12px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--teal-border);
  color: var(--ink-body);
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.robot-hint-badge {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  border: 1px solid var(--teal-border);
  color: var(--teal-dark);
  pointer-events: none;
}

body.dark-mode .robot-hint-badge {
  color: var(--teal-bright);
}

/* Grids & Layout Helpers */
.main-stage {
  padding-block: 32px 48px;
  min-height: 82vh;
}

.view-stack {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.subview-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid-5 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

.split-12 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 1024px) {
  .split-12 {
    grid-template-columns: 7fr 5fr;
    gap: 28px;
  }
  .split-12-eq {
    grid-template-columns: 5fr 7fr;
  }
}

/* Views Visibility */
.app-view {
  display: none;
}

.app-view.active {
  display: block;
  animation: viewFade 0.26s ease;
}

@keyframes viewFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Locked Overlay (Fixed for Light & Dark Mode) */
.locked-preview-box {
  position: relative;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--glass-border);
  background: var(--bg-base);
  overflow: hidden;
}

.locked-skeleton {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  opacity: 0.55;
}

.locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  gap: 10px;
  background: var(--locked-overlay-bg);
  backdrop-filter: blur(2px);
}

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

.faq-item {
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: var(--teal-border);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: start;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--ink-title);
}

.faq-chevron {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

body.dark-mode .faq-chevron {
  color: var(--teal-bright);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-panel {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.9rem;
  color: var(--ink-body);
  line-height: 1.7;
}

.faq-item.open .faq-panel {
  display: block;
}

/* Interactive Prompt Demo Widget */
.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .prompt-compare-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.prompt-box {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  font-size: 0.87rem;
  line-height: 1.65;
}

.prompt-box--weak {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.25);
}

.prompt-box--pro {
  background: rgba(18, 181, 166, 0.08);
  border-color: var(--teal-border);
}

/* Cards & Media — Full Uncropped Natural Aspect Ratio */
.card-media,
.card-media-tall,
.card-media-full {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--glass-border);
}

.book-media-full {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: var(--bg-subtle);
}

.portfolio-preview-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--glass-border);
}

.portfolio-preview-stack img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
}

.locked-vault-box {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pro-prompt-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--teal-border);
  font-size: 0.82rem;
  color: var(--ink-body);
}

.card-pad {
  padding: 20px;
}

@media (min-width: 640px) {
  .card-pad-lg {
    padding: 28px;
  }
}

/* WhatsApp & Instagram Brand Buttons */
.social-btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  background: #22C55E;
  text-decoration: none;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.social-btn-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF);
  text-decoration: none;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.social-btn-wa:hover, .social-btn-ig:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* Modal & Toast */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(10, 22, 27, 0.54);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--teal-border);
  border-radius: 22px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.25);
}

.toast-box {
  position: fixed;
  bottom: 20px;
  inset-inline-start: 20px;
  z-index: 75;
  background: #16202A;
  color: #FFFFFF;
  border: 1px solid rgba(18, 181, 166, 0.5);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.toast-box.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--glass-border);
  background: var(--footer-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--glass-border);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
}

/* Utility Helpers */
.hidden { display: none !important; }
.text-muted { color: var(--ink-muted); }
.text-body { color: var(--ink-body); }
.text-teal { color: var(--teal-dark); }
body.dark-mode .text-teal { color: var(--teal-bright); }
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
}
body.dark-mode .pill-tag { color: var(--teal-bright); }
.pill-locked {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  color: var(--ink-muted);
}
.code-block {
  background: var(--code-bg);
  color: #E2F8F5;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(18, 181, 166, 0.3);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  direction: ltr;
  text-align: left;
  overflow-x: auto;
  white-space: pre-wrap;
}
.field-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--bg-base);
  color: var(--ink-title);
  font-size: 0.9rem;
}

.overflow-hidden {
  overflow: hidden;
}

.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-md { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.hero-actions .btn-teal,
.hero-actions .btn-outline {
  padding: 12px 20px;
  font-size: 0.93rem;
}

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

.bullet-list li {
  position: relative;
  padding-inline-start: 18px;
  font-size: 0.87rem;
  color: var(--ink-body);
}

.bullet-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.trans-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stage-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.level-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.level-card--highlight {
  border-color: var(--teal-border);
  background: linear-gradient(180deg, var(--teal-soft) 0%, var(--glass-bg) 35%);
}

.road-box {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.road-pill {
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: inline-block;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
}

.road-pill--avail { background: var(--status-success-bg); color: var(--status-success-text); }
.road-pill--dev { background: rgba(245, 158, 11, 0.16); color: #B45309; }
body.dark-mode .road-pill--dev { color: #FBBF24; }
.road-pill--plan { background: var(--teal-soft); color: var(--teal-dark); }
body.dark-mode .road-pill--plan { color: var(--teal-bright); }

.final-cta-card {
  padding: 28px 22px;
  text-align: center;
  border-color: var(--teal-border);
  background: radial-gradient(circle at 50% 0%, var(--teal-soft), var(--glass-bg) 65%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

@media (min-width: 768px) {
  .final-cta-card { padding: 40px 32px; }
}

.footer-link-btn {
  background: transparent;
  border: 0;
  padding: 4px 0;
  text-align: start;
  font-size: 0.86rem;
  color: var(--ink-body);
  transition: color 0.16s ease;
}

.footer-link-btn:hover {
  color: var(--teal);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}

.field-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--ink-title);
}

.studio-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.studio-bar {
  height: 44px;
  border-radius: 10px;
  background: var(--teal-soft);
  border: 1px dashed var(--teal-border);
}

.intel-filter {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.modal-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

/* Interactive Tool Drill-Down & Standalone Section Helpers */
.intel-card--clickable {
  cursor: pointer;
  position: relative;
}

.intel-card--clickable:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.intel-open-hint {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body.dark-mode .intel-open-hint {
  color: var(--teal-bright);
}

.tool-detail-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--glass-border);
}

.tool-spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .tool-spec-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .tool-spec-grid { grid-template-columns: repeat(4, 1fr); }
}

.tool-spec-item {
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-base);
  border: 1px solid var(--glass-border);
}

.tool-spec-label {
  font-size: 11.5px;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.tool-spec-val {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--ink-title);
}

.tool-bullet-list {
  margin: 10px 0 0;
  padding-inline-start: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-body);
}

.drawer-group-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  padding: 8px 12px 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[dir="rtl"] .drawer-group-label {
  letter-spacing: 0;
}

.book-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}

@media (min-width: 768px) {
  .book-showcase-grid {
    grid-template-columns: 1.35fr 0.9fr;
  }
}
