/* =========================================================
   도시락모바일 메인 (Figma "01_메인페이지 개선_Front 1차 완료")
   - 기존 public/css/style.css 와 완전히 분리된 독립 스타일
   - 브레이크포인트: MO ~767 / TA 768~1024 / PC 1025~  (Description_Common)
   - PC 섹션 최대 폭 1240px
   ========================================================= */

@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap;
  src: url("/lib/assets/fonts/Pretendard-1.3.9/Pretendard-Regular.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 500; font-display: swap;
  src: url("/lib/assets/fonts/Pretendard-1.3.9/Pretendard-Medium.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-display: swap;
  src: url("/lib/assets/fonts/Pretendard-1.3.9/Pretendard-SemiBold.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap;
  src: url("/lib/assets/fonts/Pretendard-1.3.9/Pretendard-Bold.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 800; font-display: swap;
  src: url("/lib/assets/fonts/Pretendard-1.3.9/Pretendard-ExtraBold.subset.woff2") format("woff2"); }

:root {
  /* Figma variables */
  --brand-primary: #3d62ac;
  --brand-secondary: #fdd855;
  --brand-kt: #226068;
  --content-primary: #1b1c1e;
  --content-secondary: #2b2c2e;
  --content-tertiary: #414447;
  --content-soft: #73777c;
  --content-muted: #a2a5aa;
  --content-subtle: #d4d6d8;
  --content-orange: #ff8b3d;
  --content-green: #00c951;
  --content-purple: #ad46ff;
  --label-strong: #0f172a;
  --fill-default: #fff;
  --fill-faint: #f9fafb;
  --fill-subtle: #f5f6f7;
  --fill-muted: #e8eaed;
  --fill-overlay: rgba(0, 0, 0, .4);
  --fill-blue-subtle: #e7edf7;
  --fill-blue-faint: #f0f3f8;
  --fill-kt-subtle: #d5f8f7;
  --fill-green-subtle: #dcfce7;
  --fill-purple-subtle: #efdefc;
  --border-default: #e8eaed;
  --banner-bg: #6ea2e5;
  --kakao: #fae700;
  --shadow-xs: 0 4px 16px rgba(0, 0, 0, .04);
  --radius-d: 16px;
  --radius-s: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fill-default);
  color: var(--content-primary);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 14px;
  line-height: 20px;
}
p, h1, h2, h3, ul, ol, li, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: none; }
.blind { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 디바이스 노출 토글 */
.only-pc { display: none !important; }
.only-mo { }
.hide-mo { }

/* ---------- 공통 컴포넌트 ---------- */
.ic24 { width: 24px; height: 24px; flex: none; }
.ic18 { width: 18px; height: 18px; flex: none; }

.sec-title {
  flex: 1 1 0; min-width: 0;
  font-size: 18px; line-height: 28px; font-weight: 700; color: var(--label-strong);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sec-head { display: flex; align-items: center; justify-content: space-between; width: 100%; }

/* btn/text (전체보기 >) */
.btn-text {
  display: inline-flex; align-items: center; height: 24px; flex: none;
  font-size: 14px; line-height: 18px; font-weight: 600; color: var(--content-soft); white-space: nowrap;
}
.btn-text .label { display: none; }
.btn-text .ic24 { display: block; }

/* tab/tab (텍스트 pill) */
.tabs-scroll {
  width: 100%;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs { display: flex; gap: 8px; width: max-content; }
.tab-pill {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 16px; border: 1px solid var(--border-default); border-radius: 999px;
  font-size: 14px; line-height: 18px; font-weight: 500; color: var(--content-soft); white-space: nowrap;
  background: var(--fill-default);
}
.tab-pill[aria-selected="true"] {
  background: var(--fill-blue-subtle); border-color: var(--brand-primary);
  color: var(--brand-primary); font-weight: 600;
}
@media (hover: hover) { .tab-pill:not([aria-selected="true"]):hover { background: var(--fill-subtle); } }

/* tab/tab (이미지형) */
.tab-img {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: 72px; height: 86px; flex: none;
}
.tab-img .img {
  width: 60px; height: 60px; border-radius: 999px; overflow: hidden; flex: none;
  box-shadow: var(--shadow-xs); position: relative;
}
.tab-img .img img { width: 100%; height: 100%; object-fit: cover; }
.tab-img[aria-selected="true"] .img::after {
  content: ""; position: absolute; inset: 0; border: 2px solid var(--brand-primary); border-radius: 999px;
}
.tab-img .name {
  width: 100%; text-align: center;
  font-size: 14px; line-height: 18px; font-weight: 500; color: var(--content-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tab-img[aria-selected="true"] .name { font-weight: 700; color: var(--content-primary); }

/* badge/card */
.badges { display: flex; gap: 4px; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 8px; border-radius: 100px;
  font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap;
}
.badge--kt { background: var(--fill-kt-subtle); color: var(--brand-kt); }
.badge--green { background: var(--fill-green-subtle); color: var(--content-green); }
.badge--purple { background: var(--fill-purple-subtle); color: var(--content-purple); }

/* card/plan/main */
.plan-card {
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  padding: 23px; width: 100%; /* Figma inside stroke 보정: 24 - 1 */
  background: var(--fill-default); border: 1px solid var(--border-default); border-radius: var(--radius-d);
  box-shadow: var(--shadow-xs); overflow: hidden;
}
@media (hover: hover) { .plan-card:hover { border-color: var(--brand-primary); } }
.plan-card:active { background: var(--fill-faint); }
.plan-card .spec { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.plan-card .name {
  font-size: 13px; line-height: 20px; color: var(--content-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.plan-card .data { display: flex; align-items: center; gap: 4px; white-space: nowrap; min-width: 0; }
.plan-card .dv { display: flex; align-items: center; white-space: pre; min-width: 0; overflow: hidden; }
.plan-card .data b { font-size: 16px; line-height: 24px; font-weight: 700; }
.plan-card .data span { font-size: 14px; line-height: 20px; font-weight: 500; }
.ic-data { position: relative; width: 18px; height: 18px; flex: none; }
.ic-data i { position: absolute; bottom: 4px; width: 2.5px; border-radius: .5px; background: var(--content-tertiary); }
.ic-data i:nth-child(1) { left: 1.5px; height: 3px; }
.ic-data i:nth-child(2) { left: 5px; height: 6px; }
.ic-data i:nth-child(3) { left: 8.5px; height: 9px; }
.ic-data i:nth-child(4) { left: 12px; height: 12px; }
.plan-card .voice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plan-card .voice > span {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--content-soft); white-space: nowrap;
}
.plan-card .voice .bar { width: 1px; height: 18px; flex: none; }
.plan-card .price {
  text-align: right; font-size: 20px; line-height: 28px; font-weight: 800; color: var(--brand-primary);
}

/* btn/btn (더 많은 요금제 보러가기) */
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 12px 16px; border: 1px solid var(--border-default); border-radius: 999px;
  font-size: 16px; line-height: 24px; font-weight: 600; color: var(--content-soft); background: var(--fill-default);
}
.btn-line img { width: 8.8px; height: 19.8px; }
@media (hover: hover) { .btn-line:hover { background: var(--fill-subtle); } }

/* ---------- GNB ---------- */
.gnb {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 20px;
  background: var(--fill-default); border-bottom: 1px solid var(--border-default);
}
.gnb .logo img { width: 75px; height: 24px; object-fit: cover; }
.gnb .menu-btn { width: 24px; height: 24px; font-size: 20px; line-height: 24px; color: var(--content-primary); }
.gnb .nav, .gnb .login { display: none; }

/* ---------- 레이아웃 (MO 기준) ---------- */
.top {
  display: grid;
  grid-template-areas: "banner" "quick" "usage";
}
.sec-banner { grid-area: banner; padding: 20px 20px 0; }
.sec-quick  { grid-area: quick;  padding: 20px 20px 0; }
.sec-usage  { grid-area: usage;  padding: 20px 20px 0; }

/* section_mainbanner */
.carousel {
  position: relative; width: 100%; aspect-ratio: 2 / 1; overflow: hidden;
  border-radius: 12px; background: var(--banner-bg);
}
.carousel .track { display: flex; height: 100%; transition: transform .4s ease; }
.carousel .slide { flex: 0 0 100%; height: 100%; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.indicator {
  position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 4px;
}
.indicator .pager {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 0 4px; border-radius: 999px; background: var(--fill-overlay);
  font-size: 12px; line-height: 16px; color: #fff; white-space: nowrap;
}
.indicator .prev img { width: 20px; height: 20px; }
.indicator .next img { width: 24px; height: 24px; }
.indicator .pause {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 999px; background: var(--fill-overlay);
}
.ic-pause { display: flex; gap: 2px; }
.ic-pause i { width: 2px; height: 9px; border-radius: .5px; background: #fff; }
.ic-play { width: 0; height: 0; margin-left: 2px; border-left: 7px solid #fff; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.indicator .pause .ic-play { display: none; }
.indicator.is-paused .pause .ic-play { display: block; }
.indicator.is-paused .pause .ic-pause { display: none; }
.carousel.single .indicator { display: none; }

/* section_quickmenu (menu/quick) */
.quick { display: flex; gap: 16px; align-items: flex-start; }
.quick .item {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.quick .icon {
  position: relative; display: flex; padding: 8px; border-radius: 999px; background: var(--fill-subtle);
}
.quick .icon.png { padding: 0; background: none; }
.quick .icon.png img { width: 52px; height: 52px; }
.quick .badge-hot {
  position: absolute; left: calc(50% - 14.73px); top: calc(50% - 20.8px); transform: translate(-50%, -50%);
  padding: 1.733px 3.467px; border-radius: 999px; background: var(--brand-secondary);
  font-size: 10px; line-height: 14px; font-weight: 500; color: var(--brand-primary); white-space: nowrap;
}
.quick .label { display: flex; flex-direction: column; align-items: center; }
.quick .tit { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--content-primary); white-space: nowrap; }
.quick .sub { display: none; }
.quick .divider { display: none; }

/* icon/contents (36px 일러스트 — Figma 레이어 그대로) */
.illust { position: relative; width: 36px; height: 36px; overflow: hidden; flex: none; }
.illust > * { position: absolute; }
.illust .rot { display: flex; align-items: center; justify-content: center; }
.illust .rot > * { flex: none; position: relative; }
.illust img { width: 100%; height: 100%; }

/* section_usage (card/usage/main) */
.usage-card {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  padding: 23px; border: 1px solid var(--border-default); border-radius: var(--radius-d);
  background: var(--fill-default); text-align: left;
}
.usage-card .head { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.usage-card .label, .usage-card .msg { display: block; }
.usage-card .label { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--content-soft); }
.usage-card .msg { margin-top: 4px; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--content-primary); }
.usage-card .msg .br { display: block; }
.usage-detail { display: none; }

/* section_plan */
.sec-plan, .sec-partner { padding-top: 48px; }
.sec-plan .inner, .sec-partner .inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 20px;
}
.plan-list { display: flex; flex-direction: column; gap: 12px; width: 100%; }

/* section_partnerplan */
.partner-group {
  display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%;
  padding: 16px; border-radius: var(--radius-d); background: var(--fill-blue-subtle); overflow: hidden;
}
.benefit { display: flex; align-items: center; gap: 4px; width: 100%; }
.benefit img { width: 20px; height: 20px; border-radius: 999px; object-fit: cover; flex: none; }
.benefit p { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--content-secondary); }

/* section_review */
.sec-review { padding: 48px 0 60px; }
.sec-review .inner { display: flex; flex-direction: column; gap: 16px; padding: 0 20px; }
.review-roll {
  position: relative; display: block; height: 108px; padding: 20px; overflow: hidden;
  /* Figma inside stroke → 높이에 포함되지 않도록 inset 그림자로 */
  box-shadow: inset 0 0 0 1px var(--border-default); border-radius: var(--radius-d); background: var(--fill-default);
}
.review-roll .viewport { height: 68px; overflow: hidden; }
.review-roll .track { display: flex; flex-direction: column; gap: 20px; transition: transform .5s ease; }
.review-item { display: flex; flex-direction: column; gap: 8px; height: 68px; }
.review-item .head { display: flex; align-items: center; gap: 8px; line-height: 16px; white-space: nowrap; }
.stars { display: flex; color: var(--content-orange); font-size: 11px; }
.review-item .info {
  flex: 1 1 0; min-width: 0; display: flex; justify-content: space-between;
  font-size: 12px; color: var(--content-soft);
}
.review-item .txt {
  font-size: 14px; line-height: 22px; color: var(--content-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 한 번에 1건(별점줄 16 + 8 + 본문 2줄 44 = 68px) 노출 */
.review-grid { display: none; }

/* section_cs (PC 전용) */
.sec-cs { display: none; }

/* ---------- footer ---------- */
.footer {
  padding: 48px 0 80px; background: var(--fill-muted); border-top: 1px solid var(--border-default);
}
.footer .inner { display: flex; flex-direction: column; gap: 32px; padding: 0 20px; }
.footer .policy-row { display: flex; flex-direction: column; gap: 32px; }
.policy { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--content-tertiary); }
.policy a { white-space: nowrap; }
.policy .em { font-weight: 700; color: var(--content-primary); }
.family {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  padding: 12px 20px; border: 1px solid var(--border-default); border-radius: var(--radius-d); background: var(--fill-default);
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--content-tertiary);
}
.family select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.company { display: flex; flex-direction: column; gap: 8px; font-size: 12px; line-height: 16px; color: var(--content-soft); }
.company .row { display: contents; }
.company .row > p { white-space: pre-wrap; }

/* ---------- navigation/bottom ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; height: 60px;
  background: #fff; filter: drop-shadow(0 -1px 4px rgba(0, 0, 0, .04));
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 8px 0; font-size: 12px; line-height: 16px; color: var(--content-muted);
}
.bottom-nav a[aria-current="page"] { color: var(--brand-primary); font-weight: 600; }
body { padding-bottom: 60px; }

/* =========================================================
   TABLET 768 ~ 1024
   ========================================================= */
@media (min-width: 768px) {
  .gnb .menu-btn { visibility: hidden; }
  .usage-card { height: 88px; overflow: hidden; }
  .usage-card .msg .br { display: inline; }

  .sec-plan .inner, .sec-partner .inner { padding: 0; }
  .sec-plan .sec-head, .sec-plan .tabs-scroll,
  .sec-partner .sec-head, .sec-partner .tabs-scroll { padding: 0 20px; }
  .sec-plan .tabs-scroll, .sec-partner .tabs-scroll { width: 100%; }
  .sec-partner .partner-group { width: calc(100% - 40px); }

  /* 화면 폭 넘으면 캐러셀 (1개 단위 이동) */
  .plan-list {
    flex-direction: row; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0 20px 16px; margin-bottom: -16px; scrollbar-width: none; scroll-padding: 0 20px;
  }
  .plan-list::-webkit-scrollbar { display: none; }
  .plan-list .plan-card { flex: 0 0 360px; scroll-snap-align: start; }
  .partner-group .plan-list { padding: 0 0 16px; scroll-padding: 0; gap: 10px; }
  .partner-group .plan-list .plan-card { flex-basis: 358px; }

  .btn-text .label { display: inline; }
  .sec-partner .btn-text, .sec-review .btn-text { gap: 0; }

  .review-item .txt { -webkit-line-clamp: 2; }
}

/* =========================================================
   PC 1025 ~
   ========================================================= */
@media (min-width: 1025px) {
  .only-pc { display: revert !important; }
  .hide-pc { display: none !important; }
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }

  .wrap { max-width: 1240px; margin: 0 auto; }

  /* GNB (PC 시안은 1264 폭, 하단 보더) */
  .gnb {
    position: relative; height: 99px; max-width: 1264px; margin: 0 auto; padding: 0 32px;
    border-bottom: 1px solid var(--border-default);
  }
  .gnb .logo img { width: 125px; height: 40px; }
  .gnb .menu-btn { visibility: visible; display: flex; align-items: center; justify-content: center; margin-left: 20px; }
  .gnb .right { display: flex; align-items: center; }
  .gnb .nav { display: flex; gap: 40px; margin-right: 28px; }
  .gnb .nav a { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--content-soft); }
  .gnb .nav a:hover { color: var(--brand-primary); }
  .gnb .login {
    display: inline-flex; align-items: center; height: 40px; padding: 0 10px;
    border: 1px solid var(--border-default); border-radius: 8px;
    font-size: 14px; font-weight: 500; color: var(--content-primary);
  }

  /* layout_top: [배너 | 사용량] + 퀵메뉴 */
  .top {
    max-width: 1240px; margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-areas: "banner usage" "quick quick";
  }
  .sec-banner { padding: 40px 10px 0 20px; display: flex; }
  .sec-banner .carousel { aspect-ratio: auto; flex: 1; height: 368px; }
  .sec-usage { padding: 40px 20px 0 10px; }
  .sec-quick { padding: 20px 20px 0; }

  .indicator { right: 16px; bottom: 16px; }
  .indicator .pager { padding: 4px 8px; }
  .indicator .prev img, .indicator .next img { width: 24px; height: 24px; }
  .indicator .pause { width: 28px; height: 28px; padding: 4px; }

  .quick { height: 93.143px; gap: 0; align-items: center; background: #fff; border-radius: 16px; }
  .quick .item { flex-direction: row; gap: 12px; height: 100%; }
  .quick .divider { display: block; width: 1px; height: 100%; flex: none; }
  .quick .label { align-items: flex-start; gap: 4px; }
  .quick .tit { font-size: 14px; line-height: 20px; font-weight: 700; }
  .quick .sub { display: block; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--content-soft); white-space: nowrap; }

  /* card/usage/main — PC 비로그인 */
  .usage-card { height: 368px; flex-direction: column; align-items: stretch; justify-content: center; gap: 12px; cursor: default; }
  .usage-card .head { display: flex; align-items: center; justify-content: space-between; }
  .usage-card .msg .br { display: inline; }
  .usage-detail { display: flex; flex-direction: column; gap: 12px; }
  .usage-detail .hr { height: 1px; background: var(--border-default); }
  .usage-plan {
    display: flex; justify-content: space-between; padding: 12px 16px; border-radius: var(--radius-s);
    background: var(--fill-blue-faint); font-size: 12px; line-height: 16px; white-space: nowrap;
  }
  .usage-plan span:first-child { color: var(--content-soft); }
  .usage-plan span:last-child { font-weight: 500; }
  .progress-list { display: flex; flex-direction: column; gap: 12px; padding: 0 4px; }
  .progress { display: flex; flex-direction: column; gap: 4px; }
  .progress .row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; line-height: 16px; }
  .progress .row > span { color: var(--content-soft); }
  .progress .val { display: flex; align-items: center; gap: 4px; padding: 2px 0; }
  .progress .val em { font-style: normal; }
  .progress .val i { width: 1px; height: 8px; background: var(--border-default); }
  .progress .val em + i + em { color: var(--content-soft); }
  .progress .bar-row { display: flex; align-items: center; gap: 4px; }
  .progress .pct { width: 40px; text-align: right; font-size: 14px; line-height: 20px; font-weight: 700; }
  .progress .bar { position: relative; flex: 1; height: 8px; border-radius: 99px; overflow: hidden; background: var(--fill-muted); }
  .progress .bar i { position: absolute; inset: 0; border-radius: 999px; background: var(--content-subtle); }

  /* 섹션 공통 (PC: 80px 간격, 24px 타이틀) */
  .sec-plan, .sec-partner, .sec-review { padding: 80px 0 0; }
  .usage-card { overflow: visible; }
  .sec-plan .inner, .sec-partner .inner, .sec-review .inner {
    max-width: 1240px; margin: 0 auto; padding: 0 20px; gap: 20px;
  }
  .sec-plan .sec-head, .sec-plan .tabs-scroll,
  .sec-partner .sec-head, .sec-partner .tabs-scroll { padding: 0; }
  .sec-title { font-size: 24px; line-height: 34px; }

  .plan-list {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
    overflow: visible; padding: 0; margin: 0;
  }
  .plan-list .plan-card { flex: none; }
  .sec-partner .partner-group { width: 100%; padding: 20px; gap: 16px; }
  .partner-group .plan-list { gap: 12px; padding: 0; margin: -8px 0; } /* 시안: 204px 카드가 188px 리스트 위아래로 8px 넘침 */
  .benefit { gap: 8px; }
  .benefit p { font-size: 16px; line-height: 24px; }

  .review-roll { display: none; }
  .review-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .review-card {
    display: flex; flex-direction: column; gap: 12px; padding: 20px;
    background: var(--fill-default); border: 1px solid var(--border-default); border-radius: var(--radius-d);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .04));
  }
  .review-card .head { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
  .review-card .stars { font-size: 16px; line-height: normal; }
  .review-card .info { flex: 1; min-width: 0; display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--content-soft); }
  .review-card .body { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
  .review-card .tit { font-weight: 700; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .review-card .txt {
    line-height: 22px; color: var(--content-soft);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }

  /* section_cs */
  .sec-cs { display: block; padding: 80px 20px; }
  .sec-cs .inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 20px; }
  .cs-layout { display: flex; gap: 20px; align-items: stretch; }
  .cs-left { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
  .notice-bar {
    display: flex; align-items: center; gap: 16px; padding: 20px;
    border: 1px solid var(--border-default); border-radius: var(--radius-d);
  }
  .notice-bar .h { font-size: 16px; line-height: 24px; font-weight: 700; white-space: nowrap; }
  .notice-bar .info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
  .notice-bar .info a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--content-tertiary); }
  .notice-bar .info time { font-size: 12px; line-height: 16px; color: var(--content-muted); }
  .cs-cards { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; }
  .cs-card {
    display: flex; align-items: center; gap: 8px; padding: 16px 20px;
    border: 1px solid var(--border-default); border-radius: 16px;
  }
  @media (hover: hover) { .cs-card:hover { background: var(--fill-faint); } }
  .cs-card .icon { display: flex; padding: 8px; border-radius: 999px; background: var(--fill-subtle); flex: none; }
  .cs-card .t { flex: 1; font-size: 15px; line-height: 22px; font-weight: 500; white-space: nowrap; }
  .cs-ic { position: relative; width: 24px; height: 24px; }
  .cs-ic > * { position: absolute; }
  .cs-ic img { display: block; width: 100%; height: 100%; }
  .hotline {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 20px 24px;
    border: 1px solid var(--border-default); border-radius: var(--radius-d); overflow: hidden;
  }
  .hotline .rows { display: flex; flex-direction: column; gap: 12px; }
  .hotline .h { font-size: 16px; line-height: 24px; font-weight: 700; }
  .hotline .h em { font-style: normal; color: var(--brand-primary); }
  .hotline .row { display: flex; align-items: center; gap: 16px; }
  .hotline .row > b { width: 72px; flex: none; font-size: 14px; line-height: 20px; color: var(--content-tertiary); }
  .hotline .contact { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 22px; color: var(--content-tertiary); white-space: nowrap; }
  .hotline .contact i { width: 1px; height: 8px; background: var(--border-default); }
  .hotline .kakao { display: flex; align-items: center; gap: 8px; }
  .hotline .kakao i { width: 28px; height: 28px; border-radius: 6px; background: var(--kakao); }
  .hotline .kakao a { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--content-secondary); text-decoration: underline; }
  .hotline .hours {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px;
    border-radius: var(--radius-s); background: var(--fill-faint); text-align: center; white-space: nowrap;
  }
  .hotline .hours b { font-size: 16px; line-height: 24px; }
  .hotline .hours span { font-size: 14px; line-height: 22px; color: var(--content-soft); }

  /* footer PC */
  .footer { padding: 32px 0 80px; }
  .footer .inner { max-width: 1240px; margin: 0 auto; }
  .footer .policy-row { flex-direction: row; align-items: center; }
  .footer .policy { flex: 1 1 0; min-width: 0; }
  .footer .family { flex: 1 1 0; max-width: 400px; }
  .footer .company-row { display: flex; align-items: flex-end; gap: 32px; }
  .company { flex: 1 1 0; min-width: 0; }
  .company .row { display: flex; gap: 8px; white-space: nowrap; }
  .company .copy-mo { display: none; }
  .copy-pc { display: block !important; font-size: 12px; line-height: 16px; color: var(--content-soft); white-space: nowrap; }
}
.copy-pc { display: none; }

/* 맞춤 요금제 찾기 — Figma 553:1599. MO/TA 바텀시트(위 모서리 20), PC(1025~) 가운데 팝업 468px(네 모서리 20) */
.pf-dim { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; background: var(--fill-overlay); }
.pf {
  display: flex; flex-direction: column; width: 100%; max-height: calc(100% - 40px);
  border-radius: 20px 20px 0 0; background: var(--fill-default);
  padding-bottom: env(safe-area-inset-bottom);
}
.pf-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; flex: none; }
.pf-head p { font-size: 18px; line-height: 28px; font-weight: 700; color: var(--content-primary); white-space: nowrap; }
.pf-close { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
.pf-body { display: flex; flex-direction: column; gap: 8px; padding: 0 24px; overflow-y: auto; min-height: 0; }
.pf-label { padding: 12px 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--content-primary); }
.pf-list { display: flex; flex-direction: column; gap: 8px; }
.pf-item {
  display: flex; align-items: flex-start; gap: 16px; width: 100%; padding: 20px; text-align: left;
  border: 1px solid var(--border-default); border-radius: var(--radius-s); background: var(--fill-default);
}
.pf-item .t { width: 88px; flex: none; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--content-primary); }
.pf-item .d { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--content-soft); white-space: nowrap; }
.pf-item[aria-checked="true"] { background: var(--fill-blue-subtle); border-color: var(--brand-primary); }
.pf-item[aria-checked="true"] .t { font-weight: 700; color: var(--brand-primary); }
.pf-item[aria-checked="true"] .d { color: var(--brand-primary); }
.pf-item:focus-visible, .pf-btn:focus-visible, .pf-close:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.pf-btns { display: grid; padding: 20px; flex: none; }
.pf-btns.half { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.pf-btn {
  display: flex; align-items: center; justify-content: center; gap: 4px; padding: 12px 16px; border-radius: var(--radius-s);
  font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap;
}
.pf-btn.sub { background: var(--fill-subtle); color: var(--content-tertiary); }
.pf-btn.main { background: var(--brand-primary); color: #fff; }
.pf-btn:disabled { background: var(--fill-muted); color: var(--content-muted); cursor: default; }
@media (min-width: 1025px) {
  .pf-dim { align-items: center; }
  .pf { width: 468px; border-radius: 20px; padding-bottom: 0; }
}

/* =========================================================
   Next 이식 추가분 (11-18) — 정적 시안에 없던 데이터·상태 표현
   ========================================================= */
/* 배너: 원본처럼 디바이스별 이미지·링크 3벌(MO ~767 / TA 768~1024 / PC 1025~) */
.carousel .slide { display: block; }
.carousel .slide .bn { display: none; width: 100%; height: 100%; }
.carousel .slide .bn-mo { display: block; }
@media (min-width: 768px) { .carousel .slide .bn-mo { display: none; } .carousel .slide .bn-ta { display: block; } }
@media (min-width: 1025px) { .carousel .slide .bn-ta { display: none; } .carousel .slide .bn-pc { display: block; } }

/* 요금제 뱃지: 통신사(LGU+·SKT)·후불/선불 */
.badge--lgu { background: #fde7f3; color: #c4006b; }
.badge--skt { background: #fdecea; color: #d6261b; }
.badge--gray { background: var(--fill-subtle); color: var(--content-soft); }

/* 사용량 카드(로그인) — 막대 채움 */
.usage-card.is-login .progress .bar i { right: auto; background: var(--brand-primary); }
.plan-empty { width: 100%; padding: 40px 0; text-align: center; color: var(--content-soft); }

/* 전체메뉴(GNB ☰) */
.fullmenu { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: flex-end; background: var(--fill-overlay); }
.fullmenu[hidden] { display: none; }
.fullmenu .panel {
  width: min(360px, 100%); height: 100%; overflow-y: auto; background: var(--fill-default);
  padding: 0 20px calc(24px + env(safe-area-inset-bottom));
}
.fullmenu .bar { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.fullmenu .who { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; }
.fullmenu .who .out { font-size: 13px; font-weight: 500; color: var(--content-soft); text-decoration: underline; }
.fullmenu .close { width: 24px; height: 24px; font-size: 22px; line-height: 24px; }
.fullmenu .grp { padding: 16px 0; border-top: 1px solid var(--border-default); }
.fullmenu .grp > a { display: block; font-size: 16px; line-height: 24px; font-weight: 700; }
.fullmenu .grp ul { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.fullmenu .grp li a { font-size: 14px; line-height: 20px; color: var(--content-soft); }
@media (min-width: 768px) { .gnb .menu-btn { visibility: visible; } }

/* 메인 레이어 팝업(원본 home.jsp #mainPopup — 오늘 하루 보지 않기/닫기) */
.main-pop { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--fill-overlay); }
.main-pop .box { width: min(400px, 100%); max-height: calc(100% - 40px); display: flex; flex-direction: column; border-radius: var(--radius-d); overflow: hidden; background: var(--fill-default); }
.main-pop .body { position: relative; overflow: auto; }
.main-pop .body img { max-width: 100%; height: auto; }
.main-pop .dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0 0; }
.main-pop .dots button { width: 8px; height: 8px; border-radius: 999px; background: var(--content-subtle); }
.main-pop .dots button[aria-current="true"] { background: var(--brand-primary); }
.main-pop .foot { display: flex; border-top: 1px solid var(--border-default); }
.main-pop .foot button { flex: 1; height: 48px; font-size: 14px; font-weight: 600; }
.main-pop .foot button + button { border-left: 1px solid var(--border-default); }
.main-pop .foot .v2 { color: var(--content-soft); font-weight: 500; }
