/* FITLAB 메인(fitlab.company)과 같은 토큰·타이포 */
:root {
  --paper: #f5f2e9;
  --ink: #1e211d;
  --blue: #2635ef;
  --lime: #d8f542;
  --pink: #ff92c5;
  --orange: #ff6b35;
  --line: rgba(30, 33, 29, .23);
  --disp: Arial, "Helvetica Neue", Helvetica, "Pretendard Variable", sans-serif;
  --ko: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "Courier New", Courier, ui-monospace, monospace;
  --pad: 6%;
  --head-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: var(--head-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--ko); font-size: 16px; line-height: 1.65; letter-spacing: -0.02em;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
h1, h2, h3 { margin: 0; }

.mono { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.35; }
.lime { color: var(--lime); }

/* ------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--head-h);
  display: flex; align-items: center; gap: 22px;
  padding: 0 3.2%; background: var(--paper); border-bottom: 1px solid var(--ink);
}
.logo { font-family: var(--disp); font-weight: 950; font-size: 30px; letter-spacing: -2px; text-decoration: none; line-height: 1; }
.logo span { display: inline-block; color: var(--blue); font-size: 26px; vertical-align: top; margin-left: 2px; }
.header-note { padding-left: 18px; border-left: 1px solid var(--ink); font-size: 10px; }
.site-header nav { margin-left: auto; display: flex; gap: 25px; font-size: 11px; font-weight: 700; font-family: var(--disp); }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pill {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border: 1px solid var(--ink); border-radius: 999px; text-decoration: none;
  font-size: 12px; font-weight: 800; white-space: nowrap; transition: background-color .2s, color .2s;
}
.pill:hover { background: var(--ink); color: var(--lime); }
.pill--ghost { background: transparent; cursor: pointer; font-family: var(--ko); }
.site-header nav + .pill--ghost { margin-left: 0; }

/* ------------------------------------------------ buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 24px; text-decoration: none; white-space: nowrap;
  font-weight: 900; font-size: 16px; letter-spacing: -0.03em;
  border: 1.5px solid var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s;
}
.btn--lime { background: var(--lime); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.btn--lime:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn--lime:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn--kakao { background: #fee500; color: #191919; box-shadow: 5px 5px 0 var(--ink); }
.btn--kakao:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn--kakao:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn--line { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--line:hover { background: var(--paper); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }

/* ------------------------------------------------ hero */
.hero {
  display: grid; grid-template-columns: 1.07fr 1fr;
  min-height: max(660px, calc(100svh - var(--head-h)));
  border-bottom: 1px solid var(--ink);
}
.hero-copy {
  background: var(--blue); color: var(--paper);
  padding: 34px 7% 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.hero-top { display: flex; justify-content: space-between; gap: 16px; }
.display {
  margin: 0; font-family: var(--disp); font-weight: 950;
  font-size: clamp(84px, 10.2vw, 172px); line-height: .8; letter-spacing: -.075em;
}
.display span { display: block; }
.hero h1 {
  margin: 30px 0 14px; font-weight: 900; font-size: clamp(26px, 2.5vw, 40px);
  line-height: 1.22; letter-spacing: -0.045em;
}
.hero-lead { margin: 0; font-size: 15px; opacity: .86; }

.hero-price { border-top: 1px solid rgba(245, 242, 233, .4); padding-top: 18px; }
.hero-price__label { margin: 0 0 6px; opacity: .8; }
.hero-price__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 0; }
.hero-price__row s { font-family: var(--mono); font-weight: 700; font-size: 17px; opacity: .6; text-decoration-thickness: 2px; }
.hero-price__row strong {
  font-family: var(--disp); font-weight: 950; color: var(--lime);
  font-size: clamp(60px, 6vw, 96px); line-height: .9; letter-spacing: -.07em;
}
.hero-price__row strong small { font-family: var(--ko); font-size: .3em; font-weight: 900; letter-spacing: -0.02em; margin-left: 6px; }
.off {
  align-self: center; display: inline-block; padding: 5px 9px; transform: rotate(-5deg);
  background: var(--pink); color: var(--ink); border: 1px solid var(--ink);
  font-family: var(--mono); font-weight: 700; font-size: 14px;
}
.note { margin: 10px 0 22px; font-size: 12px; opacity: .75; }

.hero-art {
  margin: 0; position: relative; overflow: hidden; background: var(--lime);
  display: grid; place-items: center; padding: 70px 6% 80px;
}
.stage { display: flex; align-items: center; justify-content: center; width: 100%; }
.phone {
  margin: 0; flex: 0 0 auto; width: clamp(130px, 13vw, 210px); aspect-ratio: 768 / 1376;
  background: #111; border: 1.5px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); overflow: hidden;
}
.phone--0 { transform: rotate(-7deg) translate(18px, 34px); z-index: 1; }
.phone--1 { width: clamp(170px, 17.5vw, 290px); transform: rotate(2deg); z-index: 3; }
.phone--2 { transform: rotate(8deg) translate(-18px, 30px); z-index: 2; }
.phone__video, .card__video { width: 100%; height: 100%; object-fit: cover; }
.sticker {
  position: absolute; right: 26px; top: 26px; z-index: 5; transform: rotate(9deg);
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--pink); border: 1px solid var(--ink);
  display: grid; place-content: center; text-align: center;
  font-weight: 900; font-size: 13px; line-height: 1.15;
}
.sticker b { font-family: var(--disp); font-weight: 950; font-size: 26px; letter-spacing: -.06em; }
.hero-art figcaption {
  position: absolute; left: 22px; right: 22px; bottom: 18px;
  display: flex; justify-content: space-between; gap: 12px;
}

