/* ===== Base Reset ===== */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Pretendard Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #101318;
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(82, 146, 255, 0.16), transparent),
    radial-gradient(980px 680px at 90% 110%, rgba(20, 184, 166, 0.12), transparent),
    linear-gradient(180deg, #ffffff 0%, #f5f8ff 45%, #f1faf8 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  line-height: 1.6;
}

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

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

/* ===== Layout ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 22px 28px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  padding-bottom: 12px;
}

@media (max-width: 640px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .account-nav {
    gap: 6px;
  }
  .account-nav span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90px;
  }
}

.brand {
  font-weight: 780;
  letter-spacing: -0.2px;
  color: #0b1220;
  font-size: 18px;
}

.preview-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  background: #eef2ff;
}

.preview-toggle__item {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.preview-toggle__item.is-active {
  background: #2563eb;
  color: #ffffff;
}

.locked-callout {
  margin: 14px 0;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  color: #475569;
  font-size: 14px;
}

.locked-callout.slim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .locked-callout.slim {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

.locked-callout strong {
  color: #0f172a;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 850;
}

.btn-primary.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.locked-glass-card {
  position: relative;
  overflow: hidden;
}

.locked-glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.42), rgba(255,255,255,0.14)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.14) 0 8px, rgba(226,232,240,0.1) 8px 16px);
  backdrop-filter: blur(2px) saturate(1.1);
}

.locked-glass-text {
  display: inline-block;
  color: transparent !important;
  text-shadow: 0 0 10px rgba(15, 23, 42, 0.34);
  filter: blur(3.5px);
  user-select: none;
}

.locked-glass-row .locked-glass-text {
  filter: blur(3px);
}

.locked-chart-placeholder {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.locked-chart-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.28);
  backdrop-filter: blur(3px);
}

.locked-chart-line {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dc2626, #f97316, #2563eb);
  transform-origin: left center;
}

.locked-chart-line.line-one {
  top: 44%;
  transform: rotate(-7deg);
}

.locked-chart-line.line-two {
  top: 56%;
  background: linear-gradient(90deg, #16a34a, #22c55e, #2563eb);
  transform: rotate(5deg);
}

.locked-chart-axis {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 18%;
  height: 1px;
  background: #e5e7eb;
}

.privacy-badge-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 9px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: rgba(240, 253, 244, 0.86);
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  width: fit-content;
  max-width: 100%;
}

.privacy-badge-line span {
  color: #0f172a;
}

.privacy-badge-line .privacy-dot {
  color: #86efac;
}

@media (max-width: 640px) {
  .privacy-badge-line {
    border-radius: 14px;
    align-items: flex-start;
  }
}

.kpi-product,
.product-kpi-val,
.order-product-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.order-product-block {
  margin-top: 8px;
  margin-bottom: 10px;
}

.product-title-line {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: #0b1220;
  font-weight: 800;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  overflow-wrap: break-word;
}

.sku-subline {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #64748b;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: #475569;
  font-size: 13px;
  font-weight: 750;
}

.account-nav form {
  margin: 0;
}

.account-nav button {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font: inherit;
  padding: 6px 10px;
  cursor: pointer;
}

.auth-card,
.paypal-page {
  max-width: 680px;
  margin: 32px auto;
  padding: 30px;
}

.auth-card h1,
.paypal-page h1 {
  margin-top: 0;
  color: #0b1220;
  font-size: 32px;
  line-height: 1.1;
}

.auth-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.auth-form input {
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
}

.auth-error {
  color: #b91c1c;
  font-weight: 800;
}

.auth-dev-link {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  color: #1e3a8a;
  margin: 18px 0;
  padding: 16px;
}

.auth-dev-link p {
  margin: 8px 0 12px;
}

.report-list {
  display: grid;
  gap: 10px;
}

.report-list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.site-footer {
  padding: 22px 22px 28px;
  color: #6b7280;
  font-size: 13px;
}

/* ===== Buttons ===== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #0b1220;
  font-weight: 620;
  font-size: 14px;
  transition: transform 120ms ease, box-shadow 180ms ease, border-color 200ms ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
  border-color: #d4d4d8;
}

.button.primary {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.button.primary:hover {
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
  border-color: #2563eb;
}

.button.ghost {
  background: rgba(15, 23, 42, 0.02);
}

/* ===== Shared Setup Assistance CTA ===== */
.setup-cta {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffaf3 0%, #ffffff 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.setup-cta .trust-section-head {
  display: grid;
  gap: 10px;
}

