:root {
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-input: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --border-strong: #CBD5E1;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-soft: #EFF6FF;
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-float: 0 10px 30px -5px rgba(37, 99, 235, 0.14);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  /* Grade semantic colors */
  --grade-emerald-strong: #059669;
  --grade-emerald-strong-bg: #ECFDF5;
  --grade-emerald: #10B981;
  --grade-emerald-bg: #ECFDF5;
  --grade-amber: #D97706;
  --grade-amber-bg: #FFFBEB;
  --grade-orange: #EA580C;
  --grade-orange-bg: #FFF7ED;
  --grade-red: #DC2626;
  --grade-red-bg: #FEF2F2;
  --grade-crimson: #991B1B;
  --grade-crimson-bg: #FEE2E2;
}

html.dark {
  --bg-page: #0B1120;
  --bg-card: #111827;
  --bg-subtle: #1E293B;
  --bg-input: #1E293B;
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --border-color: #1F2937;
  --border-strong: #334155;
  --primary: #3B82F6;
  --primary-hover: #60A5FA;
  --primary-soft: rgba(59, 130, 246, 0.14);
  --shadow-card: 0 4px 24px -2px rgba(0, 0, 0, 0.45);
  --shadow-float: 0 10px 30px -5px rgba(59, 130, 246, 0.22);

  --grade-emerald-strong-bg: rgba(5, 150, 105, 0.16);
  --grade-emerald-bg: rgba(16, 185, 129, 0.16);
  --grade-amber-bg: rgba(217, 119, 6, 0.16);
  --grade-orange-bg: rgba(234, 88, 12, 0.16);
  --grade-red-bg: rgba(220, 38, 38, 0.18);
  --grade-crimson-bg: rgba(153, 27, 27, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.num,
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

html.dark .site-header {
  background: rgba(11, 17, 32, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.brand-text {
  min-width: 0;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-subtle);
}

/* Hero Headline */
.hero-band {
  padding: 24px 0 14px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-title {
  margin: 0 auto 10px;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  max-width: 720px;
}

.hero-title .accent {
  color: var(--primary);
}

.hero-subtitle {
  margin: 0 auto;
  max-width: 660px;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* AdSense Slots - CLS & Accidental-Click Prevention */
.ad-slot-wrap {
  margin: 26px auto;
  padding: 12px 0;
}

.ad-slot {
  min-height: 100px;
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-align: center;
  padding: 10px 12px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .ad-slot {
    min-height: 104px;
  }
}

.ad-slot-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 2px;
}

/* Preset Bar */
.preset-section {
  margin: 14px 0 20px;
}

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

.preset-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.preset-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.preset-scroll::-webkit-scrollbar {
  height: 5px;
}

.preset-scroll::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

.preset-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.preset-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.preset-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.preset-chip .chip-price {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 500;
}

/* Main Simulator Grid */
.simulator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

@media (min-width: 960px) {
  .simulator-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 24px;
  }
}

.simulator-grid > *,
.charts-grid > *,
.seo-section > * {
  min-width: 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .card {
    padding: 24px;
  }
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Toggle Switch (Annual vs Monthly Net) */
.segmented {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.segmented button {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.segmented button.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

/* Input Controls */
.control-group {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.control-group:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.control-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.control-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.number-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 6px 10px;
  transition: border-color 0.15s ease;
}

.number-input-wrap:focus-within {
  border-color: var(--primary);
  background: var(--bg-input);
}

.number-input {
  width: 92px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  text-align: right;
  outline: none;
  font-variant-numeric: tabular-nums;
}

.number-input::-webkit-inner-spin-button,
.number-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.number-unit {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.text-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  outline: none;
}

.text-input:focus {
  border-color: var(--primary);
}

/* Range Slider */
input[type='range'].toss-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  outline: none;
  cursor: pointer;
  margin: 6px 0;
}

input[type='range'].toss-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  transition: transform 0.12s ease;
}

input[type='range'].toss-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

input[type='range'].toss-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  cursor: pointer;
}

.quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.quick-pill {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.quick-pill:hover,
.quick-pill.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.net-preview-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--primary-soft);
  font-size: 0.82rem;
}

.net-preview-pill strong {
  color: var(--primary);
  font-size: 0.92rem;
}

/* Collapsible Advanced Settings */
.advanced-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  margin-top: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.advanced-toggle:hover {
  border-color: var(--border-strong);
}

.advanced-toggle .chevron {
  transition: transform 0.2s ease;
}

.advanced-toggle[aria-expanded='true'] .chevron {
  transform: rotate(180deg);
}

.advanced-panel {
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-page);
}

.advanced-panel[hidden] {
  display: none;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 540px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field-box label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.select-input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  outline: none;
}

.select-input:focus {
  border-color: var(--primary);
}

/* Right Dashboard */
.result-sticky {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 960px) {
  .result-sticky {
    position: sticky;
    top: 84px;
  }
}

.grade-card {
  position: relative;
  overflow: hidden;
  border-width: 2px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.grade-card[data-grade='S'] { border-color: var(--grade-emerald-strong); }
.grade-card[data-grade='A'] { border-color: var(--grade-emerald); }
.grade-card[data-grade='B'] { border-color: var(--grade-amber); }
.grade-card[data-grade='C'] { border-color: var(--grade-orange); }
.grade-card[data-grade='D'] { border-color: var(--grade-red); }
.grade-card[data-grade='F'] {
  border-color: var(--grade-crimson);
  box-shadow: 0 10px 28px -6px rgba(153, 27, 27, 0.28);
}

.grade-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.grade-stamp {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
  font-weight: 900;
  box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.25);
}

.grade-stamp .letter {
  font-size: 2.3rem;
  line-height: 1;
}

.grade-stamp .sub {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  opacity: 0.9;
  margin-top: 2px;
}

.grade-card[data-grade='S'] .grade-stamp { background: var(--grade-emerald-strong); }
.grade-card[data-grade='A'] .grade-stamp { background: var(--grade-emerald); }
.grade-card[data-grade='B'] .grade-stamp { background: var(--grade-amber); }
.grade-card[data-grade='C'] .grade-stamp { background: var(--grade-orange); }
.grade-card[data-grade='D'] .grade-stamp { background: var(--grade-red); }
.grade-card[data-grade='F'] .grade-stamp {
  background: var(--grade-crimson);
  animation: pulseWarn 1.8s infinite;
}

@keyframes pulseWarn {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.grade-meta {
  min-width: 0;
}

.grade-car-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.grade-badge-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2px 0 4px;
}

.grade-ratio-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.roast-box {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

.grade-card[data-grade='F'] .roast-box {
  background: var(--grade-crimson-bg);
  color: var(--grade-crimson);
}

html.dark .grade-card[data-grade='F'] .roast-box {
  color: #FCA5A5;
}

/* KPI Metrics Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 520px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

.kpi-box {
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid var(--border-color);
}

.kpi-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.kpi-value.negative {
  color: var(--grade-red);
}

.kpi-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Warning & Opportunity Cards */
.cash-warning-box {
  padding: 16px;
  border-radius: var(--radius-md);
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #78350F;
}

html.dark .cash-warning-box {
  background: rgba(217, 119, 6, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
  color: #FDE68A;
}

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

.cash-warning-title {
  font-size: 0.86rem;
  font-weight: 800;
}

.cash-warning-total {
  font-size: 1.2rem;
  font-weight: 900;
}

.cash-breakdown {
  font-size: 0.79rem;
  opacity: 0.92;
  line-height: 1.45;
}

.opportunity-box {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.opp-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.opp-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.opp-value {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary);
}

.opp-detail {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Charts & Share Section */
.charts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .charts-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.chart-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
}

.chart-desc {
  margin: 0 0 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chart-canvas-wrap {
  position: relative;
  height: 250px;
  width: 100%;
}

.breakdown-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}

@media (min-width: 540px) {
  .breakdown-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.breakdown-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-subtle);
  font-size: 0.76rem;
}

.breakdown-item .label {
  color: var(--text-muted);
  display: block;
}

.breakdown-item .val {
  font-weight: 800;
  font-size: 0.88rem;
}

/* Viral Share Action Bar */
.share-bar {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.share-copy {
  font-size: 0.92rem;
  font-weight: 700;
}

.share-copy span {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s ease;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-float);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
}

/* Insurance CTA Banner */
.cta-card {
  margin-top: 22px;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  color: #FFFFFF;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 16px 32px -10px rgba(37, 99, 235, 0.35);
}

.cta-card h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
}

.cta-card p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-white {
  background: #FFFFFF;
  color: #1E3A8A;
}

.btn-white:hover {
  background: #F1F5F9;
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* SEO Content Sections */
.seo-section {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.guide-table-wrap {
  overflow-x: auto;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 540px;
}

.guide-table th,
.guide-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.guide-table th {
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-subtle);
}

.guide-table tr:last-child td {
  border-bottom: 0;
}

.tax-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .tax-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tax-box {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}

.tax-box h4 {
  margin: 0 0 8px;
  font-size: 0.94rem;
  font-weight: 800;
}

.tax-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-page);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-answer[hidden] {
  display: none;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}

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

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Hidden 1:1 Share Card Template for html2canvas */
.share-card-stage {
  position: fixed;
  left: -9999px;
  top: 0;
  pointer-events: none;
}

.share-poster {
  width: 720px;
  height: 720px;
  padding: 44px;
  background: linear-gradient(155deg, #F8FAFC 0%, #EFF6FF 100%);
  color: #0F172A;
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.poster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.poster-brand {
  font-size: 20px;
  font-weight: 800;
  color: #2563EB;
}

.poster-date {
  font-size: 16px;
  font-weight: 600;
  color: #64748B;
}

.poster-car {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-top: 12px;
}

.poster-grade-row {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #FFFFFF;
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.poster-stamp {
  width: 126px;
  height: 126px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 900;
  flex-shrink: 0;
}

.poster-stamp .letter {
  font-size: 64px;
  line-height: 1;
}

.poster-stamp .sub {
  font-size: 14px;
  margin-top: 4px;
}

.poster-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.poster-metric {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.poster-metric .lbl {
  font-size: 15px;
  font-weight: 700;
  color: #64748B;
}

.poster-metric .val {
  font-size: 28px;
  font-weight: 900;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.poster-roast {
  background: #0F172A;
  color: #FFFFFF;
  border-radius: 20px;
  padding: 22px 24px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
}

.poster-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  color: #475569;
}
