/* Smart Chart Hub — base styles (hand-written, no framework) */
:root {
  --ink: #0f1b2d;
  --ink-2: #33404f;
  --muted: #667180;
  --line: #e3e7ed;
  --soft: #f5f7fa;
  --bg: #ffffff;
  --accent: #1d4ed8;
  --accent-ink: #163ca8;
  --accent-soft: #eaf0ff;
  --up: #2f9e6e;
  --down: #cf5641;
  --warn-bg: #fff6e4;
  --warn-line: #f1d39a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.stack > * + * { margin-top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.logo svg { width: 28px; height: 28px; }
.logo:hover { color: var(--ink); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--accent); }
@media (max-width: 700px) { .nav .hide-sm { display: none; } }

.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 40px 0 32px; margin-top: 64px; font-size: 14px; color: var(--ink-2); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; margin-bottom: 24px; }
.site-footer a { color: var(--ink-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; }
.risk-note { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 28px; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Badges / labels */
.label-adv { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* Article (advertorial / breakdowns) */
.article { padding: 36px 0 8px; }
.article h1 { font-family: var(--serif); font-size: clamp(30px, 5.2vw, 46px); font-weight: 700; margin-top: 16px; }
.article .dek { font-family: var(--serif); font-size: 21px; color: var(--ink-2); font-style: italic; line-height: 1.45; }
.article h2 { font-family: var(--serif); font-size: 27px; margin-top: 1.6em; }
.article p, .article li { font-size: 18.5px; line-height: 1.7; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li + li { margin-top: .45em; }
.article blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); font-family: var(--serif); font-size: 21px; color: var(--ink-2); }
.article figure { margin: 28px 0; }
.article figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.byline { display: flex; align-items: center; gap: 12px; margin: 22px 0 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.byline .avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none; background: var(--soft); }
.byline strong { color: var(--ink); display: block; }
.note-allegation { font-size: 14.5px !important; color: var(--muted); font-style: italic; }
.sources { font-size: 14px !important; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 32px; }

.flags { display: grid; gap: 12px; margin: 20px 0 28px; padding: 0; list-style: none; counter-reset: flag; }
.flags li { counter-increment: flag; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 !important; font-size: 17px !important; }
.flags li::before { content: counter(flag); width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--down); color: var(--down); font-weight: 700; display: grid; place-items: center; font-size: 15px; }

.cta-inline { background: var(--accent-soft); border: 1px solid #cfdcff; border-radius: var(--radius); padding: 22px 22px 24px; margin: 32px 0; }
.cta-inline p { font-size: 17.5px !important; margin-bottom: 14px; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.post-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-2px); color: var(--ink); box-shadow: 0 2px 4px rgba(15,27,45,.08), 0 14px 32px rgba(15,27,45,.1); }
.post-card .thumb { background: var(--soft); border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 14px; }
.post-card .body { padding: 18px 20px 22px; }
.post-card h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 8px; }
.post-card p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.post-card .tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: block; }

