/* 색상·글꼴 토큰 */
:root{
  --bg:#ffffff; --bg-alt:#f5f6f9; --ink:#0f1a2e; --muted:#5d6778; --line:#e2e6ed;
  --brand:#1b2b52; --brand-ink:#ffffff; --brand-hover:#24396b;
  --accent:#d1006a; --accent-soft:#fdeef5;
  --hero-bg:#0f1a33; --hero-fg:#ffffff; --hero-muted:#b7c0d3;
  --ok:#1d7a3a; --ok-bg:#e8f5ec; --err:#b3261e; --err-bg:#fdecea;
  --radius:12px; --shadow:0 1px 2px rgba(15,26,46,.04),0 8px 24px rgba(15,26,46,.06);
  --font:"Pretendard Variable","Pretendard","Apple SD Gothic Neo","Malgun Gothic","맑은 고딕",sans-serif;
  --header-h:64px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.65;letter-spacing:-.01em;padding-bottom:60px;-webkit-font-smoothing:antialiased}
a{color:inherit}
img{max-width:100%}
h1,h2,h3{line-height:1.3;margin:0;text-wrap:balance;word-break:keep-all;letter-spacing:-.02em}
p{margin:0;word-break:keep-all}
.in{max-width:1120px;margin:0 auto;padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}

/* 헤더 */
.top{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.92);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}
.top .in{display:flex;align-items:center;justify-content:space-between;gap:16px;height:var(--header-h)}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand-name{font-weight:800;font-size:1.2rem;color:var(--brand);letter-spacing:-.03em}
.brand-sep{width:1px;height:18px;background:var(--line)}
.partner-logo{display:block;height:22px;width:auto}
.partner-text{font-weight:800;font-size:.95rem;color:var(--accent);letter-spacing:-.02em}
.top nav{display:flex;gap:4px;align-items:center;font-size:.95rem}
.nav-link{text-decoration:none;padding:8px 12px;border-radius:8px;color:var(--muted);font-weight:600}
.nav-link:hover{color:var(--ink);background:var(--bg-alt)}
.top .tel{margin-left:8px;text-decoration:none;font-weight:800;padding:8px 14px;border-radius:999px;background:var(--brand);color:var(--brand-ink);font-variant-numeric:tabular-nums}

/* 버튼 */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:10px 18px;border:1px solid transparent;border-radius:10px;font:inherit;font-weight:700;font-size:.95rem;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.btn.lg{min-height:52px;padding:12px 24px;font-size:1rem}
.btn.block{display:flex;width:100%}
.btn.pri{background:var(--accent);color:#fff}
.btn.pri:hover{background:#b8005d}
.btn.ghost{border-color:rgba(255,255,255,.35);color:var(--hero-fg)}
.btn.ghost:hover{border-color:#fff}
.btn.line{border-color:var(--line);color:var(--brand);background:var(--bg)}
.btn.line:hover{border-color:var(--brand)}
.btn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid rgba(209,0,106,.35);outline-offset:2px}

/* 히어로 */
.hero{background:radial-gradient(1200px 400px at 85% 0%,rgba(209,0,106,.18),transparent 60%),var(--hero-bg);color:var(--hero-fg);padding-block:64px 72px}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:48px;align-items:center}
.hero-copy{display:flex;flex-direction:column;gap:20px;min-width:0}
.hero .eyebrow{color:#ff6fb0}
.hero h1{font-size:clamp(1.75rem,3.6vw,2.6rem);font-weight:800}
.benefit{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px;color:var(--hero-muted);font-weight:500}
.benefit li{display:flex;gap:8px;align-items:flex-start}
.benefit li::before{content:"";flex:none;width:18px;height:18px;margin-top:3px;border-radius:50%;background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat}
.cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.hero-quote{background:var(--bg);color:var(--ink);border-radius:16px;padding:24px;box-shadow:0 20px 50px rgba(0,0,0,.25);display:flex;flex-direction:column;gap:14px;min-width:0}
.hq-title{font-weight:800;font-size:1.05rem;display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.hq-title span{font-size:.8rem;font-weight:500;color:var(--muted)}
.hero-quote ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.hero-quote li{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.hero-quote li:last-child{border-bottom:0}
.hq-speed{font-weight:800;color:var(--brand);min-width:84px}
.hq-fit{color:var(--muted);font-size:.9rem}
.hq-price{font-weight:800;font-size:1.1rem;font-variant-numeric:tabular-nums}
.hq-note{font-size:.78rem;color:var(--muted);text-align:center}

/* 섹션 공통 */
.sec{padding-block:80px;scroll-margin-top:var(--header-h)}
.sec.alt{background:var(--bg-alt)}
.sec .in{display:flex;flex-direction:column;gap:24px}
.sec-head{display:flex;flex-direction:column;gap:8px;max-width:680px}
.eyebrow{color:var(--accent);font-weight:700;font-size:.85rem;letter-spacing:.02em}
.sec h2{font-size:clamp(1.45rem,2.6vw,1.9rem);font-weight:800}
.sub{color:var(--muted)}
.notice{color:var(--muted);font-size:.85rem}
.notice + .notice{margin-top:-16px}

/* 상품 카드 */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.card{border:1px solid var(--line);border-radius:var(--radius);padding:24px;display:flex;flex-direction:column;gap:6px;background:var(--bg);box-shadow:var(--shadow);transition:transform .15s,box-shadow .15s}
.card:hover{transform:translateY(-2px);box-shadow:0 2px 4px rgba(15,26,46,.05),0 16px 32px rgba(15,26,46,.10)}
.card .fit{font-weight:700;color:var(--accent);font-size:.9rem}
.card .use{color:var(--muted);font-size:.9rem}
.card .speed{font-size:1.7rem;font-weight:800;color:var(--brand);margin-top:8px;letter-spacing:-.03em}
.card .price{font-size:1.35rem;font-weight:800;font-variant-numeric:tabular-nums}
.card .price span{font-size:.8rem;font-weight:500;color:var(--muted);margin-left:6px}
.card .price-sub{font-size:.88rem;color:var(--muted);font-variant-numeric:tabular-nums}
.card .btn{margin-top:16px}

/* 표 */
.tbl{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg)}
table{border-collapse:collapse;width:100%}
caption{text-align:left;color:var(--muted);font-size:.85rem;padding:14px 16px 0;caption-side:top}
th,td{border-bottom:1px solid var(--line);padding:14px 16px;text-align:left}
tbody tr:last-child th,tbody tr:last-child td{border-bottom:0}
thead th{font-size:.85rem;color:var(--muted);font-weight:700}
table.num td,table.num thead th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
table.num td{font-weight:700}

/* 가입 혜택 */
.why{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.why article{border:1px solid var(--line);border-radius:var(--radius);padding:28px;background:var(--bg);display:flex;flex-direction:column;gap:10px;box-shadow:var(--shadow)}
.why-ico{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent)}
.why h3{font-size:1.2rem;font-weight:800}
.why p{color:var(--muted)}

/* 절차 */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;counter-reset:s}
.steps li{position:relative;display:flex;flex-direction:column;gap:4px;padding:24px;border-radius:var(--radius);background:var(--bg-alt);counter-increment:s}
.steps li::before{content:counter(s);display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--brand);color:var(--brand-ink);font-weight:800;font-size:.9rem;margin-bottom:8px}
.steps b{font-size:1.05rem}
.steps span{color:var(--muted);font-size:.9rem}

/* FAQ */
.faq-list{display:flex;flex-direction:column;gap:8px}
details{border:1px solid var(--line);border-radius:10px;background:var(--bg);padding:0 20px}
summary{font-weight:700;cursor:pointer;padding:18px 0;list-style:none;display:flex;justify-content:space-between;gap:12px}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-weight:400;font-size:1.3rem;line-height:1;color:var(--muted)}
details[open] summary::after{content:"−"}
details p{padding-bottom:18px;color:var(--muted)}

