/* ---- engagement: subtle entrance + hover micro-interactions + icons ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
main { animation: fadeUp .5s ease both; }
.answer { animation: fadeUp .5s ease .05s both; }
.cta { transition: transform .15s ease, box-shadow .2s ease; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(14,165,233,.45); }
.card { transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(14,165,233,.15); }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #f0f9ff; }
.faq summary { transition: color .15s ease; }
.faq[open] summary { color: var(--sky-dark); }
.faq summary::marker { color: var(--sky-dark); }
ol.steps > li::before { animation: pop .35s ease both; }

/* inline icons (currentColor so they inherit text colour) */
.ico { width: 1.15em; height: 1.15em; vertical-align: -.18em; flex: none; }
h2 .ico { color: var(--sky-dark); margin-right: 8px; }
.answer .ico { color: var(--sky-dark); margin-right: 6px; }

/* icon feature grid */
.feat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 18px 0; }
.feat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 16px; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease; }
.feat:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(14,165,233,.16); border-color: #bae6fd; }
.feat .ico { width: 30px; height: 30px; color: var(--sky-dark); display: block; margin: 0 auto 10px; }
.feat b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 3px; }
.feat span { font-size: 13px; color: #475569; }

@media (prefers-reduced-motion: reduce) { *, ::before, ::after { animation: none !important; transition: none !important; } }

/* ---- theme toggle button ---- */
.themebtn { background: transparent; border: 0; cursor: pointer; color: var(--ink, #0f172a); padding: 6px; border-radius: 10px; display: inline-grid; place-items: center; line-height: 0; }
.themebtn:hover { background: rgba(125,145,170,.15); }
.themebtn .ti-sun { display: none; }
:root[data-theme="dark"] .themebtn .ti-moon { display: none; }
:root[data-theme="dark"] .themebtn .ti-sun { display: inline; }

/* ---- dark mode (keyed off an explicit/ resolved data-theme) ---- */
:root[data-theme="dark"] { --bg:#0b1220; --surface:#152135; --border:#26354d; --ink:#e7eef9; --muted:#96a7bf; --sky:#38bdf8; --sky-dark:#67c7fb; }
:root[data-theme="dark"] body { background:#0b1220 !important; color:#e7eef9; }
:root[data-theme="dark"] header { background:rgba(13,20,34,.82) !important; border-color:#26354d !important; }
:root[data-theme="dark"] .sitenav a { color:#e7eef9; }
:root[data-theme="dark"] p, :root[data-theme="dark"] li, :root[data-theme="dark"] .lead, :root[data-theme="dark"] .faq p, :root[data-theme="dark"] .seo p, :root[data-theme="dark"] .postcard p { color:#c3d0e2 !important; }
:root[data-theme="dark"] h1, :root[data-theme="dark"] h2, :root[data-theme="dark"] h3, :root[data-theme="dark"] strong, :root[data-theme="dark"] b, :root[data-theme="dark"] .postcard h2, :root[data-theme="dark"] td:first-child { color:#e7eef9 !important; }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .toolcard, :root[data-theme="dark"] .postcard, :root[data-theme="dark"] .fb, :root[data-theme="dark"] .stat, :root[data-theme="dark"] .infocard, :root[data-theme="dark"] .feat, :root[data-theme="dark"] details.faq, :root[data-theme="dark"] .ratecard, :root[data-theme="dark"] .litenote { background:#152135 !important; border-color:#26354d !important; }
:root[data-theme="dark"] .postcard.feat { background:linear-gradient(120deg,#16263f,#152135) !important; }
:root[data-theme="dark"] .answer { background:#16263f !important; border-color:#2b4a6e !important; }
:root[data-theme="dark"] .answer p { color:#d9e7f8 !important; }
:root[data-theme="dark"] .tc-ic, :root[data-theme="dark"] .pc-ic, :root[data-theme="dark"] .feat .ico { background:#1d2c45; color:#67c7fb; }
:root[data-theme="dark"] .chip { background:#1d2c45; color:#67c7fb; border-color:#2b4a6e; }
:root[data-theme="dark"] thead th { color:#67c7fb; border-color:#2b4a6e; }
:root[data-theme="dark"] th, :root[data-theme="dark"] td { border-color:#26354d; }
:root[data-theme="dark"] a { color:#67c7fb; }
:root[data-theme="dark"] .navcta, :root[data-theme="dark"] .cta { color:#fff !important; }
:root[data-theme="dark"] .trustrow span, :root[data-theme="dark"] .postmeta time, :root[data-theme="dark"] .muted { color:#8fa1ba !important; }
:root[data-theme="dark"] tbody tr:hover { background:#1b2a42; }
:root[data-theme="dark"] .fb-track { background:#1d2c45 !important; }
:root[data-theme="dark"] .secondary { background:#152135 !important; }
:root[data-theme="dark"] .toolcard em, :root[data-theme="dark"] .toolcard span { color:#8fa1ba; }

/* ---- announcement banner (under the sticky nav) ---- */
.promobar { background: linear-gradient(90deg, #f0f9ff, #e0f2fe); border-bottom: 1px solid #cfeafd; }
.promobar[hidden] { display: none; }
.promobar-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 9px 20px; }
.promobar-txt { font-size: 13.5px; color: #0f172a; flex: 1; min-width: 0; }
.promobar-txt strong { color: #0284c7; }
.promobar-cta { flex: none; background: linear-gradient(135deg,#38bdf8,#0284c7); color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; padding: 7px 15px; border-radius: 999px; white-space: nowrap; box-shadow: 0 5px 14px rgba(14,165,233,.3); }
.promobar-x { flex: none; background: transparent; border: 0; color: #64748b; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
.promobar-x:hover { color: #0f172a; }
@media (max-width: 560px) { .promobar-txt { font-size: 12.5px; } .promobar-in { gap: 10px; padding: 8px 14px; } }
:root[data-theme="dark"] .promobar { background: linear-gradient(90deg,#132033,#16263f); border-color: #26354d; }
:root[data-theme="dark"] .promobar-txt { color: #d9e7f8; }
:root[data-theme="dark"] .promobar-txt strong { color: #67c7fb; }
:root[data-theme="dark"] .promobar-x { color: #8fa1ba; }
:root[data-theme="dark"] .promobar-x:hover { color: #e7eef9; }

/* ---- site footer (multi-column, iPlayPDF-style) ---- */
.sfooter { width: 100%; margin-top: 48px; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.sf-inner { max-width: 1120px; margin: 0 auto; padding: 44px 24px 22px; }
.sf-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 28px; }
.sf-brand { max-width: 320px; }
.sf-logo { height: 40px; width: auto; display: block; margin-bottom: 4px; }
.sf-logomark { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg,#38bdf8,#0284c7); color: #fff; font-weight: 800; display: grid; place-items: center; }
.sf-tag { font-size: 13.5px; line-height: 1.6; color: #475569; margin: 10px 0 14px; }
.sf-app { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #0284c7; text-decoration: none; border: 1px solid #e0f2fe; background: #fff; border-radius: 999px; padding: 8px 14px; }
.sf-app:hover { border-color: #bae6fd; }
.sf-app .ico { width: 16px; height: 16px; }
.sf-col { display: flex; flex-direction: column; }
.sf-col h3 { font-size: 13px; font-weight: 700; color: #0f172a; margin: 0 0 12px; letter-spacing: .01em; }
.sf-col a { font-size: 13.5px; color: #475569; text-decoration: none; padding: 5px 0; }
.sf-col a:hover { color: #0284c7; }
.sf-mid { border-top: 1px solid #e2e8f0; margin-top: 34px; padding-top: 22px; }
.sf-mid h4 { font-size: 12.5px; font-weight: 700; color: #0f172a; margin: 0 0 8px; }
.sf-mid h4:nth-of-type(2), .sf-mid .sf-links + h4 { margin-top: 16px; }
.sf-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sf-links a { font-size: 13px; color: #475569; text-decoration: none; }
.sf-links a:hover { color: #0284c7; }
.sf-bottom { border-top: 1px solid #e2e8f0; margin-top: 24px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #64748b; }
.sf-note { display: inline-flex; align-items: center; gap: 7px; }
.sf-note .ico { width: 15px; height: 15px; color: #10b981; }
@media (max-width: 860px) { .sf-top { grid-template-columns: 1fr 1fr; } .sf-brand { grid-column: 1 / -1; max-width: none; } }
@media (max-width: 480px) { .sf-top { grid-template-columns: 1fr 1fr; gap: 22px 18px; } .sf-inner { padding: 32px 18px 20px; } }
:root[data-theme="dark"] .sfooter { background: #0d1626; border-color: #26354d; }
:root[data-theme="dark"] .sf-mid, :root[data-theme="dark"] .sf-bottom { border-color: #26354d; }
:root[data-theme="dark"] .sf-tag, :root[data-theme="dark"] .sf-col a, :root[data-theme="dark"] .sf-links a, :root[data-theme="dark"] .sf-bottom { color: #96a7bf; }
:root[data-theme="dark"] .sf-col h3, :root[data-theme="dark"] .sf-mid h4 { color: #e7eef9; }
:root[data-theme="dark"] .sf-col a:hover, :root[data-theme="dark"] .sf-links a:hover { color: #67c7fb; }
:root[data-theme="dark"] .sf-app { background: #152135; border-color: #26354d; color: #67c7fb; }

/* ---- browser-window frame (shared; the homepage wraps the live gauge, landing pages a preview) ---- */
.appwindow { width: min(560px, 100%); margin: 16px auto 0; background: #fff; border: 1px solid var(--border, #e0f2fe); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(2,132,199,.14), 0 4px 14px rgba(15,23,42,.06); }
.aw-bar { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-bottom: 1px solid var(--border, #e0f2fe); background: var(--surface, #f0f9ff); }
.aw-dots { display: inline-flex; gap: 6px; flex: none; }
.aw-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.aw-dots i:nth-child(1) { background: #ff5f57; } .aw-dots i:nth-child(2) { background: #febc2e; } .aw-dots i:nth-child(3) { background: #28c840; }
.aw-url { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; color: var(--muted, #64748b); background: #fff; border: 1px solid var(--border, #e0f2fe); border-radius: 999px; padding: 5px 14px; max-width: 290px; margin: 0 auto; white-space: nowrap; overflow: hidden; }
.aw-url svg { width: 12px; height: 12px; color: #10b981; flex: none; }
.aw-chip { flex: none; font-size: 11.5px; font-weight: 700; color: #0284c7; background: #fff; border: 1px solid var(--border, #e0f2fe); border-radius: 999px; padding: 4px 11px; }
.aw-body { padding: 14px 14px 20px; display: flex; flex-direction: column; align-items: center; }
/* framed gauge preview used on the keyword landing pages (links to the live test) */
.tframe { margin: 20px auto 6px; }
.tframe .aw-body { padding: 28px 18px 30px; }
.tf-gauge { position: relative; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from 135deg, #38bdf8, #0ea5e9 62%, rgba(148,163,184,.22) 62%); }
.tf-gauge::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.tf-ic { position: relative; z-index: 1; color: #0284c7; display: grid; place-items: center; }
.tf-ic .ico { width: 46px; height: 46px; }
.tf-title { margin-top: 16px; font-weight: 800; font-size: 17px; color: var(--ink, #0f172a); letter-spacing: -.2px; }
.tf-sub { margin-top: 2px; font-size: 12.5px; color: var(--muted, #64748b); }
.tf-start { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg,#38bdf8,#0284c7); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 28px; border-radius: 999px; box-shadow: 0 8px 20px rgba(14,165,233,.35); transition: transform .12s ease, box-shadow .12s ease; }
.tf-start:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(14,165,233,.45); }
@media (max-width: 560px) { .aw-chip { display: none; } .aw-url { max-width: none; } }
:root[data-theme="dark"] .appwindow { background: #152135; border-color: #26354d; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
:root[data-theme="dark"] .aw-bar { background: #1b2a42; border-color: #26354d; }
:root[data-theme="dark"] .aw-url, :root[data-theme="dark"] .aw-chip { background: #152135; border-color: #26354d; }
:root[data-theme="dark"] .aw-chip { color: #67c7fb; }
:root[data-theme="dark"] .tf-gauge::before { background: #152135; }
:root[data-theme="dark"] .tf-ic { color: #67c7fb; }