/* Home */
.hero { padding: 64px 0 56px; background: linear-gradient(180deg, #f3f6fc 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero .container { display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero h1 { font-family: var(--serif); font-size: clamp(34px, 5.5vw, 54px); }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 14.5px; color: var(--ink-2); list-style: none; padding: 0; }
.hero .trust li::before { content: "✓"; color: var(--up); font-weight: 700; margin-right: 6px; }
.hero-art { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; } .hero { padding: 40px 0; } }

.section { padding: 64px 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 34px); margin: 0; }
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step { padding: 24px; }
.step .num { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 19px; }
.step p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.dont { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 0; }
.dont li { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: 15.5px; }
.dont li strong { display: block; margin-bottom: 4px; }
.dont li strong::before { content: "✕"; color: var(--down); margin-right: 8px; }
.mentor { display: grid; gap: 32px; grid-template-columns: 240px 1fr; align-items: center; padding: 28px; }
.mentor .photo { border-radius: 14px; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 5; }
.mentor .photo img, .avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .mentor { grid-template-columns: 1fr; } .mentor .photo { max-width: 220px; } }
.teaser { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; align-items: center; padding: 28px; background: var(--ink); color: #fff; border: 0; }
.teaser h2 { color: #fff; font-family: var(--serif); font-size: 30px; }
.teaser p { color: #c9d2df; }
.teaser .art { background: #fff; border-radius: 12px; padding: 12px; }
@media (max-width: 760px) { .teaser { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); margin: 8px 0 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 18px; color: var(--ink-2); font-size: 16.5px; }
.faq .answer p { margin: 0; font-size: 16.5px !important; }

/* Form */
.lead-box { padding: 28px 24px; margin: 40px 0 0; scroll-margin-top: 80px; }
.lead-box h2 { font-family: var(--serif); font-size: 28px; margin-bottom: 6px; }
.lead-box .sub { color: var(--ink-2); margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=tel] { width: 100%; padding: 14px 14px; border: 1.5px solid #cdd3dc; border-radius: 10px; font-size: 17px; font-family: var(--sans); background: #fff; color: var(--ink); }
.field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(29,78,216,.15); }
.field.has-error input { border-color: var(--down); }
.field .error { display: none; color: var(--down); font-size: 13.5px; margin-top: 5px; }
.field.has-error .error { display: block; }
.phone-wrap { display: flex; }
.phone-wrap .cc { display: grid; place-items: center; padding: 0 14px; border: 1.5px solid #cdd3dc; border-right: 0; border-radius: 10px 0 0 10px; background: var(--soft); font-weight: 600; color: var(--ink-2); }
.phone-wrap input { border-radius: 0 10px 10px 0 !important; }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 10px 16px; border: 1.5px solid #cdd3dc; border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer; background: #fff; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin: 18px 0; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.consent.has-error { color: var(--down); }
.form-msg { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; background: #fdecea; color: #8a2a1b; }
.form-msg.show { display: block; }
.under-btn { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.disclaimer { font-size: 12.5px !important; color: var(--muted); line-height: 1.5; margin-top: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Quiz (app-like) */
.quiz-page { background: var(--soft); min-height: 100vh; display: flex; flex-direction: column; }
.quiz-top { background: #fff; border-bottom: 1px solid var(--line); }
.quiz-top .container { display: flex; align-items: center; justify-content: space-between; height: 56px; max-width: 560px; }
.quiz-shell { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 20px 16px 40px; }
.progress { height: 6px; background: #dde3ec; border-radius: 999px; overflow: hidden; margin: 4px 0 22px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .35s ease; }
.screen { display: none; animation: fadeIn .3s ease; }
.screen.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.q-step { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.q-title { font-size: 24px; font-weight: 700; line-height: 1.25; margin-bottom: 18px; }
.q-chart { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 18px; }
.answers { display: grid; gap: 10px; }
.answer-btn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 16px 18px; background: #fff; border: 2px solid var(--line); border-radius: 14px; font-size: 17px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; min-height: 60px; }
.answer-btn:hover { border-color: #b8c4d8; }
.answer-btn .emo { font-size: 22px; }
.answer-btn.picked { border-color: var(--accent); background: var(--accent-soft); }
.answers.locked .answer-btn { pointer-events: none; }
.feedback { display: none; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: #fff; border-left: 4px solid var(--accent); font-size: 15.5px; color: var(--ink-2); box-shadow: var(--shadow); }
.feedback.show { display: block; animation: fadeIn .25s ease; }
.feedback b { color: var(--ink); }
.start-card { text-align: center; padding: 28px 20px 30px; }
.start-card h1 { font-size: 30px; margin-bottom: 10px; }
.start-card .meta { color: var(--muted); font-size: 14px; margin-top: 12px; }
.result-card { padding: 24px 20px; text-align: center; }
.result-card .score { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 12px; }
.result-card h2 { font-size: 26px; }
.oliver-line { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; text-align: left; background: var(--soft); border-radius: 12px; padding: 14px; margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.oliver-line .avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #fff; }

/* Thank you */
.thanks { padding: 56px 0; text-align: center; }
.thanks .check { width: 72px; height: 72px; border-radius: 50%; background: #e6f5ee; color: var(--up); display: grid; place-items: center; margin: 0 auto 20px; font-size: 36px; font-weight: 700; }
.thanks h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 42px); }
.msg-buttons { display: grid; gap: 12px; max-width: 420px; margin: 28px auto 0; }
.btn-wa { background: #1f9e57; color: #fff; }
.btn-wa:hover { background: #18814a; color: #fff; }
.btn-tg { background: #2481cc; color: #fff; }
.btn-tg:hover { background: #1d6aa8; color: #fff; }

/* Legal */
.legal { padding: 40px 0; }
.legal h1 { font-family: var(--serif); font-size: 36px; }
.legal h2 { font-size: 20px; margin-top: 1.8em; }
.legal p, .legal li { font-size: 16px; color: var(--ink-2); }
.placeholder-banner { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-bottom: 24px; }

/* Cookie banner */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin: 0 auto; background: var(--ink); color: #e6ebf2; border-radius: 14px; padding: 14px 16px; display: none; gap: 14px; align-items: center; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.cookie-bar.show { display: flex; }
.cookie-bar a { color: #fff; }
.cookie-bar .btn { padding: 9px 16px; font-size: 14px; flex: none; }

@media (max-width: 600px) { .cookie-bar { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; font-size: 12.5px; gap: 10px; } .cookie-bar .btn { padding: 7px 12px; } }
body.quiz-page .cookie-bar { display: none !important; }
