﻿/* ========================
   DESIGN TOKENS — steep.app inspired
   ======================== */
:root {
  /* Text hierarchy */
  --text: #0F172A;
  --muted: #64748B;
  --text-dim: #94A3B8;

  /* Brand/Accent - electric blue */
  --accent: #2563EB;
  --accent-light: #EFF6FF;
  --accent-muted: #BFDBFE;

  /* Backgrounds */
  --bg: #FFFFFF;
  --bg-page: #F8FAFC;
  --bg-subtle: #F1F5F9;

  /* Borders */
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  /* Semantic status */
  --danger: #EF4444;
  --warn: #F59E0B;
  --success: #10B981;
  --manual: #64748B;
  --focus: #2563EB;

  /* Badge semantic colors */
  --color-danger:  #EF4444;
  --bg-danger:     #FEF2F2;
  --bd-danger:     #FECACA;
  --color-warn:    #F59E0B;
  --bg-warn:       #FFFBEB;
  --bd-warn:       #FDE68A;
  --color-success: #10B981;
  --bg-success:    #ECFDF5;
  --bd-success:    #A7F3D0;

  /* Border-radius scale */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-pill: 9999px;
  --shadow-subtle: 0 0 0 1px rgba(15, 23, 42, 0.05), 0 4px 16px -2px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px -4px rgba(15, 23, 42, 0.08);
}

/* ========================
   RESET & BASE
   ======================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard Variable', Pretendard, 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

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

a {
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted { color: var(--muted); }

.error {
  margin-top: 12px;
  color: var(--danger);
}

.empty {
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: var(--bg-page);
}

/* ========================
   SHELL & TOPBAR
   ======================== */
.shell {
  min-height: 100vh;
}

.topbar {
  min-height: 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-ghost {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.nav-ghost:hover {
  border-color: var(--border-strong);
  background: var(--bg-page);
}

/* ========================
   BRAND & NAV
   ======================== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--text);
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', 'Pretendard Variable', Pretendard, 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 450;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--text);
  background: transparent;
}


.nav-cta {
  text-decoration: none !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-pill) !important;
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25) !important;
  transition: opacity 0.15s, box-shadow 0.15s !important;
}

.nav-cta:hover {
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

/* ========================
   BUTTONS
   ======================== */
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
  transition: opacity 0.15s, box-shadow 0.15s;
}

.primary-button:hover {
  opacity: 0.92;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.ghost-button:hover {
  border-color: var(--border-strong);
  background: var(--bg-page);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.07);
}

.pill-button {
  min-height: 40px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
  transition: opacity 0.15s, box-shadow 0.15s;
}

.pill-button:hover {
  opacity: 0.92;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.badge-button {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s;
}

.badge-button:hover {
  border-color: var(--accent-muted);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
}

/* ========================
   FORMS & INPUTS
   ======================== */
.field {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.field input,
.analysis-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 14px;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  transition: border-color 0.15s;
}

.field input:focus,
.analysis-form input:focus {
  border-color: var(--accent);
  outline: none;
}

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

/* ========================
   SCORE & STATUS
   ======================== */
.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.status-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
}

.status-pass   { color: var(--success); }
.status-fail   { color: var(--danger); }
.status-warn   { color: var(--warn); }
.status-manual { color: var(--manual); }

/* ========================
   PAGE LAYOUT
   ======================== */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ========================
   LOGIN
   ======================== */
.login-layout {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 64px);
  padding: 32px 24px;
  background: linear-gradient(160deg, #F0F6FF 0%, #EFF6FF 40%, #F5F3FF 100%);
  position: relative;
  overflow: hidden;
}

.login-layout::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  width: 900px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 55% 50% at 50% 40%,
    rgba(37, 99, 235, 0.10) 0%,
    rgba(99, 102, 241, 0.06) 45%,
    transparent 70%);
  pointer-events: none;
}

.auth-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: min(460px, 100%);
}

.auth-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.auth-box {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 36px 32px 32px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 20px 48px -8px rgba(15, 23, 42, 0.12);
  text-align: center;
}

.progress-box {
  width: min(460px, 100%);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 36px 32px 32px;
  background: var(--bg);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 20px 48px -8px rgba(15, 23, 42, 0.12);
}

.auth-eyebrow {
  margin-bottom: 20px;
  font-size: 12px;
  display: flex;
  justify-content: center;
}

.auth-heading {
  margin: 0 0 10px;
  font-family: 'Plus Jakarta Sans', 'Pretendard Variable', Pretendard, 'Inter', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
}

.auth-desc {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.auth-socials {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.auth-social-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-page);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--text-dim);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

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

.auth-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.auth-form input::placeholder {
  color: var(--text-dim);
}

.auth-submit {
  width: 100%;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
}

.auth-footer-note {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  text-align: center;
  line-height: 1.6;
}

.auth-footer-note a {
  color: var(--muted);
}

.auth-actions {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

/* ========================
   DASHBOARD
   ======================== */
.dashboard-head,
.report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.inline-form {
  display: flex;
  gap: 8px;
  width: min(620px, 100%);
}

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

.report-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.report-item,
.stat,
.category-card,
.priority-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.report-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px;
}

.stat {
  padding: 16px;
}

.stat strong {
  display: block;
  font-family: 'Plus Jakarta Sans', 'Pretendard Variable', Pretendard, 'Inter', system-ui, sans-serif;
  font-size: 38px;
  line-height: 1;
}

/* ========================
   PROGRESS / SPINNER
   ======================== */
.progress-steps {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.progress-step {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
}

/* ========================
   REPORT (ORIGINAL)
   ======================== */
.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
}

.category-stack {
  display: grid;
  gap: 12px;
}

.category-card {
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-page);
}

.card-title {
  display: flex;
  gap: 10px;
  align-items: center;
}

.quick-win {
  margin: 16px 18px;
  padding: 16px;
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
  border-radius: var(--radius-md);
}

.guide {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.checkpoints {
  padding: 0 18px 16px;
}

.checkpoint-row {
  display: grid;
  grid-template-columns: 28px minmax(150px, 1fr) minmax(150px, auto) minmax(110px, auto);
  gap: 10px;
  align-items: center;
  min-height: 50px;
  border-top: 1px solid var(--border);
}

.disclosure {
  grid-column: 2 / 5;
  padding: 0 0 12px;
}

.disclosure-panel {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}

.confidence {
  margin: 0 18px 18px;
  padding: 10px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-size: 13px;
}

.side-panel {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 12px;
  align-self: start;
}

.priority-item {
  padding: 14px;
}

.screenshot {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-page);
}

.metric-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.metric-row:last-child {
  border-bottom: 0;
}

.metric-row strong {
  font-family: 'Plus Jakarta Sans', 'Pretendard Variable', Pretendard, 'Inter', system-ui, sans-serif;
  font-size: 34px;
  line-height: 1;
}

.hero-panel {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 12px 32px -4px rgba(15, 23, 42, 0.08);
}

/* ========================
   LANDING PAGE
   ======================== */
.landing-page {
  background: var(--bg);
  overflow: hidden;
}

.landing-hero {
  position: relative;
  padding: 100px 32px 112px;
  text-align: center;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.hero-glow {
  position: absolute;
  top: -160px;
  left: 50%;
  width: 1200px;
  height: 800px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 60% 55% at 50% 38%,
    rgba(37, 99, 235, 0.10) 0%,
    rgba(99, 102, 241, 0.07) 35%,
    rgba(236, 72, 153, 0.04) 60%,
    transparent 75%);
  pointer-events: none;
}

.hero-copy-wrap,
.hero-preview,
.landing-section,
.report-demo,
.landing-cta > div {
  position: relative;
  z-index: 1;
}

.hero-copy-wrap {
  max-width: 880px;
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px 5px 10px;
  border: 1.5px solid var(--accent-muted);
  background: var(--accent-light);
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
  font-weight: 600;
}

.eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.landing-hero h1,
.landing-section h2,
.report-demo h2,
.landing-cta h2 {
  font-family: 'Plus Jakarta Sans', 'Pretendard Variable', Pretendard, 'Inter', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.028em;
  color: var(--text);
}

.landing-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-copy {
  max-width: 760px;
  white-space: nowrap;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-copy strong {
  color: var(--text);
  font-weight: 600;
}

.url-card-form {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 540px;
  margin: 0 auto;
  padding: 6px 6px 6px 18px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06), 0 8px 24px -8px rgba(15, 23, 42, 0.10);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.url-card-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 1px 4px rgba(15, 23, 42, 0.06);
}

.url-prefix {
  color: var(--text-dim);
  font-size: 14px;
  white-space: nowrap;
}

.url-card-form input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.hero-note,
.landing-cta small {
  display: block;
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 12px;
}

.hero-preview {
  max-width: 1080px;
  margin: 56px auto 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}

.float-card,
.step-card,
.audience-grid article,
.report-demo,
.recommendation-sample {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px -6px rgba(15, 23, 42, 0.09);
}

.float-card {
  width: 270px;
  padding: 20px;
  text-align: left;
  animation: rf-float 7s ease-in-out infinite;
}

.float-card:nth-child(1) { margin-top: 42px; transform: rotate(-2deg); }
.float-card:nth-child(2) { width: 248px; animation-delay: 0.3s; }
.float-card:nth-child(3) { width: 284px; margin-top: 30px; transform: rotate(2deg); animation-delay: 0.6s; }

.float-card > span,
.step-card p,
.audience-grid p,
.recommendation-sample p,
.section-head p {
  color: var(--muted);
}

.float-card > span {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.mini-score {
  display: flex;
  align-items: center;
  gap: 16px;
}

.score-ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0% 72%, var(--bg-subtle) 72% 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.score-ring strong {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-family: 'Plus Jakarta Sans', 'Pretendard Variable', Pretendard, 'Inter', system-ui, sans-serif;
  font-size: 24px;
  color: var(--text);
}

.score-ring.large {
  width: 92px;
  height: 92px;
}

.score-ring.large strong {
  width: 68px;
  height: 68px;
  font-size: 32px;
}

.mini-score small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.mini-bar {
  margin-top: 12px;
}

.mini-bar div,
.demo-metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.mini-bar b,
.mini-bar em {
  font-size: 12px;
  font-style: normal;
}

.mini-bar span,
.demo-metric::after {
  display: block;
  height: 5px;
  margin-top: 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  overflow: hidden;
}

.mini-bar i,
.demo-metric i {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

.priority-preview ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.landing-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 32px;
}

/* ── Pain Points Section ── */
.pain-section { padding-top: 80px; padding-bottom: 80px; }

/* ── Core Features Section ── */
.features-section {
  width: 100%;
  background: var(--bg-subtle);
  padding: 88px 0;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.feature-card.revealed:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.1);
  border-color: var(--accent-muted);
  cursor: default;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  font-size: 22px;
  color: var(--accent);
}

.feature-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.feature-card h3 span {
  font-size: 14px;
  color: var(--muted);
}

/* ── Report Preview ── */
.rp-wrap {
  position: relative;
  margin-top: 56px;
  max-height: 300px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.rp-anim {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-anim.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rp-frame {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rp-top {
  display: grid;
  grid-template-columns: 200px 1fr 240px;
  gap: 20px;
}

.rp-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rp-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.rp-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.rp-score-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rp-score-status {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.rp-score-rank {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.rp-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.rp-metric span {
  font-size: 12px;
  color: var(--muted);
  width: 72px;
  flex-shrink: 0;
}

.rp-metric b {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  width: 24px;
  text-align: right;
  flex-shrink: 0;
}

.rp-metric i {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  display: block;
  position: relative;
}

.rp-metric i::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: inherit;
  background: var(--accent);
  border-radius: 2px;
}

.rp-radar-svg { width: 100%; height: auto; display: block; }

.rp-issue-card h4 {
  margin: 8px 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.rp-issue-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.rp-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.rp-badge--warn {
  color: var(--warn);
  background: #FFF7ED;
}

.rp-fade-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg-subtle));
  pointer-events: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.feature-card > p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.65;
}

.pain-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 48px;
}

.pain-section-head h2 {
  margin: 4px 0 0;
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.pain-section-head p {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  white-space: nowrap;
}

.pain-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 62px;
}

.pain-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.pain-row--reverse .pain-visual { order: 2; }
.pain-row--reverse .pain-text   { order: 1; }

.pain-visual {
  display: flex;
  justify-content: center;
}

.pain-visual img {
  width: 400px;
  max-width: 100%;
  height: auto;
  display: block;
}

.pain-visual img[src="/img/painpoint02.png"] {
  width: 420px;
}

.pain-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pain-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.pain-text h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--text);
}

.pain-text p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 400px;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(52px);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.pain-row:nth-child(1) { transition-delay: 0s; }
.pain-row:nth-child(2) { transition-delay: 0.15s; }
.pain-row:nth-child(3) { transition-delay: 0.15s; }


.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.landing-section h2,
.report-demo h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-head p {
  max-width: 360px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.step-grid,
.audience-grid,
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card,
.audience-grid article {
  padding: 26px;
}

.step-card.featured {
  background: linear-gradient(135deg, var(--accent-light) 0%, #F5F3FF 100%);
  border-color: var(--accent-muted);
}

.step-num {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: 'Plus Jakarta Sans', 'Pretendard Variable', Pretendard, 'Inter', system-ui, sans-serif;
  font-size: 20px;
}

.step-visual {
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  margin-bottom: 18px;
}

.url-visual {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: var(--text);
  font-size: 14px;
}

.url-visual span { color: var(--text-dim); }
.url-visual em {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 13px;
}

.chart-visual {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.chart-visual i {
  flex: 1;
  border-radius: var(--radius-sm);
  background: var(--accent);
}

.chart-visual i:nth-child(1) { height: 40%; opacity: 0.3; }
.chart-visual i:nth-child(2) { height: 70%; opacity: 0.55; }
.chart-visual i:nth-child(3) { height: 55%; opacity: 0.45; }
.chart-visual i:nth-child(4) { height: 90%; }
.chart-visual i:nth-child(5) { height: 65%; opacity: 0.5; }

.list-visual {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-content: center;
  gap: 9px 10px;
  padding: 0 14px;
}

.list-visual span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 10px;
}

.list-visual b {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--border);
  align-self: center;
}

.step-card h3,
.audience-grid h3,
.recommendation-sample h3 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 17px;
  font-weight: 400;
}

.step-card p,
.audience-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.landing-band {
  padding: 88px 32px;
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.report-demo {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px;
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}

.demo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.demo-metric {
  position: relative;
  flex-direction: column;
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-page);
}

.demo-metric b {
  color: var(--accent);
  font-size: 26px;
  font-family: 'Plus Jakarta Sans', 'Pretendard Variable', Pretendard, 'Inter', system-ui, sans-serif;
  font-weight: 400;
}

.demo-metric i {
  height: 5px;
  margin-top: auto;
}

.recommendation-sample {
  padding: 22px;
  box-shadow: none;
}

.recommendation-sample span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.recommendation-sample h3 {
  margin-top: 8px;
}

.recommendation-sample p {
  margin: 7px 0 0;
  font-size: 14px;
}

.recommendation-sample b {
  display: inline-block;
  width: 50px;
  color: var(--text-dim);
}

.audience-grid article {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* ========================
   BENEFITS SECTION
   ======================== */
.benefits-section {
  padding: 100px 0;
  background: var(--bg);
}

.benefits-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.benefits-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 560px;
}

.benefits-text h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 8px 0 20px;
}