/* ------------------------------------------------ marquee */
.marquee { overflow: hidden; background: var(--ink); color: var(--lime); border-bottom: 1px solid var(--ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee__track span {
  white-space: nowrap; padding: 14px 0;
  font-family: var(--disp); font-weight: 950; font-size: clamp(26px, 3.4vw, 50px); letter-spacing: -.05em;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.motion-off .marquee__track { animation-play-state: paused; }

/* ------------------------------------------------ sections */
.pain, .works, .steps, .faq { padding: clamp(64px, 8vw, 120px) var(--pad); }
.section-top { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid var(--ink); }
.h2 { margin: 26px 0 clamp(28px, 4vw, 52px); font-weight: 900; font-size: clamp(38px, 5.4vw, 84px); line-height: 1.02; letter-spacing: -0.06em; }
.big-num { display: block; font-family: var(--disp); font-weight: 950; font-size: clamp(64px, 7vw, 116px); line-height: .8; letter-spacing: -.075em; }

.pain__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.pain__grid li { padding: clamp(22px, 2.6vw, 36px); border-right: 1px solid var(--ink); display: flex; flex-direction: column; gap: 14px; min-height: 340px; }
.pain__grid li:last-child { border-right: 0; }
.pain__grid h3 { margin-top: auto; font-weight: 900; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; letter-spacing: -0.05em; }
.pain__grid p { margin: 0; font-size: 15px; }
.c-pink { background: var(--pink); }
.c-lime { background: var(--lime); }
.c-orange { background: var(--orange); }

/* works */
.works { padding-bottom: clamp(100px, 10vw, 160px); }
.works__title {
  margin: 14px 0 clamp(28px, 4vw, 56px);
  font-family: var(--disp); font-weight: 950; font-size: clamp(110px, 21vw, 360px);
  line-height: .78; letter-spacing: -.08em;
}
.works__title sup {
  font-family: var(--mono); font-weight: 700; font-size: .1em; letter-spacing: 0;
  color: var(--blue); vertical-align: top; position: relative; top: .35em; margin-left: .15em;
}
.works__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 22px);
}
.works__grid li { --sh: var(--blue); }
.works__grid li:nth-child(4n+2) { --sh: var(--pink); }
.works__grid li:nth-child(4n+3) { --sh: var(--orange); }
.works__grid li:nth-child(4n+4) { --sh: var(--lime); }
.works__grid li:nth-child(5n+2), .works__grid li:nth-child(5n+4) { transform: translateY(64px); }
.card {
  position: relative; display: block; width: 100%; padding: 0; cursor: zoom-in;
  aspect-ratio: 768 / 1376; overflow: hidden; background: #111;
  border: 1.5px solid var(--ink); box-shadow: 0 0 0 var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover, .card:focus-visible { transform: translate(-5px, -5px); box-shadow: 10px 10px 0 var(--sh); }
.card__no {
  position: absolute; left: 0; top: 0; z-index: 2;
  padding: 4px 7px; background: var(--paper); color: var(--ink);
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
}
.card__dur {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  padding: 2px 6px; background: var(--ink); color: var(--paper);
}

/* spec */
.spec { background: var(--blue); color: var(--paper); padding: clamp(64px, 8vw, 120px) var(--pad); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.spec .section-top { border-top-color: var(--paper); }
.spec__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.spec__item { border-top: 2px solid var(--paper); padding-top: 18px; }
.spec__k { color: var(--lime); font-size: 13px; }
.spec__item h3 { margin: 10px 0 10px; font-weight: 900; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.05em; line-height: 1.2; }
.spec__item p { margin: 0; font-size: 15px; opacity: .88; }

/* steps */
.steps__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); }
.steps__grid li { padding: clamp(20px, 2.4vw, 32px); border-right: 1px solid var(--ink); background: var(--paper); transition: background-color .2s; }
.steps__grid li:last-child { border-right: 0; }
.steps__grid li:hover { background: var(--lime); }
.steps__grid .big-num { color: var(--blue); }
.steps__grid h3 { margin: 22px 0 8px; font-weight: 900; font-size: 24px; letter-spacing: -0.05em; }
.steps__grid p { margin: 0; font-size: 15px; }

/* faq */
.faq details { border-bottom: 1px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 22px 52px 22px 0;
  font-weight: 900; font-size: clamp(19px, 1.8vw, 26px); letter-spacing: -0.05em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--disp); font-weight: 950; font-size: 34px; line-height: 1; transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--blue); }
