/* ==========================================================================
   BigPin — shared stylesheet (index.html, mypage.html)
   Design tokens pulled directly from the BigPin Figma file (Pretendard font,
   exact colors / type scale / radii extracted via Figma Dev Mode).
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  /* brand */
  --blue: #0084fe;
  --blue-dark: #0068cc;
  --blue-soft: #e5f3ff;
  --logo-grad-start: #303d4c;
  --logo-grad-end: #004bac;
  --profile-grad-start: #090f0f;
  --profile-grad-end: #001e44;
  --purple: #b027ce;
  --purple-soft: #fcf1fd;
  --green: #16a34a;

  /* dark surfaces */
  --navy: #191f28;      /* footer */
  --navy-dark: #0c0f14; /* diagonal marquee section */

  /* neutrals */
  --bg: #ffffff;
  --bg-alt: #f3f4f6;
  --border: #eff1f5;
  --border-input: #d0d6dd;
  --border-faq: #eceef1;
  --text: #080d0f;
  --text-heading: #191f28;
  --text-muted: #868a93;
  --text-muted2: #687685;
  --text-faint: #99a1af;
  --footer-link: #b0b8c1;
  --footer-muted: #8b95a1;
  --white: #ffffff;

  /* layout */
  --header-h: 56px;
  --bottom-nav-h: 76px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  padding-top: var(--header-h);
  padding-bottom: var(--bottom-nav-h);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.num { font-family: 'Pretendard', sans-serif; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: var(--bg-alt); color: #768089; font-weight: 600; border-radius: var(--radius-sm); }
.btn-purple { background: var(--purple); color: white; }
.btn-disabled { background: var(--bg-alt); color: var(--text-faint); border: 1px solid var(--border-input); cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-sm { height: 32px; font-size: 14px; font-weight: 500; padding: 0 16px; border-radius: var(--radius-sm); }

/* ---------------- Logo ---------------- */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--logo-grad-start) 64%, var(--logo-grad-end) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}
.logo-mark span {
  color: white;
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: -0.02em;
}
.logo-mark span b, .app-icon span b { color: #1895ff; font-weight: 700; }
.logo-word {
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--logo-grad-start);
}
.logo-word b { color: var(--blue); font-weight: 700; }

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--logo-grad-start) 64%, var(--logo-grad-end) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px -16px rgba(24, 89, 255, 0.45);
  margin: 0 auto;
}
.app-icon span {
  color: white;
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.05;
}
.app-icon span b { color: #1895ff; font-weight: 700; }
.app-icon-lg { width: 144.345px; height: 144.345px; border-radius: 30.93px; }
.app-icon-lg span { font-size: 44.883px; }
@media (min-width: 900px) {
  .app-icon-lg { width: 400.345px; height: 400.345px; border-radius: 85.788px; }
  .app-icon-lg span { font-size: 124.483px; }
}

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 40;
  display: flex;
  align-items: center;
}
.site-header .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
}

/* ---------------- Bottom nav (fixed, always visible) ---------------- */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--bottom-nav-h);
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 6.3px rgba(23,31,41,0.05);
}
.bottom-nav-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 500;
  width: 56px;
  padding-bottom: 11px;
}
.nav-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.nav-item.active { color: var(--blue); }
.nav-cta {
  flex: 1;
  max-width: 420px;
  align-self: flex-start;
  box-shadow: 0 10px 20px -8px rgba(0,132,254,0.5);
}

.icon { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 40px 0 32px;
  overflow: hidden;
}
/* Real Figma "watermark-web.png" ₩ 3D-icon accents behind the PC hero, positioned
   as % of the Figma section's own 1600x1000 design box (left/top from Figma's
   left/bottom px values), instead of invented blurred color blobs. */
.hero-wm-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-wm { position: absolute; height: auto; display: block; }
.hero-wm-1 { left: -7.79%; top: 46.29%; width: 50.34%; }
.hero-wm-2 { left: 2.71%; top: 0%; width: 17.99%; }
.hero-wm-3 { left: 38.90%; top: 27.70%; width: 11.90%; }
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-content { text-align: center; max-width: 560px; margin: 0 auto; }
.hero-logo-mark { margin: 0 auto 16px; }
.hero-content h1 {
  font-size: 27px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--text);
}
.hero-content h1 .accent { color: var(--blue); }
.hero-content p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}
.hero-visual { margin: 32px auto 0; max-width: 320px; position: relative; z-index: 1; }
.hero-visual img { max-width: 100%; }

