/* =============================================================
   딱배움 (Ddakbaeum) — 디자인 시스템
   ============================================================= */

:root {
  /* Primary - Trust Navy */
  --primary-50: #EFF6FF;
  --primary-100: #DBEAFE;
  --primary-200: #BFDBFE;
  --primary-300: #93C5FD;
  --primary-400: #60A5FA;
  --primary-500: #1E40AF;
  --primary-600: #1E3A8A;
  --primary-700: #1E3A8A;
  --primary-800: #172554;

  /* Accent - Education Gold */
  --accent-50: #FFFBEB;
  --accent-100: #FEF3C7;
  --accent-200: #FDE68A;
  --accent-300: #FCD34D;
  --accent-400: #FBBF24;
  --accent-500: #D97706;
  --accent-600: #B45309;

  /* Background - 따뜻한 white */
  --bg-base: #FAFAF9;
  --bg-elevated: #FFFFFF;
  --bg-card: #F5F5F4;

  /* Status */
  --success: #15803D;
  --warning: #D97706;
  --danger: #DC2626;

  /* Text */
  --text-primary: #1C1917;
  --text-secondary: #57534E;
  --text-muted: #A8A29E;

  /* Stone (neutral) */
  --stone-50: #FAFAF9;
  --stone-100: #F5F5F4;
  --stone-200: #E7E5E4;
  --stone-300: #D6D3D1;
  --stone-400: #A8A29E;
  --stone-500: #78716C;
  --stone-600: #57534E;
  --stone-700: #44403C;
  --stone-800: #292524;
  --stone-900: #1C1917;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--bg-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* =============================================================
   Atomic utilities (Tailwind-like subset)
   ============================================================= */

/* Layout */
.container { width: 100%; margin: 0 auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.top-0 { top: 0; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-top-3 { top: -0.75rem; }
.z-50 { z-index: 50; }
.scale-105 { transform: scale(1.05); }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Sizing */
.w-full { width: 100%; }
.w-64 { width: 16rem; }
.h-16 { height: 4rem; }
.size-1\.5 { width: 0.375rem; height: 0.375rem; }
.size-2 { width: 0.5rem; height: 0.5rem; }
.size-4 { width: 1rem; height: 1rem; }
.size-5 { width: 1.25rem; height: 1.25rem; }
.size-8 { width: 2rem; height: 2rem; }
.size-9 { width: 2.25rem; height: 2.25rem; }
.size-10 { width: 2.5rem; height: 2.5rem; }
.size-12 { width: 3rem; height: 3rem; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }

/* Spacing */
.p-1 { padding: 0.25rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-28 { padding-top: 7rem; padding-bottom: 7rem; }
.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-24 { margin-top: 6rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.my-3 { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Typography */
.font-sans { font-family: 'Pretendard Variable', Pretendard, system-ui, sans-serif; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-normal { font-weight: 400; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.underline { text-decoration: underline; }
.antialiased { -webkit-font-smoothing: antialiased; }

/* Colors - text */
.text-primary { color: var(--text-primary); }
.text-primary-600 { color: var(--primary-600); }
.text-primary-700 { color: var(--primary-700); }
.text-primary-100 { color: var(--primary-100); }
.text-primary-50 { color: var(--primary-50); }
.text-accent-500 { color: var(--accent-500); }
.text-amber-100 { color: #FEF3C7; }
.text-amber-50 { color: var(--accent-50); }
.text-amber-700 { color: #B45309; }
.text-amber-600 { color: var(--accent-600); }
.text-text-primary { color: var(--text-primary); }
.text-text-secondary { color: var(--text-secondary); }
.text-text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-white { color: white; }
.text-stone-800 { color: var(--stone-800); }
.text-\[\#191919\] { color: #191919; }

/* Colors - background */
.bg-base { background: var(--bg-base); }
.bg-white { background: white; }
.bg-stone-50 { background: var(--stone-50); }
.bg-stone-100 { background: var(--stone-100); }
.bg-stone-200 { background: var(--stone-200); }
.bg-stone-800 { background: var(--stone-800); }
.bg-primary-50 { background: var(--primary-50); }
.bg-primary-100 { background: var(--primary-100); }
.bg-primary-500 { background: var(--primary-500); }
.bg-primary-600 { background: var(--primary-600); }
.bg-primary-700 { background: var(--primary-700); }
.bg-accent-500 { background: var(--accent-500); }
.bg-amber-50 { background: var(--accent-50); }
.bg-amber-600 { background: var(--accent-600); }
.bg-text-primary { background: var(--text-primary); }
.bg-\[\#FEE500\] { background: #FEE500; }
.bg-stone-50\/50 { background: rgba(245, 245, 244, 0.5); }
.bg-white\/80 { background: rgba(255, 255, 255, 0.8); }
.bg-white\/70 { background: rgba(255, 255, 255, 0.7); }
.bg-primary-50\/40 { background: rgba(239, 246, 255, 0.4); }
.bg-amber-50\/40 { background: rgba(255, 251, 235, 0.4); }
.bg-gradient-to-b { background: linear-gradient(to bottom, var(--gradient-from, transparent), var(--gradient-to, transparent)); }
.bg-gradient-to-br { background: linear-gradient(to bottom right, var(--gradient-from, transparent), var(--gradient-to, transparent)); }
.bg-gradient-to-r { background: linear-gradient(to right, var(--gradient-from, transparent), var(--gradient-mid, transparent), var(--gradient-to, transparent)); }
.from-primary-50\/40 { --gradient-from: rgba(239, 246, 255, 0.4); }
.from-primary-50 { --gradient-from: var(--primary-50); }
.from-primary-500 { --gradient-from: var(--primary-500); }
.from-primary-600 { --gradient-from: var(--primary-600); }
.from-amber-50\/40 { --gradient-from: rgba(255, 251, 235, 0.4); }
.from-accent-500 { --gradient-from: var(--accent-500); }
.via-primary-500 { --gradient-mid: var(--primary-500); }
.to-white { --gradient-to: white; }
.to-primary-700 { --gradient-to: var(--primary-700); }
.to-primary-800 { --gradient-to: var(--primary-800); }
.to-amber-600 { --gradient-to: var(--accent-600); }
.to-accent-500 { --gradient-to: var(--accent-500); }
.to-stone-50 { --gradient-to: var(--stone-50); }

/* Borders */
.border { border-width: 1px; border-style: solid; border-color: var(--stone-200); }
.border-t { border-top-width: 1px; border-top-style: solid; border-top-color: var(--stone-200); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: var(--stone-200); }
.border-r { border-right-width: 1px; border-right-style: solid; border-right-color: var(--stone-200); }
.border-0 { border-width: 0; }
.border-stone-200 { border-color: var(--stone-200); }
.border-stone-300 { border-color: var(--stone-300); }
.border-primary-200 { border-color: var(--primary-200); }
.border-primary-500 { border-color: var(--primary-500); }
.border-amber-500 { border-color: var(--accent-500); }
.ring-2 { box-shadow: 0 0 0 2px var(--ring-color, var(--primary-500)); }
.ring-primary-500 { --ring-color: var(--primary-500); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.625rem; }
.rounded-2xl { border-radius: 0.75rem; }
.rounded-3xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-md { border-radius: 0.375rem; }
.rounded-tl-md { border-top-left-radius: 0.375rem; }
.rounded-tr-md { border-top-right-radius: 0.375rem; }
.rounded-\[1\.4rem\] { border-radius: 1.4rem; }

/* Effects */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 12px 28px rgb(28 25 23 / 0.08); }
.shadow-xl { box-shadow: 0 16px 42px rgb(28 25 23 / 0.1); }
.shadow-2xl { box-shadow: 0 22px 58px rgb(28 25 23 / 0.12); }
.backdrop-blur { backdrop-filter: blur(8px); }
.opacity-50 { opacity: 0.5; }

/* Transitions */
.transition { transition: all 200ms ease; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Hover */
.hover\:bg-primary-700:hover { background: var(--primary-700); }
.hover\:bg-primary-800:hover { background: var(--primary-800); }
.hover\:bg-stone-50:hover { background: var(--stone-50); }
.hover\:bg-stone-100:hover { background: var(--stone-100); }
.hover\:bg-stone-200:hover { background: var(--stone-200); }
.hover\:bg-stone-800:hover { background: var(--stone-800); }
.hover\:bg-amber-600:hover { background: var(--accent-600); }
.hover\:bg-amber-50:hover { background: var(--accent-50); }
.hover\:bg-primary-50:hover { background: var(--primary-50); }
.hover\:bg-white:hover { background: white; }
.hover\:text-primary-600:hover { color: var(--primary-600); }
.hover\:text-primary-700:hover { color: var(--primary-700); }
.hover\:from-primary-700:hover { --gradient-from: var(--primary-700); }
.hover\:to-primary-800:hover { --gradient-to: var(--primary-800); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1); }
.hover\:border-primary-200:hover { border-color: var(--primary-200); }
.hover\:border-amber-500:hover { border-color: var(--accent-500); }
.hover\:brightness-95:hover { filter: brightness(0.95); }

.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--ring-color, var(--primary-500)); }
.focus\:ring-primary-500:focus { --ring-color: var(--primary-500); }
.focus\:border-primary-500:focus { border-color: var(--primary-500); }

.group:hover .group-hover\:text-primary-700 { color: var(--primary-700); }
.disabled\:opacity-50:disabled { opacity: 0.5; }
input:disabled { opacity: 0.5; cursor: not-allowed; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Responsive */
@media (min-width: 768px) {
  .md\:inline { display: inline; }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:col-span-1 { grid-column: span 1; }
  .md\:col-span-2 { grid-column: span 2; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:flex-row { flex-direction: row; }
  .md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .md\:p-12 { padding: 3rem; }
  .md\:p-16 { padding: 4rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

@media (max-width: 767px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
}

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

/* Container max-width */
@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}

/* Demo chat height */
.h-\[600px\] { height: 600px; }

/* Specific overrides */
.surface-marketing { background: var(--bg-base); }
.surface-dashboard { background: var(--stone-50); }
.surface-search { background: var(--bg-base); }

/* =============================================================
   Editorial visuals
   ============================================================= */

.visual-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(460px, 72svh, 600px);
  display: flex;
  align-items: center;
  background: var(--bg-base);
}

.visual-hero-image,
.visual-panel-image,
.visual-banner-image,
.dashboard-visual-strip-image,
.academy-card-thumb-image,
.academy-detail-media-image,
.problem-visual-image,
.not-found-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visual-hero-image {
  position: absolute;
  inset: 0;
  object-position: center right;
}

.visual-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(250, 250, 249, 0.98) 0%,
    rgba(250, 250, 249, 0.9) 43%,
    rgba(250, 250, 249, 0.42) 70%,
    rgba(250, 250, 249, 0.08) 100%
  );
}

.visual-hero-amber .visual-hero-scrim {
  background: linear-gradient(
    90deg,
    rgba(255, 251, 235, 0.98) 0%,
    rgba(250, 250, 249, 0.9) 44%,
    rgba(250, 250, 249, 0.34) 72%,
    rgba(250, 250, 249, 0.08) 100%
  );
}

.visual-hero-center .visual-hero-scrim {
  background: linear-gradient(
    180deg,
    rgba(250, 250, 249, 0.98) 0%,
    rgba(250, 250, 249, 0.86) 50%,
    rgba(250, 250, 249, 0.22) 100%
  );
}

.visual-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.visual-panel {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--stone-200);
  background: white;
  box-shadow: 0 10px 30px rgb(28 25 23 / 0.08);
}

.visual-panel-image {
  aspect-ratio: 16 / 10;
}

.visual-panel-label {
  position: absolute;
  left: 0.875rem;
  bottom: 0.875rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  padding: 0.375rem 0.625rem;
  backdrop-filter: blur(8px);
}

.visual-banner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 1.5rem;
  align-items: center;
  border-radius: 0.5rem;
  border: 1px solid var(--stone-200);
  background: white;
  padding: 1rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.visual-banner-image {
  aspect-ratio: 16 / 10;
  border-radius: 0.375rem;
}

.visual-banner-copy {
  padding: 0.5rem 0.75rem;
}

.visual-banner-eyebrow {
  color: var(--primary-600);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.visual-banner-amber .visual-banner-eyebrow {
  color: var(--accent-600);
}

.visual-banner h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

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

.visual-banner-link {
  display: inline-flex;
  margin-top: 1rem;
  border-radius: 0.5rem;
  background: var(--primary-600);
  color: white;
  font-weight: 700;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
}

.visual-banner-amber .visual-banner-link {
  background: var(--accent-500);
}

.dashboard-visual-strip {
  height: 116px;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--stone-200);
  background: white;
}

.dashboard-visual-strip-image {
  object-position: center;
}

.home-value-media {
  height: 180px;
  margin: -1rem -1rem 1.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.home-value-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.onboarding-shell,
.auth-shell {
  width: 100%;
  max-width: 72rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 1.5rem;
  align-items: stretch;
}

.auth-shell {
  max-width: 58rem;
}

.onboarding-visual,
.auth-visual {
  min-height: 100%;
}

.onboarding-visual .visual-panel-image,
.auth-visual .visual-panel-image {
  min-height: 100%;
  aspect-ratio: auto;
}

.blog-hero-visual,
.roadmap-hero-visual {
  margin-bottom: 2rem;
}

.academy-card-with-media {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.academy-card-thumb {
  min-height: 118px;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--stone-100);
}

.academy-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1.5rem;
  align-items: stretch;
}

.academy-detail-copy,
.academy-detail-media {
  min-width: 0;
}

.academy-detail-media {
  border-radius: 0.5rem;
  overflow: hidden;
  min-height: 260px;
}

.academy-action-row {
  display: flex;
  gap: 0.75rem;
}

.problem-visual {
  height: 180px;
  margin: -2rem -2rem 1.75rem;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
}

.not-found-image {
  width: min(420px, 92vw);
  height: 220px;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--stone-200);
  box-shadow: 0 10px 30px rgb(28 25 23 / 0.08);
}

.visual-hero-platform {
  min-height: clamp(540px, 78svh, 720px);
}

.visual-hero-platform .visual-hero-image {
  object-position: center right;
}

.visual-hero-platform .visual-hero-scrim {
  background: linear-gradient(
    180deg,
    rgba(250, 250, 249, 0.98) 0%,
    rgba(250, 250, 249, 0.9) 42%,
    rgba(250, 250, 249, 0.38) 73%,
    rgba(250, 250, 249, 0.08) 100%
  );
}

.trust-cue-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.trust-cue-row span,
.academy-result-proof span {
  border: 1px solid var(--stone-200);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-secondary);
  border-radius: 9999px;
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
}

.platform-flywheel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.platform-flywheel-step,
.scenario-card,
.metric-card,
.priority-card,
.next-action-card,
.search-preview-panel {
  border: 1px solid var(--stone-200);
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgb(28 25 23 / 0.04);
}

.platform-flywheel-step {
  position: relative;
  padding: 1rem;
}

.platform-flywheel-index,
.scenario-num {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--primary-50);
  color: var(--primary-700);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.scenario-num.amber {
  background: var(--accent-50);
  color: var(--accent-600);
}

.platform-flywheel-step h3,
.scenario-card h3,
.priority-card h2,
.next-action-card h2 {
  font-size: 0.98rem;
  line-height: 1.35;
  margin-bottom: 0.375rem;
}

.platform-flywheel-step p,
.priority-card p,
.next-action-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
}

.product-proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  border: 1px solid var(--stone-200);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78)),
    radial-gradient(circle at 20% 10%, rgba(30, 64, 175, 0.08), transparent 32%),
    radial-gradient(circle at 80% 90%, rgba(217, 119, 6, 0.08), transparent 34%);
  border-radius: 1rem;
  padding: 1rem;
}

.product-proof-panel {
  border: 1px solid var(--stone-200);
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
}

.product-proof-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-proof-header span,
.mcp-proof-card span {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.product-proof-task {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem;
  border-radius: 0.625rem;
  background: var(--stone-50);
  margin-bottom: 0.625rem;
}

.product-proof-task p,
.search-proof-card p,
.mcp-proof-card p,
.search-preview-card p {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.45;
  margin-top: 0.25rem;
}

.status-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.status-dot-warning { background: var(--warning); }
.status-dot-success { background: var(--success); }

.product-proof-bars {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.product-proof-bars span {
  display: block;
  height: 0.45rem;
  border-radius: 9999px;
  background: var(--primary-100);
}

.product-proof-bars span:nth-child(1) { width: 78%; }
.product-proof-bars span:nth-child(2) { width: 58%; }
.product-proof-bars span:nth-child(3) { width: 88%; }

.product-proof-bridge {
  display: grid;
  align-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.product-proof-bridge span {
  border: 1px solid var(--stone-200);
  background: white;
  border-radius: 9999px;
  padding: 0.375rem 0.5rem;
}

.search-proof-card,
.mcp-proof-card,
.search-preview-card {
  border: 1px solid var(--stone-200);
  border-radius: 0.625rem;
  padding: 0.875rem;
  background: var(--stone-50);
  margin-bottom: 0.75rem;
}

.search-proof-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.search-proof-tags span {
  border-radius: 9999px;
  background: white;
  border: 1px solid var(--stone-200);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
}

.audience-card {
  border: 1px solid var(--stone-200);
  background: white;
  color: var(--text-primary);
  border-radius: 1rem;
  padding: 2rem;
}

.audience-card-owner {
  border-top: 4px solid var(--primary-600);
}

.audience-card-parent {
  border-top: 4px solid var(--accent-500);
}

.audience-eyebrow {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.demo-cta-band {
  border: 1px solid var(--stone-200);
  border-radius: 1rem;
  background: white;
  padding: 2.5rem;
  box-shadow: 0 1px 2px rgb(28 25 23 / 0.04);
}

.scenario-card {
  padding: 1.5rem;
}

.area-initial,
.nav-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 0.5rem;
  background: var(--stone-100);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.area-initial {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.5rem;
  background: var(--accent-50);
  color: var(--accent-600);
}

.academy-result-card {
  display: block;
}

.academy-result-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

.academy-detail-placeholder {
  border-radius: 0.75rem;
  border: 1px dashed var(--stone-300);
  background: linear-gradient(135deg, var(--stone-50), white);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--text-secondary);
}

.academy-detail-placeholder h2 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.academy-detail-placeholder-label {
  display: inline-flex;
  border-radius: 9999px;
  background: white;
  border: 1px solid var(--stone-200);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
}

.priority-board,
.next-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.priority-card,
.next-action-card,
.metric-card {
  padding: 1.25rem;
}

.priority-card span {
  border-radius: 9999px;
  background: var(--primary-50);
  color: var(--primary-700);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.mcp-command-center {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  border: 1px solid var(--stone-200);
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
}

.mcp-command-center h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.mcp-command-center p {
  color: var(--text-secondary);
}

.mcp-prompt-list {
  display: grid;
  gap: 0.625rem;
}

.mcp-prompt {
  border-radius: 0.75rem;
  border: 1px solid var(--stone-200);
  background: var(--stone-50);
  padding: 0.875rem;
}

.mcp-prompt span {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.profile-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.44fr);
  gap: 1.5rem;
  align-items: start;
}

.search-preview-panel {
  padding: 1.25rem;
  position: sticky;
  top: 1rem;
}

.search-preview-panel h2 {
  font-size: 1.25rem;
}

.preview-next-actions {
  border-top: 1px solid var(--stone-200);
  margin-top: 1rem;
  padding-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.preview-next-actions ul {
  margin-left: 1rem;
  margin-top: 0.5rem;
}

@media (max-width: 767px) {
  .surface-marketing header .container,
  .surface-search header .container {
    gap: 0.75rem;
  }

  .surface-marketing header .container > div.flex {
    gap: 0.5rem;
  }

  .surface-marketing header .container > div.flex a:first-child,
  .surface-search header form {
    display: none;
  }

  .surface-marketing header .container > div.flex a:last-child {
    padding: 0.6rem 0.75rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .visual-hero {
    min-height: clamp(500px, 68svh, 580px);
    align-items: flex-start;
  }

  .visual-hero-image {
    object-position: center bottom;
  }

  .visual-hero-scrim,
  .visual-hero-amber .visual-hero-scrim,
  .visual-hero-center .visual-hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(250, 250, 249, 0.98) 0%,
      rgba(250, 250, 249, 0.92) 48%,
      rgba(250, 250, 249, 0.48) 72%,
      rgba(250, 250, 249, 0.16) 100%
    );
  }

  .visual-hero-content {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }

  .visual-hero h1 {
    font-size: 2.25rem;
    line-height: 1.15;
  }

  .visual-hero p {
    font-size: 1rem;
  }

  .visual-banner,
  .academy-detail-hero,
  .onboarding-shell,
  .auth-shell,
  .product-proof,
  .mcp-command-center,
  .profile-shell {
    grid-template-columns: 1fr;
  }

  .platform-flywheel,
  .priority-board,
  .next-action-grid {
    grid-template-columns: 1fr;
  }

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

  .product-proof-bridge span {
    width: 100%;
  }

  .audience-card,
  .demo-cta-band {
    padding: 1.5rem;
  }

  .visual-banner-copy {
    padding: 0.25rem 0.125rem;
  }

  .visual-banner h2 {
    font-size: 1.25rem;
  }

  .academy-card-with-media {
    grid-template-columns: 1fr;
  }

  .academy-result-main {
    flex-direction: column;
    gap: 1rem;
  }

  .academy-result-main > .text-right {
    text-align: left;
    margin-left: 0;
  }

  .academy-card-thumb {
    min-height: 160px;
  }

  .academy-action-row {
    flex-direction: column;
  }

  .dashboard-visual-strip {
    height: 92px;
    margin-bottom: 1rem;
  }

  .surface-dashboard .min-h-screen.flex {
    flex-direction: column;
  }

  .surface-dashboard aside.w-64 {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--stone-200);
  }

  .surface-dashboard aside nav {
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 0.25rem;
    padding: 0.75rem;
  }

  .surface-dashboard aside nav a {
    flex-shrink: 1;
    white-space: nowrap;
  }

  .surface-dashboard aside nav a .nav-mark {
    display: none;
  }

  .surface-dashboard aside nav .my-3 {
    display: none;
  }

  .surface-dashboard aside > .p-3.border-t {
    display: none;
  }

  .surface-dashboard main > .p-8 {
    padding: 1rem;
  }

  .surface-dashboard header.flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .surface-dashboard table {
    min-width: 720px;
  }

  .problem-visual {
    height: 150px;
    margin: -1.5rem -1.5rem 1.5rem;
  }

  .search-preview-panel {
    position: static;
  }
}