.setup-cta .trust-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.setup-cta h2 {
  margin: 0;
  color: #0b1220;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.15;
  font-weight: 900;
}

.setup-cta p {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

.setup-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.setup-price-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
}

.setup-price-card.featured {
  border-color: #bbf7d0;
  background: #ecfdf5;
}

.setup-price-card > strong {
  display: block;
  color: #0f172a;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.setup-price-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

.setup-price-card form {
  margin-top: 6px;
}

.setup-success {
  padding: 10px 12px;
  border-radius: 10px;
  background: #dcfce7;
  color: #166534;
  font-weight: 800;
}

.setup-flow-page {
  margin: 24px auto;
}

.setup-flow-page form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.setup-cta > .button {
  width: fit-content;
}

@media (max-width: 760px) {
  .setup-pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Sections ===== */
section,
.landing,
.card,
.form-card,
.table-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 22px;
  padding: 26px;
  margin-top: 6px;
}

.hero-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.7);
  color: #4b5563;
  font-size: 13px;
  width: fit-content;
}

.hero h1 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 820;
  line-height: 1.18;
  letter-spacing: -0.6px;
  color: #0b1220;
}

.hero-lead {
  color: #4b5563;
  font-size: 15px;
}

.helper {
  color: #6b7280;
  font-size: 13px;
}

.dashboard .helper {
  margin-bottom: 16px;
}

.trust-line {
  color: #6b7280;
  font-size: 12px;
  margin-top: 6px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* ===== Hero Visual ===== */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.07);
  animation: dashboardFloat 4.8s ease-in-out infinite;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dashboard-title {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  color: #374151;
}

.diagnosis-val.muted {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.report-detail-val.muted {
  font-size: 11px;
  color: #9ca3af;
}

.kpi {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  padding: 10px 12px;
}

.kpi-label {
  font-size: 12px;
  color: #6b7280;
}

.kpi-value {
  font-size: 18px;
  font-weight: 800;
  margin-top: 4px;
  color: #0b1220;
}

.kpi-value.is-loss {
  color: #dc2626;
  animation: pulseLoss 2.4s ease-in-out infinite;
}

.kpi-value.is-risk {
  color: #ea5800;
  animation: pulseRisk 2.4s ease-in-out infinite;
}

.kpi-value.is-threshold {
  color: #16a34a;
}

/* ===== Order Risk Rows ===== */
.order-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease, border-color 200ms ease;
}

.order-row.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.order-row:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.order-row-primary {
  font-weight: 700;
  color: #0b1220;
}

.order-row-meta {
  color: #4b5563;
  font-size: 12px;
}

.order-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #fee2e2;
  background: rgba(255, 255, 255, 0.8);
  color: #991b1b;
  font-size: 12px;
}

.order-tag.safe {
  border-color: #d1fae5;
  background: rgba(255, 255, 255, 0.8);
  color: #166534;
}

/* ===== Section Titles ===== */
.section {
  padding: 24px;
  margin-top: 16px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  color: #0b1220;
}

.section-desc {
  color: #4b5563;
  font-size: 15px;
}

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.feature {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 200ms ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.07);
  border-color: #cbd5e1;
}

.feature-title {
  font-weight: 720;
  color: #0b1220;
  margin-bottom: 8px;
}

.feature-body {
  color: #4b5563;
  font-size: 14px;
}

/* ===== Steps / Offer / Fit ===== */
.steps,
.offer-row,
.fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.step,
.offer-card,
.fit-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 200ms ease;
}

.step:hover,
.offer-card:hover,
.fit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.07);
  border-color: #cbd5e1;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-weight: 790;
  font-size: 13px;
  margin-bottom: 8px;
}

.step-body {
  color: #4b5563;
  font-size: 14px;
}

.step-title {
  font-weight: 720;
  color: #0b1220;
  margin-bottom: 6px;
}

