/* ============ Variables ============ */
:root {
  --orange: #E8703A;
  --orange-dark: #d35f2c;
  --cream: #F0EEEB;
  --ink: #1a1a1a;
  --muted: #666;
  --line: #e4e1dc;
  --card: #ffffff;
  --radius: 16px;
  --max: 1080px;
}

/* ============ Base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px; font-size: 16px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: none; transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }

/* ============ Store Badges ============ */
.badges { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.store-badge { height: 45px; width: auto; display: block; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px;
  text-decoration: none; font-weight: 600; font-size: 14px; min-width: 160px;
}
.badge .badge-sub { font-size: 11px; opacity: .8; font-weight: 500; display: block; line-height: 1.1; }
.badge .badge-main { font-size: 17px; font-weight: 700; line-height: 1.1; }
.badge svg { width: 26px; height: 26px; flex-shrink: 0; }

/* ============ Nav ============ */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(240,238,235,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.5px; color: var(--orange); text-decoration: none; }
.logo img { width: 28px; height: 28px; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav .btn { padding: 9px 16px; font-size: 14px; }

/* ============ Theme Switcher ============ */
.theme-switcher {
  width: 64px; height: 32px; border-radius: 9999px;
  background: var(--card); box-shadow: 0 0 0 1.5px var(--line);
  position: relative; cursor: pointer;
  display: flex; align-items: center;
  flex-shrink: 0; padding: 0; border: none; outline: none;
}
.theme-switcher:focus-visible { box-shadow: 0 0 0 2.5px var(--orange); }
.switcher-thumb {
  position: absolute; width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange); left: 2px;
  transform: translateX(32px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
[data-theme="dark"] .switcher-thumb { transform: translateX(0); }
.switcher-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; pointer-events: none;
}
.switcher-moon { color: var(--ink); opacity: 0.45; }
.switcher-sun  { color: #fff; opacity: 1; }
[data-theme="dark"] .switcher-moon { color: #fff; opacity: 1; }
[data-theme="dark"] .switcher-sun  { color: var(--ink); opacity: 0.45; }

/* ============ Footer ============ */
footer { background: var(--ink); color: #999; padding: 40px 0; margin-top: 80px; font-size: 13px; }
footer .foot-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer a { color: #ccc; text-decoration: none; margin-right: 16px; }
footer a:hover { color: #fff; }

/* ============ Legal Pages ============ */
.legal-content {
  max-width: 760px; margin: 0 auto; padding: 40px 24px 80px;
  line-height: 1.7; font-size: 15px;
}
.legal-content h1 { font-size: 26px; margin-bottom: 4px; }
.legal-content h2 {
  font-size: 18px; margin-top: 48px; margin-bottom: 4px;
  border-top: 2px solid var(--line); padding-top: 32px;
}
.legal-content h3 { font-size: 15px; margin-top: 24px; margin-bottom: 6px; }
.legal-content p { margin: 8px 0; }
.legal-content ul, .legal-content ol { margin: 8px 0; padding-left: 20px; }
.legal-content li { margin: 4px 0; }
.legal-content a { color: #0066cc; }
.legal-content strong { font-weight: 600; }
.legal-content hr { border: none; border-top: 2px solid var(--line); margin: 60px 0; }
.effective { color: var(--muted); font-size: 13px; margin-bottom: 32px; }
.lang-label {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: #666; background: #f0f0f0;
  border-radius: 4px; padding: 2px 8px; margin-bottom: 12px;
}
.warning-box {
  background: #fff3f3; border-left: 4px solid #e53e3e;
  padding: 12px 16px; margin: 16px 0;
  border-radius: 0 6px 6px 0; font-size: 14px;
}
.note {
  background: #fff8e1; border-left: 4px solid #f0b429;
  padding: 12px 16px; margin: 16px 0;
  border-radius: 0 6px 6px 0; font-size: 14px;
}
.email-box {
  display: inline-block; background: #f5f5f5;
  border: 1px solid #ddd; border-radius: 6px;
  padding: 10px 16px; font-weight: 600; margin: 8px 0;
}

/* ============ Landing — Section labels ============ */
section { padding: 64px 0; }
.eyebrow { color: var(--orange); font-weight: 700; font-size: 15px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 8px; }
.sec-title { font-size: clamp(26px, 5vw, 38px); font-weight: 800; letter-spacing: -.5px; line-height: 1.2; }
.sec-desc { color: var(--muted); font-size: 16px; margin-top: 12px; line-height: 1.65; }
.sub-title { font-size: clamp(20px, 4vw, 26px); font-weight: 800; letter-spacing: -.3px; line-height: 1.25; }
.sec-header { margin-bottom: 8px; }

/* ============ Landing — Hero ============ */
.hero { padding: 72px 0 56px; }
.hero h1 { font-size: clamp(32px, 7vw, 54px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.15; }
.hero h1 .accent { color: var(--orange); }
.hero p.sub { font-size: clamp(16px, 3vw, 19px); color: var(--muted); margin: 16px auto 0; max-width: 480px; }
.hero .badges { margin-top: 36px; }

/* ============ Landing — Showcase sections ============ */
.showcase-section { padding: 72px 0; }
.biz-section { background: var(--card); }

.showcase-row {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.showcase-text { width: 100%; }
.showcase-visual { display: flex; justify-content: center; }

/* ============ Phone frame ============ */
.phone-frame {
  width: 340px;
  border-radius: 40px;
  background: #111;
  padding: 5px;
  box-shadow: 0 28px 64px rgba(0,0,0,.22);
  position: relative;
}
/* Dynamic island notch — shown on screenshot frames, hidden on video frames */
/* .phone-frame::before {
  content: "";
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 24px; background: #000; border-radius: 12px; z-index: 2;
} */
.phone-frame:has(video)::before { content: none; }
.phone-frame > img,
.phone-frame > .vid-light,
.phone-frame > .vid-dark {
  border-radius: 36px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 9 / 19.5;
}
.phone-frame > img { object-fit: cover; }
.phone-frame > .vid-light video,
.phone-frame > .vid-dark video { width: 100%; height: 100%; object-fit: cover; }

/* Long-screenshot frame — grows to fit full image height */
.phone-frame--scroll > img {
  aspect-ratio: auto;
  height: auto;
  object-fit: fill;
  max-height: none;
}

/* ============ Light/dark image & video switching ============ */
.shot-dark  { display: none; }
.vid-dark   { display: none; }
[data-theme="dark"] .shot-light { display: none; }
[data-theme="dark"] .shot-dark  { display: block; }
[data-theme="dark"] .vid-light  { display: none; }
[data-theme="dark"] .vid-dark   { display: block; }

/* ============ Asset placeholder ============ */
.asset-placeholder {
  border-radius: 36px;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 16px;
  line-height: 1.5;
}
.vid-placeholder { display: none; }
/* Show placeholder only when video file doesn't exist (video shows nothing) */

/* ============ Landing — Final CTA ============ */
.cta-section { border-top: 1px solid var(--line); }

/* ============ Dark Mode ============ */
[data-theme="dark"] {
  --cream: #171717;
  --ink:   #f0eeeb;
  --muted: #737373;
  --line:  #3a3a3a;
  --card:  #262626;
}
[data-theme="dark"] header.nav  { background: rgba(23,23,23,.88); }
[data-theme="dark"] footer      { background: #0f0f0f; }
[data-theme="dark"] .biz-section { background: #1f1f1f; }
[data-theme="dark"] .badge      { background: #2a2a2a; color: var(--ink); }
[data-theme="dark"] .final .badge { background: rgba(255,255,255,0.15); color: var(--cream); }
[data-theme="dark"] .legal-content a { color: #60a5fa; }
[data-theme="dark"] .lang-label   { background: #2a2a2a; color: #999; }
[data-theme="dark"] .warning-box  { background: rgba(229,62,62,.1); }
[data-theme="dark"] .note         { background: rgba(240,180,41,.1); }
[data-theme="dark"] .email-box    { background: var(--card); border-color: var(--line); }

/* ============ Transitions ============ */
.theme-ready body,
.theme-ready header.nav,
.theme-ready footer,
.theme-ready .biz-section,
.theme-ready .badge,
.theme-ready .phone-frame,
.theme-ready .asset-placeholder,
.theme-ready .lang-label,
.theme-ready .warning-box,
.theme-ready .note,
.theme-ready .email-box { transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.theme-ready .switcher-icon  { transition: color 0.2s ease, opacity 0.2s ease; }
.theme-ready .theme-switcher { transition: box-shadow 0.25s ease, background-color 0.25s ease; }

/* ============ Responsive — tablet / desktop ============ */
@media (min-width: 680px) {
  .showcase-row {
    flex-direction: row;
    gap: 56px;
    align-items: center;
  }
  .showcase-row.reverse { flex-direction: row-reverse; }
  .showcase-text { flex: 1; min-width: 0; }
  .showcase-visual { flex: 0 0 auto; }
  .phone-frame { width: 340px; }
}

@media (min-width: 860px) {
  .phone-frame { width: 320px; }
}
