/* seo.3ats.vn — same tokens as 3ats.vn (navy #00205E, blue #0063FE, Be Vietnam Pro). */
:root {
  --navy: #00205e;
  --brand: #0063fe;
  --brand-600: #0052d6;
  --brand-50: #eef4ff;
  --brand-100: #dbe8ff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --line-brand: #dbe5f5;
  --page: #f8fafc;
  --good: #059669;
  --good-bg: #ecfdf5;
  --warn: #d97706;
  --warn-bg: #fffbeb;
  --bad: #dc2626;
  --bad-bg: #fef2f2;
  --radius: 20px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 16px/1.6 'Be Vietnam Pro', ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(28px, 6vw, 46px); font-weight: 800; }
h2 { font-size: clamp(22px, 4vw, 30px); font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
a { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* Header / footer */
.top { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.top img { height: 24px; width: auto; display: block; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: 13px; font-weight: 700; }
.foot { margin-top: 56px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot a { color: var(--navy); font-weight: 600; text-decoration: none; }

/* Hero */
.hero { padding: 36px 0 8px; display: grid; gap: 28px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr .95fr; align-items: start; padding-top: 56px; } }
.eyebrow { color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.lead { margin-top: 14px; color: var(--muted); font-size: 17px; max-width: 34em; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%230063fe' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.demo { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 44px); gap: 10px; }
.demo span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 6px 16px rgba(15, 23, 42, .12); }

/* Cards / form */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
@media (min-width: 640px) { .card { padding: 28px; } }
.glass { box-shadow: 0 16px 40px rgba(15, 23, 42, .10); }
.steps { display: flex; gap: 8px; margin-bottom: 18px; }
.steps span { flex: 1; height: 5px; border-radius: 99px; background: var(--line); }
.steps span.on { background: var(--brand); }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
label small { font-weight: 400; color: var(--muted); }
.field { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--page); border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px 14px; }
.field:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(0, 99, 254, .15); }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23475569' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 22px; border: 0; border-radius: 12px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; transition: background .2s; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(0, 99, 254, .28); }
.btn-primary:hover { background: var(--brand-600); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid var(--line-brand); }
.btn-outline:hover { background: var(--brand-50); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--brand); cursor: pointer; }
.error { color: var(--bad); background: var(--bad-bg); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.hint { color: var(--muted); font-size: 13px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: 13.5px; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.places { display: grid; gap: 10px; }
.place { text-align: left; width: 100%; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; display: grid; gap: 2px; }
.place:hover { border-color: var(--brand); background: var(--brand-50); }
.place b { color: var(--navy); }
.place span { color: var(--muted); font-size: 13.5px; }
.chosen { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; background: var(--brand-50); border-radius: 14px; padding: 12px 14px; }
.chosen b { color: var(--navy); display: block; }
.chosen span { color: var(--muted); font-size: 13.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 13.5px; border: 1px solid var(--line-brand); background: #fff; color: var(--navy); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.how { margin-top: 48px; display: grid; gap: 14px; }
@media (min-width: 760px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how .card { padding: 20px; }
.how b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; margin-bottom: 10px; }
.how p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* Report */
.r-head { padding: 28px 0 18px; display: grid; gap: 8px; }
.r-meta { color: var(--muted); font-size: 14.5px; }
.r-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .r-grid { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.score { display: flex; gap: 18px; align-items: center; }
.ring { --p: 0; flex: none; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c, var(--brand)) calc(var(--p) * 1%), var(--line) 0); }
.ring div { width: 82px; height: 82px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.ring strong { font-size: 26px; color: var(--navy); line-height: 1; }
.ring small { display: block; font-size: 11.5px; color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.stat { background: var(--page); border-radius: 14px; padding: 10px 12px; }
.stat b { display: block; color: var(--navy); font-size: 19px; }
.stat span { font-size: 12.5px; color: var(--muted); }
#map { height: 380px; border-radius: 16px; border: 1px solid var(--line); z-index: 0; }
@media (min-width: 900px) { #map { height: 460px; } }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.pin { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 14px/1 'Be Vietnam Pro', sans-serif; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, .35); }
.pin.wait { background: #94a3b8; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .pin.wait { animation: none; } }
.c-good { background: var(--good); } .c-warn { background: var(--warn); } .c-bad { background: var(--bad); } .c-none { background: #64748b; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 260px; margin: 14px auto 0; }
.mini div { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; text-align: center; font-size: 15px; line-height: 1.1; }
.mini small { display: block; font-size: 10px; font-weight: 600; opacity: .9; }
.insights { display: grid; gap: 12px; }
.insight { border-radius: 16px; padding: 16px 18px; border: 1px solid var(--line); background: #fff; border-left-width: 5px; }
.insight.good { border-left-color: var(--good); } .insight.warn { border-left-color: var(--warn); } .insight.bad { border-left-color: var(--bad); }
.insight p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.rivals { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rivals th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.rivals td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rivals td:first-child { color: var(--navy); font-weight: 600; }
.rivals .num { text-align: right; white-space: nowrap; }
.actions { list-style: none; counter-reset: a; padding: 0; margin: 0; display: grid; gap: 12px; }
.actions li { counter-increment: a; display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.actions li::before { content: counter(a); width: 32px; height: 32px; border-radius: 10px; background: var(--brand-50); color: var(--brand); font-weight: 800; display: grid; place-items: center; }
.actions p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.cta { background: var(--navy); color: #c7d6f5; border: 0; }
.cta h2 { color: #fff; }
.cta p { margin-top: 10px; }
.cta .row { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 640px) { .cta .row { grid-template-columns: 1fr 1fr; } }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.progress { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 14px; }
.progress div { height: 100%; width: 0; background: var(--brand); transition: width .5s; }
.section-title { margin: 28px 0 12px; }
.popup b { color: var(--navy); }
.popup ol { margin: 6px 0 0; padding-left: 18px; }
.popup .me { color: var(--brand); font-weight: 700; }