/* ---------------- Mobile hero (literal Figma pixel replication) ----------------
   Design width = 390px (Figma mobile frame), design height (header end -> steps
   section start) = 1732px. Every child is positioned with left/top/width/height
   as percentages of those two axes, and font sizes in cqw (percent of the
   container's own inline width) so the whole block scales together exactly like
   the Figma frame, instead of being re-derived with independent flex spacing. */
.hero-mo {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 390 / 1732;
  container-type: inline-size;
  overflow: hidden;
}
.hero-mo-bar {
  position: absolute;
  left: 7.949%; top: 6.640%; width: 84.359%; height: 2.598%;
  background: var(--blue);
  border-radius: 4px;
}
.hero-mo-heading {
  position: absolute;
  left: 50%; top: 3.637%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 94%;
  text-align: center;
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 9.744cqw;
  line-height: 1.3;
  letter-spacing: -0.1385cqw;
}
.hero-mo-heading .l1 { margin: 0; white-space: nowrap; }
.hero-mo-heading .l1 .dark { color: var(--text); }
.hero-mo-heading .l1 .blue { color: var(--blue); }
.hero-mo-heading .l2 { margin: 0; color: #fff; white-space: nowrap; }
.hero-mo-ai {
  position: absolute;
  left: 7.949%; top: 13.164%; width: 84.103%; height: 18.938%;
  object-fit: contain;
}
.hero-mo-sub {
  position: absolute;
  left: 15.385%; top: 11.028%; width: 69.231%;
  text-align: center;
  margin: 0;
  font-size: 4.615cqw;
  line-height: 1.4;
  color: #37393e;
  z-index: 2;
}
.hero-mo-sub b { font-weight: 600; }
.hero-mo-cta {
  position: absolute;
  left: 23.077%; top: 31.639%; width: 53.380%; height: 3.233%;
  min-height: 40px;
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 4.103cqw;
  letter-spacing: -0.041cqw;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mo-cart {
  position: absolute;
  left: 50%; top: 46.562%;
  width: 17.72%; height: 3.992%;
  transform: translateX(-50%);
}
.hero-mo-cart img { width: 100%; height: 100%; display: block; }
.hero-mo-eq-heading {
  position: absolute;
  left: 13.333%; top: 52.858%; width: 73.590%;
  text-align: center;
}
.hero-mo-eq-heading h2 {
  margin: 0;
  font-size: 9.744cqw;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.1333cqw;
}
.hero-mo-eq-heading p {
  margin: 5.9cqw 0 0;
  font-size: 3.846cqw;
  line-height: 1.6;
  color: var(--text-muted);
}
.hero-mo-glow {
  position: absolute;
  left: 50%; top: 59.584%;
  width: 151.795%; height: 34.180%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,132,254,0.5) 0%, rgba(0,132,254,0.36) 45%, rgba(0,132,254,0.14) 62%, rgba(0,132,254,0) 78%);
  z-index: 0;
  pointer-events: none;
}
.hero-mo-rate {
  position: absolute;
  left: 8.974%; top: 65.531%; width: 82.051%; height: 25.173%;
  object-fit: contain;
  z-index: 1;
}
.hero-mo-fade {
  position: absolute;
  left: 0; top: 81.178%; width: 100%; height: 19.573%;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 50.15%);
  z-index: 2;
  pointer-events: none;
}

/* ---------------- Responsive image helpers ---------------- */
.only-pc { display: none !important; }
@media (min-width: 900px) {
  .only-mo { display: none !important; }
  .only-pc { display: block !important; }
}

/* ---------------- CTA strip (dark) ---------------- */
.cta-strip {
  background: #222b37;
  padding: 24px 20px;
  display: flex;
  justify-content: center;
}
.cta-strip .btn { display: inline-flex; align-items: center; gap: 8px; }
.cta-strip .cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 13px;
  background: rgba(255,255,255,0.22);
  font-size: 16px;
  line-height: 1;
}

/* ---------------- Feature section ---------------- */
.section { padding: 48px 0; }
.section-head { text-align: center; max-width: 480px; margin: 0 auto 32px; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.45;
  margin: 0 0 10px;
  color: var(--text);
}
.section-head p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ---------------- Equation section (real text, no flattened image) ----------------
   Desktop-only: on mobile this same content (cart icon + "클릭 한번이면 끝!" heading +
   subtext + coupang rate mockup) is already rendered inside .hero-mo per the literal
   Figma mobile frame, so this whole section must stay hidden below 900px or the
   heading/subtext/icon render twice. */
