@font-face {
  font-family: 'Pretendard';
  src: url('/assets/fonts/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --paper: #F7F6F1;
  --paper-2: #EFEEE6;
  --card: #FFFFFE;
  --ink: #193E35;
  --text: #243B34;
  --muted: #66736B;
  --line: #D4DDD3;
  --celadon: #E4EBE4;
  --citron: #DCE6A2;
  --accent: #193E35;
  --accent-soft: #E4EBE4;
  --danger: #9A3B2E;
  --radius: 8px;
  --shadow: 0 1px 0 rgba(25, 62, 53, .06);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color: var(--text);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  font-feature-settings: 'ss05';
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); }
body { min-height: 100vh; display: flex; flex-direction: column; line-height: 1.65; word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--citron); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--paper);
  position: sticky; top: 0; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 20px; width: auto; filter: brightness(0) saturate(100%) invert(19%) sepia(14%) saturate(1400%) hue-rotate(115deg) brightness(92%); }
.brand span { font-size: 14px; font-weight: 700; color: var(--ink); padding-left: 10px; border-left: 1px solid var(--line); }
.head-cta { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); border: 1px solid var(--ink); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px 64px; }
main:focus { outline: none; }
.narrow { max-width: 640px; margin: 0 auto; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }

.site-foot { border-top: 1px solid var(--line); padding: 28px 20px 40px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.site-foot p { margin: 4px auto; max-width: 1080px; }
.foot-links { max-width: 1080px; margin: 0 auto 10px; display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--text); text-decoration: none; font-size: 13px; }

