/* OPT GOLF landing — shared styles
   Colors and type match the Framer /global/v2 build. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b0c0e;
  --ink-2: #1a1b1f;
  --paper: #ffffff;
  --mist: #f4f5f7;
  --line: #e0e3e8;
  --muted: #666b73;
  --on-dark: #ccd1d6;
  --on-dark-2: #969ca3;
  --radius: 16px;
  --content: 480px;
  --pad: 20px;
  --sticky-h: 76px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: -0.01em;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--sticky-h);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }
button { font: inherit; color: inherit; }

/* ---------- layout ---------- */
.section { width: 100%; display: flex; justify-content: center; padding: 52px var(--pad); }
.section > .inner { width: 100%; max-width: var(--content); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.section.flush { padding-left: 0; padding-right: 0; }
.section.dark { background: var(--ink); color: #fff; }
.section.mist { background: var(--mist); }
.section.rule { border-top: 1px solid var(--line); }
[id] { scroll-margin-top: 8px; }

/* ---------- type ---------- */
.h1 { font-size: 44px; font-weight: 500; line-height: 1.1; letter-spacing: -0.025em; }
.h2 { font-size: 36px; font-weight: 500; line-height: 1.1; letter-spacing: -0.025em; }
.quote { font-size: 30px; font-weight: 500; line-height: 1.1; letter-spacing: -0.025em; }
.lead { font-size: 17px; }
.body { font-size: 16px; }
.small { font-size: 13px; line-height: 1.4; }
.muted { color: var(--muted); }
.dark .muted, .on-dark { color: var(--on-dark); }

/* ---------- buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 17px 24px; border-radius: 999px; border: 0;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.4;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.btn-light { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.text-link { display: inline-block; padding: 11px 0; font-size: 15px; text-decoration: none; cursor: pointer; }
.text-link:hover { text-decoration: underline; }

/* ---------- top bar + header ---------- */
.topbar { background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; text-align: center; padding: 12px 16px; }
.header { display: flex; justify-content: center; padding: 20px; background: #fff; }
.header .inner { width: 100%; max-width: var(--content); }
.logo { display: block; width: 132px; height: 12px; color: #000; }
.logo svg { width: 100%; height: 100%; display: block; }

/* ---------- hook ---------- */
.hook { background: var(--ink); color: #fff; display: flex; justify-content: center; padding-bottom: 44px; }
.hook .inner { width: 100%; max-width: var(--content); }
.hook-photo { width: 100%; aspect-ratio: 1170 / 1200; object-fit: cover; background: #15161a; }
.hook-copy { display: flex; flex-direction: column; gap: 14px; padding: 24px var(--pad) 0; }
.proof { font-size: 14px; font-weight: 500; color: var(--on-dark); }
.hook .to-sets { color: var(--on-dark); }

/* ---------- problem ---------- */
.problem { display: flex; justify-content: center; padding-bottom: 52px; }
.problem .inner { width: 100%; max-width: var(--content); }
.problem-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--mist); }
.problem-copy { display: flex; flex-direction: column; gap: 14px; padding: 32px var(--pad) 0; }
.chips3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.symptom { background: var(--mist); border-radius: var(--radius); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.symptom b { font-size: 22px; font-weight: 600; line-height: 1.2; }
.symptom span { font-size: 14px; line-height: 1.3; color: var(--muted); }

/* ---------- founder ---------- */
.founder-row { display: flex; align-items: center; gap: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: #333438; object-fit: cover; flex: none; }
.founder-name { font-size: 15px; font-weight: 600; color: var(--on-dark); }
.sw-photo { width: 100%; aspect-ratio: 1050 / 450; object-fit: cover; border-radius: 14px; background: #15161a; }
.sw-steps { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; }
.sw-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); }
.sw-step b { font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: #f0f2f4; }
.sw-step span { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--on-dark-2); }
.sw-step.on { background: #fff; border-color: #fff; }
.sw-step.on b { color: #0a0a0a; }
.sw-step.on span { color: #464a50; }
.sw-arrow { color: #787e85; font-size: 18px; line-height: 1; }

/* ---------- cost table ---------- */
.cost { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cost-row { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-top: 1px solid var(--line); }
.cost-row:first-child { border-top: 0; }
.cost-row span { flex: 1; font-size: 17px; }
.cost-row b { font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.cost-row.ours { background: var(--ink); color: #fff; border-top-color: var(--ink); }
.cost-row.ours span { font-weight: 600; }

/* ---------- fit it yourself ---------- */
.video-box { width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--line); aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 15px; font-weight: 600; }
.video-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.step { display: flex; flex-direction: column; gap: 8px; }
.step img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--mist); }
.step small { font-size: 13px; font-weight: 500; color: var(--muted); }
.step b { font-size: 15px; font-weight: 600; line-height: 1.25; }
.test-card { width: 100%; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.test-card h3 { font-size: 28px; font-weight: 500; line-height: 1.15; letter-spacing: -0.025em; }
.rounds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.round { background: var(--ink-2); border-radius: 12px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.round b { font-size: 34px; font-weight: 500; line-height: 1.1; }
.round span { font-size: 13px; line-height: 1.35; text-align: center; color: var(--on-dark); }

/* ---------- rules strip ---------- */
.rules { padding: 28px var(--pad); }
.rules .inner { gap: 12px; }
.rules p.tick { font-size: 15px; font-weight: 600; line-height: 1.35; }

/* ---------- reviews ---------- */
.reviews .inner { gap: 16px; }
.review { margin: 0; width: 100%; background: var(--mist); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.review .stars { font-size: 14px; letter-spacing: 0.05em; }
.review q { font-size: 19px; font-weight: 600; line-height: 1.3; quotes: "“" "”"; }
.review small { font-size: 13px; color: var(--muted); }

/* ---------- 60-second check ---------- */
.check { width: 100%; border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.check-step { font-size: 13px; font-weight: 500; color: var(--muted); }
.check-q { font-size: 20px; font-weight: 600; line-height: 1.3; }
.check-options { display: flex; flex-direction: column; gap: 10px; }
.check-opt { text-align: left; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.check-opt:hover { border-color: #b9bec6; }
.check-opt:active { background: var(--mist); }
.check-detail { font-size: 16px; color: var(--muted); }
.check-restart { align-self: center; background: none; border: 0; font-size: 14px; color: var(--muted); text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 12px; }
.check[hidden], .check *[hidden] { display: none !important; }

/* ---------- offer ---------- */
.box-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: var(--mist); }
.included { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.ship-label { font-size: 15px; font-weight: 600; }
.region-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { min-height: 44px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.hint { font-size: 14px; color: var(--muted); }
.sets { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.set { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; scroll-margin: 80px; }
.set { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.set:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.set[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.set::after { content: ""; position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #c4c8ce; box-sizing: border-box; }
.set[aria-checked="true"]::after { border-color: var(--ink); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.set-info { padding-right: 26px; }
.qty-note { font-size: 13px; color: var(--ink); background: var(--mist); border-radius: 10px; padding: 10px 12px; margin-top: -4px; }
.qty-note[hidden] { display: none; }
.match-badge { align-self: flex-start; font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 8px; border-radius: 999px; background: var(--ink); color: #fff; }
.match-badge[hidden] { display: none; }
.set img { width: 104px; height: 139px; object-fit: cover; border-radius: 10px; flex: none; background: var(--mist); }
.set-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.set-info h3 { font-size: 20px; font-weight: 500; line-height: 1.2; }
.set-info p { font-size: 14px; color: var(--muted); }
.set-info ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.amount { display: flex; align-items: baseline; gap: 6px; padding-top: 4px; }
.amount b { font-size: 22px; font-weight: 500; white-space: nowrap; }
.amount span { font-size: 13px; color: var(--muted); }
.buy[hidden], .checkout-note[hidden], .hint[hidden] { display: none; }
.checkout-note, .returns { font-size: 13px; color: var(--muted); }
.returns { margin-top: -8px; }
.returns[hidden] { display: none; }
.dispatch { width: 100%; text-align: center; font-size: 14px; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { width: 100%; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: baseline; gap: 12px; padding: 18px 0; cursor: pointer; font-size: 17px; font-weight: 500; line-height: 1.35; -webkit-tap-highlight-color: transparent; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary small { font-size: 13px; color: var(--muted); font-weight: 500; flex: none; width: 20px; }
.faq summary span { flex: 1; }
.faq summary i { flex: none; font-style: normal; font-size: 20px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px 32px; font-size: 16px; color: var(--muted); }

/* ---------- final + footer ---------- */
.final .inner { gap: 18px; }
.final .to-sets { color: var(--on-dark); align-self: center; }
.footer { width: 100%; margin-top: 28px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--on-dark-2); }
.footer nav { display: flex; gap: 20px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- sticky bar ---------- */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; justify-content: center; transition: transform .25s ease; }
.sticky .row { width: 100%; max-width: var(--content); display: flex; align-items: center; gap: 14px; }
.sticky .from { display: flex; flex-direction: column; line-height: 1.2; }
.sticky .from small { font-size: 12px; color: var(--muted); }
.sticky .from b { font-size: 20px; font-weight: 600; }
.sticky .btn { padding: 15px 20px; }
.sticky .btn[hidden] { display: none; }
.sticky .from small { white-space: nowrap; }
.sticky.away { transform: translateY(110%); }

@media (min-width: 768px) {
  .h1 { font-size: 56px; }
}

/* ---------- desktop (컴퓨터 화면) ----------
   휴대폰 레이아웃은 그대로 두고, 넓은 화면에서만 2단 구성으로 펼친다.
   .col 묶음은 휴대폰에선 없는 것처럼(display: contents) 동작해 순서·간격이 바뀌지 않는다. */
.col { display: contents; }

@media (min-width: 1024px) {
  :root { --wide: 1120px; --narrow: 760px; --pad: 40px; }
  .h1 { font-size: 68px; }
  .h2 { font-size: 46px; }
  .quote { font-size: 40px; }
  .lead { font-size: 20px; }
  .body { font-size: 17px; }

  .section { padding: 96px var(--pad); }
  .section > .inner { max-width: var(--wide); gap: 22px; }
  .section.narrow > .inner { max-width: var(--narrow); }
  .header .inner { max-width: var(--wide); }

  .btn { width: auto; min-width: 300px; align-self: flex-start; }

  /* hook: 사진 | 문구 */
  .hook { padding: 64px var(--pad); }
  .hook .inner { max-width: var(--wide); display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .hook-photo { border-radius: 20px; }
  .hook-copy { padding: 0; gap: 20px; }

  /* problem: 사진 | 문구 */
  .problem { padding: 96px var(--pad); }
  .problem .inner { max-width: var(--wide); display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .problem-photo { border-radius: 20px; }
  .problem-copy { padding: 0; gap: 20px; }
  .symptom { padding: 22px 16px; }

  /* founder: 이야기 | 측정 */
  .founder .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .founder .col { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; width: 100%; }

  /* refine: 제목 | 비용표 */
  .refine .inner { display: grid; grid-template-columns: 5fr 6fr; column-gap: 72px; row-gap: 16px;
    grid-template-areas: "h t" "n t"; align-items: start; }
  .refine .h2 { grid-area: h; }
  .refine .cost { grid-area: t; }
  .refine .small { grid-area: n; }

  /* fit: 3단계 | 30-30-30 */
  .fit .inner { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; grid-template-areas: "h h" "s t"; align-items: start; }
  .fit .h2 { grid-area: h; }
  .fit .steps3 { grid-area: s; gap: 16px; }
  .fit .test-card { grid-area: t; padding: 28px; }

  /* rules: 한 줄로 */
  .rules { padding: 32px var(--pad); }
  .rules .inner { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 40px; row-gap: 8px; }

  /* reviews: 3열 */
  .reviews .inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
  .reviews .inner > .h2, .reviews .inner > p { grid-column: 1 / -1; }
  .review { padding: 26px; }

  /* offer: 구성 | 세트 선택 */
  .offer .inner { display: grid; grid-template-columns: 5fr 6fr; column-gap: 72px; row-gap: 22px;
    grid-template-areas: "h o" "img o" "inc o" "d d"; align-items: start; }
  .offer .h2 { grid-area: h; }
  .offer .box-photo { grid-area: img; }
  .offer .included { grid-area: inc; }
  .offer #set-offer { grid-area: o; }
  .offer .dispatch { grid-area: d; }
  .offer .buy { width: 100%; align-self: stretch; }
  .set img { width: 120px; height: 160px; }

  .final .inner { align-items: center; text-align: center; }
  .final .btn { align-self: center; }
  .final .footer { text-align: left; }

  .sticky .row { max-width: var(--wide); justify-content: flex-end; }
  .sticky .btn { min-width: 220px; }
}