.eq-section { display: none; position: relative; background: linear-gradient(180deg, #ffffff 0%, #eaf4ff 100%); overflow: hidden; padding: 56px 0; }
.eq-watermark {
  position: absolute;
  left: 0; right: 0; top: 1.25vw;
  display: flex;
  gap: 3.5vw;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0.2;
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 2.11vw;
  color: #303d4c;
  pointer-events: none;
}
.eq-watermark span b { color: var(--blue); font-weight: 700; }
.eq-wrap {
  display: grid;
  grid-template-areas: "badge" "heading" "sub" "row";
  justify-items: center;
  text-align: center;
  gap: 10px;
  position: relative;
}
.eq-cart-icon {
  grid-area: badge;
  width: 69px; height: 69px;
  margin-bottom: 6px;
  display: block;
}
.eq-wrap h2 { grid-area: heading; margin: 0; }
.eq-sub { grid-area: sub; font-size: 15px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.eq-wrap .equation { grid-area: row; margin: 24px 0 0; }
.eq-phone-visual { display: none; }
/* The BigPin + coupang = 💰 equation row only exists in the Figma design on the
   desktop breakpoint — the redesigned mobile hero/equation area does not show it. */
.equation { display: none; }

.equation {
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.equation .eq-icon {
  width: 61px; height: 61px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,0.25);
  flex-shrink: 0;
}
.equation .eq-icon.pin { background: linear-gradient(180deg, var(--logo-grad-start) 64%, var(--logo-grad-end) 100%); color: white; flex-direction: column; line-height: 1.15; font-size: 11.5px; }
.equation .eq-icon.pin b { display: block; color: #1895ff; font-weight: 700; }
.equation .eq-badge-img { height: 61px; width: auto; flex-shrink: 0; }
.equation .eq-sign { font-size: 23.3px; font-weight: 700; color: var(--text); }
.equation .eq-result { font-size: 56px; letter-spacing: -2px; display: inline-flex; }

/* phone illustration used only on desktop, showing the coupang app rate */
.eq-phone {
  width: 240px; height: 500px;
  border: 9px solid #fff;
  border-radius: 42px;
  box-shadow: 0 0 0 1.5px var(--border), 0 40px 70px -32px rgba(88,89,92,0.35);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.eq-phone-content { text-align: center; }
.coupang-word-img { display: block; height: 32px; width: auto; margin: 0 auto; }
.eq-phone-rate { margin-top: 10px; font-size: 13px; color: var(--text); }
.eq-phone-rate b { color: var(--blue); }

/* ---------------- Hero phone illustration (mobile only, real text + real coupang wordmark asset) ---------------- */
.hero-phone {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 280 / 400;
  margin: 0 auto;
  border: 9px solid #fff;
  border-radius: 40px;
  box-shadow: 0 0 0 1.5px var(--border), 0 30px 60px -30px rgba(88,89,92,0.35);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
.hero-phone .coupang-word-img { height: 35px; }
.hero-rate { display: flex; align-items: flex-end; gap: 6px; color: var(--blue); }
.hero-rate-label { font-size: 15px; font-weight: 700; line-height: 1.25; text-align: left; margin-bottom: 12px; }
.hero-rate-num { font-family: 'Pretendard', sans-serif; font-size: 165px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.hero-rate-num b { font-size: 74px; font-weight: 800; }

/* ---------------- Steps section (real text, no flattened image) ---------------- */
.steps-section { background: var(--blue); padding: 56px 0; }
.steps-wrap {
  display: grid;
  grid-template-areas: "heading" "visual" "list";
  gap: 28px;
}
.steps-heading { grid-area: heading; color: #fff; font-size: 27px; font-weight: 700; letter-spacing: -0.02em; text-align: center; margin: 0; }
.steps-visual { grid-area: visual; display: flex; justify-content: center; }
.steps-visual-inner { position: relative; max-width: 300px; width: 100%; }
.steps-visual-inner img { width: 100%; height: auto; display: block; }
.steps-click-badge {
  position: absolute;
  left: 59%; top: 85.9%;
  transform: translate(-50%, -50%);
  background: #080d0f;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: -0.24px;
  padding: 5px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.steps-click-badge::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -5px;
  width: 7px; height: 7px;
  background: #080d0f;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 1px;
}
.steps-list-wrap { grid-area: list; max-width: 420px; margin: 0 auto; width: 100%; }

.steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 20px;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 44px;
  position: relative;
  padding-bottom: 18px;
}
.step-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
}
.step-icon img { width: 22px; height: 22px; object-fit: contain; display: block; }
.step-icon.step-icon-full { background: transparent; }
.step-icon.step-icon-full img { width: 44px; height: 44px; }
.step-icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }
.step:not(:last-child) .step-icon::after {
  content: '';
  position: absolute;
  top: 44px; left: 50%;
  width: 2px; height: calc(100% - 30px);
  background: rgba(255,255,255,0.35);
  transform: translateX(-50%);
}
.step-body { padding-top: 4px; }
.step-body b { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: rgba(255,255,255,0.65); margin-bottom: 4px; }
.step-body span { font-size: 16px; font-weight: 700; color: #fff; }
.steps-note {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}
.steps-note p { margin: 0 0 8px; }
.steps-note p:last-child { margin-bottom: 0; }

/* ---------------- Proof / activity feed (real text) ---------------- */
.proof-section { padding: 56px 0; }
.proof-wrap {
  display: grid;
  grid-template-areas: "text" "cards";
  gap: 32px;
  align-items: center;
}
.proof-text-col { grid-area: text; text-align: center; }
.proof-cards-col { grid-area: cards; }
.money-bag-icon {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  display: block;
}
.proof-text-col h2 { margin: 0 0 10px; }
.proof-text-col p { margin: 0; font-size: 15px; color: var(--text-muted); }

.proof-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}
.proof-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 16px 20px -14px rgba(31,35,44,0.14);
}
.proof-card .badge {
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 2px solid #ee2b3c;
  color: #ee2b3c;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 13px;
}
.proof-card .proof-text { font-size: 14px; line-height: 1.5; color: var(--text-muted2); }
.proof-card .proof-text b { color: var(--text-heading); font-size: 15px; }
.proof-card .proof-amount {
  margin-left: auto;
  font-family: 'Pretendard', sans-serif;
  font-weight: 800;
  color: var(--text-heading);
  white-space: nowrap;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.proof-card .proof-amount .p-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 10px; font-weight: 800;
}
.proof-card .proof-amount b { color: var(--text-muted2); font-weight: 800; }

/* ---------------- Diagonal marquee (real rotated text, no image) ---------------- */
/* Full-bleed diagonal marquee band — gradient + rotation angle taken verbatim
   from Figma; font-size/gap scale with viewport width (vw) using the Figma
   frame's own pixel values as the ratio (390px design width on mobile,
   1600px on desktop) rather than a hand-picked fixed size. */
.diagonal-marquee {
  background: var(--navy-dark);
  position: relative;
  margin: 0;
  overflow: hidden;
  height: 61.79vw;
  display: flex;
  align-items: center;
}
.diagonal-marquee::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg, rgba(0,132,254,0.34) 0%, rgba(0,132,254,0.13) 34%),
    linear-gradient(200deg, rgba(6,8,12,0.72) 0%, rgba(7,12,18,0.58) 55%, rgba(0,132,254,0.85) 100%);
}
.diagonal-grid {
  position: relative;
  width: 200%;
  left: -50%;
  display: flex;
  flex-direction: column;
  gap: 4.36vw;
  transform: rotate(-27.37deg);
}
.diagonal-grid .d-row { display: flex; gap: 13.34vw; white-space: nowrap; }
.diagonal-grid .d-row span {
  font-family: 'Pretendard', sans-serif;
  font-size: 8.24vw;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.01em;
}
.diagonal-grid .d-row span b { color: var(--blue); font-weight: 700; }

/* ---------------- App download (real text, no image) ---------------- */
.app-download { text-align: center; padding: 56px 0; }
.app-download-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.app-download-text h2 { font-size: 26px; margin: 0; letter-spacing: -0.02em; }
.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}
.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 64px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 700;
  color: #191f28;
  background: #f3f4f6;
}
.store-btn img { width: 30px; height: 30px; display: block; }