h1, h2, h3 { color: var(--ink); line-height: 1.3; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(30px, 6vw, 52px); font-weight: 750; }
h2 { font-size: clamp(22px, 3.6vw, 30px); font-weight: 720; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.light { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.block { width: 100%; }
.btn.small { min-height: 40px; font-size: 14px; padding: 0 16px; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }

/* 홈 */
.home-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; padding: 56px 0 40px; align-items: center; }
.home-hero h1 span { display: block; }
.home-hero .lead { font-size: 17px; margin-top: 18px; color: var(--text); max-width: 32em; }
.redeem-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: var(--shadow); }
.redeem-card h2 { font-size: 20px; margin-bottom: 6px; }
.code-input {
  width: 100%; min-height: 58px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 16px;
  font-size: 20px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--paper); margin: 14px 0 10px;
}
.code-input:focus { border-color: var(--ink); outline: none; background: #fff; }
.form-error { color: var(--danger); font-size: 14px; min-height: 22px; margin: 4px 0 8px; }
.redeem-help { margin-top: 12px; font-size: 13px; color: var(--muted); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 40px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.product-card {
  --accent: var(--ink);
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 22px; min-height: 210px; position: relative; overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.product-card .num { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .14em; }
.product-card h3 { font-size: 21px; }
.product-card p { font-size: 15px; color: var(--muted); }
.product-card .meta { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--paper-2); font-size: 12px; color: var(--text); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.principles div { padding: 18px 0; border-top: 2px solid var(--ink); }
.principles h3 { font-size: 16px; margin-bottom: 6px; }
.principles p { font-size: 14px; color: var(--muted); }

/* 상품 소개 */
.landing-cover {
  margin: 28px 0 0; border-radius: 16px; padding: 40px 32px; background: var(--accent); color: #fff; position: relative; overflow: hidden;
}
.landing-cover .kicker { color: rgba(255,255,255,.75); }
.landing-cover h1 { color: #fff; margin: 14px 0 10px; }
.landing-cover p { font-size: 17px; opacity: .92; max-width: 34em; }
.cover-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.cover-meta .chip { background: rgba(255,255,255,.16); color: #fff; }
.cover-mark { position: absolute; right: -10px; bottom: -36px; font-size: 180px; font-weight: 800; letter-spacing: -0.06em; color: rgba(255,255,255,.08); line-height: 1; pointer-events: none; }
.landing-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; margin-top: 40px; }
.landing-hook { font-size: clamp(22px, 3.4vw, 30px); font-weight: 720; color: var(--ink); line-height: 1.4; }
.landing-lead { font-size: 17px; margin-top: 14px; }
.scenes { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.scenes li { background: var(--accent-soft); border-radius: 12px; padding: 14px 18px; font-size: 16px; color: var(--ink); }
.block { margin-top: 36px; }
.block h2 { font-size: 20px; margin-bottom: 12px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.dashlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.dashlist li { padding-left: 16px; position: relative; color: var(--muted); }
.dashlist li::before { content: ''; position: absolute; left: 0; top: .8em; width: 8px; height: 1.5px; background: var(--muted); }
.buy-card { position: sticky; top: 84px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 12px; align-self: start; }
.price { font-size: 28px; font-weight: 800; color: var(--ink); }
.price small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.gift-line { background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; font-size: 15px; }

/* 검사 진행 */
.flow { max-width: 640px; margin: 0 auto; padding-top: 24px; }
.flow-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.flow-top .title { font-size: 14px; font-weight: 700; color: var(--accent); flex: 1; }
.progress { height: 6px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin: 6px 0 26px; }
.progress span { display: block; height: 100%; background: var(--accent); transition: width .25s ease; }
.count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.instruction { font-size: 14px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 22px; }
.question { font-size: clamp(21px, 4.6vw, 26px); font-weight: 700; color: var(--ink); line-height: 1.45; min-height: 3.2em; margin-bottom: 22px; }
.options { display: grid; gap: 8px; }
.option {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--card); cursor: pointer; text-align: left; font-size: 16px; transition: border-color .12s ease, background .12s ease;
}
.option .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.option[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; color: var(--ink); }
.option[aria-checked="true"] .dot { border-color: var(--accent); }
.option[aria-checked="true"] .dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.flow-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 12px; }
.intro-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field input[type="text"], .field input[type="tel"], .field textarea, .field select {
  width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--paper); font-size: 16px;
}
.field textarea { min-height: 90px; resize: vertical; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row .option { min-height: 44px; flex: 1 1 140px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.consent a { color: var(--ink); }
.notice { border-radius: 10px; padding: 14px 16px; background: var(--paper-2); font-size: 14px; }

/* 결과지 */
.report { max-width: 760px; margin: 0 auto; padding-top: 24px; }
.r-cover { background: var(--accent); color: #fff; border-radius: 18px; padding: 34px 28px 30px; position: relative; overflow: hidden; }
.r-cover .kicker { color: rgba(255,255,255,.78); }
.r-cover h1 { color: #fff; font-size: clamp(32px, 7vw, 50px); margin: 14px 0 12px; }
.r-cover .one { font-size: 18px; line-height: 1.55; max-width: 30em; }
.r-cover .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.r-cover .tags span { background: rgba(255,255,255,.16); border-radius: 999px; padding: 4px 10px; font-size: 13px; }
.r-cover .who { margin-top: 22px; font-size: 13px; opacity: .8; }
.r-tabs { display: flex; gap: 6px; margin: 18px 0 0; }
.r-tabs button { flex: 1; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 700; cursor: pointer; }
.r-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.r-block { margin-top: 34px; }
.r-block > h2 { font-size: 22px; margin-bottom: 10px; }
.r-block .lead { font-size: 16px; color: var(--muted); margin-bottom: 12px; }
.r-block p + p { margin-top: 12px; }
.r-block p { font-size: 16.5px; line-height: 1.8; }
.r-block ul { margin: 12px 0 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.r-block ul li { padding-left: 18px; position: relative; font-size: 16px; }
.r-block ul li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.r-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.r-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.r-card h3 { font-size: 16px; margin-bottom: 6px; color: var(--accent); }
.r-card p { font-size: 15px; line-height: 1.7; }
.r-quote { margin-top: 18px; background: var(--accent-soft); border-radius: 14px; padding: 18px 20px; font-size: 18px; font-weight: 650; color: var(--ink); line-height: 1.6; }
.scores { display: grid; gap: 16px; margin-top: 8px; }
.score { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.score-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.score-top strong { font-size: 16px; color: var(--ink); }
.score-top span { font-size: 14px; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { position: relative; height: 10px; background: var(--paper-2); border-radius: 999px; margin: 12px 0 6px; }
.bar i { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--accent); transform: translate(-50%, -50%); }
.bar b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--accent-soft); }
.bar-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); gap: 10px; }
.score .note { font-size: 14px; margin-top: 8px; color: var(--text); }
.chart { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 12px; }
.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 14px; justify-content: center; font-size: 13px; margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.actions-list { display: grid; gap: 10px; margin-top: 8px; }
.action { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: grid; gap: 4px; }
.action .when { font-size: 14px; color: var(--muted); }
.action .do { font-size: 17px; font-weight: 700; color: var(--ink); }
.action .why { font-size: 14px; color: var(--muted); }
.sentences { display: grid; gap: 8px; margin-top: 8px; }
.sentence { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; }
.sentence p { flex: 1; font-size: 16.5px; font-weight: 600; color: var(--ink); }
.copy-btn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; font-size: 12px; padding: 4px 10px; cursor: pointer; white-space: nowrap; }
.week { display: grid; gap: 8px; margin-top: 8px; }
.day { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.day input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.day strong { display: block; color: var(--ink); }
.day span { font-size: 15px; }
.day.done { opacity: .6; }
.safety { border: 2px solid var(--danger); background: #FBF1EE; border-radius: 14px; padding: 18px 20px; margin-top: 24px; }
.safety h2 { color: var(--danger); font-size: 18px; margin-bottom: 6px; }
.safety p { font-size: 15px; }
.safety a { color: var(--danger); font-weight: 700; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-top: 30px; display: grid; gap: 12px; }
.panel.accent { border: 2px solid var(--accent); }
.share-preview { width: 100%; max-width: 320px; border-radius: 12px; border: 1px solid var(--line); margin: 0 auto; }
.refs { font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.refs a { color: var(--muted); }
.limits { font-size: 14px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 50; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.toast.on { opacity: 1; }

/* 문서·관리자 */
.doc { max-width: 760px; margin: 0 auto; padding-top: 32px; }
.doc h1 { font-size: 30px; margin-bottom: 18px; }
.doc h2 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { font-size: 15px; line-height: 1.8; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 10px 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc details { border-top: 1px solid var(--line); padding: 14px 0; }
.doc summary { font-weight: 700; color: var(--ink); cursor: pointer; }
.admin table { border-collapse: collapse; width: 100%; font-size: 13px; background: var(--card); }
.admin th, .admin td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.admin .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.admin .row .field { flex: 1 1 140px; }

@media (max-width: 820px) {
  .home-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .landing-grid { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  main { padding: 0 16px 56px; }
  .site-head { padding: 12px 16px; }
  .brand img { height: 17px; }
  .landing-cover, .r-cover { padding: 28px 22px; }
  .cover-mark { font-size: 120px; }
}

@media print {
  .site-head, .site-foot, .no-print, .r-tabs, .tools, .toast { display: none !important; }
  body, html, main { background: #fff; }
  main { max-width: none; padding: 0; }
  .r-cover { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .score, .action, .r-card, .day, .chart, .sentence, .safety { break-inside: avoid; }
  .r-block > h2 { break-after: avoid; }
  .r-cover { break-inside: avoid; }
  .chart svg { max-width: 92mm; margin: 0 auto; }
  .sentence, .bar, .bar i, .bar b, .r-cover .tags span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.form-error:empty { display: none; }
