/* ─── Fonts ─────────────────────────────────── */
@font-face { font-family:'Paperlogy'; font-weight:700; src:url('../../mbti/shared/fonts/Paperlogy-7Bold.woff2') format('woff2'); }
@font-face { font-family:'Paperlogy'; font-weight:800; src:url('../../mbti/shared/fonts/Paperlogy-8ExtraBold.woff2') format('woff2'); }
@font-face { font-family:'Paperlogy'; font-weight:900; src:url('../../mbti/shared/fonts/Paperlogy-9Black.woff2') format('woff2'); }

/* ─── Reset ──────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }
html { -webkit-text-size-adjust:100%; color-scheme:only dark; forced-color-adjust:none }
:root { color-scheme:only dark }
body {
  font-family:'Pretendard Variable', -apple-system, BlinkMacSystemFont, sans-serif;
  background:#000;
  color:var(--text);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg { display:block; max-width:100% }
a { text-decoration:none; color:inherit }
button { background:none; border:none; cursor:pointer; font:inherit; color:inherit }

/* ─── Tokens ──────────────────────────────────── */
:root {
  --bg-deep:        #000;
  --page-w:    375px;
}

/* ─── Page shell ─────────────────────────────── */
.page-wrap {
  max-width:var(--page-w);
  margin:0 auto;
  min-height:100dvh;
  background:var(--bg-deep);
  position:relative;
}

/* ─── Status Bar ─────────────────────────────── */
.status-bar {
  height:59px;
  display:flex; align-items:flex-end; justify-content:space-between;
  padding:0 22px 10px;
  background:var(--bg-deep);
  color:var(--text);
  position:relative;
}
.status-bar__island {
  position:absolute;
  top:10px; left:50%; transform:translateX(-50%);
  width:126px; height:34px;
  background:#000;
  border-radius:20px;
}
.status-bar__time { font-family:var(--f-display); font-weight:700; font-size:15px; letter-spacing:.01em }
.status-bar__icons { display:flex; align-items:center; gap:5px }

/* ─── App Bar ────────────────────────────────── */
.app-bar {
  position:fixed; top:0; left:50%;
  transform:translateX(-50%);
  width:100%; max-width:var(--page-w);
  height:56px;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 8px;
  z-index:200;
}
.app-bar__btn {
  width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  color:var(--text);
}

/* ─── Main offset ───────────────────────────── */
#main { padding-top:56px; }

/* ─── Hero ───────────────────────────────────── */
.hero {
  background:var(--bg-deep);
  overflow:hidden;
  position:relative;
}
.hero__shoe-wrap {
  display:flex; justify-content:center;
  padding:20px var(--pad) 0;
  position:relative;
}
.hero__shoe {
  width:140px; height:140px;
  object-fit:cover;
  border-radius:var(--r-card);
  position:relative; z-index:1;
  animation:float 4s ease-in-out infinite;
}
@keyframes float { 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-8px) } }
.hero__text {
  text-align:center;
  padding:24px var(--pad) 40px;
}
.hero__logo {
  display:flex; align-items:center; justify-content:center;
}
.hero__logo-img {
  height:36px;
  width:auto;
}
.hero__tagline {
  font-size:13px;
  color:var(--text-lo);
  margin-top:10px;
  letter-spacing:-.01em;
  word-break:keep-all;
}

/* ─── Countdown ──────────────────────────────── */
.countdown-section {
  padding:0 var(--pad) 64px;
}
.countdown {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:6px;
}
.countdown__card {
  background:var(--surface-2);
  border-radius:12px;
  display:flex; flex-direction:column; align-items:center;
  padding:20px 8px 16px;
}
.countdown__num {
  font-family:var(--f-display);
  font-weight:800;
  font-size:32px;
  line-height:1;
  color:var(--text);
  letter-spacing:-.02em;
}
.countdown__unit {
  font-size:11px; font-weight:600;
  letter-spacing:.12em; text-transform:uppercase;
  color:var(--text-lo);
  margin-top:8px;
}
.countdown__note {
  text-align:center;
  font-size:12px; color:var(--text-lo);
  margin-top:16px; letter-spacing:.01em;
}