.benefits-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.benefits-floating {
  position: relative;
  width: min(100%, 980px);
  min-height: 520px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.benefits-floating::before {
  content: '';
  position: absolute;
  inset: 68px 84px;
  z-index: -1;
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse at center, #000 22%, transparent 72%);
}

.bfc-wrap,
.bfv-report-card {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.benefits-revealed .bfc-wrap,
.benefits-revealed .bfv-report-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.bfc-wrap {
  position: absolute;
  z-index: 2;
  width: 270px;
}

.bfc-w--1 { top: 42px; left: 22px; transition-delay: 0.05s; }
.bfc-w--2 { top: 46px; right: 26px; transition-delay: 0.15s; }
.bfc-w--3 { bottom: 54px; left: 70px; transition-delay: 0.25s; }
.bfc-w--4 { bottom: 42px; right: 68px; transition-delay: 0.35s; }

.bfc {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 5px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.bfc-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 19px;
}

.bfc-title {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.bfc-desc {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.bfv-report-card {
  width: min(100%, 520px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.benefits-revealed .bfv-report-card {
  transition-delay: 0.12s;
}

.bfv-rh {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.bfv-rh-dots {
  display: flex;
  gap: 5px;
}

.bfv-rh-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.bfv-rh-name {
  color: var(--text);
}

.bfv-rh-url {
  margin-left: auto;
  max-width: 140px;
  overflow: hidden;
  color: var(--text-dim);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bfv-rb {
  padding: 24px;
}

.bfv-gauge-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.bfv-gauge {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
}

.bfv-gauge svg {
  width: 96px;
  height: 96px;
}

.bfv-gauge-txt {
  position: absolute;
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--text);
}

.bfv-gauge-txt strong {
  font-family: 'Plus Jakarta Sans', 'Pretendard Variable', Pretendard, 'Inter', system-ui, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.bfv-gauge-txt span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.bfv-bars {
  display: grid;
  gap: 12px;
}

.bfv-bar-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.bfv-bar-row span {
  color: var(--muted);
  font-weight: 600;
}

.bfv-bar-row small {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.bfv-bar {
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
}

.bfv-bf {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.bfv-hr {
  margin: 22px 0 16px;
  border: 0;
  border-top: 1px solid var(--border);
}

.bfv-pri-head {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.bfv-pri-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: var(--text);
  font-size: 13px;
}

.bfv-pn {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid transparent;
}

.bfv-pn.n1 {
  background: #FEE2E2;
  border-color: #FECACA;
  color: #B91C1C;
}

.bfv-pn.n2 {
  background: #FEF3C7;
  border-color: #FDE68A;
  color: #B45309;
}

.bfv-pn.n3 {
  background: #DBEAFE;
  border-color: #BFDBFE;
  color: #1D4ED8;
}

.benefits-visual {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.benefits-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Pulse rings */
.b-pulse {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.8s ease 0.2s;
}

.benefits-revealed .b-pulse {
  opacity: 1;
  animation: bPulse 3.5s ease-in-out infinite;
}

.benefits-revealed .b-p2 {
  animation-delay: 1.75s;
}

@keyframes bPulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

/* Lines */
.b-line {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-opacity: 0.3;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefits-revealed .b-line { stroke-dashoffset: 0 !important; }
.benefits-revealed .b-l2 { transition-delay: 0.1s; }
.benefits-revealed .b-l3 { transition-delay: 0.2s; }
.benefits-revealed .b-l4 { transition-delay: 0.3s; }

/* Midpoint accent dots */
.b-midDot {
  fill: var(--accent);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.benefits-revealed .b-midDot { opacity: 0.45; transform: scale(1); transition-delay: 0.6s; }
.benefits-revealed .b-md2 { transition-delay: 0.7s; }
.benefits-revealed .b-md3 { transition-delay: 0.8s; }
.benefits-revealed .b-md4 { transition-delay: 0.9s; }

/* Node endpoint circles */
.b-node {
  fill: var(--accent);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.benefits-revealed .b-node { opacity: 1; transform: scale(1); transition-delay: 0.55s; }
.benefits-revealed .b-nd2 { transition-delay: 0.65s; }
.benefits-revealed .b-nd3 { transition-delay: 0.75s; }
.benefits-revealed .b-nd4 { transition-delay: 0.85s; }

/* Corner labels */
.b-label {
  position: absolute;
  width: 120px;
  opacity: 0;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.b-label strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.b-label span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.45;
}

.b-label--tl { top: 13%; left: 0; transform: translate(-8px, -6px); }
.b-label--tr { top: 13%; right: 0; text-align: right; transform: translate(8px, -6px); }
.b-label--br { bottom: 13%; right: 0; text-align: right; transform: translate(8px, 6px); }
.b-label--bl { bottom: 13%; left: 0; transform: translate(-8px, 6px); }

.benefits-revealed .b-label { opacity: 1; transform: none; }
.benefits-revealed .b-label--tl { transition-delay: 0.6s; }
.benefits-revealed .b-label--tr { transition-delay: 0.7s; }
.benefits-revealed .b-label--br { transition-delay: 0.8s; }
.benefits-revealed .b-label--bl { transition-delay: 0.9s; }

/* ========================
   PRICING SECTION
   ======================== */
.pricing-section {
  padding: 96px 0;
  background: var(--bg-subtle);
}

.pricing-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pricing-card.revealed:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.pricing-card--pro {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(37, 99, 235, 0.12);
}

.pricing-card--pro.revealed:hover {
  box-shadow: 0 0 0 1px var(--accent), 0 20px 48px rgba(37, 99, 235, 0.18);
}

.pricing-card-top {
  margin-bottom: 24px;
}

.pricing-plan-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 14px;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}

.pricing-price strong {
  font-family: 'Plus Jakarta Sans', 'Pretendard Variable', Pretendard, 'Inter', system-ui, sans-serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
}

.pricing-price span {
  font-size: 13px;
  color: var(--muted);
}

.pricing-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.pricing-features li .ph-check {
  color: var(--accent);
  font-size: 15px;
  flex-shrink: 0;
}

.pricing-cta {
  display: block;
  text-align: center;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s, background 0.15s;
}

.pricing-cta.outline-button {
  border: 1px solid var(--border);
  background: none;
  color: var(--text);
}

.pricing-cta.outline-button:hover {
  background: var(--bg-subtle);
}

.pricing-cta.primary-button {
  background: var(--accent);
  color: #fff;
  border: none;
}

.pricing-cta.primary-button:hover {
  opacity: 0.88;
}

@media (max-width: 860px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

.landing-cta {
  padding: 0;
  background: #fff;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.landing-cta > div {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-inner {
  min-height: 360px;
  padding: 96px 32px 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta-copy {
  max-width: 560px;
  margin: 0 auto;
}

.landing-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(248, 250, 252, 0.86) 100%);
  pointer-events: none;
}

.landing-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 72% 48%, rgba(37, 99, 235, 0.10), transparent 70%),
    radial-gradient(ellipse at 28% 52%, rgba(124, 58, 237, 0.07), transparent 68%);
  pointer-events: none;
}

.landing-cta h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.landing-cta p {
  max-width: 460px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.landing-cta small {
  display: block;
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 14px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cta-final-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 36px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: opacity 0.18s, transform 0.18s;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.cta-final-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.cta-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-pill);
  background: transparent;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.cta-secondary-link span {
  color: var(--text-dim);
  transition: transform 0.16s ease;
}

.cta-secondary-link:hover {
  border-color: rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.04);
}

.cta-secondary-link:hover span {
  transform: translateX(4px);
}

@media (max-width: 860px) {
  .cta-inner {
    min-height: 0;
    padding: 72px 24px 80px;
  }

  .cta-copy {
    margin: 0 auto;
  }

  .landing-cta h2 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .landing-cta p {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .landing-cta p {
    font-size: 15px;
  }
}

@keyframes rf-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes ctaShaderFlow {
  0% {
    background-position: 45% 50%, 8% 34%, 92% 68%;
    transform: translate3d(-2%, -1%, 0) scale(1.03);
  }
  50% {
    background-position: 55% 48%, 18% 40%, 80% 58%;
    transform: translate3d(2%, 1%, 0) scale(1.06);
  }
  100% {
    background-position: 62% 52%, 12% 46%, 86% 62%;
    transform: translate3d(3%, -1%, 0) scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
  .landing-cta::before { animation: none; }
}

/* ========================
   LOADING SCREEN
   ======================== */
.loading-main {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--bg-page);
}

.loading-card {
  width: min(460px, 100%);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 36px 40px 40px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 12px 40px -8px rgba(15, 23, 42, 0.10);
  text-align: center;
}

.scanning-label {
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scanning-url {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 32px;
  padding: 6px 12px;
  overflow: hidden;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  text-align: left;
}

.analysis-step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.3s;
}

.analysis-step:last-child {
  border-bottom: 0;
}

.analysis-step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-subtle);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.analysis-step.active .analysis-step-icon {
  background: var(--accent-light);
  animation: pulse-warm 1.4s ease-in-out infinite;
}

.analysis-step.active .analysis-step-icon::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.1s ease-in-out infinite;
}

.analysis-step.complete .analysis-step-icon {
  background: var(--accent);
}

.analysis-step.complete .analysis-step-icon::after {
  content: "✓";
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
}

.analysis-step-title {
  flex: 1;
  color: var(--text-dim);
  font-size: 13px;
  transition: color 0.3s;
}

.analysis-step.active .analysis-step-title {
  color: var(--text);
  font-weight: 600;
}

.analysis-step.complete .analysis-step-title {
  color: var(--muted);
}

.analysis-step-check {
  opacity: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  transition: opacity 0.3s;
}

.analysis-step.complete .analysis-step-check {
  opacity: 1;
}

.analysis-progress-wrap {
  height: 3px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
}

.analysis-progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #6366F1, var(--accent));
  border-radius: var(--radius-pill);
  transition: width 0.5s ease-out;
}

.analysis-progress-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.analysis-progress-pct {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.loading-card .error {
  margin: 16px 0 0;
  text-align: left;
}

@keyframes pulse-warm {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
  50%       { box-shadow: 0 0 0 7px rgba(37, 99, 235, 0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .analysis-step.active .analysis-step-icon,
  .analysis-step.active .analysis-step-icon::after {
    animation: none;
  }
}

/* ========================
   REPORT DASHBOARD
   ======================== */
.rf-report-page {
  min-height: calc(100vh - 60px);
  background: var(--bg-page);
  color: var(--text);
}

.rf-report-toolbar {
  position: sticky;
  top: 64px;
  z-index: 20;
  min-height: 52px;
  padding: 9px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.rf-report-titleline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rf-header-url {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 12px;
}

.rf-report-actions,
.rf-share-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.rf-badge-done {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--color-success);
  background: var(--bg-success);
  border: 1px solid var(--bd-success);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.rf-badge-done span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.rf-report-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 116px);
}

.rf-report-sidebar {
  position: sticky;
  top: 116px;
  height: calc(100vh - 116px);
  overflow-y: auto;
  padding: 20px 0;
  border-right: 1px solid var(--border);
  background: var(--bg);
  scrollbar-width: none;
}

.rf-report-sidebar::-webkit-scrollbar {
  display: none;
}

.rf-sidebar-label {
  padding: 0 16px;
  margin-bottom: 5px;
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rf-report-sidebar nav {
  display: grid;
  gap: 1px;
  margin-bottom: 20px;
}

.rf-report-sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 16px;
  color: var(--muted);
  border-left: 2px solid transparent;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.12s, background 0.12s;
}

.rf-report-sidebar a:hover,
.rf-report-sidebar a.active {
  color: var(--accent);
  background: var(--accent-light);
  border-left-color: var(--accent);
}

.rf-nav-score {
  min-width: 30px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.score-good { background: var(--bg-success); color: var(--color-success); }
.score-fair { background: var(--bg-warn);    color: var(--color-warn); }
.score-poor { background: var(--bg-danger);  color: var(--color-danger); }

.rf-sidebar-shot {
  display: block;
  width: calc(100% - 28px);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-page);
}

.rf-report-main {
  width: min(900px, 100%);
  padding: 32px 36px 64px;
}

.rf-report-section {
  margin-bottom: 48px;
  scroll-margin-top: 136px;
}

.rf-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', 'Pretendard Variable', Pretendard, 'Inter', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.022em;
}

.rf-section-title span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  font-family: inherit;
  font-size: 13px;
}

.rf-overview-grid {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.rf-gauge-wrap {
  position: relative;
  width: 160px;
}

.rf-gauge-svg {
  display: block;
}

.rf-gauge-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}

.rf-gauge-label strong {
  color: var(--accent);
  font-family: 'Plus Jakarta Sans', 'Pretendard Variable', Pretendard, 'Inter', system-ui, sans-serif;
  font-size: 46px;
  font-weight: 400;
  line-height: 1;
}

.rf-gauge-label span {
  color: var(--text-dim);
  font-size: 12px;
}

.rf-score-rating {
  margin-bottom: 6px;
  font-family: 'Plus Jakarta Sans', 'Pretendard Variable', Pretendard, 'Inter', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 400;
}

.rf-score-desc {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.rf-category-scores {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.rf-cat-score-card {
  padding: 10px 12px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.rf-cat-score-label {
  min-height: 30px;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.4;
}

.rf-cat-score-bar-wrap {
  height: 3px;
  margin: 7px 0;
  overflow: hidden;
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
}

.rf-cat-score-bar-wrap span {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
}

.rf-cat-score-card strong {
  background: transparent;
  font-size: 18px;
  font-weight: 700;
}

.rf-category-panel,
.rf-issue-card,
.rf-rec-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.rf-category-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.rf-category-panel-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.rf-fix-hint {
  margin: 16px 18px 18px;
  padding: 14px 16px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
}

.rf-fix-label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.rf-fix-hint h3 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.rf-fix-hint p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.rf-fix-hint strong {
  display: inline-block;
  min-width: 46px;
  color: var(--accent);
  font-weight: 600;
}

.rf-issue-group {
  margin-bottom: 20px;
}

.rf-issue-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.rf-severity-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sev-high   { color: var(--color-danger); background: var(--bg-danger); border-color: var(--bd-danger); }
.sev-medium { color: var(--color-warn);   background: var(--bg-warn);   border-color: var(--bd-warn); }
.sev-low    { color: var(--color-success);background: var(--bg-success);border-color: var(--bd-success); }

.rf-issue-count {
  color: var(--text-dim);
  font-size: 12px;
}

.rf-issue-list {
  display: grid;
  gap: 5px;
}

.rf-issue-card {
  padding: 13px 16px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.rf-issue-card:hover,
.rf-issue-card.expanded {
  border-color: var(--border-strong);
}

.rf-issue-header,
.rf-issue-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.rf-issue-header {
  justify-content: space-between;
}

.rf-issue-title-row {
  min-width: 0;
  flex: 1;
}

.rf-issue-title-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.rf-issue-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-high   { background: var(--color-danger); }
.dot-medium { background: var(--color-warn); }
.dot-low    { background: var(--color-success); }

.rf-issue-category {
  padding: 2px 6px;
  color: var(--text-dim);
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11px;
  white-space: nowrap;
}

.rf-issue-expand-icon {
  color: var(--text-dim);
  transition: transform 0.2s;
}

.rf-issue-card.expanded .rf-issue-expand-icon {
  transform: rotate(180deg);
}

.rf-issue-body {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.rf-issue-card.expanded .rf-issue-body {
  display: block;
}

.rf-issue-body p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.rf-issue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 12px;
}

.rf-issue-meta strong {
  color: var(--muted);
}

.rf-rec-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

/* 1,2번: 상단 2열 동일 크기 */
.rf-rec-card:nth-child(1),
.rf-rec-card:nth-child(2) {
  grid-column: span 3;
}

/* 3,4,5번: 하단 3열 동일 크기 */
.rf-rec-card:nth-child(3),
.rf-rec-card:nth-child(4),
.rf-rec-card:nth-child(5) {
  grid-column: span 2;
}

/* 소형 카드(3~5번): what 숨김 */
.rf-rec-card:nth-child(n+3) .rf-rec-what {
  display: none;
}

.rf-rec-card {
  position: relative;
  display: block;
  padding: 16px 18px;
}

.rf-rec-rank {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 0 10px 0 8px;
  display: grid;
  place-items: center;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.rf-rec-body { min-width: 0; }

.rf-rec-meta { margin-bottom: 6px; }
.rf-rec-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-subtle, #f1f5f9);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
}

.rf-rec-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.rf-rec-what {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.rf-rec-why {
  margin: 0;
  font-size: 13px;
  color: #60A5FA;
  background: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  line-height: 1.5;
}
.rf-rec-why i { margin-top: 1px; flex-shrink: 0; }

.rf-rec-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-radius: 10px;
  border: 1.5px solid #bfdbfe;
}
.rf-rec-cta-copy { min-width: 0; }
.rf-rec-cta-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.rf-rec-cta-copy span {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}
.rf-rec-cta-btn {
  flex-shrink: 0;
  padding: 9px 18px;
  background: var(--accent, #2563eb);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.rf-rec-cta-btn:hover { background: #1d4ed8; }

.rf-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--accent-light) 0%, #F5F3FF 100%);
  border: 1.5px solid var(--accent-muted);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-size: 14px;
}

/* ========================
   APP SHELL
   ======================== */
.app-layout {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  background: var(--bg-subtle);
}

.app-sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  padding: 24px 16px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--bg);
  overflow-y: auto;
}

.app-sidebar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.sidebar-new-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 4px;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sidebar-new-btn:hover {
  background: var(--bg-subtle);
}

.diag-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

.diag-modal-backdrop[hidden] {
  display: none;
}

.diag-modal-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
  width: min(480px, 90vw);
  padding: 28px;
}

.diag-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.diag-modal-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.diag-modal-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
}

.diag-modal-close:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.diag-modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diag-modal-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s;
}

.diag-modal-input-wrap:focus-within {
  border-color: var(--accent);
}

.diag-modal-prefix {
  padding: 0 10px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  background: var(--bg-subtle);
  border-right: 1px solid var(--border);
  height: 44px;
  display: flex;
  align-items: center;
}

.diag-modal-input-wrap input {
  flex: 1;
  height: 44px;
  padding: 0 12px;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

.app-avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
}

.app-avatar {
  width: 36px;
  height: 36px;
}

.app-sidebar-head strong,
.app-sidebar-head span {
  display: block;
}

.app-sidebar-head strong {
  font-family: 'Plus Jakarta Sans', 'Pretendard Variable', Pretendard, 'Inter', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
}

.app-sidebar-head span {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-dim);
  font-size: 12px;
}

.app-nav {
  display: grid;
  gap: 2px;
  margin-bottom: 18px;
}

.app-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.15s, background 0.15s;
}

.app-nav a:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

.app-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 500;
}

.app-nav strong {
  color: inherit;
  font-size: 14px;
  font-weight: inherit;
}

.app-nav span {
  display: none;
}

.app-quick-analyze {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-page);
}

.app-quick-analyze label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.app-quick-analyze input,
.settings-form input,
.settings-form select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.15s;
}

.app-quick-analyze input:focus,
.settings-form input:focus,
.settings-form select:focus {
  border-color: var(--accent);
  outline: none;
}

.app-quick-analyze .primary-button {
  width: 100%;
}

.app-content {
  min-width: 0;
  padding: 48px 48px 80px;
}

.app-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.app-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.app-page-head h1,
.app-page-head div h1 {
  margin: 6px 0;
  font-family: 'Plus Jakarta Sans', 'Pretendard Variable', Pretendard, 'Inter', system-ui, sans-serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.026em;
}

.app-page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.app-head-form {
  max-width: 520px;
}

.app-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.app-stat,
.app-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.app-stat {
  padding: 16px;
}

.app-stat span {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.app-stat strong {
  display: block;
  margin-top: 8px;
  font-family: 'Plus Jakarta Sans', 'Pretendard Variable', Pretendard, 'Inter', system-ui, sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.app-stat p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.app-panel {
  padding: 18px;
}

.app-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.app-panel-head h2 {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 500;
}

.app-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.app-report-list {
  margin-top: 0;
}

/* ── Report Card Grid ──────────────────────────────────── */
.report-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.report-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.report-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(37,99,235,0.08);
}

.report-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.report-card-grade {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.report-card-score {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.report-card-score small {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-dim);
}

.report-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.report-card-domain {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.report-card-title {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
}

.report-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.report-card-foot i {
  margin-right: 3px;
}

.report-card-date {
  color: var(--text-dim);
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
}

.settings-form {
  display: grid;
  gap: 12px;
}

.settings-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.check-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  color: var(--text) !important;
  font-weight: 500 !important;
}

.check-row input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  font-size: 22px;
}

.profile-hero h2 {
  margin: 0 0 3px;
  font-size: 19px;
}

.profile-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.settings-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.settings-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.settings-list span {
  color: var(--text-dim);
}

.settings-list strong {
  text-align: right;
  font-weight: 500;
}


/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1100px) {
  .app-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .topbar-inner {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }

  .nav {
    display: none;
  }

  .nav-actions .nav-ghost {
    display: none;
  }

  .nav-actions .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: inline-flex;
  }

  .grid,
  .report-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-head,
  .report-head,
  .report-item {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-form {
    flex-direction: column;
  }

  .checkpoint-row {
    grid-template-columns: 26px 1fr;
  }

  .checkpoint-row > .badge-list,
  .checkpoint-row > .result,
  .disclosure {
    grid-column: 2 / 3;
  }

  .side-panel {
    position: static;
  }

  /* Landing */
  .landing-hero {
    padding: 56px 20px 64px;
  }

  .hero-preview,
  .section-head,
  .demo-header {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-preview {
    gap: 12px;
  }

  .float-card,
  .float-card:nth-child(2),
  .float-card:nth-child(3) {
    width: 100%;
    margin-top: 0;
    transform: none;
  }

  .landing-section,
  .landing-band {
    padding-left: 20px;
    padding-right: 20px;
  }

  .step-grid,
  .audience-grid,
  .demo-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .url-card-form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .url-card-form .pill-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .landing-cta > div,
  .report-demo {
    padding: 32px 20px;
  }

  .landing-cta > .cta-inner {
    padding: 72px 24px 80px;
  }

  /* Report */
  .rf-report-toolbar {
    top: 64px;
    padding: 10px 18px;
    align-items: stretch;
    flex-direction: column;
  }

  .rf-report-actions {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .rf-report-layout {
    grid-template-columns: 1fr;
  }

  .rf-report-sidebar {
    position: sticky;
    top: 168px;
    z-index: 10;
    height: auto;
    padding: 0;
    display: block;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .rf-sidebar-label,
  .rf-sidebar-shot {
    display: none;
  }

  .rf-report-sidebar nav {
    display: flex;
    margin: 0;
    white-space: nowrap;
  }

  .rf-report-sidebar a {
    padding: 12px;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .rf-report-sidebar a:hover,
  .rf-report-sidebar a.active {
    border-left: 0;
    border-bottom-color: var(--accent);
    background: var(--bg);
  }

  .rf-report-main {
    padding: 20px 18px 48px;
  }

  .rf-overview-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .rf-gauge-wrap {
    margin: 0 auto;
  }

  .rf-category-scores {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rf-rec-card {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .rf-rec-effort {
    display: none;
  }

  .rf-share-bar {
    flex-direction: column;
    text-align: center;
  }

  /* App shell */
  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: sticky;
    top: 64px;
    z-index: 30;
    height: auto;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .app-sidebar-head,
  .app-quick-analyze {
    display: none;
  }

  .app-nav {
    display: flex;
    gap: 6px;
    margin: 0;
    overflow-x: auto;
    white-space: nowrap;
  }

  .app-nav a {
    min-width: 120px;
  }

  .app-content {
    padding: 20px 18px 48px;
  }

  .app-page-head {
    flex-direction: column;
    align-items: stretch;
  }

  .app-stats-grid {
    grid-template-columns: 1fr;
  }

  .app-layout .rf-report-toolbar {
    margin: -20px -18px 0;
    top: 130px;
  }

  .app-layout .rf-report-sidebar {
    top: 238px;
  }
}

@media (max-width: 600px) {
  .loading-main {
    align-items: flex-start;
    padding: 24px 16px;
  }

  .loading-card {
    padding: 24px 20px 28px;
  }
}

/* User-flow SaaS dashboard additions */
.app-nav a,
.app-nav button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 1px 8px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted);
  text-align: left;
  text-decoration: none;
  transition: color 0.12s, background 0.12s;
}

.app-nav a:hover,
.app-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-light);
}

.app-nav button.locked {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-nav b {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  font-size: 12px;
  font-weight: 700;
}

/* Report page header separator */
.rf-page-head {
  padding-bottom: 20px;
  margin-bottom: 20px !important;
  border-bottom: 1px solid var(--border);
}

/* Site identity card above tabs */
.rf-site-identity {
  margin-bottom: 0;
}

.rf-site-identity-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border: 1.5px solid var(--border);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  background: var(--bg-subtle, #f8f9fb);
}
/* legacy — kept for safety, overridden by rf-hero-banner */

.rf-site-domain {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-sidebar-foot {
  margin-top: 14px;
  padding: 12px 10px 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-recent {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.app-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px 8px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
}

.app-recent-head i {
  font-size: 14px;
  color: var(--muted);
}

.app-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-recent-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.12s, background 0.12s;
}

.app-recent-list a:hover,
.app-recent-list a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-light);
}

.app-recent-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: 0.55;
}

.app-recent-list a[aria-current="page"] .app-recent-dot {
  background: currentColor;
  opacity: 1;
}

.app-recent-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diagnosis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 14px;
}

.diagnosis-panel {
  min-height: 260px;
}

.diagnosis-form {
  display: grid;
  gap: 10px;
}

.diagnosis-form label,
.pdf-locked {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.diagnosis-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.diagnosis-input-row input,
.pdf-locked select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
}

.diagnosis-guide ul,
.plan-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.loading-modal {
  width: min(460px, 100%);
  background: var(--bg);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.loading-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.empty-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.plan-card {
  display: grid;
  gap: 12px;
}

.plan-card.featured {
  border-color: var(--accent-muted);
  box-shadow: var(--shadow-card);
}

.plan-card > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.plan-card h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
}

.plan-card p,
.billing-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.billing-note {
  margin-top: 14px;
}

.pdf-modal {
  width: min(440px, 100%);
  display: grid;
  gap: 14px;
}

.pdf-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.pdf-modal-head h2 {
  margin: 0;
  font-size: 18px;
}

.pdf-include-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 14px;
}

.pdf-locked {
  display: grid;
  gap: 6px;
}

@media (max-width: 900px) {
  .diagnosis-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .diagnosis-input-row,
  .empty-action {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .app-nav a,
  .app-nav button {
    min-width: 140px;
  }
}

/* Diagnosis modal requested adjustments */
.loading-modal .scanning-label {
  font-size: 12px;
}

.loading-modal .scanning-url {
  font-size: 14px;
}

.loading-modal .analysis-step-title {
  font-size: 14px;
}

.loading-modal .analysis-step-check {
  font-size: 12px;
}

.loading-modal .analysis-progress-text {
  font-size: 13px;
}

.loading-modal .error:empty {
  display: none;
}

.loading-modal .modal-actions {
  justify-content: center;
}

.loading-modal .modal-actions .primary-button {
  min-width: 116px;
  justify-content: center;
}

/* Report detail: remove internal left menu */
.rf-report-layout {
  display: block;
  min-height: auto;
}

.rf-report-main {
  width: min(980px, 100%);
  margin: 0 auto;
}

.rf-report-sidebar,
.rf-sidebar-shot,
.rf-sidebar-label {
  display: none !important;
}

@media (max-width: 900px) {
  .app-layout .rf-report-sidebar,
  .rf-report-sidebar {
    display: none !important;
  }

  .app-layout .rf-report-toolbar {
    top: 130px;
  }
}

/* Report detail actions stay at the top */
.rf-report-toolbar {
  margin-bottom: 0;
}

.rf-report-actions .ghost-button,
.rf-report-actions .primary-button {
  min-height: 38px;
}

/* TailAdmin-like dashboard shell */
body:has(.app-layout) {
  background: #f8fafc;
}

.app-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: var(--bg-page);
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 16px 18px;
  border-right: 1px solid var(--border);
  background: var(--bg);
  overflow-y: auto;
}

.app-sidebar-head {
  display: block;
  padding: 0 8px 26px;
  margin-bottom: 12px;
  border-bottom: 0;
}

.app-sidebar-head strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.app-avatar,
.app-sidebar-head span {
  display: none;
}

.app-new-diagnosis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0 4px 18px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.app-nav {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}

.app-nav a,
.app-nav button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 1px 10px;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  text-decoration: none;
}

.app-nav a:hover,
.app-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-light);
}

