:root {
  --bg: #faf8f5; --surface: #ffffff; --fg: #1d1d1b; --muted: #5f5b55;
  --line: #e7e2da; --accent: #2f6b4f; --accent-fg: #ffffff; --danger: #a33a2b;
  --tk: #fff3c4; --tk-line: #e6c75a; --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161513; --surface: #201f1c; --fg: #f3f0ea; --muted: #a8a29a; --line: #34322e; --accent: #6fbf95; --accent-fg: #10140f; --danger: #e07a6a; --tk: #3a3218; --tk-line: #8a7426; }
}
* { box-sizing: border-box; }
button, input { font: inherit; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 34rem; margin: 0 auto; padding: 20px 16px 48px; }
.brand { font-family: Georgia, serif; font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--fg); }
header.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
h1 { font-family: Georgia, serif; font-size: clamp(1.8rem, 7vw, 2.4rem); line-height: 1.15; margin: 0 0 12px; }
h2 { font-family: Georgia, serif; font-size: 1.35rem; margin: 28px 0 10px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); font-size: .95rem; }
.btn { display: block; width: 100%; padding: 16px 18px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-fg); font-size: 1.05rem; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.secondary { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: .95rem; cursor: pointer; padding: 12px 0; display: block; margin: 8px auto 0; }
.badge { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--muted); background: var(--surface); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0; }
.tk { background: var(--tk); border: 1px dashed var(--tk-line); border-radius: 8px; padding: 2px 6px; }
.tk::before { content: "COPY-TK · "; font: 600 .7rem/1 ui-monospace, monospace; letter-spacing: .04em; opacity: .7; }
.steps { padding-left: 22px; margin: 0; }
.steps li { margin-bottom: 10px; }
.steps li:last-child { margin-bottom: 0; }
.site-footer { max-width: 34rem; margin: 0 auto; padding: 0 16px 32px; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer a { color: var(--muted); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
/* Quiz */
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0 24px; }
.progress > span { display: block; height: 100%; background: var(--accent); transition: width .25s; }
.quiz-meta { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); }
.options { display: grid; gap: 12px; margin-top: 20px; }
.option { padding: 18px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); font-size: 1.05rem; cursor: pointer; }
.option:hover, .option:focus-visible { border-color: var(--accent); outline: none; }
.back { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .95rem; padding: 4px 0; }
.back[hidden] { visibility: hidden; display: inline; }
/* Teaser lock */
.locked { position: relative; }
.locked ul { filter: blur(6px); user-select: none; pointer-events: none; margin: 0; padding-left: 20px; }
.locked .lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 600; }
/* Price */
.price { font-family: Georgia, serif; font-size: 2.6rem; font-weight: 700; margin: 4px 0; }
/* Modal */
dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); padding: 22px 18px; width: min(30rem, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0,0,0,.45); }
input[type=email] { width: 100%; padding: 14px; font-size: 1rem; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0 12px; background: var(--bg); color: var(--fg); }
.error { color: var(--danger); font-size: .95rem; }
.center { text-align: center; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