.faq details p { margin: 0 0 24px; max-width: 46em; }
.faq details a { text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* closing */
.closing { display: grid; grid-template-columns: 1.07fr 1fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.closing__copy { background: var(--ink); color: var(--paper); padding: 34px 7% 48px; display: flex; flex-direction: column; gap: 22px; }
.display--closing { font-size: clamp(70px, 8.6vw, 150px); margin-top: 18px; }
.closing__ko { margin: 0; font-weight: 900; font-size: clamp(24px, 2.4vw, 38px); letter-spacing: -0.05em; }
.closing .hero-price__row s { color: var(--paper); }
.closing .note { margin: -8px 0 4px; }
.closing__art { background: var(--pink); display: grid; place-items: center; padding: 70px 6%; overflow: hidden; }

/* footer */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding: 20px 3.2%; background: var(--paper);
}
.foot a { text-decoration: none; }

.mbar { display: none; }

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  background: var(--blue); color: var(--paper); padding: 56px 12px 48px;
}
.lb[hidden] { display: none; }
.lb__stage { height: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; }
.lb__video {
  height: 100%; max-height: 100%; width: auto; max-width: 100%; aspect-ratio: 768 / 1376;
  background: #000; object-fit: contain; border: 1.5px solid var(--ink); box-shadow: 12px 12px 0 var(--lime);
}
.lb__btn { border: 0; background: transparent; cursor: pointer; width: 54px; height: 54px; font-family: var(--disp); font-weight: 950; font-size: 26px; color: inherit; }
.lb__btn:hover { color: var(--lime); }
.lb__close { position: absolute; top: 4px; right: 8px; }
.lb__sound {
  position: absolute; top: 12px; left: 16px; height: 34px; padding: 0 14px; cursor: pointer;
  border: 1.5px solid var(--ink); background: var(--lime); color: var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: .02em; box-shadow: 4px 4px 0 var(--ink);
}
.lb__sound[aria-pressed="false"] { background: var(--paper); }
.lb__sound:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.lb__count { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; font-size: 12px; }
body.is-locked { overflow: hidden; }

/* ------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .works__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .works__grid li:nth-child(5n+2), .works__grid li:nth-child(5n+4) { transform: none; }
  .works__grid li:nth-child(4n+2), .works__grid li:nth-child(4n+4) { transform: translateY(56px); }
  .steps__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid li:nth-child(2) { border-right: 0; }
  .steps__grid li:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
}
@media (max-width: 960px) {
  .site-header nav { display: none; }
  .site-header .motion-toggle { margin-left: auto; }
  .hero, .closing { grid-template-columns: 1fr; }
  .hero-art { min-height: 520px; order: -1; }
  .closing__art { min-height: 520px; }
  .pain__grid, .spec__grid { grid-template-columns: 1fr; }
  .pain__grid li { border-right: 0; border-bottom: 1px solid var(--ink); min-height: 0; }
  .pain__grid li:last-child { border-bottom: 0; }
  .pain__grid h3 { margin-top: 18px; }
  .works__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .works__grid li:nth-child(4n+2), .works__grid li:nth-child(4n+4) { transform: none; }
  .works__grid li:nth-child(3n+2) { transform: translateY(48px); }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .site-header .pill:not(.motion-toggle) { display: none; }
  .motion-toggle { margin-left: auto; height: 30px; font-size: 11px; padding: 0 10px; }
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--ink); color: var(--paper); border-top: 1px solid var(--ink);
  }
  .mbar__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; line-height: 1.15; }
  .mbar__price s { font-family: var(--mono); font-weight: 700; font-size: 12px; opacity: .55; }
  .mbar__price strong { font-family: var(--disp); font-weight: 950; font-size: 24px; color: var(--lime); letter-spacing: -.06em; }
  .mbar__price span { font-size: 11px; opacity: .75; }
  .lb { grid-template-columns: 1fr; padding: 56px 16px 52px; }
  .lb__video { width: 100%; height: auto; max-height: 100%; }
  .lb__prev, .lb__next { position: absolute; bottom: 2px; }
  .lb__prev { left: 6px; }
  .lb__next { right: 6px; }
}
@media (max-width: 560px) {
  :root { --pad: 5%; --head-h: 56px; }
  body { font-size: 15px; }
  .logo { font-size: 25px; }
  .header-note { display: none; }
  .hero-copy { padding: 26px 6% 32px; }
  .hero-top { font-size: 10px; }
  .hero-art { min-height: 470px; padding: 60px 4% 70px; }
  .phone { width: 112px; box-shadow: 7px 7px 0 var(--ink); }
  .phone--1 { width: 148px; }
  .sticker { width: 92px; height: 92px; right: 14px; top: 14px; font-size: 11px; }
  .sticker b { font-size: 21px; }
  .hero-art figcaption { font-size: 9px; }
  .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .works__grid li:nth-child(3n+2) { transform: none; }
  .works__grid li:nth-child(2n) { transform: translateY(40px); }
  .steps__grid { grid-template-columns: 1fr; }
  .steps__grid li { border-right: 0; border-bottom: 1px solid var(--ink); }
  .steps__grid li:last-child { border-bottom: 0; }
  .cta-row .btn { flex: 1 1 100%; }
  .closing__copy { padding: 26px 6% 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