.app-nav button.locked {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-nav b {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: transparent;
  color: currentColor;
  font-size: 12px;
  font-weight: 800;
}

.app-nav strong {
  align-self: center;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
}

.app-nav span {
  display: none;
}

.app-sidebar-foot {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: auto 4px 0;
  padding: 14px 8px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.app-sidebar-foot:hover {
  background: var(--bg-subtle);
}

.profile-menu {
  position: fixed;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  z-index: 200;
  min-width: 180px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}

.profile-menu-item:hover {
  background: var(--bg-subtle);
}

.profile-menu-logout {
  color: #DC2626;
  border-top: 1px solid var(--border);
}

.app-profile-dot {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 800;
}

.app-sidebar-foot strong,
.app-sidebar-foot span {
  display: block;
}

.app-sidebar-foot strong {
  font-size: 13px;
}

.app-sidebar-foot span {
  overflow: hidden;
  color: var(--text-dim);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(220px, 420px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.app-menu-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--muted);
}

.app-search {
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-dim);
  font-size: 13px;
}

.app-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 42px;
}

.app-content {
  min-width: 0;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 28px 36px 64px;
  overflow: auto;
}

.app-page-head {
  align-items: center;
}

.app-page-head h1 {
  font-size: 30px;
  font-weight: 400;
}

