/* Passive Array design system for the tools site.
   Tokens come from passive-array-brand/brand-guide.html. Dark mode flips the surface tokens. */
:root {
  --ink: #1F2A44;
  --teal: #2A9D8F;
  --deep: #1F7F73;
  --indigo: #5B6ABF;
  --mint: #8FD3C7;
  --bg: #F4F7F9;
  --card: #FFFFFF;
  --text: #1F2A44;
  --muted: #5A6478;
  --line: #E3E8EE;
  --soft: #E6F3F1;
  --soft-indigo: #EEF0FA;
  --hero: #1F2A44;
  --hero-text: #FFFFFF;
  --hero-muted: #C9D1E0;
  --good: #157347; --good-bg: #E3F4EA;
  --warn: #B7791F; --warn-bg: #FBF1DF;
  --bad: #B42318;  --bad-bg: #FBE4E1;
  --yt: #CC0000; --tw: #6441A5; --ig: #C13584; --tt: #1F2A44; --x: #5A6478;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(31, 42, 68, 0.08);
}
:root[data-theme="dark"] {
  --bg: #0F1626;
  --card: #172038;
  --text: #EEF2F7;
  --muted: #A5AFC2;
  --line: #273353;
  --soft: #14332F;
  --soft-indigo: #1E2444;
  --hero: #0B1020;
  --hero-text: #FFFFFF;
  --hero-muted: #A5AFC2;
  --good-bg: #123A26; --warn-bg: #3A2C10; --bad-bg: #3F1A16;
  --good: #7BD8A4; --warn: #F0C36B; --bad: #F59A8E;
  --tt: #EEF2F7;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--deep); text-decoration: none; }
a:hover { color: var(--text); }
:root[data-theme="dark"] a { color: var(--mint); }
h1, h2, h3 { letter-spacing: -0.02em; font-weight: 600; margin: 0; }
h1 { font-size: 2.1rem; line-height: 1.15; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
.muted { color: var(--muted); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------------------------------------------------------------- header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-header > .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 1.15rem; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand b { color: var(--teal); font-weight: 600; }
.hsearch {
  flex: 1 1 auto; max-width: 520px; display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 6px 0 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
.hsearch svg { flex: none; color: var(--muted); }
.hsearch input { flex: 1; min-width: 0; height: 32px; border: 0; outline: 0; background: transparent; font: inherit; font-size: .95rem; color: var(--text); }
.hsearch button { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--deep); color: #fff; font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: .95rem; font-weight: 500; }
.nav a { color: var(--text); }
.nav a.active, .nav a:hover { color: var(--deep); }
:root[data-theme="dark"] .nav a.active, :root[data-theme="dark"] .nav a:hover { color: var(--mint); }
.iconbtn {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); padding: 0;
}
.iconbtn svg { width: 18px; height: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px; border: 0;
  background: var(--deep); color: #fff; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { color: var(--text); border-color: var(--teal); }
.btn.mint { background: var(--mint); color: #1F2A44; }
.btn:disabled { opacity: .6; cursor: wait; }
@media (max-width: 900px) {
  .nav { display: none; }
  .hsearch { max-width: none; }
  .site-header .iconbtn { margin-left: auto; }
  .hsearch + .iconbtn { margin-left: 0; }
}
.desk-br { display: inline; }
@media (max-width: 640px) { .desk-br { display: none; } }
@media (max-width: 640px) {
  .site-header > .wrap { height: 60px; gap: 10px; }
  .brand span { display: none; }
  .hsearch button { padding: 0 10px; }
}

/* ---------------------------------------------------------------- hero (home) */
.hero { padding: 72px 0 40px; text-align: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--soft); color: var(--deep); font-size: .82rem; font-weight: 600;
}
:root[data-theme="dark"] .hero .eyebrow { color: var(--mint); }
.hero .eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.08; margin: 24px auto 0; max-width: 900px; }
.hero p { margin: 18px auto 0; font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.bigsearch {
  margin: 32px auto 0; max-width: 860px; display: flex; align-items: center; gap: 10px;
  height: 68px; padding: 0 10px 0 22px; background: var(--card); border: 2px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow);
}
:root[data-theme="dark"] .bigsearch { border-color: var(--teal); }
.bigsearch svg { flex: none; color: var(--muted); }
.bigsearch input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.1rem; color: var(--text); }
.bigsearch .btn { height: 48px; padding: 0 26px; font-size: 1rem; }
.tryline { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.tryline .chip { padding: 4px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; color: var(--text); }
.tryline a { font-weight: 600; }
@media (max-width: 640px) {
  .hero { padding: 44px 0 28px; }
  .bigsearch { height: auto; flex-wrap: wrap; padding: 10px; gap: 8px; border-radius: 16px; }
  .bigsearch input { flex-basis: 100%; height: 40px; padding: 0 8px; font-size: 1rem; }
  .bigsearch .btn { flex: 1; }
}

/* ---------------------------------------------------------------- sections and cards */
.section { padding: 40px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head a { font-size: .9rem; font-weight: 600; }
.section-head .sub { font-size: .85rem; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.c4, .grid.c3, .grid.c2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
a.card { display: flex; flex-direction: column; gap: 8px; color: var(--text); transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--teal); transform: translateY(-2px); color: var(--text); }
a.card h3 { font-size: 1.02rem; }
a.card p { font-size: .88rem; color: var(--muted); }
.intent { gap: 12px !important; padding: 24px; }
.intent .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--deep); }
.intent .ic.indigo { background: var(--soft-indigo); color: var(--indigo); }
.intent .ic svg { width: 22px; height: 22px; }
.intent h3 { font-size: 1.1rem; }
.intent .count { font-size: .82rem; font-weight: 600; color: var(--deep); margin-top: auto; }
:root[data-theme="dark"] .intent .count { color: var(--mint); }
.plat { font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.plat.YouTube { color: var(--yt); } .plat.Twitch { color: var(--tw); } .plat.Instagram { color: var(--ig); } .plat.TikTok { color: var(--tt); } .plat.X { color: var(--x); }
.tagline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live { font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--deep); letter-spacing: .04em; }
:root[data-theme="dark"] .live { color: var(--mint); }
.dark-band {
  margin-top: 48px; padding: 32px; background: var(--hero); color: var(--hero-text); border-radius: 24px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.dark-band > div { display: flex; flex-direction: column; gap: 8px; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.dark-band > div:first-child { padding-left: 0; border-left: 0; }
.dark-band .k { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--mint); }
.dark-band h3 { color: #fff; font-size: 1.1rem; }
.dark-band p { font-size: .9rem; color: var(--hero-muted); }
@media (max-width: 900px) { .dark-band { grid-template-columns: 1fr; padding: 24px; } .dark-band > div { padding-left: 0; border-left: 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); } .dark-band > div:first-child { padding-top: 0; border-top: 0; } }

/* ---------------------------------------------------------------- filters (directory) */
.filters { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 8px; }
.filters .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters .lbl { width: 88px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.fbtn {
  height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.fbtn i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.fbtn.on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
:root[data-theme="dark"] .fbtn.on { background: var(--teal); border-color: var(--teal); color: #0F1626; }
.group { margin-top: 28px; }
.group h2 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.group h2 .sub { font-size: .85rem; font-weight: 400; color: var(--muted); }
.search-row { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; max-width: 420px; }
.search-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: .95rem; color: var(--text); }
.empty { color: var(--muted); padding: 24px 0; }

/* ---------------------------------------------------------------- tool page */
.tool-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 28px; flex-wrap: wrap; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.tool-head h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; color: #fff; vertical-align: middle; }
.badge.YouTube { background: var(--yt); } .badge.Twitch { background: var(--tw); } .badge.Instagram { background: var(--ig); } .badge.TikTok { background: #1F2A44; } .badge.X { background: #1F2A44; }
.tool-head .intro { color: var(--muted); max-width: 720px; margin-top: 8px; }
.siblings { display: flex; flex-wrap: wrap; gap: 8px; }
.siblings a { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: .88rem; font-weight: 500; display: inline-flex; align-items: center; }
.siblings a:hover { border-color: var(--teal); }
.inputcard { margin-top: 22px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; align-items: end; }
.fields .field.wide { grid-column: 1 / -1; }
.field { margin: 0; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.hint { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; height: 48px; font: inherit; font-size: 1rem; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text);
}
textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 140px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
input.invalid { border-color: var(--bad); }
.cols { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.col { display: flex; flex-direction: column; gap: 12px; }
.col h3 { font-size: .95rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.status { color: var(--muted); font-size: .9rem; }

/* ---------------------------------------------------------------- results */
.results { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 84px; }
.results:empty { display: none; }
.herocard { background: var(--hero); color: var(--hero-text); border-radius: 20px; padding: 26px 28px; display: flex; flex-direction: column; gap: 18px; }
.herocard .profile { display: flex; align-items: center; gap: 14px; }
.herocard .profile img { width: 52px; height: 52px; border-radius: 50%; }
.herocard .profile .t { font-weight: 600; font-size: 1.05rem; }
.herocard .profile .t a { color: #fff; }
.herocard .profile .m { font-size: .85rem; color: var(--hero-muted); }
.herocard .profile .open { margin-left: auto; font-size: .85rem; font-weight: 600; color: var(--mint); white-space: nowrap; }
.herocard .k { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--mint); }
.herocard .v { font-size: clamp(1.7rem, 3.4vw, 2.9rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.herocard .n { font-size: .9rem; color: var(--hero-muted); }
.herocard .n a { color: var(--mint); }
.herocard .hactions { display: flex; flex-wrap: wrap; gap: 10px; }
.herocard .hactions .btn { height: 40px; font-size: .85rem; background: transparent; border: 1px solid rgba(255,255,255,.24); color: #fff; }
.herocard .hactions .btn.mint { background: var(--mint); color: #1F2A44; border: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile .name { font-size: .78rem; font-weight: 600; color: var(--muted); }
.tile .name small { display: block; font-weight: 400; font-size: .74rem; }
.tile .val { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.tile .val.good { color: var(--good); } .tile .val.warn { color: var(--warn); } .tile .val.bad { color: var(--bad); }
.good { color: var(--good); } .warn { color: var(--warn); } .bad { color: var(--bad); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--soft); color: var(--deep); vertical-align: middle; }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.herocard .pill { font-size: .8rem; }
.bars { display: flex; flex-direction: column; gap: 14px; }
.barrow .top { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.barrow .top .name { color: var(--muted); }
.barrow .top .val { font-weight: 600; }
.bar { height: 8px; background: var(--soft); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--indigo)); }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; font-size: .82rem; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.lead { font-weight: 700; color: var(--good); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--soft-indigo); color: var(--indigo); border-radius: 8px; padding: 5px 9px; font-size: .88rem; }
.tag.broad { background: var(--warn-bg); color: var(--warn); }
.tag.niche { background: var(--good-bg); color: var(--good); }
.list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.copybox { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .95rem; white-space: pre-wrap; word-break: break-word; }
.idea { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.idea b { font-weight: 600; }
.idea span { color: var(--muted); font-size: .88rem; }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.note { color: var(--muted); font-size: .88rem; }
.error { background: var(--bad-bg); color: var(--bad); border-radius: 12px; padding: 14px 16px; }
.two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; margin-top: 28px; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.how ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: .92rem; display: flex; flex-direction: column; gap: 6px; }
.next { background: var(--soft); border: 0; display: flex; flex-direction: column; gap: 10px; }
.next a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 16px; background: var(--card); border-radius: 12px; color: var(--text); font-size: .92rem; font-weight: 500; }
.next a b { color: var(--deep); font-weight: 600; white-space: nowrap; }
:root[data-theme="dark"] .next a b { color: var(--mint); }
.next a:hover { color: var(--text); }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: .85rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }

/* ---------------------------------------------------------------- header actions, mobile menu */
.hactions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.nav + .hactions { margin-left: 0; }
.hsignup { height: 40px; padding: 0 16px; font-size: .9rem; }
.hsignup.done { background: var(--soft); color: var(--deep); cursor: default; }
:root[data-theme="dark"] .hsignup.done { color: var(--mint); }
.menubtn { display: none; }
@media (max-width: 900px) {
  .site-header .hactions .iconbtn { margin-left: 0; }
  .menubtn { display: inline-flex; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 24px 12px;
  }
  .nav.open a { padding: 12px 0; border-top: 1px solid var(--line); font-size: 1rem; }
  .nav.open a:first-child { border-top: 0; }
}
@media (max-width: 640px) {
  .hsignup { height: 36px; padding: 0 12px; font-size: .82rem; }
}

/* ---------------------------------------------------------------- footer (multi-column) */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: .88rem; color: var(--muted); background: var(--card); }
.site-footer .wrap { display: block; }
.fgrid { display: grid; grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr)); gap: 26px; }
.fbrand p { margin: 12px 0 18px; max-width: 34ch; line-height: 1.55; }
.fbrand .brand { font-size: 1.05rem; }
.fcol h4 { margin: 0 0 12px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.fcol a { display: block; color: var(--muted); padding: 4px 0; }
.fcol a:hover { color: var(--deep); }
:root[data-theme="dark"] .fcol a:hover { color: var(--mint); }
.fnews label { display: block; font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.fnews .row { display: flex; gap: 8px; }
.fnews input[type=email] { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: .9rem; }
.fnews input[type=email]:focus { outline: 2px solid var(--mint); border-color: var(--teal); }
.fnews .btn { height: 44px; padding: 0 16px; }
.fmsg { display: block; margin-top: 8px; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.fmsg.good { color: var(--good); }
.fmsg.bad { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fbottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }
.fbottom nav { display: flex; gap: 18px; }
.fbottom a { color: var(--muted); }
@media (max-width: 1180px) { .fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fbrand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr 1fr; gap: 24px; } .site-footer { padding-top: 32px; } }

/* ---------------------------------------------------------------- sign-up modal */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(15, 22, 38, .55); backdrop-filter: blur(2px); }
.modal-card { position: relative; width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.modal-card .k { font-size: .75rem; font-weight: 600; letter-spacing: .05em; color: var(--deep); }
:root[data-theme="dark"] .modal-card .k { color: var(--mint); }
.modal-card h2 { margin: 6px 0 8px; font-size: 1.5rem; }
.modal-card p { font-size: .92rem; line-height: 1.5; }
.modal-card form { margin-top: 18px; }
.modal-card label { display: block; font-size: .82rem; font-weight: 600; margin: 12px 0 6px; }
.modal-card input[type=email], .modal-card select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: .95rem; }
.modal-card input:focus, .modal-card select:focus { outline: 2px solid var(--mint); border-color: var(--teal); }
.modal-card .btn.wide { width: 100%; margin-top: 16px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; }
.modal-x svg { width: 16px; height: 16px; }
body.modal-open { overflow: hidden; }

/* ---------------------------------------------------------------- extension promo band (home) */
.promo { margin-top: 8px; padding: 36px; background: linear-gradient(135deg, var(--teal), var(--indigo)); color: #fff; border-radius: 24px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.promo .k { font-size: .78rem; font-weight: 600; letter-spacing: .05em; color: rgba(255,255,255,.85); }
.promo h2 { color: #fff; font-size: 1.7rem; margin: 8px 0 10px; }
.promo p { color: rgba(255,255,255,.88); font-size: 1rem; max-width: 46ch; margin-bottom: 20px; }
.promo-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.promo-stats div { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 14px 16px; }
.promo-stats b { display: block; font-size: 1.5rem; font-weight: 600; }
.promo-stats span { font-size: .82rem; color: rgba(255,255,255,.8); }
@media (max-width: 900px) { .promo { grid-template-columns: 1fr; padding: 28px 22px; } }

/* ---------------------------------------------------------------- blog and long-form pages */
main.narrow { max-width: 860px; }
.page-head { padding: 40px 0 24px; }
.page-head h1 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); margin-top: 8px; }
.page-head .lead { margin-top: 14px; font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.page-head .meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: var(--muted); }
.page-head .meta b { color: var(--deep); font-weight: 600; letter-spacing: .04em; }
:root[data-theme="dark"] .page-head .meta b { color: var(--mint); }
a.card.post { gap: 10px; }
a.card.post .pdate { margin-top: auto; font-size: .8rem; color: var(--muted); }
.prose { font-size: 1.02rem; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose blockquote { margin: 0 0 18px; padding: 14px 20px; border-left: 3px solid var(--teal); background: var(--soft); border-radius: 0 12px 12px 0; }
.prose blockquote p { margin: 0; }
.prose code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--soft-indigo); padding: 2px 6px; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 500; font-size: .85rem; letter-spacing: .02em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.tools-used { margin-top: 40px; }
.tools-used h2 { margin-bottom: 14px; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .92rem; }
.post-nav a { max-width: 48%; }
.post-nav span { display: block; font-size: .78rem; color: var(--muted); }
.cta-band { margin-top: 44px; padding: 26px 28px; background: var(--hero); color: var(--hero-text); border-radius: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cta-band h3 { color: #fff; font-size: 1.15rem; }
.cta-band p { color: var(--hero-muted); font-size: .92rem; margin-top: 4px; }

/* ---------------------------------------------------------------- contact form and company pages */
.form-card label { display: block; font-size: .85rem; font-weight: 600; margin: 14px 0 6px; }
.form-card label:first-child { margin-top: 0; }
.form-card input[type=text], .form-card input[type=email], .form-card textarea, .form-card select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: .95rem; }
.form-card textarea { min-height: 150px; resize: vertical; }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { outline: 2px solid var(--mint); border-color: var(--teal); }
.form-card .btn { margin-top: 16px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--muted); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: 10px; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.stats-row div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stats-row b { display: block; font-size: 1.6rem; font-weight: 600; color: var(--deep); }
:root[data-theme="dark"] .stats-row b { color: var(--mint); }
.stats-row span { font-size: .82rem; color: var(--muted); }
@media (max-width: 760px) { .stats-row { grid-template-columns: 1fr 1fr; } }

/* Mobile: the nav collapses, so the actions must keep the right edge. */
@media (max-width: 900px) { .site-header .hactions { margin-left: auto; } }

/* ---------------------------------------------------------------- blog category nav */
.catnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.catnav a {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); font-size: .88rem; font-weight: 500;
}
.catnav a:hover { border-color: var(--teal); color: var(--deep); }
.catnav a.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
:root[data-theme="dark"] .catnav a.on { background: var(--teal); border-color: var(--teal); color: #0F1626; }
.catnav a span { font-size: .75rem; color: var(--muted); }
.catnav a.on span { color: rgba(255,255,255,.75); }
:root[data-theme="dark"] .catnav a.on span { color: rgba(15,22,38,.7); }
@media (max-width: 640px) { .catnav a { height: 34px; padding: 0 12px; font-size: .82rem; } }

/* ---------------------------------------------------------------- accounts */
.hlogin { font-size: .92rem; font-weight: 500; color: var(--text); white-space: nowrap; padding: 0 4px; }
.hlogin:hover { color: var(--deep); }
:root[data-theme="dark"] .hlogin:hover { color: var(--mint); }
@media (max-width: 480px) { .hlogin { display: none; } }

.btn.wide { width: 100%; }
.btn.ghost.danger { color: var(--bad); border-color: var(--line); }
.btn.ghost.danger:hover { color: var(--bad); border-color: var(--bad); }

.form-card .btn.wide { margin-top: 18px; }
.login-done h3 { margin-bottom: 8px; }
.login-done p { color: var(--muted); font-size: .95rem; line-height: 1.6; margin-bottom: 16px; }

.arow { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.arow:first-child { border-top: 1px solid var(--line); }
.arow span { color: var(--muted); flex: none; }
.arow b { font-weight: 600; text-align: right; word-break: break-word; }

.pref { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .95rem; }
.pref input { width: 18px; height: 18px; accent-color: var(--deep); cursor: pointer; flex: none; }

/* ---------------------------------------------------------------- sign in */
.gbtn { display: flex; justify-content: center; margin-bottom: 4px; min-height: 44px; }
.orline { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: .82rem; }
.orline::before, .orline::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pwfield { position: relative; display: flex; align-items: center; }
.pwfield input { flex: 1; padding-right: 68px !important; }
.pwshow { position: absolute; right: 8px; border: 0; background: transparent; color: var(--deep); font: 600 .82rem inherit; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.pwshow:hover { background: var(--soft); }
:root[data-theme="dark"] .pwshow { color: var(--mint); }
.authalt { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.authalt .link { background: none; border: 0; padding: 0; color: var(--deep); font: 500 .88rem inherit; cursor: pointer; }
.authalt .link:hover { text-decoration: underline; }
:root[data-theme="dark"] .authalt .link { color: var(--mint); }
.authswap { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.authmsg h3 { margin-bottom: 8px; }
.authmsg p { color: var(--muted); font-size: .95rem; line-height: 1.6; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.plain li { font-size: .92rem; line-height: 1.55; color: var(--muted); }
ul.plain b { color: var(--text); }

/* ---------------------------------------------------------------- mega menu */
.navbtn {
  display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent;
  color: var(--text); font: inherit; font-size: .95rem; font-weight: 500; cursor: pointer; padding: 0;
}
.navbtn:hover, .navbtn.active, .navbtn[aria-expanded="true"] { color: var(--deep); }
:root[data-theme="dark"] .navbtn:hover, :root[data-theme="dark"] .navbtn.active { color: var(--mint); }
.navbtn svg { transition: transform .15s; }
.navbtn[aria-expanded="true"] svg { transform: rotate(180deg); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
  background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.mega[hidden] { display: none; }
.mgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; padding-top: 26px; padding-bottom: 22px; }
.mcol h4 { font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.mcol a { display: block; padding: 5px 0; font-size: .92rem; color: var(--text); }
.mcol a:hover { color: var(--deep); }
:root[data-theme="dark"] .mcol a:hover { color: var(--mint); }
.mcol a.mmore { margin-top: 8px; font-weight: 600; color: var(--deep); }
:root[data-theme="dark"] .mcol a.mmore { color: var(--mint); }
.mfoot { background: var(--bg); border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.mfoot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.mfoot b { color: var(--text); }
@media (max-width: 1100px) { .mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .mega { display: none !important; } }

/* ---------------------------------------------------------------- stat bar */
.statbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.statbar div { padding: 22px 20px; text-align: center; border-left: 1px solid var(--line); }
.statbar div:first-child { border-left: 0; }
.statbar b { display: block; font-size: 2rem; font-weight: 600; line-height: 1.1; color: var(--deep); letter-spacing: -.02em; }
:root[data-theme="dark"] .statbar b { color: var(--mint); }
.statbar span { font-size: .85rem; color: var(--muted); }
@media (max-width: 720px) { .statbar { grid-template-columns: 1fr 1fr; } .statbar div:nth-child(3) { border-left: 0; } .statbar div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------------------------------------------------------- comparison table */
.compare-strip { padding: 10px 10px 16px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.cmp th, table.cmp td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.cmp thead th { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
table.cmp th.us, table.cmp td.us { background: var(--soft); }
:root[data-theme="dark"] table.cmp th.us, :root[data-theme="dark"] table.cmp td.us { background: var(--soft); }
table.cmp thead th.us { color: var(--deep); }
:root[data-theme="dark"] table.cmp thead th.us { color: var(--mint); }
table.cmp td.us { font-weight: 600; color: var(--deep); }
:root[data-theme="dark"] table.cmp td.us { color: var(--mint); }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td:first-child { color: var(--text); }
.compare-strip .note { margin: 12px 14px 0; font-size: .82rem; color: var(--muted); line-height: 1.55; }

/* ------------------------------------------------------------ capability steps */
.steps-flow { display: grid; gap: 20px; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.step.flip .step-text { order: 2; }
.step .k { font-size: .76rem; font-weight: 700; letter-spacing: .08em; color: var(--deep); }
:root[data-theme="dark"] .step .k { color: var(--mint); }
.step h3 { font-size: 1.35rem; margin: 10px 0 10px; }
.step p { color: var(--muted); font-size: .96rem; line-height: 1.6; }
.step-tools { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.step-tools a { font-size: .84rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--text); }
.step-tools a:hover { border-color: var(--teal); color: var(--deep); }
:root[data-theme="dark"] .step-tools a:hover { color: var(--mint); }
@media (max-width: 860px) { .step { grid-template-columns: 1fr; padding: 22px; } .step.flip .step-text { order: 0; } }

.art { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: .85rem; }
.art-head { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 12px; font-size: .9rem; }
.art-head b { color: var(--deep); }
:root[data-theme="dark"] .art-head b { color: var(--mint); }
.art-title { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-weight: 600; margin-bottom: 12px; }
.art-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; color: var(--muted); font-size: .82rem; }
.art-row b { color: var(--text); }
.art-bar { height: 6px; border-radius: 6px; background: var(--line); margin-top: 5px; overflow: hidden; }
.art-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--indigo)); }
.art-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.art-chips span { font-size: .78rem; padding: 4px 9px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.art-chips span.dim { color: var(--muted); }
.art-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.art-tiles div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.art-tiles b { display: block; font-size: 1.15rem; font-weight: 600; }
.art-tiles span { font-size: .74rem; color: var(--muted); }
.art-big { font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; }
.art-big span { font-size: .9rem; font-weight: 400; color: var(--muted); }

/* ================================================================ home v2
   Dark-first landing page. Light theme still works through the tokens. */
.nav a.navmob { display: none; }
@media (max-width: 900px) { .nav.open a.navmob { display: block; } .nav.open .navbtn { display: none; } }
.mega.small .mgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 860px; }

.hero2 h1 em { font-style: normal; color: var(--mint); }
:root:not([data-theme="dark"]) .hero2 h1 em { color: var(--teal); }
.hero2-row { display: flex; align-items: stretch; justify-content: center; gap: 16px; margin-top: 32px; }
.hero2-row .bigsearch { margin: 0; flex: 1 1 auto; max-width: 760px; }
.bigsearch.glow { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(42,157,143,.14), 0 12px 40px rgba(42,157,143,.22); }
:root[data-theme="dark"] .bigsearch.glow { box-shadow: 0 0 0 4px rgba(143,211,199,.12), 0 0 46px rgba(42,157,143,.42); }
.score-card {
  flex: 0 0 236px; display: flex; flex-direction: column; justify-content: center; gap: 6px; text-align: left;
  padding: 12px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text);
  box-shadow: var(--shadow);
}
.score-card:hover { border-color: var(--teal); color: var(--text); }
.sc-label { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sc-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.sc-title { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-score { font-size: 1.9rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--mint); }
:root:not([data-theme="dark"]) .sc-score { color: var(--deep); }
.sc-score small { font-size: .95rem; color: var(--muted); font-weight: 500; margin-left: 2px; }
.sc-bar { height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.sc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--mint)); }
@media (max-width: 760px) { .hero2-row { flex-direction: column; } .score-card { flex-basis: auto; } }

.statband { margin-top: 44px; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statband .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.statband div { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 22px 12px; }
.statband b { font-size: 2rem; font-weight: 600; letter-spacing: -.02em; color: var(--mint); }
:root:not([data-theme="dark"]) .statband b { color: var(--deep); }
.statband span { font-size: .95rem; color: var(--muted); }
@media (max-width: 720px) { .statband .wrap { grid-template-columns: 1fr 1fr; } .statband div { padding: 16px 8px; } .statband b { font-size: 1.6rem; } }

h2.center { text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); }
p.center.sub { text-align: center; color: var(--muted); margin: 8px auto 18px; max-width: 60ch; }
.vs { color: var(--muted); font-weight: 400; font-size: .8em; margin: 0 6px; }
.brand-vidiq { color: #7C8CFF; }
.brand-tb { color: #F07AA0; }
.cmp2 table.cmp thead th small { display: block; font-size: .7rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); margin-top: 2px; }
.cmp2 table.cmp thead th { font-size: .9rem; text-transform: none; letter-spacing: 0; color: var(--text); }
.cmp2 table.cmp td { color: var(--muted); }
.cmp2 table.cmp td:first-child { color: var(--text); }
.cmp2 table.cmp td .tick { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; color: var(--mint); }
:root:not([data-theme="dark"]) .cmp2 table.cmp td .tick { color: var(--deep); }
.cmp2 table.cmp td.good { color: var(--text); }
.cmp2 table.cmp td.us { font-weight: 600; }
.cmp2 table.cmp th.us, .cmp2 table.cmp td.us { box-shadow: inset 2px 0 0 var(--teal), inset -2px 0 0 var(--teal); }
.cmp2 table.cmp thead th.us { box-shadow: inset 2px 2px 0 var(--teal), inset -2px 0 0 var(--teal); border-radius: 10px 10px 0 0; }
.cmp2 table.cmp tbody tr:last-child td.us { box-shadow: inset 2px 0 0 var(--teal), inset -2px -2px 0 var(--teal); border-radius: 0 0 10px 10px; }

.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feat {
  display: block; padding: 22px; border-radius: 20px; color: #fff;
  background: linear-gradient(160deg, #2A9D8F 0%, #1F5F62 45%, #172038 100%);
  border: 1px solid rgba(143,211,199,.25); box-shadow: 0 16px 40px rgba(0,0,0,.25); transition: transform .15s, box-shadow .15s;
}
.feat:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 20px 48px rgba(42,157,143,.35); }
.feat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.feat .k { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mint); }
.feat h3 { color: #fff; font-size: 1.35rem; margin-top: 4px; }
.feat-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(143,211,199,.18); display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.feat-ic svg { width: 20px; height: 20px; }
.feat .art { background: rgba(11,16,32,.55); border-color: rgba(255,255,255,.12); color: #fff; }
.feat .art-head, .feat .art-row b, .feat .art-tiles b, .feat .art-big { color: #fff; }
.feat .art-head b { color: var(--mint); }
.feat .art-row, .feat .art-tiles span, .feat .art-chips span.dim, .feat .art-big span { color: rgba(255,255,255,.72); }
.feat .art-title, .feat .art-chips span, .feat .art-tiles div { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; }
.feat .art-bar { background: rgba(255,255,255,.14); }
.feat .art-bar i { background: linear-gradient(90deg, var(--mint), #fff); }
@media (max-width: 860px) { .feat-grid { grid-template-columns: 1fr; } }

.tgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tcard { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); transition: border-color .15s, transform .15s; }
.tcard:hover { border-color: var(--teal); transform: translateY(-2px); color: var(--text); }
.tcard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.tcard h3 { font-size: .98rem; }
.tcard p { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.tplat { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pbadge { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.pbadge svg { width: 20px; height: 20px; }
.pbadge.yt { background: #E62117; }
.pbadge.ig { background: linear-gradient(135deg, #F58529, #DD2A7B 55%, #8134AF); }
.pbadge.tt { background: #111318; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.pbadge.tw { background: #6441A5; }
.pbadge.x { background: #222; }
@media (max-width: 1000px) { .tgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tgrid { grid-template-columns: 1fr; } }

.ext-band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 28px; }
.ext-text .k { font-size: .76rem; font-weight: 700; letter-spacing: .08em; color: var(--mint); }
:root:not([data-theme="dark"]) .ext-text .k { color: var(--deep); }
.ext-text h2 { font-size: 1.7rem; margin: 8px 0 10px; }
.ext-text p { color: var(--muted); font-size: 1rem; margin-bottom: 18px; line-height: 1.6; }
.ext-browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow); font-size: .72rem; }
.ext-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--card); border-bottom: 1px solid var(--line); color: var(--muted); }
.ext-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.ext-bar span { margin-left: 8px; }
.ext-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; padding: 12px; }
.ext-video { display: flex; flex-direction: column; gap: 8px; }
.ext-play { aspect-ratio: 16/9; border-radius: 8px; background: linear-gradient(135deg, #1F2A44, #0F1626); position: relative; }
.ext-play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; border-left: 16px solid rgba(255,255,255,.7); border-top: 10px solid transparent; border-bottom: 10px solid transparent; transform: translate(-40%, -50%); }
.ext-line { height: 8px; border-radius: 4px; background: var(--line); }
.ext-line.w80 { width: 80%; } .ext-line.w50 { width: 50%; }
.ext-panel { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ext-ph { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.ext-ph svg { width: 16px; height: 16px; }
.ext-hero { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 8px; background: linear-gradient(135deg, var(--teal), var(--indigo)); color: #fff; }
.ext-hero span { font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.ext-hero b { font-size: 1.1rem; }
.ext-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ext-tiles div { background: var(--bg); border-radius: 6px; padding: 6px 8px; }
.ext-tiles b { display: block; font-size: .85rem; }
.ext-tiles span { color: var(--muted); font-size: .62rem; }
@media (max-width: 860px) { .ext-band { grid-template-columns: 1fr; padding: 20px; } }

/* Link-styled buttons: the dark-theme anchor colour must not win over the button colour. */
:root[data-theme="dark"] a.btn { color: #fff; }
:root[data-theme="dark"] a.btn.ghost { color: var(--text); }
:root[data-theme="dark"] a.btn.mint, a.btn.mint, .btn.mint { color: #1F2A44; }
:root[data-theme="dark"] a.btn.mint:hover, a.btn.mint:hover { color: #1F2A44; }

.ext-mark { display:inline-flex; width:16px; height:16px; }
.ext-mark svg { width:16px; height:16px; }
.brand svg, .fbrand .brand svg { width:32px; height:32px; }

/* Google sign-up slots and the toast */
.gslot { display: inline-flex; align-items: center; min-height: 40px; }
.gslot[hidden] { display: none; }
:root.has-google .hsignup { display: none; }
.gslot.mob { display: none; padding: 10px 0 4px; }
.nav.open .gslot.mob:not([hidden]) { display: flex; }
@media (max-width: 640px) { .hactions .gslot { display: none; } :root.has-google .hsignup { display: inline-flex; } }
.mfoot-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); z-index: 60; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .92rem; box-shadow: var(--shadow); opacity: 0; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); }
:root[data-theme="dark"] .toast { background: var(--teal); color: #0F1626; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Analytics consent bar. Only rendered when Tag Manager is configured. */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 880px; margin: 0 auto; padding: 16px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s;
}
.consent.show { opacity: 1; transform: translateY(0); }
.consent[hidden] { display: none; }
.consent p { font-size: .9rem; color: var(--muted); line-height: 1.5; margin: 0; flex: 1 1 320px; }
.consent p b { color: var(--text); }
.consent-actions { display: flex; gap: 8px; flex: none; }
.consent-actions .btn { height: 40px; padding: 0 18px; font-size: .9rem; }
@media (max-width: 560px) { .consent { padding: 14px 16px; } .consent-actions { width: 100%; } .consent-actions .btn { flex: 1; } }
.flink { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.flink:hover { color: var(--deep); }
:root[data-theme="dark"] .flink:hover { color: var(--mint); }
.flink[hidden] { display: none; }

/* ---------------------------------------------------------------- research */
.kw-tag { border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: .88rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 8px; }
.kw-tag:hover { border-color: var(--teal); color: var(--text); }
.kw-rank { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; background: var(--soft); color: var(--deep); font-size: .72rem; font-weight: 700; }
:root[data-theme="dark"] .kw-rank { color: var(--mint); }
#kwform.bigsearch { max-width: none; }
.rtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.rtabs a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; color: var(--text); font-weight: 500; font-size: .95rem; }
.rtabs a:hover { background: var(--card); color: var(--text); }
.rtabs a.on { background: var(--ink); color: #fff; font-weight: 600; }
:root[data-theme="dark"] .rtabs a.on { background: var(--teal); color: #0F1626; }
.rtabs a .soon { font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--soft-indigo); color: var(--indigo); letter-spacing: .04em; }
.ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.ogrid.thumbs { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ocard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; color: var(--text); transition: border-color .15s, transform .15s; }
.ocard:hover { border-color: var(--teal); transform: translateY(-2px); color: var(--text); }
.ocard .th { position: relative; aspect-ratio: 16 / 9; background: var(--soft); }
.ocard .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ocard .x { position: absolute; left: 10px; top: 10px; padding: 4px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700; }
.ocard .x.hot { background: #B42318; }
.ocard .dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.75); color: #fff; font-size: .72rem; font-weight: 600; }
.ocard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.ocard .t { font-weight: 600; font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ocard .c { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.ocard .c img { width: 22px; height: 22px; border-radius: 50%; }
.ocard .m { font-size: .8rem; color: var(--muted); }
.ocard .m b { color: var(--text); font-weight: 600; }
.ogrid.thumbs .ocard .body { display: none; }
.ofilters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.ofilters select { width: auto; height: 38px; padding: 0 10px; font-size: .88rem; }
.ofilters .fbtn { height: 34px; }
.ostat { font-size: .85rem; color: var(--muted); margin: 0 0 14px; }

/* ---------------------------------------------------------- watchlist + Pro */
.wl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.wl-add { display: flex; gap: 8px; flex: 1 1 320px; max-width: 460px; }
.wl-add input { flex: 1; min-width: 0; height: 44px; }
.wl-add .btn { height: 44px; flex: none; }
.wltable { width: 100%; font-size: .92rem; margin-top: 14px; }
.wltable .ch { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.wltable .ch img { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.wltable .ch a { color: var(--text); font-weight: 600; }
.wltable .ch small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }
.wltable .up { color: var(--good); font-weight: 600; }
.wltable .down { color: var(--bad); font-weight: 600; }
.wltable .flat { color: var(--muted); }
.wltable .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 4px 8px; border-radius: 6px; }
.wltable .x:hover { color: var(--bad); background: var(--soft); }
.wl-empty { margin-top: 14px; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .92rem; }
.wl-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.plan-prices { display: flex; gap: 8px; flex-wrap: wrap; }
.plans .plan { display: flex; flex-direction: column; }
.plans .price { font-size: 3rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin: 8px 0 4px; }
.plans .price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.herocard .hactions .btn.watch[disabled] { opacity: .7; cursor: default; }
.ofilters .fbtn.export { margin-left: auto; }
.pro-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; background: var(--teal); color: #fff; vertical-align: middle; }

/* ======================================================= landing page (lp-) */
:root { --band: #0F1626; --band-2: #141C30; --band-text: #E8ECF3; --band-muted: #9AA4B8; --dots: rgba(31,42,68,.14); }
:root[data-theme="dark"] { --band: #0A1020; --band-2: #111A2E; --dots: rgba(255,255,255,.08); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }

/* 1. hero */
.lp-hero { position: relative; padding: 64px 0 0; text-align: center; background-image: radial-gradient(var(--dots) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.lp-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.lp-hero > .wrap { position: relative; z-index: 1; }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--soft); color: var(--deep); font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.lp-pill i { font-style: normal; color: var(--teal); }
:root[data-theme="dark"] .lp-pill { color: var(--mint); }
.lp-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1.06; letter-spacing: -.035em; margin: 26px auto 0; max-width: 820px; }
.lp-hero h1 mark { display: inline-block; padding: 0 .22em; margin: 0 -.04em; border-radius: .22em; background: linear-gradient(135deg, var(--teal), var(--indigo)); color: #fff; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lp-lead { margin: 20px auto 0; font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.lp-ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn.lp-primary { background: linear-gradient(135deg, var(--teal), var(--deep)); color: #fff; height: 50px; padding: 0 24px; font-size: 1rem; }
.btn.lp-primary:hover { color: #fff; }
.lp-ctas .btn.ghost { height: 50px; padding: 0 24px; font-size: 1rem; }
.lp-proof { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 30px auto 0; max-width: 720px; }
.lp-stack { display: inline-flex; }
.lp-stack .pbadge { width: 40px; height: 40px; border: 3px solid var(--bg); margin-left: -10px; display: inline-flex; align-items: center; justify-content: center; }
.lp-stack .pbadge:first-child { margin-left: 0; }
.lp-stack .pbadge.more { background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; }
:root[data-theme="dark"] .lp-stack .pbadge.more { background: var(--card); color: var(--mint); }
.lp-proof-text { font-size: .9rem; color: var(--muted); text-align: left; max-width: 420px; }
.lp-statwrap { position: relative; z-index: 2; margin-top: 44px; margin-bottom: -56px; }
.lp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--band); color: var(--band-text); border-radius: 20px; padding: 22px 12px; box-shadow: 0 24px 60px -24px rgba(15,22,38,.55); }
.lp-stats div { text-align: center; padding: 6px 8px; border-left: 1px solid rgba(255,255,255,.1); }
.lp-stats div:first-child { border-left: 0; }
.lp-stats b { display: block; font-size: 2rem; font-weight: 600; letter-spacing: -.02em; color: var(--mint); line-height: 1.1; }
.lp-stats span { font-size: .85rem; color: var(--band-muted); }

/* 2 + 5. dark bands */
.lp-band { background: var(--band); color: var(--band-text); padding: 110px 0 64px; }
.lp-band h2 { color: #fff; }
.lp-band .sub { color: var(--band-muted); }
.lp-two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.lp-band-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.12; letter-spacing: -.03em; max-width: 14ch; }
.lp-ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.lp-ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--band-muted); font-size: 1rem; line-height: 1.5; }
.lp-ticks .tick { flex: none; margin-top: 3px; color: var(--mint); background: rgba(143,211,199,.14); border-radius: 50%; padding: 2px; }
.lp-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; color: var(--mint); font-weight: 600; }
.lp-widget { background: var(--band-2); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.lp-widget-head { display: flex; align-items: center; gap: 10px; color: var(--band-muted); font-weight: 600; font-size: .9rem; }
.lp-widget h3 { font-size: 1.25rem; color: #fff; }
.lp-widget p { color: var(--band-muted); font-size: .92rem; margin-top: -4px; }
.lp-widget input { height: 50px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #fff; padding: 0 16px; font: inherit; font-size: 1rem; }
.lp-widget input::placeholder { color: var(--band-muted); }
.lp-widget input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.lp-widget small { color: var(--band-muted); font-size: .82rem; }
.lp-try { background: none; border: 0; padding: 0; color: var(--mint); font: inherit; font-size: inherit; cursor: pointer; text-decoration: underline; }
.lp-compare { margin-top: 60px; padding: 64px 0; }
.lp-compare .card { background: var(--card); color: var(--text); }

/* 3. finder */
.lp-finder { padding-top: 96px; }
.lp-finder h2.center { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.03em; }
.lp-search { display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 0 auto; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--muted); }
.lp-search:focus-within { border-color: var(--teal); }
.lp-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1rem; outline: 0; }
.lp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 22px; }
.lp-chips .fbtn small { font-weight: 500; opacity: .7; margin-left: 2px; }
.lp-tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-tgrid .tcard[hidden] { display: none; }
.lp-tgrid .tcard-top { justify-content: flex-start; gap: 8px; }
.lp-tgrid .live { margin-left: auto; }
.lp-empty { text-align: center; color: var(--muted); padding: 24px 0; }
.lp-more { margin-top: 22px; }
.lp-more[hidden] { display: none; }

/* 4. numbered */
.lp-numbered { padding-top: 56px; }
.lp-numgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.numcard { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--text); transition: transform .15s, border-color .15s; }
.numcard:hover { transform: translateY(-3px); border-color: var(--teal); color: var(--text); }
.numcard-top { display: flex; align-items: center; justify-content: space-between; }
.numcard .num { font-size: 2.4rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.numcard-ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; }
.numcard.teal .numcard-ic { background: var(--teal); } .numcard.indigo .numcard-ic { background: var(--indigo); } .numcard.mint .numcard-ic { background: var(--deep); } .numcard.gold .numcard-ic { background: #B7791F; }
.numcard h3 { font-size: 1.05rem; line-height: 1.3; }
.numcard p { font-size: .9rem; color: var(--muted); line-height: 1.5; }

@media (max-width: 1000px) {
  .lp-numgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-two { grid-template-columns: 1fr; gap: 28px; }
  .lp-band-text h2 { max-width: none; }
}
@media (max-width: 640px) {
  .lp-hero { padding-top: 40px; }
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .lp-stats div:nth-child(3) { border-left: 0; }
  .lp-statwrap { margin-bottom: -40px; }
  .lp-band { padding-top: 84px; }
  .lp-tgrid, .lp-numgrid { grid-template-columns: 1fr; }
  .lp-proof-text { text-align: center; }
  .lp-ctas .btn { width: 100%; }
}
