/* Shared stylesheet for the content pages (/privacy, /terms, /support).
   Same tokens and card language as the /c/* challenge page (index.html). */
:root {
  --bg: #f6f7fb; --card: #fff; --ink: #1b1f2a; --muted: #5e6472;
  --accent: #1f5fa8; --accent-ink: #fff; --chip: #e8eef8; --line: #e3e6ee; --err: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #12141a; --card: #1d2029; --ink: #f1f3f8; --muted: #a2a8b8; --chip: #2a3140; --line: #2f3442; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.55;
}
a { color: var(--accent); }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 24px 20px 48px; }

/* Header: wordmark + nav */
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 8px 0 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; }
.wordmark:hover { text-decoration: none; }
.wordmark .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; }
.site-nav { display: flex; gap: 6px; margin-left: auto; }
.site-nav a { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--accent); background: var(--chip); }
.site-nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }

/* Content card */
.card { background: var(--card); border-radius: 20px; padding: 32px 28px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
@media (max-width: 480px) { .card { padding: 24px 18px; border-radius: 16px; } }
.card h1 { font-size: 28px; line-height: 1.2; margin: 0 0 6px; }
.card h2 { font-size: 20px; margin: 32px 0 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.card h3 { font-size: 16px; margin: 20px 0 6px; }
.card p, .card li { color: var(--ink); }
.card ul, .card ol { padding-left: 22px; }
.card li { margin: 4px 0; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.chip { display: inline-block; background: var(--chip); color: var(--accent); border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 600; }
.lead { font-size: 17px; }
.note { color: var(--muted); font-size: 14px; }
.callout { background: var(--bg); border-radius: 14px; padding: 14px 16px; margin: 16px 0; }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; background: var(--chip); border-radius: 6px; padding: 1px 6px; }
.btn { display: inline-block; padding: 12px 18px; border-radius: 14px; font-weight: 700; text-decoration: none; background: var(--accent); color: var(--accent-ink); }
.btn:hover { text-decoration: none; opacity: .92; }
.toc { padding-left: 20px; columns: 2; column-gap: 24px; font-size: 15px; }
@media (max-width: 520px) { .toc { columns: 1; } }

/* Footer */
.site-footer { color: var(--muted); font-size: 13px; text-align: center; padding: 28px 0 0; }
.site-footer a { color: var(--muted); }

/* Marketing pages (home, guides, listicle) */
.wrap.wide { max-width: 1040px; }
.nav-main { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.nav-main a { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--accent); background: var(--chip); }
.nav-main a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding: 20px 0 36px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; text-align: center; } .hero .cta-row { justify-content: center; } }
.hero h1 { font-size: 42px; line-height: 1.1; margin: 0 0 14px; letter-spacing: -.5px; }
@media (max-width: 520px) { .hero h1 { font-size: 32px; } }
.hero p.sub { font-size: 19px; color: var(--muted); margin: 0 0 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; padding: 11px 20px; border-radius: 14px; text-decoration: none; font-weight: 700; }
.store-btn small { display: block; font-weight: 500; font-size: 11px; opacity: .85; }
.store-btn:hover { text-decoration: none; opacity: .9; }
.soon { color: var(--muted); font-size: 14px; }
.hero-shots { display: flex; justify-content: center; gap: 14px; }
.hero-shots img { width: 46%; max-width: 230px; height: auto; border-radius: 22px; box-shadow: 0 14px 34px rgba(0,0,0,.22); }
.hero-shots img:nth-child(2) { margin-top: 36px; }
.section { padding: 28px 0; }
.section h2 { font-size: 28px; margin: 0 0 8px; }
.section > p.sub { color: var(--muted); margin: 0 0 20px; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile { background: var(--card); border-radius: 18px; padding: 20px; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.tile h3 { margin: 0 0 6px; font-size: 18px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.shots { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 auto; width: 210px; scroll-snap-align: start; text-align: center; }
.shots img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 10px 26px rgba(0,0,0,.2); }
.shots figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: var(--card); border-radius: 16px; padding: 16px 18px 16px 60px; position: relative; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; }
details.faq { background: var(--card); border-radius: 14px; padding: 4px 18px; margin: 10px 0; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
details.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--accent); font-size: 20px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 0 0 14px; color: var(--ink); }
.band { background: var(--accent); color: var(--accent-ink); border-radius: 22px; padding: 30px 26px; text-align: center; margin: 28px 0; }
.band h2 { margin: 0 0 8px; border: 0; padding: 0; color: var(--accent-ink); }
.band p { margin: 0 0 16px; opacity: .92; }
.band .store-btn { background: #fff; color: #111; }
.article { max-width: 760px; margin: 0 auto; }
.article .card h2 { font-size: 22px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.crumbs a { color: var(--muted); }
.rank { display: flex; gap: 14px; align-items: flex-start; }
.rank .n { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pros { color: var(--muted); font-size: 14px; margin: 4px 0; }
.sudoku-grid { border-collapse: collapse; margin: 12px auto; }
.sudoku-grid td { width: 30px; height: 30px; text-align: center; padding: 0; border: 1px solid var(--line); font-weight: 700; }
.sudoku-grid td.b-r { border-right: 2px solid var(--ink); }
.sudoku-grid td.b-b { border-bottom: 2px solid var(--ink); }
.sudoku-grid { border: 2px solid var(--ink); }
.site-footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 8px; }
