/* ============================================================
   GradeNotify Design System — see DESIGN.md
   토큰(색상/타이포/간격/모션)은 DESIGN.md 계약에서만 나옵니다.
   ============================================================ */

:root {
  /* color */
  --primary: #4338ca;
  --primary-strong: #3730a3;
  --primary-soft: #eef2ff;
  --primary-glow: #6366f1;
  --accent-violet: #7c3aed;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --border: #e4e7ee;
  --border-strong: #cdd3e0;
  --text: #0f172a;
  --text-2: #3d4661;
  --text-3: #6b7280;
  --text-inverse: #ffffff;
  --success: #059669;
  --success-soft: #ecfdf5;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --info: #2563eb;
  --info-soft: #eff6ff;
  --neutral-badge: #eef0f4;
  --neutral-text: #4b5563;
  --yellow: #a16207;
  --yellow-bg: #fef9c3;

  /* type scale */
  --fs-display: clamp(2.4rem, 5.2vw, 3.6rem);
  --fs-h1: 1.875rem;
  --fs-h2: 1.375rem;
  --fs-h3: 1.125rem;
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.78rem;

  /* spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* shadow & focus */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 2px 6px rgba(15, 23, 42, 0.06), 0 12px 24px -12px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 4px 10px rgba(15, 23, 42, 0.06), 0 24px 48px -20px rgba(49, 46, 129, 0.18);
  --ring: 0 0 0 3px rgba(67, 56, 202, 0.16);

  /* font */
  --font-sans: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
}

/* ============ reset & base ============ */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--sp-5);
  padding-right: var(--sp-5);
}

.main {
  flex: 1 0 auto;
  padding-top: 32px;
  padding-bottom: 56px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-strong);
}

::selection {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 4px;
}

/* ============ typography helpers ============ */

.link {
  color: var(--primary);
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

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

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

.code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.84rem;
  font-family: var(--font-mono);
}

/* ============ navbar ============ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 64px;
  flex-wrap: nowrap;
}

.navbar-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.navbar-logo svg {
  display: block;
}

.navbar-logo-accent {
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
  justify-content: center;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-links a.nav-active {
  color: var(--primary);
  background: var(--primary-soft);
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-name {
  font-size: 0.9rem;
  color: var(--text-2);
  font-weight: 500;
}

/* ============ footer ============ */

.footer {
  background: var(--surface);
  color: var(--text-2);
  padding: 40px 0 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand .navbar-logo {
  color: var(--primary);
  font-size: 1.2rem;
}

.footer-brand .navbar-logo-accent {
  color: var(--text);
}

.footer-desc {
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--text-3);
  max-width: 30ch;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-2);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 0.8rem;
  color: var(--text-3);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============ buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  transition: background-color 0.16s ease, color 0.16s ease,
    border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-strong);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: var(--surface);
  color: var(--text-2);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--border-strong);
  color: var(--primary);
  background: var(--surface);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-group form {
  display: inline;
}

.btn-google {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 24px;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.btn-google:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}

.google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

/* ============ cards ============ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

/* ============ page head & sections ============ */

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.page-title {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-subtitle {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.section {
  margin-top: 36px;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

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

.section-head .section-title {
  margin-bottom: 0;
}

/* ============ alerts ============ */

.alert {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 1px solid;
  font-size: 0.95rem;
  line-height: 1.5;
}

.alert p {
  margin-top: 4px;
}

.alert strong {
  display: block;
}

.alert-error {
  background: var(--danger-soft);
  border-color: #fecaca;
  color: #991b1b;
}

.alert-error .link {
  color: #b91c1c;
  text-decoration: underline;
}

.alert-warning {
  background: var(--warning-soft);
  border-color: #fde68a;
  color: #92400e;
}

.alert-warning a.btn {
  margin-top: 8px;
}

.alert-info {
  background: var(--info-soft);
  border-color: #bfdbfe;
  color: #1e40af;
}

.alert-success {
  background: var(--success-soft);
  border-color: #a7f3d0;
  color: #065f46;
}

/* ============ stats & progress ============ */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.stat-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.stat-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-label {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--text-3);
  font-weight: 500;
}

.progress {
  margin-top: 12px;
  height: 8px;
  background: var(--neutral-badge);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-glow));
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============ tables ============ */

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 640px;
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  line-height: 1.5;
}

