/* ChowChow Labs house style placeholder — swap the custom properties for the G1 palette.
   Deliberately avoids Smart Serve's brand colours and any official-looking seal (PRD §13). */
:root {
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --bg: #f8fafc; --card: #fff;
  --brand: #0f766e; --brand-2: #115e59; --brand-soft: #ccfbf1; --accent: #f59e0b; --accent-soft: #fef3c7;
  --ok: #15803d; --ok-soft: #dcfce7; --bad: #b91c1c; --bad-soft: #fee2e2;
  --radius: 14px; --shadow: 0 1px 2px rgb(15 23 42 / .06), 0 4px 16px rgb(15 23 42 / .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
a { color: var(--brand); }
a:hover { color: var(--brand-2); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .4em 0 .3em; }
h2 { font-size: 1.45rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.1rem; margin: .2em 0 .3em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: .88rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 99; }
[hidden] { display: none !important; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 16px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--brand); }
.nav-account { font-weight: 600; color: var(--brand) !important; }
.indep-bar { background: var(--accent-soft); font-size: .82rem; color: #78350f; padding: 6px 0; }
.indep-bar a { color: #78350f; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 650; font-size: .98rem; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: #fff; } .btn-primary:hover { background: var(--brand-2); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); } .btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* hero + sections */
.hero { background: linear-gradient(180deg, #fff, var(--bg)); padding: 48px 0 28px; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 18ch; }
.hero .lead { max-width: 60ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 10px; }
.section { padding: 24px 20px 8px; }
.section-head p { margin-top: 0; }
.sub { margin-top: 1.6em; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: inherit; text-decoration: none; box-shadow: var(--shadow); position: relative; }
a.card:hover { border-color: var(--brand); }
.card p { margin: .3em 0 0; font-size: .92rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.tag-free { background: var(--ok-soft); color: var(--ok); }
.tag-prem { background: var(--accent-soft); color: #92400e; }
.card-score { position: absolute; top: 14px; right: 14px; font-size: .8rem; font-weight: 700; }
.card-score.pass { color: var(--ok); } .card-score.fail { color: var(--bad); }
.plan-block { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--brand-soft); border-radius: var(--radius); padding: 22px 24px; }
.plan-block h2 { margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat span { font-size: 1.5rem; font-weight: 750; display: block; }
.last3 { margin-top: 10px; font-size: .92rem; color: var(--ink-2); }

/* tables */
.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 12px 0; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: #f1f5f9; }
.fvp th:last-child { background: var(--accent-soft); }
@media (max-width: 640px) { .compare { font-size: .86rem; } .compare th, .compare td { padding: 9px 10px; } }

/* articles */
.article { max-width: 760px; padding-bottom: 32px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-top: 18px; }
.crumbs a { color: var(--muted); }
.callout { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 10px; padding: 14px 16px; margin: 18px 0; }
.callout.warn { background: var(--accent-soft); border-color: var(--accent); }
.callout.prem { background: var(--accent-soft); border-color: var(--accent); }
.steps li, .checklist li { margin: .35em 0; }
.checklist { list-style: none; padding-left: 0; }
.checklist li::before { content: "☐"; margin-right: 10px; color: var(--brand); }
.cols { columns: 2; } @media (max-width: 560px) { .cols { columns: 1; } }
.guide-cta { margin: 26px 0 8px; }
.premium-line { font-size: .95rem; color: var(--ink-2); }
.sources { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.sources-h { font-weight: 650; margin: 0 0 4px; }
.sources ul { margin: 0; padding-left: 18px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 8px 0; }
.faq summary { font-weight: 650; cursor: pointer; }
.day { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 10px; margin: 14px 0; }
.ad-slot { margin: 24px 0; min-height: 90px; border: 1px dashed var(--line); border-radius: 10px; display: grid; place-items: center; color: var(--muted); font-size: .8rem; }

/* forms */
.form { display: grid; gap: 12px; max-width: 420px; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.form input[type=email], .form input[type=password], .form input[type=date] { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.form .check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-msg { min-height: 1.2em; font-size: .9rem; margin: 0; }
.buy-box { background: #fff; border: 2px solid var(--brand); border-radius: var(--radius); padding: 20px; max-width: 360px; margin: 20px 0; text-align: center; }
.price { font-size: 2.2rem; font-weight: 800; margin: 0 0 10px; } .price small { font-size: 1rem; color: var(--muted); }

/* quiz */
.quiz-page { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; padding-bottom: 40px; }
@media (max-width: 860px) { .quiz-page { grid-template-columns: 1fr; } .related { order: 2; } }
.related { font-size: .92rem; margin-top: 60px; } .related h2 { font-size: 1rem; }
.mode-pick { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.paywall { background: #fff; border: 2px solid var(--accent); border-radius: var(--radius); padding: 20px 22px; margin: 18px 0; }
.paywall h2 { margin-top: 0; }
.q-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 16px 0 8px; font-size: .92rem; color: var(--ink-2); }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.timer.low { color: var(--bad); border-color: var(--bad); }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); transition: width .2s; }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 14px 0; box-shadow: var(--shadow); }
.q-text { font-size: 1.12rem; font-weight: 600; margin: 0 0 14px; }
.opts { display: grid; gap: 10px; }
.opt { text-align: left; font: inherit; padding: 13px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; min-height: 48px; }
.opt:hover { border-color: #94a3b8; }
.opt .k { font-weight: 750; color: var(--muted); width: 1.2em; flex: none; }
.opt.sel { border-color: var(--brand); background: #f0fdfa; }
.opt.right { border-color: var(--ok); background: var(--ok-soft); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt[disabled] { cursor: default; }
.feedback { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #f1f5f9; font-size: .95rem; }
.q-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.flag { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; font: inherit; font-size: .88rem; }
.flag.on { background: var(--accent-soft); border-color: var(--accent); }
.dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.dot { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .82rem; cursor: pointer; }
.dot.ans { background: var(--brand-soft); border-color: var(--brand); }
.dot.cur { outline: 2px solid var(--ink); }
.dot.flg { box-shadow: inset 0 -3px 0 var(--accent); }
.result-hero { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; margin: 18px 0; }
.result-score { font-size: 3rem; font-weight: 800; line-height: 1; }
.result-badge { display: inline-block; margin-top: 10px; padding: 6px 14px; border-radius: 99px; font-weight: 750; }
.result-badge.pass { background: var(--ok-soft); color: var(--ok); } .result-badge.fail { background: var(--bad-soft); color: var(--bad); }
.upsell { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; }
.upsell p { margin: .3em 0; }
.review-item { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 10px; padding: 12px 14px; margin: 8px 0; font-size: .95rem; }
.review-item.miss { border-left-color: var(--bad); }
.review-item.locked { filter: blur(3px); user-select: none; pointer-events: none; }
.topic-break td:last-child { text-align: right; }
.dev-banner { background: #1e293b; color: #e2e8f0; font-size: .8rem; padding: 6px 12px; text-align: center; }
.dev-banner button { font: inherit; font-size: .8rem; margin-left: 8px; }

/* footer */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 48px; padding: 32px 0 18px; font-size: .9rem; }
.site-footer a { color: #e2e8f0; display: block; margin: 3px 0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
.footer-brand { font-weight: 750; color: #fff; margin: 0 0 6px; }
.footer-h { font-weight: 650; color: #fff; margin: 0 0 6px; }
.disclaimer { font-size: .84rem; color: #94a3b8; }
.disclaimer a { display: inline; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 20px; padding-top: 14px; font-size: .8rem; color: #94a3b8; }
@media (max-width: 640px) { .header-inner { min-height: 52px; padding-top: 6px; } .nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 16px; font-size: .9rem; padding-bottom: 8px; scrollbar-width: none; } .nav a { white-space: nowrap; } .hero { padding-top: 28px; } }
@media print { .site-header, .site-footer, .indep-bar, .ad-slot { display: none; } }
