/* ==========================================================================
   CarCross AI — Photographic Web UI/UX & Interactive Studio Styles (<= 400 lines)
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  border-bottom: 1px solid var(--border-subtle);
}

body.mode-theater .topbar { background-color: rgba(17, 24, 39, 0.88); }

.topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-group { display: flex; align-items: center; gap: 10px; }
.brand-pill { background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%); color: #FFFFFF; font-size: 11px; font-weight: var(--fw-black); letter-spacing: 0.06em; padding: 5px 10px; border-radius: 8px; }
.brand-title { font-size: var(--fs-base); font-weight: var(--fw-black); letter-spacing: -0.02em; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.btn-ghost {
  min-height: 36px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  cursor: pointer;
}

.container { max-width: 1140px; margin: 0 auto; padding: 28px 24px 96px; }

/* 2-Column Split Visual Hero */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 36px;
  margin-bottom: 36px;
  background: linear-gradient(145deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

@media (max-width: 920px) { .hero-split { grid-template-columns: 1fr; padding: 24px; } }

.hero-eyebrow {
  display: inline-flex;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-primary-soft);
  color: var(--accent-primary);
  font-size: 11px;
  font-weight: var(--fw-black);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.hero-headline { font-size: var(--fs-2xl); font-weight: var(--fw-black); letter-spacing: var(--ls-display); margin-bottom: 14px; line-height: 1.28; }
.hero-sub { font-size: var(--fs-sm); color: var(--text-sub); margin-bottom: 20px; line-height: 1.65; }

.hero-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.hero-kpi-item { display: flex; flex-direction: column; gap: 2px; }
.hero-kpi-item strong { font-size: var(--fs-base); font-weight: var(--fw-black); color: var(--accent-primary); }
.hero-kpi-item span { font-size: 11.5px; color: var(--text-mute); font-weight: var(--fw-semibold); }
.hero-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-secondary-hero {
  min-height: 52px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}

/* Right Hero Photographic X-Ray Showcase */
.hero-photo-card {
  background: #0B1120;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.42);
}

.hero-photo-wrap { position: relative; height: 248px; overflow: hidden; background: #090D16; }
.hero-main-photo { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.04); }

.hero-photo-overlay-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-live-pill {
  background: rgba(15, 23, 42, 0.9);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.45);
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
}

.hud-code-pill {
  background: rgba(37, 99, 235, 0.92);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 99px;
}

