/* ===================================================================
   quickprepaid.com — shared stylesheet
   Palette : Navy #12296B / Ink #0B1220 / White #FFFFFF / Mist #F7F8FB
             Sky tint #E8EEFC / Kakao Yellow #FEE500 (CTA only)
   Type    : Pretendard, weight-driven hierarchy (900 display / 400-700 body)
=================================================================== */

:root {
  --navy: #12296B;
  --navy-dark: #0B1220;
  --navy-soft: #2C4693;
  --white: #FFFFFF;
  --mist: #F7F8FB;
  --sky: #E8EEFC;
  --line: #E2E6F0;
  --text: #0B1220;
  --text-soft: #4B5573;
  --yellow: #FEE500;
  --yellow-ink: #3C1E00;

  --sk-color: #FF6C00;
  --kt-color: #E6001E;
  --lg-color: #E6007E;
  --fiveg-color: #6D28D9;

  --font-display: "Pretendard", sans-serif;
  --font-body: "Pretendard", sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* (speed-divider removed — did not read as intentional, cut per feedback) */

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px -4px rgba(0,0,0,0.25);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
  font-size: 20px;
  letter-spacing: -0.2px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon { width: 28px; height: 28px; }
.logo span { color: var(--yellow); }
.header-cta {
  background: var(--yellow);
  color: var(--yellow-ink);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 96px 0 76px;
  min-height: 560px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero .wrap { width: 100%; }
.hero::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  background: var(--navy-soft);
  border-radius: 50%;
  opacity: 0.5;
}
.hero::before {
  content: "";
  position: absolute;
  left: -100px; bottom: -140px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(254,229,0,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.trust-item {
  font-size: 12.5px;
  font-weight: 700;
  color: #DCE3F5;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Hero visual: stylized card mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-card-mock {
  position: relative;
  width: 260px;
  background: linear-gradient(150deg, #2C4693 0%, #12296B 100%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.5);
  transform: rotate(4deg);
}
.hero-card-mock-top { display: flex; justify-content: space-between; font-size: 15px; opacity: 0.85; margin-bottom: 36px; }
.hero-card-chip {
  width: 38px; height: 28px;
  background: linear-gradient(135deg, var(--yellow), #FFD54F);
  border-radius: 6px;
  margin-bottom: 18px;
}
.hero-card-label { font-size: 11px; letter-spacing: 0.12em; color: #AEB8D6; margin: 0 0 6px; }
.hero-card-number { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.05em; margin: 0; }
.hero-check-badge {
  position: absolute;
  right: -14px; bottom: -14px;
  background: var(--white);
  color: var(--navy-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 20px -6px rgba(0,0,0,0.35);
  display: flex; align-items: center; gap: 5px;
  transform: rotate(-4deg);
}

.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
  background: rgba(254,229,0,0.12);
  border: 1px solid rgba(254,229,0,0.4);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  position: relative;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.35;
  margin: 0 0 16px;
  position: relative;
}
.hero p.lead {
  font-size: 16px;
  color: #C9D3EE;
  margin: 0 0 20px;
  max-width: 48ch;
  position: relative;
}

.carrier-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  position: relative;
}
.carrier-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
}

.summary-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 28px;
  position: relative;
}
.summary-box .summary-label {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 13px;
  color: var(--yellow);
  margin-bottom: 8px;
  display: block;
}
.summary-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14.5px;
  color: #DCE3F5;
}
.summary-box li + li { margin-top: 6px; }

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(254,229,0,0.45);
  position: relative;
}

/* ---------- Section shell ---------- */
.section {
  padding: 52px 0;
}
.section.alt { background: var(--mist); }
.section-head { margin-bottom: 30px; }
.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: 13px;
  color: var(--navy);
  display: block;
  margin-bottom: 8px;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.3px;
  font-size: clamp(22px, 4vw, 28px);
  color: var(--navy-dark);
  margin: 0 0 10px;
  line-height: 1.4;
}
.section p.section-desc {
  color: var(--text-soft);
  font-size: 15px;
  margin: 0;
}

/* ---------- Icon circle ---------- */
.icon-circle {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--sky);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-circle svg { width: 22px; height: 22px; stroke: var(--navy); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: 0 2px 10px -6px rgba(18,41,107,0.12);
}
.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--navy);
  font-size: 11px;
  letter-spacing: 0.3px;
  background: var(--sky);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.step-body h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--text);
}
.step-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-soft);
}

