:root {
  --bg: #f5f7fb;
  --panel: rgba(255,255,255,.88);
  --panel-strong: #ffffff;
  --text: #10131a;
  --muted: #6c7280;
  --line: #dfe4ec;
  --accent: #111827;
  --accent-soft: #eef2f7;
  --success: #0f766e;
  --success-soft: #e7f6f2;
  --warn: #a16207;
  --warn-soft: #fff4d6;
  --shadow: 0 18px 55px rgba(17,24,39,.08);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(120, 137, 163, .10), transparent 32%),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(17,24,39,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(17,24,39,.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a { color: inherit; }

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.hero,
.section,
.recommend-card,
.info-panel,
.highlight-panel {
  position: relative;
  z-index: 1;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 34px 36px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(238,242,247,.88));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  right: -140px;
  top: -150px;
  background: rgba(17,24,39,.045);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .14em;
  font-weight: 800;
  color: #7a8392;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 10px;
  font-size: clamp(36px, 7vw, 68px);
  letter-spacing: -.055em;
  line-height: .98;
}

.hero-desc {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.recommend-card {
  margin-top: 22px;
  padding: 28px 30px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius);
  background: #111827;
  color: white;
  box-shadow: var(--shadow);
}

.recommend-card .section-kicker { color: #aab2c0; }
.recommend-card h2 { margin-bottom: 8px; font-size: 27px; }
.recommend-card p:not(.section-kicker) { color: #c9ced7; margin-bottom: 0; }

.primary-link {
  flex: 0 0 auto;
  text-decoration: none;
  background: white;
  color: #111827;
  border-radius: 14px;
  padding: 14px 17px;
  font-weight: 800;
  transition: transform .2s ease, opacity .2s ease;
}

.primary-link:hover { transform: translateY(-2px); opacity: .92; }

.section { margin-top: 54px; }

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

.section-heading h2,
.info-panel h2,
.highlight-panel h2 {
  margin-bottom: 0;
  font-size: clamp(25px, 4vw, 35px);
  letter-spacing: -.035em;
}

.section-heading > p { color: var(--muted); margin-bottom: 3px; text-align: right; }

.option-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.option-card,
.mini-card {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(217,223,232,.95);
  border-radius: 20px;
  padding: 23px;
  box-shadow: 0 10px 30px rgba(17,24,39,.04);
}

.option-card.featured {
  border-color: #9abeb8;
  background: linear-gradient(180deg, #f7fffd, #ffffff);
}

.badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 11px;
  font-weight: 900;
}

.option-card h3,
.mini-card h3 {
  margin-bottom: 9px;
  font-size: 20px;
  letter-spacing: -.02em;
}

.option-summary { min-height: 48px; color: #4e5563; }

.option-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.option-card li + li { margin-top: 8px; }

.price-note {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--success-soft);
  color: #145a52;
  margin-bottom: 14px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(17,24,39,.035);
}

table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: 12px; color: #7a8392; letter-spacing: .06em; }
tbody tr:last-child td { border-bottom: 0; }
td:nth-child(2) { font-weight: 800; }

.pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
}
.pill.good { background: var(--success-soft); color: var(--success); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }

.formula-card {
  margin-top: 14px;
  padding: 22px 24px;
  border: 1px dashed #bcc6d4;
  border-radius: 18px;
  background: rgba(255,255,255,.52);
}
.formula-label { color: var(--muted); margin-bottom: 8px; }
.formula { font-size: clamp(26px, 5vw, 42px); font-weight: 900; letter-spacing: -.04em; }
.formula-card p:last-child { margin: 8px 0 0; color: var(--muted); }

.split-section {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
}

.info-panel,
.highlight-panel {
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.highlight-panel {
  background: linear-gradient(150deg, #111827, #252f3f);
  color: white;
}
.highlight-panel .section-kicker { color: #abb4c2; }
.highlight-panel p:last-child { color: #c9ced7; margin: 14px 0 0; line-height: 1.7; }

.carrier-list { margin-top: 20px; display: grid; gap: 10px; }
.carrier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.carrier-row:hover { transform: translateX(3px); border-color: #b6bfcb; background: #fafbfd; }
.carrier-row.recommended { background: var(--success-soft); border-color: #b8ddd7; }
.carrier-row span:first-child { display: grid; gap: 3px; }
.carrier-row small { color: var(--muted); }

.roaming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mini-card p { color: var(--muted); line-height: 1.65; }
.mini-card a { font-weight: 800; text-decoration: none; }
.muted-card { background: #f0f2f5; }

.decision-section {
  padding: 28px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--line);
}
.decision-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.decision-item {
  appearance: none;
  border: 1px solid var(--line);
  background: #fafbfd;
  border-radius: 16px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}
.decision-item span { display: block; color: var(--muted); margin-bottom: 6px; }
.decision-item strong { font-size: 18px; }
.decision-item:hover,
.decision-item.active { border-color: #9bb8b3; background: var(--success-soft); transform: translateY(-1px); }
.decision-result {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #111827;
  color: white;
  font-weight: 800;
}

footer {
  margin-top: 58px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #8a92a0;
  font-size: 13px;
}

@media (max-width: 920px) {
  .option-grid { grid-template-columns: repeat(2, 1fr); }
  .split-section { grid-template-columns: 1fr; }
  .roaming-grid { grid-template-columns: 1fr; }
  .decision-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 20px, 1180px); padding-top: 20px; }
  .hero { padding: 24px 21px; align-items: flex-start; }
  .hero-chip { display: none; }
  .recommend-card { padding: 23px 21px; align-items: flex-start; flex-direction: column; }
  .primary-link { width: 100%; text-align: center; }
  .section { margin-top: 40px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .section-heading > p { text-align: left; }
  .option-grid { grid-template-columns: 1fr; }
  .option-summary { min-height: auto; }
  .price-note { flex-direction: column; gap: 6px; }
  .info-panel, .highlight-panel, .decision-section { padding: 22px; }
  footer { flex-direction: column; }
}