.hero-photo-hotspot {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 7px 11px;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.hero-photo-hotspot.hs-rear { bottom: 14px; right: 14px; border-color: rgba(244, 63, 94, 0.65); }
.hero-photo-hotspot.hs-front { bottom: 14px; left: 14px; border-color: rgba(56, 189, 248, 0.65); }

.hs-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.hs-dot.crimson { background: #F43F5E; box-shadow: 0 0 10px #F43F5E; }
.hs-dot.sky { background: #38BDF8; box-shadow: 0 0 10px #38BDF8; }
.hs-box { display: flex; flex-direction: column; line-height: 1.25; }
.hs-box strong { font-size: 11px; font-weight: 900; }
.hs-box span { font-size: 9.5px; color: #CBD5E1; }

.hero-hud-dock { padding: 14px 16px 16px; background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%); }
.hud-dock-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.hud-dock-cell { background: rgba(15, 23, 42, 0.7); border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 11px; }
.hud-dock-cell span { font-size: 9.5px; color: #94A3B8; }

.mock-result-toast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 12px;
  padding: 10px 12px;
}

.mock-pdf-badge { background: #F43F5E; color: #FFFFFF; font-size: 10px; font-weight: 900; padding: 4px 8px; border-radius: 6px; }

/* Pain Point Photographic Cards & How It Works */
.story-section { margin-bottom: 36px; }
.section-header { margin-bottom: 18px; }
.section-step-badge { display: inline-block; font-size: 11px; font-weight: var(--fw-black); letter-spacing: 0.06em; color: var(--accent-primary); background: var(--accent-primary-soft); padding: 4px 10px; border-radius: var(--radius-pill); }
.section-title { font-size: var(--fs-xl); font-weight: var(--fw-black); margin-top: 8px; letter-spacing: -0.025em; }
.section-desc { font-size: var(--fs-sm); color: var(--text-sub); margin-top: 4px; }
.story-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }

.pain-card, .how-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pain-photo-frame {
  position: relative;
  height: 176px;
  border-radius: 14px;
  overflow: hidden;
  background: #0F172A;
  border: 1px solid var(--border-strong);
}

.pain-photo-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.pain-card:hover .pain-photo-img { transform: scale(1.04); }

.pain-photo-badge-bar {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(15, 23, 42, 0.92);
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.pp-chip { font-size: 10.5px; font-weight: 800; }
.pp-chip.ok { color: #34D399; }
.pp-chip.warn { color: #FBBF24; }
.pp-chip.danger { color: #FDA4AF; }

.how-visual-box { background: #0F172A; color: #F8FAFC; border-radius: 14px; padding: 14px; border: 1px solid rgba(148, 163, 184, 0.2); }
.hv-doc-pair, .hv-output-pair { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hv-doc, .hv-screen, .hv-pdf-sheet { flex: 1; background: #1E293B; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 3px; font-size: 11px; }
.hv-doc-tag { font-size: 9.5px; font-weight: 900; color: #38BDF8; }
.hv-plus { font-size: 18px; font-weight: 900; color: #38BDF8; }
.hv-matrix { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.hv-chip { background: #1E293B; padding: 6px 8px; border-radius: 8px; font-size: 11px; font-weight: 700; color: #94A3B8; }
.hv-chip.active { background: rgba(37, 99, 235, 0.28); border: 1px solid #3B82F6; color: #FFFFFF; }

.pain-num, .how-step-pill { font-size: 11px; font-weight: var(--fw-black); color: var(--accent-crimson); letter-spacing: 0.04em; margin-bottom: 4px; }
.how-step-pill { color: var(--accent-primary); }
.pain-title, .how-title { font-size: var(--fs-md); font-weight: var(--fw-black); margin-bottom: 6px; line-height: 1.38; }
.pain-body, .how-body { font-size: var(--fs-xs); color: var(--text-sub); line-height: 1.6; }

/* Act 3: UX Stepper & Photographic Vehicle Scenario Cards */
.card { background-color: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-card); margin-bottom: 20px; }
.studio-box { border: 1.5px solid rgba(37, 99, 235, 0.25); }
.studio-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.safe-harbor-pill { padding: 6px 12px; border-radius: var(--radius-pill); background: var(--accent-emerald-soft); color: var(--accent-emerald); font-size: 11.5px; font-weight: var(--fw-black); }

.ux-stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; margin-bottom: 18px; border-radius: 16px; background: var(--bg-elevated); border: 1px solid var(--border-subtle); flex-wrap: wrap; }
.ux-step { display: flex; align-items: center; gap: 10px; }
.ux-step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-primary); color: #FFFFFF; font-size: 12px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; }
.ux-step div { display: flex; flex-direction: column; }
.ux-step strong { font-size: var(--fs-xs); font-weight: var(--fw-black); }
.ux-step small { font-size: 11px; color: var(--text-mute); }
.ux-step-arrow { color: var(--text-mute); font-weight: 900; }

.scenario-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

.scenario-card {
  text-align: left;
  background-color: var(--bg-elevated);
  border: 1.5px solid var(--border-strong);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.16s ease;
}

.scenario-card:hover, .scenario-card.active {
  border-color: var(--accent-primary);
  background-color: var(--bg-surface);
  box-shadow: 0 12px 26px -8px rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
}

.scenario-photo-stage { position: relative; height: 146px; overflow: hidden; background: #090D16; }
.scenario-photo-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.scenario-card:hover .scenario-photo-img { transform: scale(1.05); }
.scenario-photo-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,13,22,0.15) 0%, rgba(9,13,22,0.85) 100%); }
.scenario-art-top { position: absolute; top: 10px; right: 10px; }
.scenario-art-tag { font-size: 9.5px; font-weight: 900; padding: 3px 8px; border-radius: 99px; border: 1px solid; }
.scenario-photo-caption { position: absolute; bottom: 8px; left: 12px; right: 12px; font-size: 11px; font-weight: 900; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }

.scenario-body { padding: 14px 16px 16px; display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.scenario-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 8px; }
.scenario-badge { font-size: 10.5px; font-weight: var(--fw-black); padding: 3px 8px; border-radius: 999px; }
.scenario-badge.unlocked { background: var(--accent-primary-soft); color: var(--accent-primary); }
.scenario-badge.locked { background: var(--bg-subtle); color: var(--text-mute); }
.scenario-code { font-family: var(--font-mono); font-size: 11px; font-weight: var(--fw-bold); color: var(--text-mute); }
.scenario-title { font-size: var(--fs-sm); font-weight: var(--fw-black); color: var(--text-main); line-height: 1.4; margin-bottom: 10px; }
.scenario-meta { padding-top: 10px; border-top: 1px dashed var(--border-strong); display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--text-mute); }
.scenario-cta { font-weight: var(--fw-black); color: var(--accent-primary); }

.custom-search-bar { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-subtle); }
.custom-search-label { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-sub); margin-bottom: 10px; }
.custom-search-label span { font-weight: var(--fw-medium); color: var(--text-mute); }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.search-input { flex: 1 1 320px; min-height: 50px; padding: 12px 18px; border-radius: var(--radius-md); border: 1.5px solid var(--border-strong); background-color: var(--bg-elevated); font-size: var(--fs-sm); }
.btn-primary { min-height: 50px; padding: 12px 24px; border-radius: var(--radius-md); border: none; background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%); color: #FFFFFF; font-size: var(--fs-sm); font-weight: var(--fw-bold); cursor: pointer; box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.45); }

/* Korean Plate, Tabs, Gauges & Modals */
.kr-plate { display: inline-flex; align-items: center; background: #FFFFFF; color: #0F172A; border: 2px solid #1E293B; border-radius: 6px; overflow: hidden; font-family: var(--font-mono); font-size: 13px; font-weight: 800; }
.kr-plate-kor { background: #1D4ED8; color: #FFFFFF; font-size: 8px; font-weight: 900; padding: 4px 5px; line-height: 1; }
.kr-plate-num { padding: 2px 9px; }

.app-tab-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background-color: var(--bg-subtle); border: 1px solid var(--border-subtle); border-radius: 18px; padding: 6px; margin-bottom: 20px; position: sticky; top: 68px; z-index: 35; }
.app-tab-btn { min-height: 46px; border: none; border-radius: 13px; background: transparent; color: var(--text-sub); font-size: var(--fs-sm); font-weight: var(--fw-bold); cursor: pointer; padding: 8px 12px; }
.app-tab-btn.active { background-color: var(--bg-surface); color: var(--text-main); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08); }
@media (max-width: 720px) { .app-tab-bar { grid-template-columns: repeat(2, 1fr); } }

.thermo-track { position: relative; height: 14px; border-radius: 999px; background: linear-gradient(90deg, #10B981 0%, #3B82F6 45%, #F59E0B 75%, #F43F5E 100%); margin: 16px 0 10px; }
.thermo-marker { position: absolute; top: -6px; width: 14px; height: 26px; border-radius: 5px; background: #0F172A; border: 2.5px solid #FFFFFF; transform: translateX(-50%); }
.stacked-bar { display: flex; height: 28px; border-radius: 10px; overflow: hidden; margin: 12px 0; }

.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.metric-box { background-color: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 18px; }
.metric-label { font-size: var(--fs-xs); color: var(--text-mute); font-weight: var(--fw-bold); }
.metric-val { font-size: var(--fs-xl); font-weight: var(--fw-black); letter-spacing: -0.025em; margin-top: 6px; }
.metric-sub { font-size: var(--fs-xs); color: var(--text-sub); margin-top: 4px; }

.flag-card { background-color: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 18px 20px; margin-bottom: 12px; }
.flag-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: var(--fw-black); padding: 4px 10px; border-radius: var(--radius-pill); }
.badge-critical { background-color: var(--accent-crimson-soft); color: var(--accent-crimson); }
.badge-high { background-color: var(--accent-amber-soft); color: var(--accent-amber); }
.badge-safe { background-color: var(--accent-emerald-soft); color: var(--accent-emerald); }
.badge-primary { background-color: var(--accent-primary-soft); color: var(--accent-primary); }

.chat-card { background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 20px; margin-bottom: 14px; }
.bubble-buyer { background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: 16px 16px 16px 4px; padding: 14px 16px; margin-bottom: 10px; font-size: var(--fs-sm); }
.bubble-dealer { background: var(--bg-subtle); border-radius: 4px 16px 16px 16px; padding: 12px 16px; margin-bottom: 10px; font-size: var(--fs-xs); color: var(--text-sub); }
.bubble-counter { background: var(--accent-primary-soft); border: 1px solid rgba(37, 99, 235, 0.25); border-radius: 16px 16px 4px 16px; padding: 14px 16px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); }

.paywall-banner { background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-surface) 100%); border: 1.5px solid var(--border-strong); border-radius: var(--radius-lg); padding: 28px; text-align: center; margin-top: 20px; box-shadow: var(--shadow-elevated); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 20px 0; text-align: left; }
.plan-card { background-color: var(--bg-surface); border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); padding: 18px; cursor: pointer; }
.plan-card.active { border: 2px solid var(--accent-primary); background-color: var(--accent-primary-soft); }
.btn-unlock { min-height: 54px; padding: 14px 32px; border-radius: var(--radius-md); border: none; background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%); color: #FFFFFF; font-size: var(--fs-md); font-weight: var(--fw-black); cursor: pointer; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-subtle); text-align: left; }
.data-table th { font-size: var(--fs-xs); color: var(--text-mute); font-weight: var(--fw-bold); background-color: var(--bg-elevated); }
.locked-mask { filter: blur(5px); user-select: none; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.modal-backdrop.open { display: flex; }
.modal-card { background-color: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); max-width: 440px; width: 100%; padding: 28px; box-shadow: var(--shadow-elevated); }
@media print { .no-print { display: none !important; } body { background: #FFFFFF; color: #000000; } }
