/* =====================================================================
   Software-Directory.com — Design System
   Source of truth: Directory Network LLM Design Implementation Brief §3
   Brand role: objective, analytical, premium, fast, trustworthy B2B SaaS
   ===================================================================== */

:root {
  /* --- Color tokens (Brief §3.2) --- */
  --brand-900: #0B1D3A;   /* Deep Blue  - nav, hero, footer, high-trust */
  --brand-700: #1E3A8A;   /* Bright Blue- links, selected states       */
  --brand-accent: #00B7A3;/* Teal       - primary CTA, positive status  */
  --accent-700: #009486;  /* Teal hover                                 */
  --text: #0F172A;        /* near-black/navy body text                  */
  --text-muted: #64748B;  /* Slate Gray - metadata                      */
  --surface-soft: #F2F4F7;/* Cool Gray  - section backgrounds           */
  --surface: #FFFFFF;     /* card / page surface                        */
  --border: #E3E8EF;      /* 1px neutral gray border                    */
  --border-strong: #CBD5E1;

  /* semantic */
  --warn: #F59E0B;        /* rating stars / amber highlight             */
  --star: #F5B429;
  --good: var(--brand-accent);

  /* --- Spacing scale (Brief §2.1): 4/8/12/16/24/32/48/64/96 --- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-6: 24px; --s-8: 32px; --s-12: 48px; --s-16: 64px; --s-24: 96px;

  /* --- Radii --- */
  --r-card: 12px;     /* cards */
  --r-control: 10px;  /* buttons / inputs */
  --r-pill: 999px;    /* chips / tags / status */

  /* --- Shadows (subtle only, no glow) --- */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 12px 32px rgba(11, 29, 58, .12);

  --maxw: 1200px;
  --header-h: 68px;
  --font: "DM Sans", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 var(--s-4); color: var(--brand-900); letter-spacing: -.01em; }
h1 { font-size: clamp(36px, 5vw, 54px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; }
h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 700; }
p  { margin: 0 0 var(--s-4); }
ul { margin: 0; padding: 0; }
li { list-style: none; }
:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-6); }
.section { padding: var(--s-16) 0; }
.section--soft { background: var(--surface-soft); }
.section--tight { padding: var(--s-12) 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: 13px;
  font-weight: 700; color: var(--brand-accent); margin: 0 0 var(--s-2);
}
.section-head { max-width: 720px; margin-bottom: var(--s-8); }
.section-head p { color: var(--text-muted); font-size: 17px; margin: 0; }
.text-muted { color: var(--text-muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--brand-900); color: #fff; padding: 12px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 11px 20px;
  border-radius: var(--r-control); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand-accent); color: #052e2a; }