/* ---------------- FAQ (dark section) ---------------- */
.faq-section { background: #222b37; }
.faq-section .section-head h2 { color: var(--white); }
.faq-section .section-head p { color: #e6e8eb; }
.faq-list {
  max-width: 620px;
  margin: 0 auto 0;
  border-top: 1px solid #687685;
}
.faq-item { border-bottom: 1px solid #687685; }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  color: var(--white);
}
.faq-q .plus {
  flex-shrink: 0;
  width: 20px; height: 20px;
  position: relative;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: '';
  position: absolute;
  background: #afb8c2;
  transition: transform 0.2s ease;
}
.faq-q .plus::before { top: 9px; left: 2px; width: 16px; height: 2px; }
.faq-q .plus::after { top: 2px; left: 9px; width: 2px; height: 16px; }
.faq-item.open .plus::after { transform: rotate(90deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-a { max-height: 240px; }
.faq-a p {
  font-size: 13px;
  line-height: 1.75;
  color: #afb8c2;
  margin: 0 4px 20px;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy);
  color: var(--footer-muted);
  padding: 40px 0;
}
.site-footer .logo-word { color: white; }
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 18px 0 20px;
  font-size: 13px;
}
.footer-links a { color: var(--footer-link); font-weight: 600; }
.footer-info {
  font-size: 13px;
  line-height: 1.7;
  color: var(--footer-muted);
}

/* ---------------- Mypage: profile card ---------------- */
.mypage-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 28px 0 18px;
  color: var(--text-heading);
}
.profile-card {
  background: linear-gradient(128deg, var(--profile-grad-start) 0%, var(--profile-grad-end) 80%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 18px;
  box-shadow: 0 16px 24px -18px rgba(0,0,0,0.4);
}
.profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.profile-id {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-id .avatar {
  background: var(--logo-grad-start);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.7);
  font-family: 'Pretendard', sans-serif;
  font-weight: 500;
  font-size: 14px;
}
.profile-id .label { font-size: 12px; color: #a2a3a3; }
.profile-id .name { font-size: 16px; font-weight: 700; }
.profile-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: flex; align-items: center; gap: 4px;
  background: var(--logo-grad-start);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
}
.icon-btn svg { width: 14px; height: 14px; }
.saved-label { font-size: 14px; color: #b3b6b6; margin-bottom: 6px; }
.saved-amount { font-family: 'Pretendard', sans-serif; font-size: 34px; font-weight: 700; }
.saved-hint { font-size: 13px; color: #b3b6b6; margin-top: 6px; }

.stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.stat-card.cash { border-color: var(--bg-alt); }
.stat-card.point { border-color: var(--purple-soft); }
.stat-card .stat-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: #262b34;
  margin-bottom: 10px;
}
.stat-card .stat-label .icon-circle {
  width: 32px; height: 32px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
.stat-card.cash .icon-circle { background: var(--blue-soft); color: var(--blue); }
.stat-card.point .icon-circle { background: var(--purple-soft); color: var(--purple); }
.stat-card .stat-label svg { width: 16px; height: 16px; }
.stat-card .stat-value { font-family: 'Pretendard', sans-serif; font-size: 20px; font-weight: 700; }
.stat-card .stat-pending { font-size: 11px; font-weight: 500; margin: 4px 0 14px; color: #8891a2; }
.stat-card .pending-chevron { color: #9ea5ae; margin-left: 4px; }
.stat-card .stat-pending b { font-weight: 700; }
.stat-card.cash .stat-value { color: var(--blue); }
.stat-card.cash .stat-pending b { color: var(--blue); }
.stat-card.point .stat-value { color: var(--purple); }
.stat-card.point .stat-pending b { color: var(--purple); }
.stat-card .btn { width: 100%; height: 44px; font-size: 14px; border-radius: 12px; }

.tabs {
  display: flex;
  background: var(--bg-alt);
  border-radius: 16px;
  padding: 4px;
  margin-bottom: 14px;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 500;
  color: #929dac;
  background: none;
  border: none;
}
.tab.active { background: white; color: var(--blue); box-shadow: 0 2px 6px rgba(0,0,0,0.06); }

.history-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 32px;
}
.history-panel .panel-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: #242424;
  margin-bottom: 24px;
}
.history-panel .panel-head svg { width: 15px; height: 15px; }
.history-empty {
  text-align: center;
  font-size: 14px;
  color: #a2acbc;
  padding: 24px 0;
}

.form-section { margin-bottom: 32px; }
.form-section h3 { font-size: 24px; font-weight: 700; margin: 0 0 16px; color: var(--text-heading); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 16px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.field input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-muted2);
  background: white;
}
.field input:disabled { background: var(--bg-alt); color: var(--text-muted2); }

/* ---------------- Auth modal ---------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(9, 15, 15, 0.55);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
  box-shadow: 0 24px 48px -12px rgba(9, 15, 15, 0.35);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border: none;
  background: var(--bg-alt);
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted2);
  cursor: pointer;
}
.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 4px;
  margin: 8px 0 24px;
}
.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  height: 40px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
}
.auth-tab.active { background: var(--white); color: var(--text-heading); box-shadow: 0 2px 6px rgba(9,15,15,0.08); }
.auth-form .field input { background: var(--white); }
.auth-msg { font-size: 13px; margin: -4px 0 12px; display: none; }
.auth-msg.show { display: block; }
.auth-error { color: #e0392f; }
.auth-success { color: var(--green); }

/* ---------------- Responsive: desktop >= 900px ---------------- */
@media (min-width: 900px) {
  :root { --header-h: 52px; }

  .wrap { padding: 0 40px; }

  .hero { padding: 64px 0 48px; }
  .hero .wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 56px;
    text-align: left;
  }
  .hero-content { text-align: left; max-width: 480px; margin: 0; flex-shrink: 0; }
  .hero-content h1 { font-size: 38.4px; }
  .hero-content p { font-size: 21.8px; }
  .hero-visual { flex: 1; max-width: 460px; margin: 0; }
  .rate-badge { padding: 40px; }
  .rate-badge .rate-num { font-size: 72px; }

  .section-head { max-width: 560px; }
  .section-head h2 { font-size: 38.4px; }
  .section-head p { font-size: 21.8px; }

  /* Equation section */
  .eq-section { display: block; padding: 80px 0; }
  .eq-wrap {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "phone badge" "phone heading" "phone sub" "phone row";
    text-align: left;
    justify-items: start;
    align-items: center;
    gap: 6px 56px;
  }
  .eq-wrap h2 { font-size: 38.4px; }
  .eq-sub { font-size: 18px; }
  .eq-phone-visual { grid-area: phone; display: flex; justify-content: center; }
  .eq-wrap .equation { display: flex; margin-top: 28px; justify-content: flex-start; gap: 16px; }
  .equation .eq-icon { width: 100px; height: 100px; border-radius: 30px; font-size: 18px; }
  .equation .eq-badge-img { height: 100px; }
  .equation .eq-sign { font-size: 38.4px; }
  .equation .eq-result { font-size: 92px; letter-spacing: -4px; }

  /* Steps section */
  .steps-section { padding: 96px 0; }
  .steps-wrap {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "heading visual" "list visual";
    align-items: center;
    gap: 8px 72px;
  }
  .steps-heading { text-align: left; font-size: 35.2px; }
  .steps-list-wrap { margin: 0; max-width: 420px; }
  .steps-visual img { max-width: 380px; }

  /* Proof section */
  .proof-section { padding: 80px 0; }
  .proof-wrap { grid-template-columns: 1fr 1fr; grid-template-areas: "cards text"; gap: 64px; }
  .proof-text-col { text-align: left; }
  .money-bag-icon { margin: 0 0 16px; }
  .proof-text-col h2 { font-size: 38.4px; }
  .proof-text-col p { font-size: 18px; }
  .proof-cards { max-width: 480px; margin: 0; }

  /* App download section */
  .app-download { text-align: left; padding: 96px 0; }
  .app-download-wrap { flex-direction: row-reverse; justify-content: center; gap: 96px; }
  .app-download-text { text-align: left; }
  .app-download-text h2 { font-size: 35.2px; }
  .store-buttons { flex-direction: row; gap: 10px; }
  .store-btn { height: auto; padding: 20px 24px; font-size: 20px; }

  /* Diagonal marquee — desktop scale (1600px Figma frame width) */
  .diagonal-marquee { height: 22.69vw; margin: 0; }
  .diagonal-grid { gap: 4.14vw; }
  .diagonal-grid .d-row { gap: 6.17vw; }
  .diagonal-grid .d-row span { font-size: 3.81vw; }

  .faq-list { max-width: 720px; }
  .faq-q { font-size: 20px; }
  .faq-a p { font-size: 15.7px; }

  .mypage-title { font-size: 33.6px; margin: 40px 0 24px; }
  .profile-card { padding: 36px; }
  .saved-amount { font-size: 46px; }
  .stat-cards { gap: 18px; }
  .form-section h3 { font-size: 33.6px; }

  .form-section { max-width: 620px; }
  .field input { height: 70px; border-radius: 11.2px; }
}