.table thead th {
  background: var(--surface-2);
  font-weight: 700;
  color: var(--text-3);
  font-size: 0.82rem;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table-row-link {
  cursor: pointer;
}

.table-row-link:hover td {
  background: var(--primary-soft);
}

.table tbody tr:hover td {
  background: var(--primary-soft);
}

.email-cell {
  color: var(--text-3);
  font-size: 0.88rem;
}

/* ============ badges & score ============ */

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-green {
  background: var(--success-soft);
  color: var(--success);
}

.badge-gray {
  background: var(--neutral-badge);
  color: var(--neutral-text);
}

.badge-red {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-warning {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.badge-indigo {
  background: var(--primary-soft);
  color: var(--primary);
}

.row-excluded td {
  opacity: 0.55;
}

.score {
  font-weight: 800;
}

.score-high {
  color: var(--success);
}

.score-mid {
  color: var(--info);
}

.score-low {
  color: var(--danger);
}

/* ============ version tabs ============ */

.version-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.version-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-2);
  text-decoration: none;
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}

.version-tab:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.version-tab.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

/* ============ forms ============ */

.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--ring);
}

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

.form-hint {
  font-size: 0.88rem;
  color: var(--text-3);
  margin-bottom: 12px;
  line-height: 1.6;
}

.form-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.score-input {
  max-width: 120px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-label.bulk {
  font-weight: 600;
  white-space: nowrap;
}

/* ============ login / auth ============ */

.login-wrap {
  display: flex;
  justify-content: center;
  padding: 72px 0 40px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: 44px 36px;
}

.login-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.login-desc {
  margin: 8px 0 24px;
  color: var(--text-2);
  font-size: 0.92rem;
}

.login-hint {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-3);
}

/* ============ setup / reconnect ============ */

.connected-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--success-soft);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 20px;
}

.connected-url {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--success);
  word-break: break-all;
}

.setup-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.step {
  display: flex;
  gap: 14px;
}

.step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body {
  padding-top: 2px;
}

.step-title {
  font-weight: 700;
}

.step-desc {
  margin-top: 2px;
  font-size: 0.9rem;
  color: var(--text-3);
}

.setup-form {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ============ result ============ */

.result-card {
  max-width: 520px;
  margin: 48px auto;
  text-align: center;
  padding: 48px 32px;
}

.result-icon {
  font-size: 2.6rem;
  line-height: 1;
}

.result-title {
  margin-top: 14px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.result-desc {
  margin-top: 10px;
  color: var(--text-2);
}

.result-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============ correct (inline) ============ */

.correct-details summary {
  cursor: pointer;
  list-style: none;
}

.correct-details summary::-webkit-details-marker {
  display: none;
}

.correct-form {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 200px;
}

.correct-form .form-label {
  margin-top: 8px;
}

.correct-form .btn {
  margin-top: 10px;
}

/* ============ student grade ============ */

.grade-card {
  margin-bottom: 20px;
}

.exam-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-3);
}

.info-value {
  font-weight: 600;
}

.score-display {
  margin-top: 24px;
  text-align: center;
  padding: 32px;
  background: linear-gradient(160deg, var(--primary-soft), #f5f3ff);
  border: 1px solid #e0e7ff;
  border-radius: var(--radius);
}

.score-big {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.score-unit {
  margin-top: 6px;
  color: var(--text-2);
  font-weight: 600;
}

.confirmed-box {
  margin-bottom: 20px;
}

.confirmed-at {
  color: var(--text-2);
  font-size: 0.95rem;
}

.signature-preview {
  margin-top: 16px;
}

.signature-image {
  margin-top: 6px;
  max-width: 320px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

/* signature pad */
.signature-box {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}

#signature-pad {
  display: block;
  width: 100%;
  height: 200px;
  touch-action: none;
  cursor: crosshair;
}

.signature-actions {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0 20px;
}

#sign-form {
  display: flex;
  justify-content: flex-end;
}

/* inquiry */
.inquiry-card {
  margin-top: 20px;
}

.inquiry-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.inquiry-pending {
  background: var(--warning-soft);
  border-color: #fde68a;
}

.inquiry-resolved {
  background: var(--success-soft);
  border-color: #a7f3d0;
}

.inquiry-label {
  font-weight: 700;
  font-size: 0.9rem;
}

.inquiry-detail {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.inquiry-reason {
  font-weight: 600;
}

.inquiry-time {
  color: var(--text-3);
}

.inquiry-form .form-row {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.inquiry-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.inquiry-reason {
  color: var(--text-2);
  font-size: 0.88rem;
}

.inquiry-resolve-form {
  display: inline;
}

/* ============ teacher: courses & share ============ */

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.course-card {
  display: block;
  color: inherit;
  padding: 20px;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.course-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.course-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.course-section {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-3);
}

.course-action {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.share-card {
  margin-bottom: 20px;
}

.share-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-url {
  flex: 1;
  min-width: 220px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-2);
  word-break: break-all;
  cursor: pointer;
}

.share-url:hover {
  border-color: var(--border-strong);
  background: var(--primary-soft);
}

.upload-card {
  max-width: 680px;
}

/* ============ empty ============ */

.empty {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-2);
  font-size: 0.95rem;
/* ============ landing (ERP 업무 톤) ============
   라이트 단일 테마, 좌측 정렬, hairline 구조.
   상세 계약: DESIGN.md §9 */

.lp {
  max-width: 1080px;
  margin: 0 auto;
}

/* 페이지 헤더: 좌측 텍스트 + 우측 예시 카드 */
.lp-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 48px;
}

.lp-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid #e0e7ff;
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 16px;
}

.lp-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--text);
}