/* ─── Pain Section ───────────────────────────── */
.pain-section {
  display:flex;
  flex-direction:column;
  gap:40px;
  padding:64px 20px 0;
  background:linear-gradient(to bottom, #1a1a1a 0%, #000 100%);
}
.pain__qa-group {
  display:flex;
  flex-direction:column;
  gap:20px;
  width:100%;
}
.pain__qa {
  display:flex; flex-direction:column; align-items:center;
}
.pain__qa--left  { align-self:flex-start; }
.pain__qa--right { align-self:flex-end; }
.pain__balloon {
  display:flex; flex-direction:column; align-items:center;
}
.pain__bubble {
  height:40px;
  display:flex; align-items:center;
  padding:12px 16px;
  border-radius:999px;
  font-size:14px; font-weight:500;
  white-space:nowrap;
}
.pain__bubble--dark  { background:#f5f7fa; color:#0e0e0e; font-weight:700; }
.pain__bubble--neon-green { background:var(--neon-green); color:#0e0e0e; font-weight:700; }
.pain__tail { width:12px; height:12px; flex-shrink:0; }
.pain__mascot {
  width:96px; height:96px;
  object-fit:contain;
}
.pain__heading {
  text-align:center;
  font-family:var(--f-display);
  font-weight:800;
  font-size:22px;
  line-height:1.4;
  letter-spacing:-.02em;
  color:var(--text);
  word-break:keep-all;
  width:100%;
}
.pain__qa-group {
  padding-bottom:40px;
}

/* ─── Solution Section ───────────────────────── */
.solution-section {
  padding:64px 20px 0;
}
.solution__card {
  background:#55d909;
  border-radius:12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding-top:40px;
  overflow:hidden;
}
.solution__title {
  font-family:var(--f-display);
  font-weight:800;
  font-size:22px;
  line-height:1.35;
  letter-spacing:-.02em;
  color:#0e0e0e;
  text-align:center;
  word-break:keep-all;
}
.solution__img-wrap {
  position:relative;
  width:335px;
  height:234px;
  overflow:hidden;
}
.solution__marquee {
  position:absolute;
  top:50%;
  transform:translateY(calc(-50% - 26px));
  left:0;
  width:100%;
  z-index:1;
}
.solution__track {
  display:flex;
  gap:6px;
  width:max-content;
  animation:sol-marquee 12s linear infinite;
}
.solution__product {
  width:52px;
  height:52px;
  border-radius:10px;
  object-fit:cover;
  background:#fff;
  flex-shrink:0;
}
.solution__app-icon {
  position:absolute;
  top:34px;
  left:50%;
  transform:translateX(-50%);
  width:53px;
  height:143px;
  background:#fefefe;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  z-index:2;
}
.solution__app-icon img { width:100%; }
.solution__phone {
  position:absolute;
  width:107%;
  height:115%;
  top:-3.7%;
  left:-1.8%;
  z-index:3;
  pointer-events:none;
}
@keyframes sol-marquee {
  from { transform:translateX(0) }
  to   { transform:translateX(-50%) }
}

/* ─── Feature Sections ───────────────────────── */
/* Figma: conts = flex-col, gap 16px, px 20px, 섹션 간격 56px */
.feature-section {
  background:var(--bg-deep);
  padding:64px var(--pad) 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
}
.feature-title {
  font-family:var(--f-body);
  font-weight:700;
  font-size:22px;
  line-height:1.4;
  color:var(--text);
  text-align:center;
  word-break:keep-all;
}
.feature-desc {
  font-size:14px;
  font-weight:400;
  line-height:1.7;
  color:var(--text-mid);
  text-align:center;
  word-break:keep-all;
}
.feature-badge {
  display:inline-flex; align-items:center; justify-content:center;
  width:64px; height:24px;
  border-radius:var(--r-full);
  background:var(--neon-green);
  color:#000;
  font-weight:800; font-size:11px; line-height:1.5;
  white-space:nowrap;
}

/* 목업 미리보기 — 피그마 `img` 프레임(335x250)과 1:1 대응.
   내부 UI는 절대 마크업으로 재현하지 않는다. export 이미지 한 장만 넣는다. */
.feat-preview {
  width:335px;
  max-width:100%;
  aspect-ratio:335 / 250;
  border-radius:var(--r-card);
  background:var(--surface-2);
  overflow:hidden;
}
.feat-preview__img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* ─── Hashtag CTA ────────────────────────────── */
.hashtag-section {
  padding:64px 0 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:40px;
}
.hashtag__logo {
  width:32px;
  height:auto;
}
.hashtag__title {
  font-family:var(--f-body);
  font-weight:700;
  font-size:24px;
  line-height:1.4;
  color:var(--text);
  text-align:center;
  word-break:keep-all;
}
.hashtag__rows {
  display:flex;
  flex-direction:column;
  gap:20px;
  width:100%;
  overflow:hidden;
}
.hashtag__row { overflow:hidden; }
.hashtag__track {
  display:flex;
  gap:24px;
  width:max-content;
  font-family:var(--f-body);
  font-weight:900;
  font-size:40px;
  letter-spacing:-.8px;
  white-space:nowrap;
  line-height:1.2;
}
.hashtag__track--fill    { color:#e5e5e5; }
.hashtag__track--outline {
  color:#000000;
  text-shadow:
    -1.5px -1.5px 0 #e5e5e5,
     1.5px -1.5px 0 #e5e5e5,
    -1.5px  1.5px 0 #e5e5e5,
     1.5px  1.5px 0 #e5e5e5,
       0px -1.5px 0 #e5e5e5,
       0px  1.5px 0 #e5e5e5,
    -1.5px    0px 0 #e5e5e5,
     1.5px    0px 0 #e5e5e5;
}
.hashtag__track--neon-green   { color:#b6ff3d; }
.hashtag__track--ltr { animation:ht-ltr 16s linear infinite; }
.hashtag__track--rtl { animation:ht-rtl 16s linear infinite; }
@keyframes ht-ltr {
  from { transform:translateX(0) }
  to   { transform:translateX(-50%) }
}
@keyframes ht-rtl {
  from { transform:translateX(-50%) }
  to   { transform:translateX(0) }
}

/* ─── Footer ─────────────────────────────────── */
.footer {
  background:var(--bg-deep);
  padding:64px var(--pad);
  display:flex; flex-direction:column; align-items:center;
  gap:24px;
  text-align:center;
}
.footer__logo {
  display:flex; align-items:center;
}
.footer__logo-img {
  height:18px;
  width:auto;
}
.footer__social {
  display:flex; gap:16px;
  color:#6e6e6e;
}
.footer__social a {
  display:flex; align-items:center; justify-content:center;
  width:40px; height:40px;
  color:#6e6e6e;
}
.footer__social a svg { width:40px; height:40px; }
.footer__copy {
  font-size:12px; color:#6e6e6e;
}

/* a11y: 푸터 인라인 링크 터치 타깃 확보 (시각 불변) */
.footer a { position:relative; padding:12px 6px; margin:-12px -6px; }

/* Responsive web: keep the original 375px design, expand at larger widths.
   Overall content is capped at max-width 1280 across every wide breakpoint. */
:root { --banner-content:1120px; }
@media (min-width:376px) {
  .page-wrap { max-width:none; width:100%; }
  .app-bar { max-width:var(--banner-content); }
  .countdown { max-width:420px; margin-inline:auto; }
  .pain__qa-group { max-width:335px; margin-inline:auto; }
  .solution__card { max-width:670px; margin-inline:auto; }
}
@media (min-width:768px) {
  .app-bar { height:72px; padding-inline:24px; }
  #main { padding-top:72px; }
  .hero__shoe-wrap { padding-top:48px; }
  .hero__text { padding:32px 32px 48px; }
  .hero__logo-img { height:52px; }
  .hero__tagline { font-size:17px; margin-top:20px; color:var(--text-mid); }
  .countdown-section { padding:0 32px 64px; }
  .countdown { max-width:480px; gap:12px; }
  .countdown__card { padding:24px 12px; }
  .countdown__num { font-size:40px; }
  .pain-section { padding:64px 32px 0; gap:48px; }
  .pain__heading,.solution__title,.feature-title,.hashtag__title { font-size:36px; line-height:1.35; letter-spacing:-.03em; }
  .pain__qa-group { max-width:760px; flex-direction:row; justify-content:space-between; align-items:flex-start; gap:24px; padding-bottom:40px; }
  .pain__qa--right { margin-top:64px; }
  .solution-section { padding:64px 32px 0; }
  .solution__card { max-width:960px; padding-top:40px; gap:32px; border-radius:24px; }
  .solution__img-wrap { width:502.5px; height:351px; }
  .solution__app-icon { top:51px; width:79.5px; height:214.5px; padding:18px; }
  .solution__marquee { transform:translateY(calc(-50% - 39px)); }
  .solution__product { width:78px; height:78px; }
  .solution__track { gap:9px; }
  .feature-section { max-width:var(--banner-content); margin-inline:auto; padding:64px 32px 0; gap:24px; }
  .feature-badge { width:auto; min-width:80px; height:30px; padding-inline:16px; font-size:13px; }
  .feature-desc { max-width:640px; font-size:18px; line-height:1.75; }
  .feat-preview { width:670px; border-radius:24px; margin-top:8px; }
  .hashtag-section { padding-top:64px; gap:48px; }
  .hashtag__rows { max-width:var(--banner-content); gap:24px; }
  .hashtag__track { font-size:64px; }
  .footer { padding:64px 32px; }
}
@media (min-width:1200px) {
  .hero__text { padding-bottom:48px; }
  .hero__logo-img { height:60px; }
  .pain__heading,.solution__title,.feature-title,.hashtag__title { font-size:44px; }
  .feature-desc { font-size:20px; }
  .hashtag__track { font-size:80px; }
}

/* ─── Wide desktop (1440+) — mid-scale bump ───────────────────── */
@media (min-width:1440px) {
  :root { --banner-content:1280px; }
  .app-bar { height:80px; padding-inline:40px; }
  #main { padding-top:80px; }
  .hero__shoe-wrap { padding-top:64px; }
  .hero__shoe { width:180px; height:180px; }
  .hero__text { padding:40px 40px 56px; }
  .hero__logo-img { height:68px; }
  .hero__tagline { font-size:19px; margin-top:24px; }
  .countdown-section { padding:0 40px 80px; }
  .countdown { max-width:560px; gap:16px; }
  .countdown__card { padding:28px 16px 24px; border-radius:16px; }
  .countdown__num { font-size:52px; }
  .countdown__unit { font-size:12px; margin-top:12px; }
  .pain-section { padding:96px 40px 0; gap:56px; }
  .pain__qa-group { max-width:960px; gap:32px; padding-bottom:48px; }
  .pain__mascot { width:120px; height:120px; }
  .pain__bubble { height:48px; font-size:16px; padding:14px 20px; }
  .pain__heading,.solution__title,.feature-title,.hashtag__title {
    font-size:52px; line-height:1.3;
  }
  .solution-section { padding:96px 40px 0; }
  .solution__card { max-width:1120px; padding-top:56px; gap:40px; border-radius:28px; }
  .solution__img-wrap { width:620px; height:433px; }
  .solution__app-icon { top:64px; width:98px; height:264px; padding:22px; }
  .solution__marquee { transform:translateY(calc(-50% - 48px)); }
  .solution__product { width:96px; height:96px; border-radius:14px; }
  .solution__track { gap:12px; }
  .feature-section { padding:96px 40px 0; gap:28px; }
  .feature-badge { min-width:96px; height:34px; padding-inline:18px; font-size:14px; }
  .feature-desc { max-width:720px; font-size:22px; line-height:1.7; }
  .feat-preview { width:800px; border-radius:28px; margin-top:12px; }
  .hashtag-section { padding-top:96px; gap:56px; }
  .hashtag__rows { gap:28px; }
  .hashtag__track { font-size:96px; letter-spacing:-1.2px; gap:32px; }
  .footer { padding:96px 40px; gap:32px; }
  .footer__logo-img { height:24px; }
  .footer__copy { font-size:13px; }
}

/* ─── Full HD (1920+) — typography/paddings scale only, layout stays capped at 1280 ─── */
@media (min-width:1920px) {
  /* --banner-content stays 1280 from the 1440+ block — do NOT grow past 1280. */
  .app-bar { height:88px; padding-inline:56px; }
  #main { padding-top:88px; }
  .hero__shoe-wrap { padding-top:80px; }
  .hero__shoe { width:220px; height:220px; }
  .hero__text { padding:48px 40px 72px; }
  .hero__logo-img { height:80px; }
  .hero__tagline { font-size:22px; margin-top:28px; }
  .countdown-section { padding:0 40px 96px; }
  .countdown { max-width:640px; gap:20px; }
  .countdown__card { padding:32px 20px 28px; border-radius:20px; }
  .countdown__num { font-size:64px; }
  .countdown__unit { font-size:13px; letter-spacing:.16em; margin-top:14px; }
  .pain-section { padding:120px 40px 0; gap:64px; }
  .pain__qa-group { max-width:1080px; gap:40px; padding-bottom:56px; }
  .pain__mascot { width:140px; height:140px; }
  .pain__bubble { height:52px; font-size:18px; padding:16px 24px; }
  .pain__heading,.solution__title,.feature-title,.hashtag__title {
    font-size:64px; line-height:1.25;
  }
  .solution-section { padding:120px 40px 0; }
  /* Container widths inherit 1440+ (solution card 1120, img 620×433) — no upsize. */
  .feature-section { padding:120px 40px 0; gap:32px; }
  .feature-badge { min-width:108px; height:38px; padding-inline:20px; font-size:15px; }
  .feature-desc { max-width:820px; font-size:24px; line-height:1.75; }
  .feat-preview { border-radius:32px; margin-top:16px; }
  .hashtag-section { padding-top:120px; gap:64px; }
  .hashtag__rows { gap:32px; }
  .hashtag__track { font-size:120px; letter-spacing:-1.6px; gap:40px; }
  .hashtag__track--outline {
    text-shadow:
      -2px -2px 0 #e5e5e5, 2px -2px 0 #e5e5e5,
      -2px  2px 0 #e5e5e5, 2px  2px 0 #e5e5e5,
       0px -2px 0 #e5e5e5, 0px  2px 0 #e5e5e5,
      -2px  0px 0 #e5e5e5, 2px  0px 0 #e5e5e5;
  }
  .footer { padding:120px 40px; gap:36px; }
  .footer__logo-img { height:28px; }
  .footer__copy { font-size:14px; }
}
@media (max-width:374px) {
  .pain__bubble { white-space:normal; height:auto; min-height:40px; text-align:center; }
  .solution__img-wrap { max-width:100%; }
}
@media (prefers-reduced-motion:reduce) {
  .hero__shoe,.solution__track,.hashtag__track { animation:none; }
}