.btn--primary:hover { background: var(--accent-700); color: #042521; }
.btn--blue { background: var(--brand-700); color: #fff; }
.btn--blue:hover { background: #16307a; }
.btn--secondary { background: var(--surface); color: var(--brand-900); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--brand-700); color: var(--brand-700); }
.btn--ghost { background: transparent; color: var(--brand-700); padding-left: 8px; padding-right: 8px; }
.btn--ghost:hover { color: var(--brand-900); }
.btn--onDark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn--onDark:hover { background: rgba(255,255,255,.16); }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn .i { width: 18px; height: 18px; }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.arrow-link .i { width: 16px; height: 16px; transition: transform .16s ease; }
.arrow-link:hover .i { transform: translateX(3px); }

/* ---------------------------------------------------------------- icons */
.i { display: inline-block; vertical-align: middle; stroke: currentColor; fill: none;
     stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- chips / badges */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--brand-900);
  transition: border-color .16s, color .16s, background .16s;
}
a.chip:hover { border-color: var(--brand-700); color: var(--brand-700); text-decoration: none; }
.chip .i { width: 16px; height: 16px; color: var(--brand-700); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
  border: 1px solid transparent; line-height: 1.2;
}
.badge .i { width: 13px; height: 13px; }
.badge--verified { background: #E7F0FF; color: #1E3A8A; border-color: #C7DBFF; }
.badge--top      { background: #E5F8F5; color: #067a6e; border-color: #B9EBE4; }
.badge--sponsored{ background: #FFF4E5; color: #9a5b00; border-color: #FBE0BC; }
.badge--free     { background: #F2F4F7; color: #475569; border-color: #E3E8EF; }
.badge--new      { background: #EAF0FF; color: #2540b8; border-color: #CDD9FF; }
.badge--value    { background: #F0EDFF; color: #5b46c9; border-color: #DAD2FF; }
.badge--offer    { background: #FDECEC; color: #b4322f; border-color: #F7CFCE; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--brand-900);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .container { display: flex; align-items: center; gap: var(--s-6); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.brand .brand-text { color: #fff; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand .brand-text .tld { color: var(--brand-accent); }
.brand:hover { text-decoration: none; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: var(--s-2); }
.main-nav a {
  color: #cdd7e6; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 8px; display: inline-block;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.07); text-decoration: none; }
.main-nav a[aria-current="page"] { color: #fff; }
.header-actions { display: flex; align-items: center; gap: var(--s-3); }
.header-actions .sign-in { color: #cdd7e6; font-weight: 600; font-size: 15px; padding: 8px 6px; }
.header-actions .sign-in:hover { color: #fff; text-decoration: none; }

.nav-toggle {
  display: none; margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,.25);
  color: #fff; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .i { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0B1D3A 0%, #10254c 55%, #0d2350 100%);
  color: #fff;
}
.hero::after { /* subtle, non-animated grid glow, no parallax */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 90% at 85% 15%, rgba(0,183,163,.16), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(30,58,138,.35), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-12);
  align-items: center; padding: var(--s-16) 0;
}
.hero h1 { color: #fff; margin-bottom: var(--s-4); }
.hero h1 .accent { color: var(--brand-accent); }
.hero-sub { color: #c3cfe0; font-size: 18px; max-width: 46ch; margin-bottom: var(--s-8); }

/* search */
.search-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-card); padding: var(--s-3);
  box-shadow: var(--shadow-lg);
}
.search-form { display: flex; gap: var(--s-2); }
.search-field { position: relative; flex: 1 1 auto; display: flex; align-items: center; }
.search-field .i { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--text-muted); }
.search-input {
  width: 100%; height: 52px; padding: 0 14px 0 44px;
  border: 1px solid var(--border); border-radius: var(--r-control);
  font: inherit; font-size: 15px; color: var(--text); background: #fff;
}
.search-input::placeholder { color: #94a3b8; }
.search-select {
  height: 52px; padding: 0 40px 0 14px; min-width: 168px;
  border: 1px solid var(--border); border-radius: var(--r-control);
  font: inherit; font-size: 15px; color: var(--text); background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.popular-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: var(--s-4); }
.popular-row .label { color: #9fb0c8; font-size: 14px; font-weight: 600; }
.pop-chip {
  padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: #e6edf6; font-size: 13.5px; font-weight: 600;
}
.pop-chip:hover { background: rgba(255,255,255,.16); text-decoration: none; }

/* hero visual (abstract analytics, no stock photo) */
.hero-visual { position: relative; }
.viz-card {
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14); border-radius: 16px;
  padding: var(--s-6); box-shadow: var(--shadow-lg);
}
.viz-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-6); }
.viz-title { font-weight: 700; font-size: 15px; color: #eaf1fb; }
.viz-dots { display: flex; gap: 6px; }
.viz-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.3); }
.viz-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6); align-items: end; }
.viz-bars { display: flex; align-items: flex-end; gap: 12px; height: 150px; }
.viz-bars span { flex: 1; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #2ea4ff, #1E3A8A); }
.viz-bars span:nth-child(2) { background: linear-gradient(180deg, #23c9b6, #00B7A3); }
.viz-bars span:nth-child(4) { background: linear-gradient(180deg, #23c9b6, #009486); }
.viz-donut {
  width: 128px; height: 128px; border-radius: 50%;
  background: conic-gradient(var(--brand-accent) 0 42%, #2ea4ff 42% 68%, #1E3A8A 68% 100%);
  margin: 0 auto; position: relative;
}
.viz-donut::after { content: ""; position: absolute; inset: 24px; border-radius: 50%; background: #10254c; }
.viz-legend { margin-top: var(--s-4); display: grid; gap: 6px; }
.viz-legend li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #b9c7dc; }
.viz-legend .k { width: 10px; height: 10px; border-radius: 3px; }

/* ---------------------------------------------------------------- trust metrics strip */
.metrics { border-top: 1px solid rgba(255,255,255,.1); }
.metrics-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6);
  padding: var(--s-8) 0;
}
.metric { display: flex; align-items: center; gap: var(--s-4); color: #dfe7f2; }
.metric .m-ico {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center; background: rgba(0,183,163,.14); color: var(--brand-accent);
}
.metric .m-ico .i { width: 22px; height: 22px; }
.metric > span { display: flex; flex-direction: column; }
.metric .num { display: block; font-size: 24px; font-weight: 700; color: #fff; line-height: 1.1; }
.metric .lbl { display: block; font-size: 13.5px; color: #9fb0c8; margin-top: 2px; }

/* ---------------------------------------------------------------- category grid */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.cat-card {
  display: flex; flex-direction: column; gap: var(--s-2);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: var(--s-6); transition: box-shadow .16s, border-color .16s, transform .16s;
}
.cat-card:hover { border-color: var(--brand-700); box-shadow: var(--shadow-md); text-decoration: none; transform: translateY(-2px); }
.cat-card .c-ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-soft); color: var(--brand-700); margin-bottom: var(--s-2);
}
.cat-card .c-ico .i { width: 24px; height: 24px; }
.cat-card .c-name { font-weight: 700; font-size: 16px; color: var(--brand-900); }
.cat-card .c-count { font-size: 13px; color: var(--text-muted); }

/* ---------------------------------------------------------------- software listing card */
.listing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
.software-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: var(--s-6); box-shadow: var(--shadow-sm);
  transition: box-shadow .16s, border-color .16s;
}
.software-card:hover { box-shadow: var(--shadow-md); }
.software-card.is-sponsored { border-color: #FBE0BC; }
.sc-flag {
  display: inline-flex; align-self: flex-start; margin-bottom: var(--s-3);
}
.sc-top { display: flex; gap: var(--s-4); }
.sc-logo {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff;
  border: 1px solid var(--border);
}
.sc-headings { flex: 1; min-width: 0; }
.sc-name { font-size: 18px; font-weight: 700; color: var(--brand-900); margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-cat { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-muted); margin-top: 6px; }
.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars .i { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.stars .i.empty { fill: #dfe3ea; }
.rating .score { font-weight: 700; color: var(--brand-900); }
.sc-desc { color: #475569; font-size: 14.5px; margin: var(--s-4) 0; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-4); }
.feature-chips span {
  font-size: 12.5px; font-weight: 600; color: #475569;
  background: var(--surface-soft); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 4px 10px;
}
.sc-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--border);
}
.sc-price .amt { font-size: 20px; font-weight: 700; color: var(--brand-900); }
.sc-price .per { font-size: 12.5px; color: var(--text-muted); }
.sc-price .verified-on { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.compare-toggle {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600;
  color: var(--brand-700); cursor: pointer; user-select: none; margin-top: var(--s-3);
}
.compare-toggle input { width: 17px; height: 17px; accent-color: var(--brand-accent); }

/* logo color helpers */
.lg-blue { background: #1E3A8A; } .lg-teal { background: #00B7A3; }
.lg-indigo { background: #4338CA; } .lg-sky { background: #0284C7; }
.lg-slate { background: #334155; } .lg-orange { background: #EA580C; }
.lg-rose { background: #BE123C; } .lg-green { background: #15803D; }

/* ---------------------------------------------------------------- badges (v2) */
.badge--hiring   { background: #E5F8F5; color: #067a6e; border-color: #B9EBE4; }
.badge--remote   { background: #EAF0FF; color: #2540b8; border-color: #CDD9FF; }
.badge--featured { background: #FFF4E5; color: #9a5b00; border-color: #FBE0BC; }

/* ---------------------------------------------------------------- company card (v2) */
.company-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: var(--s-6); box-shadow: var(--shadow-sm);
  transition: box-shadow .16s, border-color .16s;
}
.company-card:hover { box-shadow: var(--shadow-md); }
.company-card.is-featured { border-color: #FBE0BC; }
.cc-top { display: flex; gap: var(--s-4); }
.cc-logo {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; border: 1px solid var(--border);
}
.cc-head { flex: 1; min-width: 0; }
.cc-name { font-size: 18px; font-weight: 700; color: var(--brand-900); margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc-type { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--text-muted); }
.cc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cc-meta .i { width: 15px; height: 15px; color: var(--brand-700); }
.cc-summary { color: #475569; font-size: 14.5px; margin: var(--s-4) 0; }
.cc-foot { margin-top: auto; display: flex; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.cc-foot .btn { flex: 1; }

/* ---------------------------------------------------------------- job card (v2) */
.job-list { display: grid; gap: var(--s-4); }
.job-card {
  display: flex; gap: var(--s-4); align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: var(--s-5) var(--s-6); box-shadow: var(--shadow-sm);
  transition: box-shadow .16s, border-color .16s;
}
.job-card:hover { box-shadow: var(--shadow-md); }
.job-card.is-featured { border-color: #FBE0BC; }
.jc-logo { width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff; }
.jc-body { flex: 1; min-width: 0; }
.jc-title { font-size: 17px; font-weight: 700; color: var(--brand-900); margin: 0 0 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jc-title a { color: inherit; }
.jc-company { font-size: 14px; color: var(--brand-700); font-weight: 600; }
.jc-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--text-muted); }
.jc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.jc-meta .i { width: 15px; height: 15px; color: var(--brand-700); }
.jc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.jc-tags span { font-size: 12px; font-weight: 600; color: #475569; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 3px 9px; }
.jc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.jc-fresh { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
@media (max-width: 640px) {
  .job-card { flex-wrap: wrap; }
  .jc-side { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .cc-foot { flex-direction: column; }
}

/* ---------------------------------------------------------------- entity search tabs (v2) */
.entity-tabs { display: flex; gap: 6px; margin-bottom: var(--s-3); }
.entity-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--r-control);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  color: #cdd7e6; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
}
.entity-tab .i { width: 16px; height: 16px; }
.entity-tab:hover { background: rgba(255,255,255,.12); color: #fff; }
.entity-tab[aria-selected="true"] { background: var(--brand-accent); border-color: var(--brand-accent); color: #052e2a; }

/* ---------------------------------------------------------------- job apply notice (v2) */
.apply-note { font-size: 12.5px; color: var(--text-muted); display: flex; gap: 8px; align-items: flex-start; }
.apply-note .i { width: 16px; height: 16px; color: var(--brand-700); flex-shrink: 0; margin-top: 1px; }
.expired-note {
  background: #FDECEC; border: 1px solid #F7CFCE; color: #8a2a27; border-radius: 10px;
  padding: 12px 16px; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: var(--s-6);
}
.expired-note .i { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

/* ---------------------------------------------------------------- comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-card); background: #fff; -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; min-width: 680px; }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.compare thead th { background: var(--brand-900); color: #fff; position: sticky; top: 0; z-index: 2; font-size: 14px; }
table.compare thead th:first-child { position: sticky; left: 0; z-index: 3; }
table.compare tbody th[scope="row"] {
  font-weight: 600; color: var(--brand-900); font-size: 14px;
  position: sticky; left: 0; background: #fff; z-index: 1; border-right: 1px solid var(--border);
}
table.compare tbody tr:nth-child(even) td,
table.compare tbody tr:nth-child(even) th[scope="row"] { background: #FAFBFC; }
table.compare td { color: #475569; font-size: 14px; }
.col-prod { min-width: 150px; }
.prod-head { display: flex; flex-direction: column; gap: 4px; }
.prod-head .p-logo { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.prod-head .p-name { font-weight: 700; }
.prod-head .p-rate { font-size: 12px; color: #cbd5e1; font-weight: 600; }
.tick { color: var(--brand-accent); } .tick .i { width: 20px; height: 20px; stroke-width: 2.4; }
.dash { color: #cbd5e1; font-weight: 700; }
.cell-strong { color: var(--brand-900); font-weight: 700; }
.best-for {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-bottom: var(--s-6);
}
.best-for .bf {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--s-4) var(--s-6);
}
.best-for .bf .who { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-accent); font-weight: 700; }
.best-for .bf .what { display: block; font-weight: 700; font-size: 17px; color: var(--brand-900); margin-top: 4px; }
.best-for .bf .why { display: block; font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }

/* ---------------------------------------------------------------- ad slot */
.ad-slot { margin: var(--s-8) 0; }
.ad-inner {
  border: 1px dashed var(--border-strong); border-radius: var(--r-card);
  background: var(--surface-soft); min-height: 96px;
  display: flex; align-items: center; justify-content: center; gap: 14px; padding: var(--s-6);
  position: relative;
}
.ad-inner .ad-label {
  position: absolute; top: 8px; left: 12px; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .08em; color: #94a3b8; font-weight: 700;
}
.ad-house { display: flex; align-items: center; gap: 14px; text-align: left; }
.ad-house .i { width: 26px; height: 26px; color: var(--brand-700); }
.ad-house strong { color: var(--brand-900); display: block; }
.ad-house span { color: var(--text-muted); font-size: 13.5px; }

/* ---------------------------------------------------------------- use-case cards */
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.usecase {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: var(--s-6); transition: box-shadow .16s, border-color .16s;
}
.usecase:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.usecase h3 { font-size: 19px; margin-bottom: var(--s-2); }
.usecase p { color: var(--text-muted); font-size: 14.5px; margin-bottom: var(--s-4); }
.usecase ol { display: grid; gap: 10px; margin-bottom: var(--s-4); counter-reset: pick; }
.usecase ol li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--brand-900); }
.usecase ol li::before {
  counter-increment: pick; content: counter(pick);
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; background: var(--surface-soft);
  color: var(--brand-700); font-size: 12px; font-weight: 700; display: grid; place-items: center;
}

/* ---------------------------------------------------------------- guides */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.guide-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden;
  transition: box-shadow .16s, transform .16s;
}
.guide-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.guide-top { height: 116px; display: grid; place-items: center; color: #fff; }
.guide-top .i { width: 40px; height: 40px; opacity: .9; }
.g1 { background: linear-gradient(135deg, #1E3A8A, #0B1D3A); }
.g2 { background: linear-gradient(135deg, #00B7A3, #0f766e); }
.g3 { background: linear-gradient(135deg, #2563FF, #1E3A8A); }
.guide-body { padding: var(--s-6); }
.guide-body .kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-accent); }
.guide-body h3 { font-size: 18px; margin: 6px 0; color: var(--brand-900); }
.guide-body p { color: var(--text-muted); font-size: 14px; margin: 0 0 var(--s-4); }
.guide-meta { font-size: 12.5px; color: var(--text-muted); margin-top: auto; }

/* ---------------------------------------------------------------- vendor CTA band */
.vendor-band {
  background: linear-gradient(140deg, #0B1D3A, #16306b);
  color: #fff; border-radius: 18px; padding: var(--s-12); position: relative; overflow: hidden;
}
.vendor-band::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(0,183,163,.28), transparent 70%);
}
.vendor-band .vb-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: var(--s-8); align-items: center; }
.vendor-band h2 { color: #fff; }
.vendor-band p { color: #c3cfe0; margin-bottom: 0; }
.vendor-actions { display: flex; flex-direction: column; gap: var(--s-3); }

/* ---------------------------------------------------------------- category / listing page */
.page-hero { background: var(--brand-900); color: #fff; padding: var(--s-12) 0; }
.breadcrumb { font-size: 13px; margin-bottom: var(--s-4); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: #9fb0c8; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li[aria-current] { color: #cdd7e6; }
.breadcrumb .sep { color: #5f6f88; }
.page-hero h1 { color: #fff; margin-bottom: var(--s-3); }
.page-hero .lede { color: #c3cfe0; max-width: 62ch; font-size: 17px; margin: 0; }
.page-hero.on-light { background: var(--surface-soft); color: var(--text); }
.page-hero.on-light h1 { color: var(--brand-900); }
.page-hero.on-light .lede { color: var(--text-muted); }
.page-hero.on-light .breadcrumb a { color: var(--text-muted); }
.answer-strip {
  display: flex; flex-wrap: wrap; gap: var(--s-6); margin-top: var(--s-6);
}
.answer-strip .as {
  display: flex; align-items: center; gap: 10px; color: #dfe7f2; font-size: 14px;
}
.answer-strip .as .i { width: 18px; height: 18px; color: var(--brand-accent); }
.answer-strip .as strong { color: #fff; }

.layout-2col { display: grid; grid-template-columns: 1fr 320px; gap: var(--s-8); align-items: start; }

/* filter bar */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center;
  padding: var(--s-4); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); margin-bottom: var(--s-6);
}
.filter-bar .fb-label { font-weight: 700; font-size: 13.5px; color: var(--brand-900); margin-right: 4px; }
.filter-select {
  height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; font-size: 14px; color: var(--text); background: #fff; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.result-count { margin-left: auto; font-size: 13.5px; color: var(--text-muted); }

/* sidebar */
.sidebar { display: grid; gap: var(--s-6); position: sticky; top: calc(var(--header-h) + 16px); }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--s-6); box-shadow: var(--shadow-sm); }
.side-card h3 { font-size: 17px; }
.lead-form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--brand-900); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 15px;
  border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: #fff;
}
.field textarea { min-height: 92px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--text-muted); }
.form-note { font-size: 12px; color: var(--text-muted); }

/* ---------------------------------------------------------------- product detail */
.entity-facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-8);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--s-6);
}
.entity-facts .ef { display: flex; flex-direction: column; gap: 2px; }
.entity-facts .ef .k { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 700; }
.entity-facts .ef .v { font-size: 15px; font-weight: 600; color: var(--brand-900); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--s-8); }
.prose h3 { margin-top: var(--s-6); }
.prose p { color: #3f4b5e; }
.prose ul.ticks { display: grid; gap: 10px; margin: var(--s-4) 0; }
.prose ul.ticks li { display: flex; gap: 10px; align-items: flex-start; color: #3f4b5e; }
.prose ul.ticks li .i { width: 20px; height: 20px; color: var(--brand-accent); flex-shrink: 0; margin-top: 1px; }
.prose ul.crosses li .i { color: #94a3b8; }
.pricing-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin: var(--s-4) 0; }
.tier { border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--s-6); background: #fff; }
.tier.is-popular { border-color: var(--brand-accent); box-shadow: 0 0 0 1px var(--brand-accent) inset; }
.tier .t-name { font-weight: 700; color: var(--brand-900); }
.tier .t-price { font-size: 24px; font-weight: 700; color: var(--brand-900); margin: 6px 0; }
.tier .t-price span { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.tier ul { display: grid; gap: 8px; margin-top: var(--s-4); }
.tier ul li { font-size: 13.5px; color: #475569; display: flex; gap: 8px; }
.tier ul li .i { width: 16px; height: 16px; color: var(--brand-accent); flex-shrink: 0; margin-top: 2px; }
.detail-cta {
  background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: var(--s-6); display: grid; gap: var(--s-3); position: sticky; top: calc(var(--header-h) + 16px);
}
.detail-cta .disclose { font-size: 12px; color: var(--text-muted); }
.sources-box { background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--s-6); }
.sources-box .src { display: flex; justify-content: space-between; gap: var(--s-4); padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.sources-box .src:last-child { border-bottom: none; }
.sources-box .src .lbl { color: var(--text-muted); }
.sources-box .src .val { color: var(--brand-900); font-weight: 600; }

/* alt product mini-cards */
.alt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.alt-card { border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--s-4); background: #fff; text-align: center; transition: box-shadow .16s, border-color .16s; }
.alt-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); text-decoration: none; }
.alt-card .a-logo { width: 40px; height: 40px; border-radius: 10px; margin: 0 auto 8px; display: grid; place-items: center; color: #fff; font-weight: 800; }
.alt-card .a-name { font-weight: 700; color: var(--brand-900); font-size: 14px; }
.alt-card .a-meta { font-size: 12px; color: var(--text-muted); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--brand-900); color: #c3cfe0; padding: var(--s-16) 0 var(--s-8); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s-8); }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { color: #9fb0c8; font-size: 14px; margin-top: var(--s-4); max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--s-4); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #a9b7cc; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-promise {
  display: flex; flex-wrap: wrap; gap: var(--s-6); align-items: center;
  border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1);
  padding: var(--s-6) 0; margin: var(--s-12) 0 var(--s-8);
}
.footer-promise .fp { display: flex; align-items: center; gap: 12px; }
.footer-promise .fp .i { width: 22px; height: 22px; color: var(--brand-accent); }
.footer-promise .fp strong { color: #fff; display: block; font-size: 14px; }
.footer-promise .fp span { font-size: 13px; color: #9fb0c8; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; align-items: center; font-size: 13px; color: #8296b1; }
.footer-bottom a { color: #a9b7cc; }

/* ---------------------------------------------------------------- legal pages */
.legal-hero { background: var(--surface-soft); border-bottom: 1px solid var(--border); padding: var(--s-12) 0 var(--s-8); }
.legal-hero h1 { margin-bottom: var(--s-3); }
.legal-hero .lede { color: var(--text-muted); max-width: 70ch; font-size: 17px; margin: 0; }
.legal-meta { margin-top: var(--s-4); font-size: 13px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: var(--s-4); }
.legal-meta span { display: inline-flex; align-items: center; gap: 6px; }
.legal-meta .i { width: 15px; height: 15px; color: var(--brand-700); }

.legal-wrap { display: grid; grid-template-columns: 250px 1fr; gap: var(--s-12); align-items: start; padding: var(--s-12) 0; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 16px); font-size: 14px; }
.legal-toc h2 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: var(--s-3); }
.legal-toc ul { display: grid; gap: 2px; border-left: 1px solid var(--border); }
.legal-toc a { display: block; padding: 6px 12px; color: var(--text-muted); border-left: 2px solid transparent; margin-left: -1px; }
.legal-toc a:hover { color: var(--brand-700); border-left-color: var(--brand-700); text-decoration: none; }

.legal-content { max-width: 760px; }
.legal-content h2 { margin-top: var(--s-10); scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin-top: var(--s-6); font-size: 18px; }
.legal-content p, .legal-content li { color: #3f4b5e; }
.legal-content > ul { display: grid; gap: 8px; margin: var(--s-4) 0; padding-left: 0; }
.legal-content > ul li { position: relative; padding-left: 22px; }
.legal-content > ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-accent); }
.legal-content ol { display: grid; gap: 8px; margin: var(--s-4) 0; padding-left: 20px; }
.legal-content ol li { list-style: decimal; color: #3f4b5e; }

.policy-table { width: 100%; border-collapse: collapse; margin: var(--s-4) 0; font-size: 14px; }
.policy-table th, .policy-table td { text-align: left; padding: 10px 14px; border: 1px solid var(--border); vertical-align: top; }
.policy-table thead th { background: var(--brand-900); color: #fff; font-size: 13px; }
.policy-table tbody tr:nth-child(even) td { background: #FAFBFC; }
.policy-table td:first-child { font-weight: 600; color: var(--brand-900); white-space: nowrap; }
.policy-table.wrap td:first-child { white-space: normal; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* placeholder to be completed before launch */
.ph {
  display: inline-block; background: #FFF4E5; border: 1px dashed #E0A24A; color: #8a5200;
  padding: 1px 7px; border-radius: 6px; font-weight: 600; font-size: .93em; font-style: normal;
}
.status-missing { color: #b4322f; font-weight: 700; }
.status-verify  { color: #9a5b00; font-weight: 700; }

.legal-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); margin: var(--s-6) 0; }
.legal-index a {
  display: flex; gap: 12px; align-items: flex-start; padding: var(--s-4);
  border: 1px solid var(--border); border-radius: var(--r-card); background: #fff; transition: border-color .16s, box-shadow .16s;
}
.legal-index a:hover { border-color: var(--brand-700); box-shadow: var(--shadow-sm); text-decoration: none; }
.legal-index .n { font-weight: 700; color: var(--brand-700); flex-shrink: 0; }
.legal-index .t { font-weight: 600; color: var(--brand-900); }
.legal-index .d { display: block; font-size: 13px; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

/* ---------------------------------------------------------------- footer legal bar */
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: var(--s-8); padding-top: var(--s-6);
  display: flex; flex-wrap: wrap; gap: 8px 18px;
}
.footer-legal a { color: #9fb0c8; font-size: 13px; }
.footer-legal a:hover { color: #fff; }

/* ---------------------------------------------------------------- cookie consent banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
  max-width: 720px; margin: 0 auto;
  background: #fff; color: var(--text); border: 1px solid var(--border-strong);
  border-radius: var(--r-card); box-shadow: var(--shadow-lg); padding: var(--s-6);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 17px; margin-bottom: 6px; }
.cookie-banner p { font-size: 14px; color: var(--text-muted); margin-bottom: var(--s-4); }
.cookie-banner p a { font-weight: 600; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { min-height: 40px; padding: 9px 16px; font-size: 14px; }
.cookie-settings-link {
  position: fixed; left: 16px; bottom: 16px; z-index: 110;
  background: var(--brand-900); color: #fff; border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-pill); padding: 8px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; box-shadow: var(--shadow-md); display: inline-flex; align-items: center; gap: 6px;
}
.cookie-settings-link .i { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- utilities */
.stack-sm > * + * { margin-top: var(--s-3); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.disclosure {
  background: #FFF9EF; border: 1px solid #FBE0BC; border-radius: 10px; padding: 12px 16px;
  font-size: 13px; color: #7a5410; display: flex; gap: 10px; align-items: flex-start;
}
.disclosure .i { width: 18px; height: 18px; flex-shrink: 0; color: #9a5b00; margin-top: 1px; }

/* sample-data honesty note */
.sample-note { font-size: 12px; color: var(--text-muted); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .hero-visual { order: -1; max-width: 520px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-4); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .usecase-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .best-for { grid-template-columns: 1fr; }
  .alt-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-2col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .vendor-band .vb-inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8) var(--s-6); }
  .entity-facts { grid-template-columns: 1fr; }
  .pricing-tiers { grid-template-columns: 1fr; }
  .legal-wrap { grid-template-columns: 1fr; gap: var(--s-6); }
  .legal-toc { position: static; }
  .legal-toc ul { grid-template-columns: 1fr 1fr; }
  .legal-index { grid-template-columns: 1fr; }

  /* collapse header to a menu before the nav + CTA can overflow */
  .main-nav, .header-actions .sign-in, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav.is-open {
    display: block; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--brand-900); border-bottom: 1px solid rgba(255,255,255,.1);
    padding: var(--s-4); margin: 0;
  }
  .main-nav.is-open ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav.is-open a { padding: 12px; font-size: 16px; }
}
@media (max-width: 720px) {
  .search-form { flex-direction: column; }
  .search-select { min-width: 0; width: 100%; }
  .listing-grid, .usecase-grid, .guide-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .metric { flex-direction: row; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .alt-grid { grid-template-columns: 1fr; }
  .section { padding: var(--s-12) 0; }
}
@media (max-width: 420px) {
  .cat-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
}