.lp-sub {
  margin-top: 16px;
  font-size: 1.02rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 46ch;
}

.lp-actions {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 확인 현황 예시 카드 (실제 컴포넌트 구성) */
.lp-preview {
  padding: 20px;
}

.lp-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.lp-preview-title {
  font-weight: 700;
}

.lp-preview-sub {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 2px;
}

.lp-preview .table-wrap {
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.lp-preview-table {
  min-width: 0;
}

.lp-preview-foot {
  margin-top: 14px;
}

.lp-preview-note {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-3);
}

/* 섹션 공통: hairline으로만 구분 */
.lp-section {
  padding: 44px 0;
  border-top: 1px solid var(--border);
}

.lp-h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
}

.lp-desc {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 62ch;
}

/* KPI 밴드 */
.lp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.lp-stat {
  padding: 20px 24px;
  border-left: 1px solid var(--border);
  min-width: 0;
}

.lp-stat:first-child {
  border-left: none;
}

.lp-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.lp-stat-label {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-3);
  font-weight: 500;
}

/* 처리 절차 스테퍼 */
.lp-flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.lp-flow-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.lp-flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -12px;
  width: 12px;
  height: 1px;
  background: var(--border-strong);
}

.lp-flow-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-flow-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.lp-flow-sub {
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* 주요 기능 행 리스트 */
.lp-rows {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
}

.lp-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.lp-row:first-child {
  border-top: none;
  padding-top: 4px;
}

.lp-row-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-row-title {
  font-size: 1.02rem;
  font-weight: 700;
}

.lp-row-desc {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 72ch;
}

/* 데이터 보관 정책 표 */
.lp-policy-table {
  margin-top: 24px;
}

.lp-policy-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

/* FAQ */
.lp-faq {
  margin-top: 24px;
}

.lp-faq-item {
  border-top: 1px solid var(--border);
}

.lp-faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.lp-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.lp-faq-item summary::-webkit-details-marker {
  display: none;
}

.lp-faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-3);
  flex-shrink: 0;
}

.lp-faq-item[open] summary::after {
  content: "-";
}

.lp-faq-answer {
  padding: 0 4px 18px;
  color: var(--text-2);
  line-height: 1.7;
  font-size: 0.95rem;
  max-width: 72ch;
}

.lp-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-3);
}

/* 하단 실행 배너 */
.lp-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.lp-cta-box .lp-h2 {
  margin: 0;
}

.lp-cta-box .btn {
  flex-shrink: 0;
}

.lp-cta-center {
  display: flex;
  justify-content: center;
  padding: 44px 0;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

/* ============ responsive ============ */

@media (max-width: 1024px) {
  .user-name {
    display: none;
  }
}

@media (max-width: 960px) {
  .lp-head {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }

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

  .lp-stat {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .lp-stat:first-child {
    border-top: none;
  }

  .lp-flow {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lp-flow-step:not(:last-child)::after {
    display: none;
  }

  .lp-cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .stat-grid,
  .stat-grid-3,
  .stat-grid-4,
  .form-row {
    grid-template-columns: 1fr;
  }

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

  .card {
    padding: 18px;
  }

  .score-big {
    font-size: 3rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .lp-title {
    font-size: clamp(1.7rem, 6.5vw, 2.2rem);
  }

  .lp-section {
    padding: 36px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}