/* ===================================================================
   lg선불폰.com — shared stylesheet
   Palette : Magenta #E6007E / Purple #7C3AED / Magenta-dark #6B0C5C
             Warm-pink tint #F7E8F3 / Kakao Yellow #FEE500 (CTA only)
=================================================================== */

:root {
  --magenta: #E6007E;
  --purple: #7C3AED;
  --magenta-dark: #6B0C5C;
  --purple-dark: #4C1D95;
  --white: #FFFFFF;
  --mist: #FDF5FA;
  --tint: #F7E8F3;
  --line: #F0DCEA;
  --text: #2B1730;
  --text-soft: #7A6580;
  --yellow: #FEE500;
  --yellow-ink: #3C1E00;

  --sk-color: #FF6C00;
  --kt-color: #E51937;
  --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;
}

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(120deg, var(--magenta-dark), var(--purple-dark));
  padding: 4px 0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px -4px rgba(60,10,60,0.35);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img { height: 104px; width: auto; display: block; }
.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(--magenta-dark) 0%, var(--purple-dark) 100%);
  color: var(--white);
  padding: 96px 0 76px;
  min-height: 480px;
  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(--magenta);
  opacity: 0.25;
  border-radius: 50%;
}
.hero::before {
  content: "";
  position: absolute;
  left: -100px; bottom: -140px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(124,58,237,0.28) 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: #F5DCED;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 12px;
  border-radius: 999px;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
  background: rgba(254,229,0,0.13);
  border: 1px solid rgba(254,229,0,0.42);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.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;
}
.hero p.lead {
  font-size: 16px;
  color: #F0D9EA;
  margin: 0 0 20px;
  max-width: 50ch;
}

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

.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);
}

.breadcrumb { font-size: 12.5px; color: var(--text-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--magenta); text-decoration: none; }

/* ---------- 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(--magenta);
  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(--purple-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(--tint);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-circle svg { width: 22px; height: 22px; stroke: var(--magenta); }

/* ---------- 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(107,12,92,0.12);
}
.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--magenta);
  font-size: 11px;
  letter-spacing: 0.3px;
  background: var(--tint);
  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 ---------- */
.usim-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.usim-card-grid.single { grid-template-columns: minmax(0, 260px); justify-content: center; }
.usim-card-grid.pair { grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: 20px; }
@media (max-width: 720px) {
  .usim-card-grid.single, .usim-card-grid.pair { grid-template-columns: minmax(0, 280px); }
}
.usim-card-grid.pair .usim-card-img { aspect-ratio: 1/1; }
.usim-card-grid.pair .usim-card-img img { object-fit: cover; }
.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(107,12,92,0.22); border-color: var(--magenta); }
.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: #FCE4E8; color: #B00F28; }
.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(--magenta); 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(--magenta);
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-a { padding: 0 18px 16px; font-size: 14px; color: var(--text-soft); margin: 0; }

/* ---------- Info cards (5카드 섹션 - 마이크로데이터) ---------- */
.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(107,12,92,0.14);
  transition: box-shadow 0.2s, transform 0.2s;
}
.info-card:hover { box-shadow: 0 10px 22px -8px rgba(107,12,92,0.28); transform: translateY(-2px); }
.info-card-img { aspect-ratio: 1/1; background: var(--tint); }
.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 ---------- */
.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(--magenta); color: var(--magenta); }
.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(--sk-color); border-color: var(--sk-color); color: var(--white); }
.plan-tab.active[data-idx="2"] { background: var(--kt-color); border-color: var(--kt-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: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: 0 2px 10px -6px rgba(107,12,92,0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.plan-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--lg-color);
}
.plan-card:hover { box-shadow: 0 6px 18px -8px rgba(107,12,92,0.22); border-color: var(--lg-color); }
.plan-card-top { flex: none; }
.plan-carrier-badge {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: #FDE6F1; color: var(--lg-color);
  margin-bottom: 8px;
}
.plan-name { font-size: 15px; font-weight: 800; margin: 0 0 6px; }
.plan-ribbon {
  position: absolute; top: 16px; right: -28px;
  width: 110px; padding: 4px 0;
  text-align: center; font-size: 10.5px; font-weight: 800;
  color: var(--white); background: var(--magenta-dark);
  transform: rotate(35deg); z-index: 2;
  box-shadow: 0 2px 6px -2px rgba(0,0,0,0.25);
}
.plan-spec { font-size: 12px; color: var(--text-soft); margin: 0; line-height: 1.6; }
.plan-price-wrap { margin-top: auto; }
.plan-price-new { font-family: var(--font-display); font-weight: 900; font-size: 21px; color: var(--magenta); margin-bottom: 10px; }
.plan-price-new small { font-family: var(--font-body); font-weight: 500; font-size: 12.5px; }
.plan-card-cta {
  display: block;
  text-align: center;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-weight: 800;
  font-size: 12.5px;
  padding: 10px 0;
  border-radius: 999px;
  text-decoration: none;
}
.plan-card-cta:hover { opacity: 0.9; }

/* ---------- 요금제 슬라이더 (hstelecom.kr 구조 이식) ---------- */
.plans-slider-wrap { overflow: hidden; }
.plans-track { display: flex; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }
.plans-slide { min-width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 4px 2px; }

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

@media (max-width: 768px) {
  .plans-slide { grid-template-columns: 1fr; gap: 12px; }
}

.plan-card-5g {
  border-top-color: var(--fiveg-color) !important;
  background: linear-gradient(160deg, #F5F3FF 0%, var(--white) 60%);
}
.plan-card-5g::before { background: var(--fiveg-color); }
.plan-card-5g .plan-carrier-badge { background: #EDE9FE; color: var(--fiveg-color); }
.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: 10px;
}
.plan-5g-note { font-size: 11.5px; color: var(--text-soft); margin-top: 10px; text-align: center; }


/* ---------- Plan table (subpages) ---------- */
.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(--tint); color: var(--purple-dark); font-family: var(--font-display); font-weight: 800; font-size: 12.5px; }
.plan-table tr:last-child td { border-bottom: none; }

/* ---------- Callout box ---------- */
.callout-box {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 14px;
}
.callout-box p { margin: 0; font-size: 14px; color: var(--text-soft); }
.callout-box strong { color: var(--purple-dark); }

/* ---------- Bottom CTA ---------- */
.bottom-cta { background: var(--magenta-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: #F0CBE4; margin: 0 0 22px; font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-dark); color: #D9C4E8; 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: #F0D9EA; }
.site-footer .disclaimer { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 11.5px; color: #B69AC7; }
.site-footer .footer-copy { margin-top: 14px; font-size: 11px; color: #9C7FAD; }

/* ---------- 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; }
}

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