/* ---------- Usim cards (grid layout, mirrors reference site's structure) ---------- */
.usim-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.usim-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.usim-card:hover { box-shadow: 0 6px 18px -8px rgba(18,41,107,0.25); border-color: var(--navy); }
.usim-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.usim-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.usim-card-body { padding: 12px 14px 14px; }
.usim-card-top { margin-bottom: 10px; }
.usim-carrier-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  padding: 2px 9px; border-radius: 99px;
  margin-bottom: 6px;
}
.badge-kt-usim { background: #E0F7FA; color: #00838F; }
.badge-lg-usim { background: #FCE4EC; color: #C2185B; }
.badge-sk-usim { background: #FFF3E0; color: #E65100; }
.usim-name-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.usim-card-name { font-size: 13.5px; font-weight: 800; color: var(--text); line-height: 1.3; margin: 0; min-height: 2.6em; display: flex; align-items: center; }
.usim-card-price { font-family: var(--font-display); font-size: 15px; font-weight: 900; color: var(--navy); letter-spacing: -0.3px; }
.usim-color-hint { font-size: 11px; color: var(--text-soft); margin-top: 4px; display: block; }
.usim-where { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.usim-where-label { font-size: 10.5px; font-weight: 700; color: var(--text-soft); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.05em; }
.usim-logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
.usim-logo-item {
  height: 36px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  display: flex; align-items: center; justify-content: center;
}
.usim-logo-item img { max-height: 24px; max-width: 100%; width: auto; height: auto; object-fit: contain; display: block; }

@media (max-width: 720px) {
  .usim-card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .usim-card-name { font-size: 12.5px; }
  .usim-card-price { font-size: 14px; }
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 44px 16px 18px;
  font-weight: 700;
  font-size: 14.5px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
}

/* ---------- Info cards (ItemList section) — horizontal scroll carousel ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
  box-shadow: 0 2px 10px -6px rgba(18,41,107,0.12);
  transition: box-shadow 0.2s, transform 0.2s;
}
.info-card:hover { box-shadow: 0 10px 22px -8px rgba(18,41,107,0.28); transform: translateY(-2px); }
.info-card-img {
  aspect-ratio: 1/1;
  background: var(--sky);
}
.info-card-img img { width: 100%; height: 100%; object-fit: cover; }
.info-card-title {
  padding: 14px 16px 18px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .card-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .card-grid::-webkit-scrollbar { height: 6px; }
  .card-grid::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
  .info-card { flex: 0 0 150px; scroll-snap-align: start; }
}

/* ---------- Plan carousel (structure mirrors reference site's slider) ---------- */
.plan-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.plan-tab {
  flex: 1;
  text-align: center;
  padding: 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.plan-tab:hover { border-color: var(--navy); color: var(--navy); }
.plan-tab.active[data-idx="0"] { background: var(--lg-color); border-color: var(--lg-color); color: var(--white); }
.plan-tab.active[data-idx="1"] { background: var(--kt-color); border-color: var(--kt-color); color: var(--white); }
.plan-tab.active[data-idx="2"] { background: var(--sk-color); border-color: var(--sk-color); color: var(--white); }
.plan-tab.active[data-idx="3"] { background: var(--fiveg-color); border-color: var(--fiveg-color); color: var(--white); }

.plan-slider-wrap { overflow: hidden; }
.plan-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.plan-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 4px 2px;
}
.plan-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 15px;
  box-shadow: 0 2px 10px -6px rgba(18,41,107,0.12);
}
.plan-slide[data-carrier="lg"] .plan-card { border-top-color: var(--lg-color); }
.plan-slide[data-carrier="kt"] .plan-card { border-top-color: var(--kt-color); }
.plan-slide[data-carrier="sk"] .plan-card { border-top-color: var(--sk-color); }
.plan-name { font-size: 14.5px; font-weight: 800; margin: 0 0 6px; }
.plan-popular-badge {
  position: absolute;
  top: -9px; left: 14px;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px -2px rgba(0,0,0,0.25);
}
.plan-spec { font-size: 12px; color: var(--text-soft); margin: 0 0 14px; line-height: 1.55; min-height: 55px; }
.plan-price-new { font-family: var(--font-display); font-weight: 900; font-size: 20px; color: var(--navy); }
.plan-price-new small { font-family: var(--font-body); font-weight: 500; font-size: 12.5px; }

.plan-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
.plan-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text-soft);
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.plan-arrow:hover { border-color: var(--navy); color: var(--navy); }
.plan-arrow:disabled { opacity: 0.3; cursor: default; pointer-events: none; }

@media (max-width: 720px) {
  .plan-slide { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.plan-slide-single {
  display: flex;
  justify-content: center;
}
.plan-card-5g {
  max-width: 320px;
  width: 100%;
  border-top-color: var(--fiveg-color) !important;
  background: linear-gradient(160deg, #F5F3FF 0%, var(--white) 60%);
  text-align: center;
}
.plan-5g-badge {
  display: inline-block;
  background: var(--fiveg-color);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.plan-card-5g .plan-name { font-size: 17px; }
.plan-card-5g .plan-price-new { font-size: 26px; }
.plan-5g-note { font-size: 11.5px; color: var(--text-soft); margin-top: 12px; }

/* ---------- Plan table (subpages: single-carrier simple table) ---------- */
.plan-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 13.5px;
}
.plan-table th, .plan-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.plan-table th {
  background: var(--sky);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12.5px;
}
.plan-table tr:last-child td { border-bottom: none; }

/* ---------- Bottom CTA ---------- */
.bottom-cta {
  background: var(--navy-dark);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}
.bottom-cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.3px;
  font-size: clamp(20px, 4vw, 26px);
  margin: 0 0 10px;
}
.bottom-cta p { color: #B9C3E3; margin: 0 0 22px; font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #8592B8;
  font-size: 12.5px;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer .biz-info p { margin: 3px 0; }
.site-footer .biz-info strong { color: #AEB8D6; }
.site-footer .disclaimer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11.5px;
  color: #5E6A8C;
}
.site-footer .footer-copy {
  margin-top: 14px;
  font-size: 11px;
  color: #4A5578;
}

/* ---------- Breadcrumb (subpages) ---------- */
.breadcrumb {
  font-size: 12.5px;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--navy); text-decoration: none; }

/* ---------- Floating Kakao button ---------- */
.floating-kakao {
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 20px -4px rgba(0,0,0,0.35);
  z-index: 50;
}
.floating-kakao svg { width: 26px; height: 26px; }

@media (max-width: 480px) {
  .section { padding: 40px 0; }
  .hero { padding: 44px 0 36px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
