:root {
  --blue: #145cff;
  --blue-dark: #0d43c5;
  --blue-soft: #eaf1ff;
  --yellow: #ffd84d;
  --mint: #18c29c;
  --navy: #111827;
  --muted: #5f6b7a;
  --line: #dce4ef;
  --surface: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 12px 36px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy);
  background: var(--white);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 9999; padding: 12px 16px; background: var(--navy); color: #fff; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
.header-inner { width: min(1180px, calc(100% - 32px)); height: 68px; margin: 0 auto; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 18px; font-weight: 800; }
.brand img { width: 46px; height: 46px; object-fit: contain; border: 0; border-radius: 10px; }
.brand b { color: var(--blue); }
.brand-name { min-width: 0; display: inline-flex; align-items: center; gap: 4px; line-height: 1; white-space: nowrap; }
.brand-name b { color: var(--blue); font-size: 16px; font-weight: 900; }
.brand-name em { color: var(--ink); font-size: 16px; font-style: normal; font-weight: 900; }
.desktop-nav { margin-left: auto; display: none; align-items: center; gap: 26px; font-size: 15px; font-weight: 700; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--blue); }
.header-chat { margin-left: auto; display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid var(--blue); border-radius: 14px; background: #fff; color: var(--blue); font-weight: 900; box-shadow: none; }
.header-chat:hover, .header-chat:focus-visible { background: var(--blue-soft); }
.menu-toggle { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.menu-toggle span { width: 20px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-backdrop { position: fixed; inset: 68px 0 0; z-index: 98; background: rgba(17, 24, 39, .34); }
.mobile-menu { position: absolute; top: 68px; left: 0; right: 0; z-index: 99; padding: 18px max(16px, calc((100% - 560px) / 2)) 24px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 18px 35px rgba(17, 24, 39, .14); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 18px; }
.mobile-menu-head button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 12px; background: var(--surface); font-size: 28px; line-height: 1; cursor: pointer; }
.mobile-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-menu-grid a { min-height: 52px; display: flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 15px; font-weight: 800; }
.mobile-menu-grid a:hover, .mobile-menu-grid a:focus-visible { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
body.menu-open { overflow: hidden; }

.hero { padding: 30px 0 34px; background: #edf4ff; border-bottom: 1px solid #d8e5fa; }
.hero-inner, .section-inner, .final-inner, .footer-inner { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero-inner { max-width: 760px; display: grid; gap: 22px; }
.hero-copy { text-align: center; }
.eyebrow, .section-kicker { margin: 0 0 10px; color: var(--blue); font-size: 14px; font-weight: 900; }
.hero h1 { margin: 0; font-size: 42px; line-height: 1.12; letter-spacing: 0; }
.hero h1 strong { color: var(--blue); }
.hero-description { margin: 14px auto 0; max-width: 560px; color: #39475a; font-size: 16px; font-weight: 700; }
.hero-description strong { color: var(--blue); }
.hero-support { margin: 7px auto 0; color: #657287; font-size: 13px; }
.hero-support strong { color: var(--blue); font-size: 15px; }
.open-hours { width: fit-content; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px auto 0; padding: 8px 12px; border-radius: 999px; background: #fff; color: #27405f; font-size: 13px; font-weight: 800; }
.open-hours span { color: var(--mint); font-size: 10px; }
.hero-actions, .final-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
.button { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: 16px; font-size: 17px; font-weight: 900; text-align: center; transition: transform 160ms ease, box-shadow 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .choice-button:focus-visible, summary:focus-visible, .flow-back:focus-visible { outline: 3px solid rgba(20, 92, 255, 0.28); outline-offset: 3px; }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px rgba(20, 92, 255, 0.22); }
.button-kakao { background: var(--yellow); color: #251f00; }
.button-white { background: #fff; color: var(--blue-dark); }
.hero-paths { display: grid; gap: 12px; }
.hero-path { overflow: hidden; display: grid; border: 1px solid #cbd9f1; border-radius: 20px; background: #fff; text-align: left; box-shadow: 0 10px 26px rgba(17,24,39,.07); transition: transform 160ms ease, box-shadow 160ms ease; }
.hero-path:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(17,24,39,.1); }
.path-action { min-height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: var(--blue); color: #fff; font-size: 17px; font-weight: 900; }
.path-chat .path-action { background: var(--yellow); color: #251f00; }
.path-action i { font-size: 20px; font-style: normal; }
.path-detail { min-height: 78px; display: grid; align-content: center; gap: 4px; padding: 13px 18px; }
.path-detail b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.path-detail small { color: var(--muted); font-size: 12px; }
.path-mark { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 900; }
.path-chat .path-mark { background: #ddf8f2; color: #087d66; }

.section { padding: 70px 0; }
.section-heading { margin-bottom: 28px; text-align: center; }
.section-heading.compact { text-align: left; }
.section-heading h2 { margin: 0; font-size: 30px; line-height: 1.25; }
.section-heading > p:last-child { margin: 10px auto 0; max-width: 610px; color: var(--muted); }

.flow-section { background: #fff; }
.flow-inner { max-width: 920px; }
.flow-progress { display: flex; align-items: center; justify-content: center; margin: -4px 0 22px; }
.flow-progress span { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid #cfd8e6; border-radius: 50%; background: #fff; color: #7c8796; font-size: 13px; font-weight: 900; }
.flow-progress span.is-active { border-color: var(--blue); background: var(--blue); color: #fff; }
.flow-progress i { width: 48px; height: 2px; background: #dbe2ec; }
.flow-card { display: grid; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05); }
.flow-card[hidden] { display: none; }
.flow-number { width: 48px; height: 34px; display: grid; place-items: center; border-radius: 999px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 900; }
.flow-content h3 { margin: 0; font-size: 24px; }
.flow-content > p { margin: 6px 0 18px; color: var(--muted); font-size: 14px; }
.choice-grid { display: grid; gap: 12px; }
.choice-button { width: 100%; min-height: 88px; display: flex; align-items: center; gap: 14px; padding: 15px; border: 1px solid #d6deea; border-radius: 18px; background: #fff; text-align: left; cursor: pointer; transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.choice-button:hover { border-color: var(--blue); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(20, 92, 255, 0.09); }
.choice-button:active { transform: scale(.985); }
.choice-button.is-selected { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(20, 92, 255, .13); }
.sim-guide-link { position: relative; }
.sim-guide-link::after { content: "→"; margin-left: auto; color: var(--blue); font-size: 18px; font-weight: 900; }
.choice-button > span:last-child { min-width: 0; display: grid; gap: 2px; }
.choice-button b { font-size: 16px; }
.choice-button small { color: var(--muted); font-size: 13px; }
.choice-icon { flex: 0 0 50px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; font-size: 13px; font-weight: 900; }
.choice-icon.blue { color: var(--blue); background: var(--blue-soft); }
.choice-icon.mint { color: #087d66; background: #ddf8f2; }
.choice-icon.yellow { color: #725b00; background: #fff5c7; font-size: 24px; }
.sim-choice img { flex: 0 0 58px; width: 58px; height: 58px; object-fit: contain; border-radius: 12px; }
.sim-pack { flex: 0 0 58px; width: 58px; height: 58px; border-radius: 12px; background-color: #e7fbfa; background-repeat: no-repeat; box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .08); }
.kt-pack { background-image: url("kt-usim-guide.webp"); background-size: 120px 120px; background-position: -3px -15px; }
.flow-back { margin-top: 16px; padding: 6px 0; border: 0; background: transparent; color: #5a6675; font-size: 13px; font-weight: 800; text-decoration: underline; cursor: pointer; }

.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-heading-row .section-heading { margin: 0; }
.section-heading-row > a, .text-link { color: var(--blue); font-size: 14px; font-weight: 900; white-space: nowrap; }
.plan-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 86%); gap: 14px; margin-right: -16px; padding: 2px 16px 14px 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.plan-card { min-height: 350px; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; scroll-snap-align: start; box-shadow: 0 9px 24px rgba(17,24,39,.06); }
.plan-card.featured { border: 2px solid var(--blue); }
.plan-card.plan-5g { border-color: var(--blue); background: #f7faff; }
.plan-card.plan-5g > a { background: var(--blue); }
.plan-badge { align-self: flex-start; padding: 6px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 900; }
.plan-badge.new-5g { background: var(--blue); color: #fff; }
.plan-badge.mint { color: #087d66; background: #dff8f2; }
.plan-badge.yellow { color: #695300; background: #fff2ad; }
.plan-card h3 { margin: 18px 0 4px; font-size: 23px; }
.price { margin: 0; color: var(--muted); }
.price strong { color: var(--navy); font-size: 30px; }
.plan-card ul { display: grid; gap: 10px; margin: 22px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; color: #425063; }
.plan-card li::before { content: "✓"; margin-right: 8px; color: var(--mint); font-weight: 900; }
.plan-card > a { min-height: 48px; margin-top: auto; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--navy); color: #fff; font-weight: 900; }

.faq-section { background: #fff; }
.faq-inner { max-width: 900px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 4px; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 20px; transition: transform 160ms ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: -2px 0 20px; padding: 0 42px 0 4px; color: var(--muted); font-size: 14px; }
.text-link { display: inline-block; margin-top: 20px; }

.final-cta { padding: 64px 0; background: var(--blue); color: #fff; text-align: center; }
.final-cta p { margin: 0; color: #cfe0ff; font-weight: 900; }
.final-cta h2 { margin: 6px 0; font-size: 32px; }
.final-cta .final-inner > span { display: block; color: #e1eaff; font-size: 14px; }
.final-actions { max-width: 520px; margin: 24px auto 0; }

.site-footer { padding: 38px 0 110px; background: #101827; color: #c8d0dc; }
.footer-inner { font-size: 13px; }
.footer-inner b { color: #fff; font-size: 16px; }
.footer-inner p { margin: 8px 0 0; }
.footer-inner a { text-decoration: underline; }

.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -7px 20px rgba(17,24,39,.1); }
.mobile-cta a { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 16px; font-size: 16px; font-weight: 900; }
.mobile-cta a:first-child { background: var(--yellow); color: #251f00; }
.mobile-cta a:last-child { background: var(--blue); color: #fff; }
.mobile-cta span { font-size: 10px; font-weight: 900; }

@media (min-width: 620px) {
  .hero-actions, .final-actions { grid-template-columns: 1fr 1fr; }
  .hero-paths { grid-template-columns: 1fr 1fr; }
  .choice-grid.two { grid-template-columns: 1fr 1fr; }
  .choice-grid.three { grid-template-columns: repeat(3, 1fr); }
  .choice-grid.three .choice-button { flex-direction: column; align-items: flex-start; }
  .plan-grid { grid-auto-columns: minmax(280px, 46%); }
}

@media (min-width: 900px) {
  .site-header { position: sticky; }
  .header-inner { height: 78px; }
  .desktop-nav { display: flex; }
  .menu-toggle, .mobile-menu, .menu-backdrop { display: none !important; }
  .header-chat { margin-left: 10px; min-width: 112px; }
  .hero { padding: 66px 0 58px; }
  .hero-inner { max-width: 820px; gap: 28px; }
  .hero h1 { font-size: 64px; }
  .hero-description { font-size: 18px; }
  .hero-actions { max-width: 580px; margin-left: auto; margin-right: auto; }
  .section { padding: 94px 0; }
  .section-heading h2 { font-size: 38px; }
  .flow-card { grid-template-columns: 64px 1fr; padding: 30px; }
  .plan-grid { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 2px; overflow: visible; }
  .site-footer { padding-bottom: 42px; }
  .mobile-cta { display: none; }
}

@media (max-width: 899px) {
  .header-inner { gap: 8px; }
  .brand { gap: 6px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { gap: 3px; }
  .brand-name b, .brand-name em { font-size: 13px; }
  .header-chat { min-height: 42px; padding: 0 8px; font-size: 12px; }
}

@media (max-width: 380px) {
  .header-inner, .hero-inner, .section-inner, .final-inner, .footer-inner { width: min(100% - 24px, 1120px); }
  .header-inner { gap: 6px; }
  .brand { gap: 5px; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { gap: 3px; }
  .brand-name b, .brand-name em { font-size: 12px; }
  .header-chat { min-height: 40px; padding: 0 6px; font-size: 11px; }
  .menu-toggle { flex-basis: 40px; width: 40px; height: 40px; }
  .hero h1 { font-size: 36px; }
  .hero-description { font-size: 15px; }
  .hero-support { font-size: 12px; }
  .section-heading h2 { font-size: 27px; }
  .flow-content h3 { font-size: 22px; }
  .choice-button { padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
