/* 오토핏 모터스 — 다크 + 시그널 옐로, 계기판 콘셉트 */
:root {
  --brand: #ffc21a; --brand-ink: #121417;
  --bg: #121417; --bg2: #191c21; --card: #1f2329; --line: #313741; --soft: #2a2a1f;
  --ink: #f2f3f5; --sub: #9aa3b1; --field: #15181c; --radius: 10px;
  --cond: 'Barlow Condensed', 'Pretendard Variable', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Pretendard Variable', system-ui, sans-serif; line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--brand); color: #000; padding: 8px 12px; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.wrap--narrow { width: min(860px, 100% - 40px); }
.muted { color: var(--sub); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 22px; border-radius: 8px; font: inherit; font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--brand { background: var(--brand); color: var(--brand-ink); }
.btn--line { border-color: #4b525e; color: var(--ink); background: rgba(0,0,0,.25); }
.btn--line:hover { border-color: var(--brand); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* header */
.head { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 14px clamp(16px, 3vw, 36px); transition: background .2s, padding .2s; }
.head.is-scrolled { background: rgba(18,20,23,.94); backdrop-filter: blur(10px); padding-block: 10px; border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin: 0; }
.logo__mark { display: grid; place-items: center; width: 40px; height: 40px; background: var(--brand); color: #000; font-family: var(--cond); font-weight: 800; font-size: 20px; border-radius: 6px; transform: skewX(-8deg); }
.logo__txt { font-family: var(--cond); font-weight: 800; font-size: 22px; letter-spacing: .04em; line-height: .9; }
.logo__txt small { display: block; font-size: 12px; letter-spacing: .38em; color: var(--sub); font-weight: 600; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; text-decoration: none; font-size: 14.5px; font-weight: 600; color: #d6dae0; border-radius: 6px; }
.nav a:hover { color: var(--brand); }
.pill { font-size: 12.5px; padding: 6px 12px 6px 24px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--sub); position: relative; white-space: nowrap; }
.pill::before { content: ''; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #6b7280; }
.pill.is-open { color: #b6f5c8; }
.pill.is-open::before { background: #34d27b; box-shadow: 0 0 0 4px rgba(52,210,123,.2); animation: blink 1.6s infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 7px rgba(52,210,123,0); } }
.head__call { font-family: var(--cond); font-weight: 700; font-size: 19px; text-decoration: none; color: var(--brand); white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger i { display: block; height: 2px; background: #fff; margin: 5px 0; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.42); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,20,23,.95) 0%, rgba(18,20,23,.55) 55%, rgba(18,20,23,.2)), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero__inner { position: relative; z-index: 1; width: min(1180px, 100% - 40px); margin: 0 auto; padding: 130px 0 40px; display: grid; grid-template-columns: 1.4fr .9fr; gap: 40px; align-items: end; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--brand); letter-spacing: .02em; }
.eyebrow .dot { width: 8px; height: 8px; background: var(--brand); transform: rotate(45deg); }
.hero h1 { margin: 0; font-size: clamp(40px, 6.4vw, 78px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__lead { max-width: 520px; margin: 20px 0 28px; font-size: 17.5px; color: #c8cdd5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.today { margin: 18px 0 0; display: inline-block; padding: 8px 14px; border-left: 3px solid var(--brand); background: rgba(255,194,26,.1); font-size: 14.5px; font-weight: 600; }
.dash { background: rgba(25,28,33,.82); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.dash__gauge { position: relative; }
.dash__gauge svg { width: 100%; height: auto; }
.g-track, .g-fill { fill: none; stroke-width: 14; stroke-linecap: round; }
.g-track { stroke: #2d323a; }
.g-fill { stroke: var(--brand); stroke-dasharray: 0 100; transition: stroke-dasharray 1.2s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 6px rgba(255,194,26,.5)); }
.dash__num { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; }
.dash__num b { display: block; font-family: var(--cond); font-size: 54px; line-height: 1; color: var(--brand); }
.dash__num small { color: var(--sub); font-size: 13px; }
.dash__rows { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.dash__rows li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.dash__rows span { color: var(--sub); }
.stats { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: rgba(18,20,23,.7); }
.stats li { padding: 22px clamp(14px, 3vw, 36px); border-right: 1px solid var(--line); }
.stats li:last-child { border-right: 0; }
.stats b { font-family: var(--cond); font-size: clamp(34px, 4vw, 48px); line-height: 1; }
.stats span { font-family: var(--cond); font-size: 22px; color: var(--brand); font-weight: 700; margin-left: 2px; }
.stats small { display: block; color: var(--sub); font-size: 13.5px; margin-top: 4px; }

/* sections */
.sec { padding: clamp(70px, 10vw, 120px) 0; }
.sec--alt { background: var(--bg2); border-block: 1px solid #1f232a; }
.sec__head { margin-bottom: 40px; max-width: 720px; }
.sec__no { font-family: var(--cond); font-weight: 800; font-size: 15px; letter-spacing: .2em; color: var(--brand); }
.sec__no::after { content: ''; display: inline-block; width: 40px; height: 2px; background: var(--brand); vertical-align: middle; margin-left: 10px; }
.sec__head h2 { margin: 10px 0 10px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.02em; line-height: 1.2; }
.sec__head p { margin: 0; color: var(--sub); font-size: 16.5px; }
.sec__head a { color: var(--brand); }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s, transform .6s; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* service cards */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.svc__card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; position: relative; overflow: hidden; transition: border-color .2s, transform .2s; }
.svc__card:hover { border-color: var(--brand); transform: translateY(-3px); }
.svc__card::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(255,194,26,.14), transparent 70%); }
.svc__icon { width: 46px; height: 46px; color: var(--brand); }
.svc__card h3 { margin: 14px 0 6px; font-size: 18px; }
.svc__card p { margin: 0 0 14px; color: var(--sub); font-size: 14px; min-height: 44px; }
.svc__card dl { margin: 0; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 4px; font-size: 13.5px; }
.svc__card dl div { display: flex; justify-content: space-between; }
.svc__card dt { color: var(--sub); }
.svc__card dd { margin: 0; font-weight: 700; }

/* calculator */
.calc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.calc__label { font-weight: 700; margin: 0 0 12px; color: var(--brand); font-size: 14px; letter-spacing: .04em; }
.calc__label:not(:first-child) { margin-top: 28px; }
.seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.seg button { padding: 12px 8px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; cursor: pointer; font: inherit; text-align: left; }
.seg b { display: block; font-size: 15px; }
.seg small { display: block; color: var(--sub); font-size: 11.5px; line-height: 1.35; margin-top: 2px; }
.seg [aria-checked=true] { border-color: var(--brand); background: var(--soft); box-shadow: inset 0 0 0 1px var(--brand); }
.toggles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tg { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.tg__ico { width: 26px; height: 26px; color: var(--sub); flex: none; }
.tg i { margin-left: auto; width: 38px; height: 22px; border-radius: 99px; background: #3a404a; position: relative; flex: none; transition: background .2s; }
.tg i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tg[aria-pressed=true] { border-color: #5c5232; }
.tg[aria-pressed=true] .tg__ico { color: var(--brand); }
.tg[aria-pressed=true] i { background: var(--brand); }
.tg[aria-pressed=true] i::after { transform: translateX(16px); background: #121417; }
.receipt { position: sticky; top: 90px; background: #f6f4ee; color: #1b1c1f; padding: 26px 24px 22px; border-radius: 6px; font-size: 14.5px; box-shadow: 0 20px 40px rgba(0,0,0,.35);
  -webkit-mask: radial-gradient(circle 7px at 7px 100%, #0000 98%, #000) -7px 100% / 14px 100% repeat-x; mask: radial-gradient(circle 7px at 7px 100%, #0000 98%, #000) -7px 100% / 14px 100% repeat-x; padding-bottom: 34px; }
.receipt__head { margin: 0; text-align: center; font-family: var(--cond); font-weight: 800; letter-spacing: .2em; font-size: 17px; }
.receipt__car { text-align: center; margin: 4px 0 14px; color: #6b6e75; font-size: 13px; padding-bottom: 14px; border-bottom: 2px dashed #c9c5ba; }
.receipt ul { list-style: none; margin: 0; padding: 0; }
.receipt li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.receipt li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt .muted { color: #8b8d93; justify-content: center; }
.receipt__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px dashed #c9c5ba; margin-top: 12px; padding-top: 14px; }
.receipt__total b { font-size: 22px; font-variant-numeric: tabular-nums; }
.receipt__time { margin: 6px 0 16px; text-align: right; color: #5a5d63; }
.receipt .btn--brand { background: #121417; color: var(--brand); }
.receipt__note { font-size: 12px; color: #77797e; margin: 12px 0 0; }

/* wear */
.wear__now { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-weight: 700; font-size: 17px; margin-bottom: 22px; }
.wear__now span { display: flex; align-items: center; gap: 8px; font-family: var(--cond); font-size: 22px; }
.wear input { width: 160px; padding: 10px 12px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--field); color: var(--ink); font: inherit; font-size: 17px; }
.wear__now input { font-family: var(--cond); font-size: 24px; width: 190px; border-color: var(--brand); }
.wear__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.wr { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.wr__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.wr__top small { color: var(--sub); }
.wr label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sub); }
.wr label input { width: 130px; padding: 7px 10px; font-size: 15px; }
.wr__bar { height: 10px; border-radius: 99px; background: #2b3038; margin: 14px 0 8px; overflow: hidden; }
.wr__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: #6b7280; transition: width .5s, background .3s; }
.wr.is-ok .wr__bar i { background: #34d27b; }
.wr.is-soon .wr__bar i { background: var(--brand); }
.wr.is-over .wr__bar i { background: #ff5a4e; }
.wr__msg { margin: 0; font-size: 13.5px; color: var(--sub); }
.wr.is-soon .wr__msg { color: var(--brand); }
.wr.is-over .wr__msg { color: #ff8a80; font-weight: 600; }
#wear-book { margin-top: 18px; }

/* steps */
.steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { padding: 24px 22px 0 0; border-top: 3px solid #2d323a; position: relative; }
.steps li::before { content: ''; position: absolute; top: -3px; left: 0; width: 46px; height: 3px; background: var(--brand); }
.steps span { font-family: var(--cond); font-weight: 700; color: var(--brand); letter-spacing: .12em; font-size: 14px; }
.steps h3 { margin: 6px 0 8px; font-size: 19px; }
.steps p { margin: 0; color: var(--sub); font-size: 14.5px; }
.promise { display: grid; grid-template-columns: 1fr 1.2fr; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.promise figure { margin: 0; }
.promise img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.promise > div { padding: clamp(22px, 4vw, 40px); }
.promise h3 { margin: 0 0 16px; font-size: 24px; }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.promise li { color: #c4c9d1; padding-left: 16px; border-left: 3px solid var(--brand); }
.promise li b { display: block; color: var(--ink); font-size: 16.5px; }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.reviews blockquote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.stars { color: var(--brand); letter-spacing: 2px; margin: 0 0 8px; }
.reviews blockquote p { margin: 0 0 12px; }
.reviews footer { color: var(--sub); font-size: 13.5px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; filter: saturate(.85); }

/* visit */
.visit { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.visit__addr { font-size: 21px; font-weight: 700; margin: 0 0 6px; }
.visit__sub { color: var(--sub); margin: 0 0 22px; }
.visit__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.hours { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.hours h3 { margin: 0 0 10px; }
.hours ul { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.hours li.is-today { color: var(--brand); font-weight: 700; }
.hours li.note { display: block; border: 0; color: var(--sub); font-size: 13px; padding-top: 12px; }

/* footer */
.foot { background: #0c0d0f; color: var(--sub); padding: 50px 0 110px; font-size: 13.5px; }
.foot .logo { margin-bottom: 16px; }
.foot a { color: #d0d4da; }
.foot__notice { padding: 12px 14px; border: 1px dashed #3a3f48; border-radius: 8px; }
.foot__links, .foot__samples { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot__samples span { display: contents; }
.foot__samples a { color: var(--brand); }

/* mobile bar */
.mbar { display: none; }

/* lead form on dark */
.lead input:not([type=checkbox]), .lead select, .lead textarea { color-scheme: dark; }

@media (max-width: 1080px) {
  .nav { position: fixed; inset: 64px 0 auto; flex-direction: column; background: rgba(18,20,23,.98); padding: 10px 20px 20px; border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .burger { display: block; margin-left: auto; }
  .head__call { display: none; }
  .svc { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .dash { max-width: 420px; }
  .calc { grid-template-columns: 1fr; }
  .receipt { position: static; }
}
@media (max-width: 720px) {
  .pill { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(2) { border-right: 0; }
  .stats li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .svc, .reviews, .steps, .promise, .visit { grid-template-columns: 1fr; }
  .steps { gap: 24px; }
  .seg { grid-template-columns: repeat(2, 1fr); }
  .toggles { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .dash { display: none; }
  .hero__inner { padding-top: 110px; }
  .svc__card p { min-height: 0; }
  .wear__list { grid-template-columns: 1fr; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; inset: auto 0 0; z-index: 40; background: #0c0d0f; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .mbar a { padding: 15px 4px; text-align: center; text-decoration: none; font-weight: 700; font-size: 15px; }
  .mbar__go { background: var(--brand); color: #000; }
}
