:root {
  --bg: #faf7f1; --ink: #1f2b2a; --dim: #516562; --deep: #0b7f77; --deeper: #06504a;
  --line: #e2dccf; --card: #fff; --mark: #fff4de; --warm: #8a5a00;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141a19; --ink: #e8efed; --dim: #a3b5b2; --deep: #3fbfb4; --deeper: #8fe0d8; --line: #2c3634; --card: #1b2321; --mark: #2e2717; --warm: #e0b660; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
a { color: var(--deep); }
header { border-bottom: 1px solid var(--line); background: var(--card); }
.bar { max-width: 760px; margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.brand { font-weight: 800; color: var(--ink); text-decoration: none; margin-right: auto; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { padding: 6px 10px; border-radius: 999px; text-decoration: none; color: var(--dim); font-size: .95rem; }
nav a[aria-current="page"] { background: var(--deep); color: #fff; }
nav a.lang { border: 1px solid var(--line); color: var(--ink); font-weight: 700; }
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 1.6rem; line-height: 1.3; margin: 0 0 12px; }
h2 { font-size: 1.2rem; margin: 32px 0 8px; }
.lead { color: var(--dim); font-size: 1.05rem; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--dim); }
ol.steps { padding-left: 1.2em; }
ol.steps li { margin: 6px 0; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin: 8px 0; }
summary { cursor: pointer; padding: 14px 0; font-weight: 700; min-height: 44px; }
details p { margin: 0 0 14px; color: var(--dim); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--deep); background: var(--deep); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--deep); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.tabs { display: flex; gap: 8px; margin: 16px 0; }
.tabs button { flex: 1; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.tabs button[aria-selected="true"] { border-color: var(--deep); color: var(--deep); box-shadow: inset 0 0 0 1px var(--deep); }
label { display: block; font-weight: 700; margin: 14px 0 6px; }
input { width: 100%; min-height: 48px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.number { font-size: 1.6rem; font-weight: 800; letter-spacing: .08em; text-align: center; padding: 12px; background: var(--mark); border-radius: 12px; margin: 12px 0; }
.note { color: var(--dim); font-size: .95rem; }
.warn { color: var(--warm); font-weight: 700; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 12px 0; }
.step[hidden] { display: none; }
/* 상품 페이지(가격) */
.hero { display: flex; gap: 20px; align-items: center; margin: 8px 0 20px; }
.appicon { width: 96px; height: 96px; border-radius: 22px; flex: none; box-shadow: 0 6px 18px rgb(0 0 0 / .12); }
.eyebrow { margin: 0 0 4px; color: var(--deep); font-weight: 800; font-size: .9rem; letter-spacing: .04em; }
.hero h1 { margin-bottom: 6px; }
.hero .lead { margin: 0; }
.pricebox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; background: var(--mark); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.pricebox .price { font-size: 2rem; font-weight: 800; margin: 0; line-height: 1.2; }
.pricebox .note { margin: 4px 0 0; }
.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0 -2px; }
.shots figure { margin: 0; flex: 0 0 auto; width: 200px; scroll-snap-align: start; }
.shots img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 6px 16px rgb(0 0 0 / .10); background: var(--card); }
.shots figcaption { text-align: center; font-size: .9rem; color: var(--dim); margin-top: 8px; font-weight: 700; }
.compare, .spec { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.compare th, .compare td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: center; }
.compare thead th { border-top: 0; font-weight: 800; }
.compare tbody th { text-align: left; font-weight: 400; }
.compare .pick { background: color-mix(in srgb, var(--deep) 10%, transparent); color: var(--deeper); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
.spec th { width: 7.5em; color: var(--dim); font-weight: 700; }
.flow { list-style: none; counter-reset: flow; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.flow li { counter-increment: flow; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.flow li::before { content: counter(flow); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--deep); color: #fff; font-weight: 800; margin-bottom: 8px; }
.flow b { display: block; }
.flow span { color: var(--dim); }
#purchase { scroll-margin-top: 16px; }
@media (max-width: 520px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 12px; }
  .appicon { width: 72px; height: 72px; border-radius: 16px; }
  .shots figure { width: 160px; }
  .pricebox .btn { width: 100%; }
}
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
/* 앱 도움말로 들어온 탭(fromapp.js) = 구매 안내 숨김 */
html[data-from-app] .buyonly { display: none !important; }
footer { max-width: 760px; margin: 0 auto; padding: 24px 16px; color: var(--dim); font-size: .85rem; border-top: 1px solid var(--line); }