.offer-card.highlight {
  border-color: #bfdbfe;
  background: #ffffff;
}

.offer-card-body {
  color: #4b5563;
  font-size: 14px;
}

.offer-card-body ul {
  margin: 18px 0 30px 26px;
  padding: 0;
}

.offer-card-body li + li {
  margin-top: 6px;
}

.offer-price {
  font-weight: 820;
  color: #0b1220;
  margin-top: 10px;
}

/* ===== Example ===== */
.example {
  background: #ffffff;
  border: 1px solid #fee2e2;
  border-radius: 14px;
  padding: 16px;
  color: #7f1d1d;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.95));
}

.example ol {
  margin: 10px 0 0 18px;
  padding: 0;
}

.example li + li {
  margin-top: 6px;
}

/* ===== Metrics ===== */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.metric-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.07);
}

.metric-card .kpi-value {
  font-size: 22px;
}

.metric-card .kpi-label {
  margin-top: 6px;
}

/* ===== FAQ ===== */
.faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 14px 14px;
  font-weight: 720;
  color: #0b1220;
  cursor: pointer;
}

.faq-answer {
  padding: 0 14px 14px;
  color: #374151;
  font-size: 14px;
}

.faq-question[aria-expanded="true"] {
  background: #f9fafb;
}

/* ===== Final CTA ===== */
.final-cta {
  padding: 24px;
  text-align: center;
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* staggered */
.feature:nth-child(2),
.step:nth-child(2),
.offer-card:nth-child(2),
.fit-card:nth-child(2) {
  transition-delay: 0.06s;
}

.feature:nth-child(3),
.step:nth-child(3),
.offer-card:nth-child(3),
.fit-card:nth-child(3) {
  transition-delay: 0.12s;
}

.feature:nth-child(4),
.step:nth-child(4),
.offer-card:nth-child(4),
.fit-card:nth-child(4) {
  transition-delay: 0.18s;
}

.feature:nth-child(5),
.step:nth-child(5),
.offer-card:nth-child(5),
.fit-card:nth-child(5) {
  transition-delay: 0.24s;
}

/* ===== Keyframes ===== */
@keyframes dashboardFloat {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-6px); }
  70% { transform: translateY(2px); }
}

@keyframes pulseLoss {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}

@keyframes pulseRisk {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}

@keyframes scanLine {
  0% { left: -60px; }
  100% { left: calc(100% + 60px); }
}

/* ===== Accessibility / Performance ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .dashboard-card {
    animation: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .features,
  .steps,
  .offer-row,
  .fit {
    grid-template-columns: 1fr;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== KPI Bar ===== */
.kpi-bar {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.88);
  border: 1px solid #e5e7eb;
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  backdrop-filter: blur(12px);
  overflow: hidden;
  margin-top: 6px;
}

.kpi-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-right: 1px solid #f3f4f6;
}

.kpi-item:last-child {
  border-right: none;
}

.kpi-bar-label {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.kpi-bar-value {
  font-size: 17px;
  font-weight: 800;
  color: #0b1220;
}

.kpi-bar-value.is-loss { color: #dc2626; }
.kpi-bar-value.is-risk { color: #ea5800; }
.kpi-bar-value.is-threshold { color: #16a34a; }

/* ===== Audit Tabs ===== */
.audit-tabs {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.78);
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 0 0;
  backdrop-filter: blur(12px);
  overflow-x: auto;
  scrollbar-width: none;
}

.audit-tabs::-webkit-scrollbar { display: none; }

.audit-tab {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 620;
  color: #4b5563;
  border-bottom: 2px solid transparent;
  border-right: 1px solid #f3f4f6;
  transition: color 150ms, border-color 150ms, background 150ms;
  white-space: nowrap;
}

.audit-tab:last-child { border-right: none; }

.audit-tab:hover {
  color: #0b1220;
  background: rgba(248,250,252,0.8);
}

.audit-tab.is-active {
  color: #1d4ed8;
  border-bottom: 3px solid #2563eb;
  background: #eff6ff;
  font-weight: 800;
}

/* ===== Dashboard page-title ===== */
.page-title {
  font-size: 18px;
  font-weight: 800;
  color: #0b1220;
  margin: 0 0 16px;
}

.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* ===== Section Nav Cards (요약 페이지) ===== */
.section-nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.nav-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  transition: transform 150ms, box-shadow 150ms, border-color 150ms;
}

.nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15,23,42,0.08);
  border-color: #bfdbfe;
}