.rf-report-page {
  min-height: auto;
  background: transparent;
}

.rf-report-toolbar {
  position: static;
  min-height: 42px;
  margin-bottom: 18px;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.rf-report-layout {
  display: block;
  min-height: auto;
}

.rf-report-main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 0 48px;
}

@media (max-width: 900px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: auto;
    padding: 10px 14px;
  }

  .app-sidebar-head,
  .app-sidebar-foot,
  .app-new-diagnosis {
    display: none;
  }

  .app-main {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .app-topbar {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px 16px;
  }

  .app-search {
    min-width: 0;
  }

  .app-top-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .app-content {
    padding: 20px 18px 48px;
  }
}

/* Phosphor menu icons */
.app-new-diagnosis {
  gap: 8px;
}

.app-new-diagnosis .ph {
  font-size: 18px;
  line-height: 1;
}

.app-nav i.ph {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: currentColor;
  font-size: 18px;
  line-height: 1;
}

.app-nav b {
  display: none;
}

/* Dashboard logo text tuning */
.app-sidebar-head strong {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Topbar without search/menu controls */
.app-topbar {
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
}

.app-menu-button,
.app-search {
  display: none !important;
}

/* Dashboard logo and topbar sizing adjustment */
.app-sidebar-head strong {
  font-size: 20px;
}

.app-main {
  grid-template-rows: 66px minmax(0, 1fr);
}

.app-topbar {
  min-height: 66px;
  padding-top: 9px;
  padding-bottom: 9px;
}

/* Report detail visualization refresh */
.rf-report-overview {
  display: grid;
  gap: 18px;
}

.rf-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.rf-overview-head h1 {
  margin: 4px 0 6px;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.rf-overview-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.rf-overall-grade {
  min-width: 142px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  text-align: right;
}

.rf-overall-grade span,
.rf-kpi-grid span,
.rf-chart-head p {
  color: var(--text-dim);
  font-size: 12px;
}

.rf-overall-grade strong {
  display: block;
  margin-top: 6px;
  font-size: 38px;
  line-height: 1;
}

.rf-overall-grade em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.rf-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rf-kpi-grid article,
.rf-chart-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.rf-kpi-grid article {
  padding: 16px;
}

.rf-kpi-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.rf-kpi-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.rf-visual-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: 14px;
  margin-top: 14px;
}

.rf-visual-grid.wide {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.rf-visual-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rf-visual-grid .rf-chart-card {
  display: flex;
  flex-direction: column;
}

.rf-visual-grid .rc-chart-wrap {
  flex: 1;
  width: 100%;
  min-width: 0;
}

.rf-visual-grid .rf-chart-insight {
  margin-top: auto;
}

.rf-visual-grid.three .rc-chart-wrap {
  flex: 1;
  width: 100%;
  min-width: 0;
}

.rf-visual-grid.three .rf-chart-head {
  flex-direction: column;
  gap: 4px;
}

.rf-visual-grid.three .rf-chart-head p {
  text-align: left;
  max-width: 100%;
}

/* Hero banner (slim top bar) */
.rf-hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 12px;
}
.rf-hero-info { min-width: 0; }
.rf-hero-oneline {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
.rf-hero-highlight {
  font-weight: 700;
  color: #2563eb;
}

/* KPI cards row */
.rf-kpi-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.rf-kpi-card {
  position: relative;
  padding: 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.rf-kpi-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 18px;
}
.rf-kpi-icon--blue   { background: #eff6ff; color: #93c5fd; }
.rf-kpi-icon--purple { background: #f5f3ff; color: #c4b5fd; }
.rf-kpi-icon--red    { background: #fff5f5; color: #fca5a5; }
.rf-kpi-icon--orange { background: #fff7ed; color: #fdba74; }
.rf-kpi-icon--green  { background: #f0fdf4; color: #86efac; }

.rf-kpi-body { min-width: 0; }
.rf-kpi-label {
  display: block;
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.rf-kpi-value {
  display: block;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.rf-kpi-sub {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: #94a3b8;
}
.rf-kpi-card--warn .rf-kpi-value { color: #0f172a; }
.rf-kpi-card--accent .rf-kpi-value { color: #0f172a; }
.rf-kpi-card--grade .rf-kpi-value { color: #0f172a; }

.rf-chart-card {
  min-width: 0;
  padding: 18px;
}

.rf-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.rf-chart-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.rf-chart-head p {
  max-width: 320px;
  margin: 0;
  text-align: right;
}

.rf-chart-insight {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
}

.rf-radar-wrap {
  display: grid;
  place-items: center;
}

.rf-radar {
  width: min(100%, 300px);
  height: auto;
}

.rf-radar-ring,
.rf-radar-axis,
.rf-area-grid {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
}

.rf-radar-area {
  fill: rgba(37, 99, 235, 0.16);
  stroke: var(--accent);
  stroke-width: 2;
}

.rf-radar-dot,
.rf-area-dot {
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 2;
}

.rf-radar-label,
.rf-area-label {
  fill: var(--muted);
  font-size: 10px;
}

.rf-stack-bar {
  display: flex;
  height: 12px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
}

.rf-stack-bar span.pass,
.rf-status-row i.pass { background: var(--accent); }
.rf-stack-bar span.fail,
.rf-status-row i.fail { background: #BFDBFE; }
.rf-stack-bar span.warn,
.rf-status-row i.warn { background: #93C5FD; }
.rf-stack-bar span.manual,
.rf-status-row i.manual { background: #DBEAFE; }

.rf-vbar-chart {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 16px 8px 0;
  height: 110px;
}

.rf-vbar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  height: 100%;
}

.rf-vbar-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
  flex-shrink: 0;
}

.rf-vbar-track {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
}

.rf-vbar-fill {
  width: 100%;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: height 0.4s ease;
  min-height: 4px;
}

.rf-vbar-fill.pass  { background: var(--accent); }
.rf-vbar-fill.fail  { background: #BFDBFE; }
.rf-vbar-fill.warn  { background: #93C5FD; }
.rf-vbar-fill.manual { background: #DBEAFE; }

.rf-vbar-label {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.rf-status-bars,
.rf-category-bars {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.rf-status-row,
.rf-category-bar {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.rf-status-row > div,
.rf-category-bar > div {
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
}

.rf-status-row i,
.rf-category-bar i {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
}

.rf-status-row strong,
.rf-category-bar strong {
  text-align: right;
  font-size: 13px;
}

.rf-area-chart {
  width: 100%;
  height: auto;
  min-height: 190px;
}

.rf-area-fill {
  fill: rgba(37, 99, 235, 0.12);
}

.rf-area-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rf-category-bar {
  grid-template-columns: 92px minmax(0, 1fr) 38px;
}

.rf-category-bar i.score-good { background: var(--accent); }
.rf-category-bar i.score-fair { background: #93C5FD; }
.rf-category-bar i.score-poor { background: #BFDBFE; }

.rf-priority-card {
  overflow: hidden;
  margin-top: 14px;
}

.rf-matrix {
  position: relative;
  height: 280px;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(to right, transparent 33.33%, var(--border) 33.33%, transparent calc(33.33% + 1px), transparent 66.66%, var(--border) 66.66%, transparent calc(66.66% + 1px)),
    linear-gradient(to bottom, transparent 33.33%, var(--border) 33.33%, transparent calc(33.33% + 1px), transparent 66.66%, var(--border) 66.66%, transparent calc(66.66% + 1px)),
    var(--bg-page);
}

.rf-matrix .axis {
  position: absolute;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
}

.rf-matrix .axis.y {
  top: 10px;
  left: 12px;
}

.rf-matrix .axis.x {
  right: 12px;
  bottom: 10px;
}

.rf-matrix-dot {
  position: absolute;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.rf-quadrant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rf-quadrant {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid;
}

.rf-quadrant.q-do-first {
  background: #FFF7ED;
  border-color: #FED7AA;
}

.rf-quadrant.q-plan {
  background: var(--accent-light);
  border-color: var(--accent-muted);
}

.rf-quadrant.q-later {
  background: var(--bg-success);
  border-color: var(--bd-success);
}

.rf-quadrant.q-reconsider {
  background: var(--bg-subtle);
  border-color: var(--border);
}

.rf-quadrant-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.rf-quadrant-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  flex-shrink: 0;
}

.q-do-first .rf-quadrant-icon {
  background: #FED7AA;
  color: #C2410C;
}

.q-plan .rf-quadrant-icon {
  background: var(--accent-muted);
  color: var(--accent);
}

.q-later .rf-quadrant-icon {
  background: var(--bd-success);
  color: #047857;
}

.q-reconsider .rf-quadrant-icon {
  background: var(--border);
  color: var(--muted);
}

.rf-quadrant-head strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.rf-quadrant-head span {
  font-size: 11px;
  color: var(--muted);
}

.rf-quadrant-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.rf-quadrant-items li {
  position: relative;
  padding-left: 12px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
}

.rf-quadrant-items li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.rf-quadrant-items li.rf-quadrant-empty {
  color: var(--text-dim);
  font-style: italic;
  padding-left: 0;
}

.rf-quadrant-items li.rf-quadrant-empty::before {
  display: none;
}

.rc-chart-wrap {
  min-height: 200px;
  width: 100%;
}

.rf-empty-chart {
  display: grid;
  min-height: 160px;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--bg-page);
  font-size: 13px;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 260px;
  transform: translateX(-50%);
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: var(--shadow-card);
}

@media (max-width: 1180px) {
  .rf-kpi-grid,
  .rf-visual-grid,
  .rf-visual-grid.wide {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .rf-overview-head,
  .rf-chart-head {
    flex-direction: column;
  }

  .rf-chart-head p {
    text-align: left;
  }

  .rf-kpi-grid,
  .rf-visual-grid,
  .rf-visual-grid.wide {
    grid-template-columns: 1fr;
  }

  .rf-status-row,
  .rf-category-bar {
    grid-template-columns: 86px minmax(0, 1fr) 34px;
  }
}

/* Report detail tabs — underline style, attached to site identity card */
.rf-report-tabs {
  position: sticky;
  top: 66px;
  z-index: 15;
  display: flex;
  gap: 0;
  margin: 0 0 20px;
  padding: 0 16px;
  overflow-x: auto;
  border: 1.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 16px 16px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
}

.rf-report-tab {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}

.rf-report-tab:hover {
  color: var(--text);
}

.rf-report-tab[aria-selected="true"] {
  background: transparent;
  color: var(--accent);
  border-bottom-color: var(--accent);
  box-shadow: none;
}

.rf-report-panels > [hidden] {
  display: none !important;
}

.rf-report-panels .rf-report-section {
  margin-bottom: 0;
}

.rf-ai-recommendations {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .rf-report-tabs {
    top: 0;
  }
}

/* Global dashboard top actions */
.app-top-actions {
  width: 100%;
}

.top-diagnosis-form {
  display: grid;
  grid-template-columns: minmax(240px, 420px) auto;
  gap: 8px;
  margin-right: auto;
}

.top-diagnosis-form input {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
}

.top-diagnosis-form input:focus {
  border-color: var(--accent);
  outline: none;
}

.app-top-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 900px) {
  .top-diagnosis-form {
    grid-template-columns: minmax(180px, 1fr) auto;
    min-width: 100%;
  }
}

/* Top diagnosis input with embedded icon button */
.app-new-diagnosis {
  display: none !important;
}

.top-diagnosis-form {
  display: block;
  width: min(420px, 44vw);
  margin-right: auto;
}

.top-diagnosis-input-wrap {
  position: relative;
  width: 100%;
}

.top-diagnosis-input-wrap input {
  width: 100%;
  min-height: 38px;
  padding: 0 44px 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
}

.top-diagnosis-input-wrap input:focus {
  border-color: var(--accent);
  outline: none;
}

.top-diagnosis-submit {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.top-diagnosis-submit .ph {
  font-size: 17px;
  line-height: 1;
}

@media (max-width: 900px) {
  .top-diagnosis-form {
    width: 100%;
  }
}

/* Report tabs layout fix */
.rf-report-tabs {
  position: static;
  top: auto;
  z-index: auto;
  margin: 0 0 18px;
  padding: 8px;
}

.rf-report-panels {
  display: block;
}

.rf-report-overview {
  padding-top: 0;
}

.rf-overview-head {
  min-height: 96px;
}

.rf-overall-grade {
  align-self: flex-start;
}

@media (max-width: 760px) {
  .rf-overview-head {
    min-height: 0;
  }
}


/* Report detail narrative and visual polish */
.rf-overview-copy {
  min-width: 0;
  flex: 1;
}

.rf-overview-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.rf-overview-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.rf-overview-pill strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.rf-overview-pill.score-good {
  background: rgba(22, 163, 74, 0.08);
}

.rf-overview-pill.score-fair {
  background: rgba(245, 158, 11, 0.08);
}

.rf-overview-pill.score-poor {
  background: rgba(239, 68, 68, 0.08);
}

.rf-overview-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rf-insight-card {
  padding: 15px 16px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--bg), var(--bg-page));
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.rf-insight-card span {
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rf-insight-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.rf-insight-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* 가장 좋은 상태 — green tint */
.rf-overview-insights .rf-insight-card:nth-child(3) {
  border-color: rgba(22, 163, 74, 0.25);
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.05), rgba(22, 163, 74, 0.02));
}

/* 우선 개선안 — accent tint */
.rf-overview-insights .rf-insight-card:nth-child(4) {
  border-color: var(--accent-muted, rgba(59, 130, 246, 0.3));
  background: linear-gradient(180deg, var(--accent-light, rgba(59, 130, 246, 0.06)), var(--bg));
}

/* KPI grid — lighter than insight cards */
.rf-kpi-grid {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-subtle, #f8f9fb);
}

.rf-kpi-grid article {
  border: none;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.rf-category-panel-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 12px;
  padding: 16px 18px 18px;
}

.rf-category-panel-body .rf-fix-hint {
  margin: 0;
  height: 100%;
}

.rf-category-meter {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-page);
}

.rf-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
}

.rf-meter-stack {
  display: flex;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-subtle);
}

.rf-meter-stack span {
  display: block;
  height: 100%;
}

.rf-meter-rows {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.rf-meter-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.rf-meter-row > div {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-subtle);
}

.rf-meter-row i {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.rf-meter-stack span.pass,
.rf-meter-row i.pass {
  background: var(--success);
}

.rf-meter-stack span.fail,
.rf-meter-row i.fail {
  background: var(--danger);
}

.rf-meter-stack span.warn,
.rf-meter-row i.warn {
  background: var(--warn);
}

.rf-meter-stack span.manual,
.rf-meter-row i.manual {
  background: var(--manual);
}

.rf-issue-card {
  position: relative;
  overflow: hidden;
  padding: 16px 18px 16px 22px;
}

.rf-issue-rail {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
}

.rf-rail-high {
  background: var(--danger);
}

.rf-rail-medium {
  background: var(--warn);
}

.rf-rail-low {
  background: var(--success);
}

.rf-issue-summary {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.rf-issue-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rf-issue-metrics span {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  min-width: 88px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-page);
  color: var(--muted);
  font-size: 11px;
}

.rf-issue-metrics strong {
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rf-issue-header {
  gap: 10px;
}

.rf-issue-category {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent-muted);
}

.rf-issue-expand-icon {
  margin-left: auto;
}

.rf-rec-card {
  align-items: center;
}

.rf-rec-num {
  background: linear-gradient(180deg, var(--accent-light), rgba(37, 99, 235, 0.08));
}

.rf-rec-card h3 {
  font-size: 15px;
}

.rf-rec-card p {
  margin-top: 2px;
}

@media (max-width: 1180px) {
  .rf-overview-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rf-category-panel-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .rf-overview-insights {
    grid-template-columns: 1fr;
  }

  .rf-issue-metrics {
    gap: 6px;
  }

  .rf-issue-metrics span {
    min-width: calc(50% - 3px);
    flex: 1 1 calc(50% - 3px);
  }
}

/* ========================
   NAV HAMBURGER & MOBILE
   ======================== */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.nav-hamburger:hover {
  background: var(--bg-subtle);
}

.nav-mobile {
  border-top: 1px solid var(--border);
  padding: 8px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile-link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-weight: 450;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-mobile-link:hover {
  background: var(--bg-subtle);
}

.nav-mobile-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.nav-mobile-cta {
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-pill);
  margin-top: 4px;
  padding: 11px 12px;
}

.nav-mobile-cta:hover {
  background: var(--accent-hover, #1d4ed8) !important;
}

/* ========================
   LANDING FOOTER
   ======================== */
.landing-footer {
  background: #fafafa;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 48px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  font-family: 'Plus Jakarta Sans', 'Pretendard Variable', Pretendard, 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.footer-tagline {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

.footer-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
}

.footer-link {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
  cursor: pointer;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .benefits-section {
    padding: 72px 0;
  }

  .benefits-inner {
    gap: 36px;
    padding: 0 20px;
  }

  .benefits-text p {
    max-width: 34rem;
  }

  .benefits-floating {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    place-items: stretch;
  }

  .benefits-floating::before {
    display: none;
  }

  .bfv-report-card {
    order: -1;
    width: 100%;
    border-radius: 18px;
  }

  .bfc-wrap {
    position: static;
    width: 100%;
  }

  .bfc {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 13px;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  }

  .bfc-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .bfv-rb {
    padding: 18px;
  }

  .bfv-gauge-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }

  .bfv-bars {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 24px 36px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom-inner {
    padding: 16px 24px;
  }
}

@media (max-width: 540px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}