/* 상담 폼 */
.form-card{background:var(--bg);border:1px solid var(--line);border-radius:16px;padding:32px;box-shadow:var(--shadow)}
.form{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px 16px}
.form label{display:flex;flex-direction:column;gap:6px;font-size:.88rem;font-weight:700;min-width:0}
/* 입력칸 공통: 텍스트·전화·이메일·날짜·선택 모두 같은 높이와 테두리 */
.form input:not([type=checkbox]):not([type=hidden]),.form select{
  -webkit-appearance:none;appearance:none;width:100%;height:48px;margin:0;
  font:inherit;font-size:.95rem;font-weight:400;line-height:1.2;
  padding:0 14px;border:1px solid #cfd5df;border-radius:10px;background-color:var(--bg);color:var(--ink);
  transition:border-color .15s,box-shadow .15s}
.form input::placeholder{color:#9aa3b2}
.form input[type=date]{min-width:0;display:flex;align-items:center}
.form input[type=date]::-webkit-date-and-time-value{text-align:left}
.form input[type=date]::-webkit-calendar-picker-indicator{opacity:.55;cursor:pointer}
.form select{padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6778' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:16px}
.form input:not([type=checkbox]):hover,.form select:hover{border-color:#aab3c2}
.form input:not([type=checkbox]):focus,.form select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(209,0,106,.15)}
.form .agree{grid-column:1/-1;flex-direction:row;align-items:flex-start;gap:10px;font-weight:400;color:var(--muted);font-size:.88rem;padding:14px 16px;border-radius:10px;background:var(--bg-alt)}
.form .agree input{flex:none;width:18px;height:18px;margin-top:2px;accent-color:var(--accent)}
.form button{grid-column:1/-1;justify-self:start;padding-inline:40px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.flash{padding:14px 16px;border-radius:10px;font-weight:700}
.flash.ok{background:var(--ok-bg);color:var(--ok)}
.flash.err{background:var(--err-bg);color:var(--err)}

/* 푸터 */
.foot{background:var(--hero-bg);color:var(--hero-muted);padding-block:40px;font-size:.88rem}
.foot .in{display:flex;flex-direction:column;gap:4px}
.foot-brand{font-weight:800;font-size:1.1rem;color:var(--hero-fg);margin-bottom:8px}
.foot b{color:var(--hero-fg)}
.foot a{color:var(--hero-fg)}
.foot .copy{margin-top:12px;opacity:.7}

/* 하단 고정 바: 모바일만 */
.bar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;gap:8px;padding:8px max(12px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));background:rgba(255,255,255,.96);border-top:1px solid var(--line);backdrop-filter:blur(8px)}
.bar a{flex:1;display:flex;align-items:center;justify-content:center;height:48px;border-radius:10px;font-weight:800;text-decoration:none;background:var(--brand);color:var(--brand-ink)}
.bar a.pri{background:var(--accent);color:#fff}

@media (min-width:768px){
  .bar{display:none}
  body{padding-bottom:0}
}
@media (max-width:900px){
  .hero-grid{grid-template-columns:minmax(0,1fr);gap:32px}
}
@media (max-width:640px){
  .nav-link{display:none}
  .brand-name{font-size:1.1rem}
  .hero{padding-block:40px 48px}
  .benefit{grid-template-columns:minmax(0,1fr)}
  .cta .btn{flex:1}
  .sec{padding-block:56px}
  .form-card{padding:20px}
  .form button{justify-self:stretch}
  body{padding-bottom:72px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .card,.btn{transition:none}
  .card:hover{transform:none}
}