.nav-card-icon { font-size: 22px; }
.nav-card-title { font-weight: 720; color: #0b1220; font-size: 14px; }
.nav-card-desc { font-size: 12px; color: #6b7280; }

/* ===== Data Tables ===== */
.table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  background: #f9fafb;
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #0b1220;
  white-space: nowrap;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #f8faff; }

.row-loss { background: #fff8f8; }
.row-recommended { background: #f0fdf4; }
.cell-loss { color: #dc2626; font-weight: 700; }

.risk-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.risk-high { background: #fee2e2; color: #991b1b; }
.risk-medium { background: #fef3c7; color: #92400e; }
.risk-low { background: #d1fae5; color: #065f46; }

.badge-recommended {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
}

/* ===== Recommendations ===== */
.rec-list { display: flex; flex-direction: column; gap: 12px; }

.rec-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}

.rec-title {
  font-size: 15px;
  font-weight: 720;
  color: #0b1220;
  margin: 0 0 8px;
}

.rec-body {
  font-size: 13px;
  color: #374151;
  white-space: pre-wrap;
  line-height: 1.6;
}

/* ===== Report Grid ===== */
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.report-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-label {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.report-val {
  font-size: 18px;
  font-weight: 800;
  color: #0b1220;
}

.report-val.is-loss { color: #dc2626; }
.report-val.is-risk { color: #ea5800; }
.report-val.is-threshold { color: #16a34a; }

.report-confidence-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
}
.report-confidence-compact div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.report-confidence-compact span {
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.report-confidence-compact strong {
  color: #0b1220;
  font-size: 13px;
}

/* ===== Dashboard card wrap ===== */
.dashboard {
  background: rgba(255,255,255,0.86);
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 45px rgba(15,23,42,0.06);
  backdrop-filter: blur(12px);
  padding: 20px;
}

@media (max-width: 860px) {
  .kpi-bar { flex-wrap: wrap; }
  .kpi-item { flex: 0 0 50%; border-bottom: 1px solid #f3f4f6; }
  .section-nav-cards { grid-template-columns: 1fr 1fr; }
  .report-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Hero KPI Grid ===== */
.hero-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.hero-worst-sku {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
}

.hero-worst-label {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-worst-val {
  font-size: 14px;
  font-weight: 800;
  color: #0b1220;
}

/* ===== Hero Trust Row ===== */
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 4px;
}

.hero-trust-item {
  font-size: 13px;
  color: #4b5563;
  font-weight: 600;
}

/* kpi-row 제거 (hero에서는 grid 사용) */
.hero .kpi-row {
  display: none;
}

.diagnosis-card .product-title-line {
  color: #ffe600;
}

.data-confidence-section {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.data-confidence-card {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #0b1220;
}
.data-confidence-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}
.data-confidence-card p,
.data-confidence-card li {
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}
.data-confidence-lead {
  margin: 0 0 8px;
}
.data-confidence-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.data-confidence-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 12px;
  font-weight: 750;
}
.privacy-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #166534;
  font-size: 13px;
  font-weight: 750;
}
@media (max-width: 640px) {
  .data-confidence-section {
    grid-template-columns: 1fr;
  }
}

/* ===== Privacy-safe audit badges ===== */
.privacy-badge-panel {
  margin: 18px 0 24px;
  padding: 18px 20px;
  border: 1px solid #dbe7e2;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fffb 0%, #ffffff 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.privacy-badge-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.privacy-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  border-radius: 999px;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.privacy-badge-header h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.privacy-badge-header p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.privacy-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 13px;
  font-weight: 700;
}

.flag-loss {
  background: #fee2e2;
  color: #991b1b;
  font-weight: 700;
  margin-left: 8px;
}

.flags-cell {
  font-size: 12px;
}

.rec-note-cell {
  font-size: 12px;
  color: #6b7280;
}
