/* 랜딩 공용 스타일. `public/index.html`(쿠팡)과 `public/naver/index.html`이 함께 쓴다.
   원본은 쿠팡 랜딩의 인라인 <style>이었고, 네이버 랜딩을 붙일 때 복제를 피하려고 분리했다.
   마켓별 색·문구 차이는 각 페이지의 작은 인라인 <style>이 덮어쓴다. */
  /* 디자인 토큰 — UninstallSurvey/public/index.html의 토큰 구성을 따르고 accent만 확장 브랜드색
     (#D3031C, Coupang/ReviewExtract/popup.html의 --primary)으로 바꿨다. */
  :root {
    --bg: #faf8f6;
    --surface: #ffffff;
    --surface-2: #f4f1ee;
    --text: #1d1b19;
    --text-muted: #6b6560;
    --border: #e7e2dc;
    --accent: #d3031c;
    --accent-hover: #b30318;
    --accent-text: #ffffff;
    --accent-tint: #fdecee;
    --accent-strong: #a8021a;
    --ok: #1f7a4d;
    --ok-tint: #e6f4ec;
    --beta: #8a5a00;
    --beta-tint: #fdf3dc;
    --road: #4d5b7a;
    --road-tint: #eceff6;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-pill: 999px;
    --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 24px 48px -24px rgba(16, 24, 40, .18);
    --shadow-hover: 0 8px 16px -8px rgba(16, 24, 40, .18);
    --maxw: 1080px;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #141312;
      --surface: #1c1a19;
      --surface-2: #232120;
      --text: #f1eeea;
      --text-muted: #a8a19a;
      --border: #34302d;
      --accent: #ff4d5e;
      --accent-hover: #ff6b79;
      --accent-text: #1a0a0c;
      --accent-tint: rgba(255, 77, 94, .14);
      --accent-strong: #ff8a95;
      --ok: #5fd39a;
      --ok-tint: rgba(95, 211, 154, .14);
      --beta: #f2c46b;
      --beta-tint: rgba(242, 196, 107, .14);
      --road: #a9b6d6;
      --road-tint: rgba(169, 182, 214, .14);
      --shadow-card: 0 1px 2px rgba(0, 0, 0, .5), 0 28px 56px -28px rgba(0, 0, 0, .6);
      --shadow-hover: 0 10px 20px -10px rgba(0, 0, 0, .55);
    }
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    line-height: 1.6;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
  }
  a { color: var(--accent-strong); }
  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
  section { padding: 72px 0; scroll-margin-top: 60px; } /* sticky 상단 바에 앵커 대상이 가리지 않게 */
  section + section { border-top: 1px solid var(--border); }
  h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: -0.02em; }
  h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 12px; }
  .lead { color: var(--text-muted); font-size: 17px; margin: 0 0 32px; max-width: 640px; }
  .eyebrow {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .02em;
    color: var(--accent-strong); background: var(--accent-tint);
    padding: 4px 12px; border-radius: var(--radius-pill); margin-bottom: 16px;
  }

  /* 상단 바 */
  .topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
  .topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
  .brand { font-weight: 800; font-size: 16px; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
  .brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-size: 14px; }

  /* 버튼 */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
    padding: 12px 22px; border-radius: var(--radius-md); border: 1px solid transparent;
    transition: background .15s, box-shadow .15s, transform .15s;
  }
  .btn-primary { background: var(--accent); color: var(--accent-text); }
  .btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
  .btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
  .btn-ghost:hover { background: var(--surface-2); }
  .btn-sm { padding: 8px 14px; font-size: 14px; }
  .btn:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

  /* 히어로 */
  #hero { padding-top: 64px; }
  .hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
  #hero h1 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 18px; }
  #hero h1 em { font-style: normal; color: var(--accent); white-space: nowrap; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
  .hero-note { font-size: 14px; color: var(--text-muted); margin: 0; }

  .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
  .mock { padding: 18px; }
  .mock-head { display: flex; gap: 6px; margin-bottom: 14px; }
  .mock-head span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
  .mock-title { font-weight: 800; font-size: 15px; margin-bottom: 12px; }
  .mock-btn { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
  .mock-btn.primary { background: var(--accent); color: var(--accent-text); }
  .mock-caption { font-size: 12px; color: var(--text-muted); margin: 10px 0 0; text-align: center; }

  /* 문제 카드 */
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .pain { padding: 24px; }
  .pain .icon { font-size: 26px; margin-bottom: 10px; }
  .pain h3 { font-size: 17px; margin-bottom: 8px; }
  .pain p { margin: 0; color: var(--text-muted); font-size: 15px; }

  /* 기능 표 */
  .ftable { overflow: hidden; }
  .frow { display: grid; grid-template-columns: 1fr 150px 150px 120px; gap: 12px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--border); }
  .frow:first-child { border-top: 0; }
  .frow.head { background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--text-muted); }
  .frow .name { font-weight: 700; }
  .frow .name small { display: block; font-weight: 400; color: var(--text-muted); font-size: 13px; }
  .cell { font-size: 14px; text-align: center; }
  .cell.no { color: var(--text-muted); }
  .cell-label { display: none; }
  .badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); white-space: nowrap; }
  .badge.ok { background: var(--ok-tint); color: var(--ok); }
  .badge.beta { background: var(--beta-tint); color: var(--beta); }
  .badge.road { background: var(--road-tint); color: var(--road); }
  .table-note { font-size: 14px; color: var(--text-muted); margin: 16px 0 0; }

  /* A/B 비교 */
  .compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
  .slots { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 24px; }
  .slot { border: 1.5px dashed var(--border); border-radius: var(--radius-md); padding: 16px; text-align: center; background: var(--surface-2); }
  .slot b { display: block; font-size: 22px; color: var(--accent); }
  .slot span { font-size: 13px; color: var(--text-muted); }
  .vs { font-weight: 800; color: var(--text-muted); }
  .checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
  .checklist li { padding-left: 28px; position: relative; }
  .checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-strong); font-size: 12px; font-weight: 800; display: grid; place-items: center; margin-top: 3px; }

  /* 작동 방식 */
  .steps { counter-reset: step; }
  .step { padding: 24px; }
  .step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 800; margin-bottom: 12px; }
  .step h3 { font-size: 17px; margin-bottom: 6px; }
  .step p { margin: 0; color: var(--text-muted); font-size: 15px; }
  .callout { margin-top: 20px; padding: 16px 20px; border-radius: var(--radius-md); background: var(--surface-2); font-size: 15px; }

  /* 미리보기 */
  .preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .preview-card { padding: 20px; }
  .preview-card h3 { font-size: 16px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .preview-card .sub { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; }
  pre.md { margin: 0; padding: 14px; border-radius: 10px; background: var(--surface-2); font-size: 12.5px; line-height: 1.55; overflow-x: auto; white-space: pre; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
  .bars { display: grid; gap: 10px; }
  .bar { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; font-size: 13px; }
  .bar i { display: block; height: 10px; border-radius: 5px; background: var(--accent); opacity: .8; }
  .sample-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--road-tint); color: var(--road); }

  /* FAQ */
  .faq-list { display: grid; gap: 10px; max-width: 760px; }
  details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0 20px; }
  details.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
  details.faq summary::-webkit-details-marker { display: none; }
  details.faq summary::after { content: "+"; color: var(--text-muted); font-weight: 400; }
  details.faq[open] summary::after { content: "–"; }
  details.faq p { margin: 0 0 16px; color: var(--text-muted); }

  /* 대기자 폼 */
  #waitlist { background: linear-gradient(180deg, var(--bg), var(--accent-tint)); }
  .form-card { max-width: 640px; margin: 0 auto; padding: 32px; }
  .field { margin-bottom: 22px; }
  .field > label, .field > .label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
  .field .hint { font-weight: 400; color: var(--text-muted); font-size: 13px; }
  input[type="email"], select, textarea {
    width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  }
  textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
  .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; font-size: 14px; background: var(--surface); transition: border-color .15s, background .15s; }
  .choice:hover { border-color: var(--accent); }
  .choice:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
  .choice input { accent-color: var(--accent); width: 17px; height: 17px; margin: 0; flex: none; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .form-actions .btn { width: 100%; padding: 14px; font-size: 16px; }
  .btn[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }
  .privacy { font-size: 13px; color: var(--text-muted); margin: 14px 0 0; }
  .status-msg { min-height: 22px; font-size: 14px; margin: 12px 0 0; }
  .status-msg.error { color: var(--accent-strong); }
  .thanks { text-align: center; padding: 16px 0; }
  .thanks .big { font-size: 44px; margin-bottom: 8px; }
  .thanks h3 { font-size: 22px; margin-bottom: 8px; }
  .thanks p { color: var(--text-muted); margin: 0; }

  footer { padding: 32px 0 48px; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border); }
  footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

  /* 반응형 */
  @media (max-width: 860px) {
    section { padding: 56px 0; }
    .hero-grid, .compare-grid, .preview-grid { grid-template-columns: 1fr; gap: 28px; }
    .grid-3 { grid-template-columns: 1fr; }
    .frow { grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 16px; }
    .frow.head { display: none; }
    .frow .name { grid-column: 1 / -1; }
    .cell { text-align: left; display: flex; gap: 6px; align-items: center; }
    .cell-label { display: inline; font-size: 12px; color: var(--text-muted); font-weight: 700; }
    .cell.status { grid-column: 1 / -1; }
  }
  @media (max-width: 520px) {
    .wrap { padding: 0 16px; }
    .topbar .btn { display: none; }
    .choices { grid-template-columns: 1fr; }
    .form-card { padding: 24px 18px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .bar { grid-template-columns: 90px 1fr; }
  }
