/* ==========================================================================
   digitalmarketingtools.ai — "Aurora Editorial" design system
   Prototype stylesheet. Every value here is a token intended to map 1:1
   onto WordPress theme.json / child-theme globals at build time.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Ground & ink */
  --paper:      #FBFAF7;
  --paper-2:    #FFFFFF;
  --paper-3:    #F4F1EC;
  --ink:        #14131A;
  --ink-2:      #4A4754;
  --ink-3:      #86818F;
  --line:       #E7E2DA;
  --line-2:     #D6D0C6;

  /* Aurora spectrum — drives blobs, gradients and category identity */
  --violet:     #6D4AFF;
  --cyan:       #17C3D9;
  --rose:       #FF4D6D;
  --amber:      #FFB020;
  --emerald:    #12B886;
  --orange:     #FF7A18;
  --magenta:    #C13BE8;
  --blue:       #2563EB;
  --teal:       #0EA5A5;

  /* Category accents: three computed rules + eight real categories */
  --c-newest:   var(--violet);
  --c-best:     var(--amber);
  --c-popular:  var(--rose);
  --c-seo:      var(--cyan);
  --c-geo:      var(--emerald);
  --c-ads:      var(--orange);
  --c-social:   var(--magenta);
  --c-video:    var(--blue);
  --c-images:   var(--teal);
  --c-analytics: var(--indigo, #4C6FFF);
  --c-content:  var(--rose);

  /* Type */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-ui:      "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif:   "Newsreader", ui-serif, Georgia, serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Modular type scale (1.25) */
  --t-xs:   0.75rem;
  --t-sm:   0.8125rem;
  --t-base: 0.9375rem;
  --t-md:   1.0625rem;
  --t-lg:   1.375rem;
  --t-xl:   1.75rem;
  --t-2xl:  2.25rem;
  --t-3xl:  3rem;
  --t-4xl:  clamp(2.75rem, 6.2vw, 5.25rem);

  /* Space */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;

  /* Form */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 22px;  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(20,19,26,.05), 0 2px 8px rgba(20,19,26,.04);
  --shadow-2: 0 4px 12px rgba(20,19,26,.06), 0 16px 40px rgba(20,19,26,.07);
  --shadow-3: 0 24px 70px rgba(20,19,26,.13);

  --measure: 68ch;
  --wrap: 1240px;
  --nav-h: 68px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 88px);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

::selection { background: color-mix(in srgb, var(--violet) 22%, transparent); }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. PRIMITIVES
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-5); }
.wrap--narrow { max-width: 820px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.mono { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .02em; }

h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 600;
  line-height: 1.1; letter-spacing: -.022em;
  overflow-wrap: break-word;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 999;
  background: var(--ink); color: var(--paper);
  padding: var(--s-3) var(--s-5); border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--s-4); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  font-size: var(--t-sm); font-weight: 600; letter-spacing: -.005em;
  white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out),
              background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-1); }
.btn--primary:hover { box-shadow: var(--shadow-2); }

.btn--aurora {
  color: #fff;
  background: linear-gradient(103deg, var(--violet), var(--magenta) 48%, var(--rose));
  background-size: 200% 100%;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--violet) 28%, transparent);
  animation: auroraShift 9s var(--ease) infinite alternate;
}
.btn--aurora:hover { box-shadow: 0 12px 34px color-mix(in srgb, var(--violet) 36%, transparent); }
@keyframes auroraShift { to { background-position: 100% 0; } }

.btn--ghost { border: 1px solid var(--line-2); background: var(--paper-2); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: var(--shadow-1); }

.btn--lg { padding: var(--s-4) var(--s-6); font-size: var(--t-md); }

/* Link with animated underline ------------------------------------------- */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: var(--t-xs);
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2);
  transition: color .2s var(--ease);
}
.link-arrow svg { transition: transform .3s var(--ease-out); }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   4. AURORA BACKDROP  (the signature of this variation)
   -------------------------------------------------------------------------- */
.aurora-field {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  /* Feather the field so colour never runs hard into the page edges or
     the section boundary — this is what keeps it "editorial" rather than
     "gradient hero". */
  mask-image: radial-gradient(130% 100% at 50% 22%, #000 34%, rgba(0,0,0,.55) 62%, transparent 92%);
  -webkit-mask-image: radial-gradient(130% 100% at 50% 22%, #000 34%, rgba(0,0,0,.55) 62%, transparent 92%);
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(92px);
  opacity: .34;
  will-change: transform;
}
.aurora-blob--1 { width: 46vw; height: 46vw; left: -8vw;  top: -14vw; background: var(--violet);  animation: drift1 26s var(--ease) infinite alternate; }
.aurora-blob--2 { width: 40vw; height: 40vw; right: -6vw; top: -6vw;  background: var(--cyan);    animation: drift2 32s var(--ease) infinite alternate; }
.aurora-blob--3 { width: 34vw; height: 34vw; left: 28vw;  bottom: -18vw; background: var(--rose); animation: drift3 29s var(--ease) infinite alternate; opacity: .26; }
.aurora-blob--4 { width: 26vw; height: 26vw; right: 14vw; bottom: -12vw; background: var(--amber); animation: drift2 35s var(--ease) infinite alternate-reverse; opacity: .22; }

@keyframes drift1 { to { transform: translate3d(14vw, 8vw, 0) scale(1.18); } }
@keyframes drift2 { to { transform: translate3d(-12vw, 10vw, 0) scale(1.12); } }
@keyframes drift3 { to { transform: translate3d(9vw, -9vw, 0) scale(1.22); } }

/* Fine grid, sits over the blobs and under the content */
.grid-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(20,19,26,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20,19,26,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 78%);
}

/* Paper grain — keeps the light ground from feeling flat */
.grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   5. NAVIGATION
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 24px rgba(20,19,26,.05); }

.nav__bar {
  height: var(--nav-h);
  display: flex; align-items: center; gap: var(--s-5);
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: conic-gradient(from 210deg, var(--violet), var(--cyan), var(--rose), var(--amber), var(--violet));
  display: grid; place-items: center;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--violet) 30%, transparent);
  transition: transform .5s var(--ease-out);
}
.logo:hover .logo__mark { transform: rotate(90deg); }
.logo__mark span {
  width: 11px; height: 11px; border-radius: 3px; background: var(--paper);
}
.logo__text {
  font-family: var(--font-display); font-weight: 600; font-size: var(--t-md);
  letter-spacing: -.03em; line-height: 1;
}
.logo__text b { font-weight: 600; }
.logo__text i { font-style: normal; color: var(--ink-3); }

.nav__spacer { flex: 1; }

.nav__actions { display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0; }

.nav__search {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 8px 10px 8px 14px;
  min-width: 210px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--paper-2);
  color: var(--ink-3); font-size: var(--t-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), min-width .3s var(--ease);
}
.nav__search:hover { border-color: var(--ink-3); box-shadow: var(--shadow-1); }
.nav__search .kbd { margin-left: auto; }

.kbd {
  font-family: var(--font-mono); font-size: 11px;
  padding: 3px 7px; border-radius: 6px;
  background: var(--paper-3); border: 1px solid var(--line-2);
  color: var(--ink-2); line-height: 1;
}

/* Category pill rail ------------------------------------------------------ */
.pills {
  border-top: 1px solid var(--line);
  position: relative;
}
.pills__scroll {
  display: flex; gap: var(--s-2);
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.pills__scroll::-webkit-scrollbar { display: none; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--paper-2);
  font-size: var(--t-sm); font-weight: 500; white-space: nowrap;
  scroll-snap-align: start;
  transition: border-color .2s var(--ease), color .2s var(--ease),
              background-color .2s var(--ease), transform .2s var(--ease-out);
}
.pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent, var(--ink-3));
  transition: box-shadow .25s var(--ease);
}
.pill:hover {
  transform: translateY(-1px);
  border-color: var(--accent, var(--ink));
  color: var(--accent, var(--ink));
}
.pill:hover::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.pill.is-active {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.pill.is-active::before { background: var(--accent); }

/* Mobile menu trigger */
.nav__burger { display: none; padding: 8px; border-radius: var(--r-sm); }
.nav__burger:hover { background: var(--paper-3); }

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(var(--s-8), 9vw, var(--s-10)) 0 var(--s-8);
  overflow: hidden;
  isolation: isolate;
}
.hero__inner { position: relative; z-index: 3; text-align: center; }

.badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 6px 8px 6px 6px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--paper-2) 80%, transparent);
  backdrop-filter: blur(8px);
  font-size: var(--t-xs); color: var(--ink-2);
  box-shadow: var(--shadow-1);
}
.badge__dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  display: grid; place-items: center;
  position: relative;
}
.badge__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: inherit; animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }

.hero__title {
  margin-top: var(--s-5);
  font-size: var(--t-4xl);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 600;
}
.hero__title .grad {
  /* Stops repeat so the full spectrum stays on screen at every point of the
     shift — with a wider background-size the animation drifts to a single hue. */
  background: linear-gradient(96deg,
    var(--violet) 0%, var(--magenta) 18%, var(--rose) 34%, var(--amber) 50%,
    var(--violet) 68%, var(--magenta) 84%, var(--rose) 100%);
  background-size: 190% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: auroraShift 11s var(--ease) infinite alternate;
}
.hero__title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  letter-spacing: -.02em;
}

.hero__sub {
  margin: var(--s-5) auto 0;
  max-width: 56ch;
  font-size: var(--t-md);
  color: var(--ink-2);
  line-height: 1.62;
}

/* Search-first hero bar --------------------------------------------------- */
.searchbar {
  position: relative;
  margin: var(--s-7) auto 0;
  max-width: 640px;
}
.searchbar__glow {
  position: absolute; inset: -2px; border-radius: var(--r-pill);
  background: linear-gradient(96deg, var(--violet), var(--cyan), var(--rose), var(--amber));
  background-size: 300% 100%;
  filter: blur(14px); opacity: .35;
  animation: auroraShift 8s var(--ease) infinite alternate;
  transition: opacity .4s var(--ease);
}
.searchbar:focus-within .searchbar__glow { opacity: .7; }

.searchbar__field {
  position: relative;
  display: flex; align-items: center; gap: var(--s-3);
  padding: 8px 8px 8px var(--s-5);
  background: color-mix(in srgb, var(--paper-2) 88%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-2);
}
.searchbar__field input {
  flex: 1; min-width: 0;
  border: 0; background: none; outline: none;
  font-size: var(--t-md);
  padding: var(--s-3) 0;
}
.searchbar__field input::placeholder { color: var(--ink-3); }

.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2);
  margin-top: var(--s-5);
}
.chip {
  padding: 6px 13px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
  font-size: var(--t-xs); color: var(--ink-2);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-1px); }

.hero__stats {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: var(--s-6) var(--s-8);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.stat { text-align: center; }
.stat__n {
  font-family: var(--font-display); font-size: var(--t-xl); font-weight: 600;
  letter-spacing: -.03em; line-height: 1;
}
.stat__l { margin-top: 6px; font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   7. MARQUEE TICKER
   -------------------------------------------------------------------------- */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
  padding: var(--s-3) 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex; gap: var(--s-7); width: max-content;
  animation: marquee 44s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.ticker__item {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-mono); font-size: var(--t-xs);
  color: var(--ink-2); white-space: nowrap;
}
.ticker__item b { font-weight: 500; color: var(--ink); }
.ticker__tag {
  padding: 2px 8px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   8. CONTENT BLOCKS  (the nine homepage sections)
   -------------------------------------------------------------------------- */
.block { padding: var(--s-8) 0; position: relative; }
.block + .block { padding-top: var(--s-7); }

.block__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-5); margin-bottom: var(--s-6);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.block__title {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--t-xl); letter-spacing: -.03em;
}
.block__title::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px;
  background: var(--accent); flex-shrink: 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.block__meta { margin-top: 6px; font-size: var(--t-sm); color: var(--ink-3); }
.block__see { flex-shrink: 0; }

/* Empty state — "launch day doesn't look abandoned" */
.block__empty {
  padding: var(--s-7) var(--s-5);
  text-align: center;
  border: 1px dashed var(--line-2); border-radius: var(--r-md);
  background: var(--paper-2);
  color: var(--ink-3); font-size: var(--t-sm);
}

/* --------------------------------------------------------------------------
   9. ARTICLE CARDS
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex; flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-2);
}

.card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-3);
}
.card__cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out), filter .4s var(--ease);
}
.card:hover .card__cover img { transform: scale(1.055); }

/* Typographic tile cover — the default, no photo required per article */
.tile {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--s-4);
  background:
    radial-gradient(120% 100% at 12% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%),
    radial-gradient(100% 100% at 100% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 58%),
    var(--paper-3);
  overflow: hidden;
}
.tile::after {
  content: "";
  position: absolute; right: -22%; bottom: -46%;
  width: 74%; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 34%, transparent);
  transition: transform .8s var(--ease-out);
}
.card:hover .tile::after { transform: translate(-10%, -8%) scale(1.14); }

.tile__idx {
  font-family: var(--font-mono); font-size: var(--t-xs);
  color: color-mix(in srgb, var(--accent) 82%, var(--ink));
  letter-spacing: .1em;
  position: relative; z-index: 1;
  /* The category chip sits top-LEFT over the tile. Longer category names
     ("Social media", "Analytics") used to collide with it, so the index
     line is pinned to the opposite corner instead of stacking under it. */
  align-self: flex-end;
  text-align: right;
  max-width: 60%;
}
.tile__word {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--ink);
  position: relative; z-index: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile__word span { color: color-mix(in srgb, var(--accent) 88%, var(--ink)); }

.card__tag {
  position: absolute; left: var(--s-3); top: var(--s-3); z-index: 2;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--paper-2) 92%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}

.card__body { padding: var(--s-4) var(--s-4) var(--s-5); display: flex; flex-direction: column; flex: 1; gap: var(--s-3); }

.card__title {
  font-size: var(--t-md); line-height: 1.28; letter-spacing: -.02em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s var(--ease);
}
.card:hover .card__title { color: var(--accent); }

.card__excerpt {
  font-size: var(--t-sm); color: var(--ink-2); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.card__foot {
  margin-top: auto; padding-top: var(--s-2);
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-3);
}
.card__foot .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }

/* Feature card — first item in a block, spans wider */
.card--feature { grid-column: span 2; }
.card--feature .card__cover { aspect-ratio: 16 / 9; }
.card--feature .card__title { font-size: var(--t-lg); -webkit-line-clamp: 2; }
.card--feature .card__excerpt { -webkit-line-clamp: 3; }
.card--feature .tile__word { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }

/* --------------------------------------------------------------------------
   10. FEATURED TOOLS
   -------------------------------------------------------------------------- */
.tool-grid {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.tool {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-5);
  background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s var(--ease);
  position: relative; overflow: hidden;
}
.tool::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.tool:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.tool:hover::before { transform: scaleX(1); }

.tool__head { display: flex; align-items: center; gap: var(--s-3); }
.tool__logo {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: var(--t-md);
  color: #fff; letter-spacing: -.03em;
  background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--ink)));
  box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 26%, transparent);
}
.tool__name { font-family: var(--font-display); font-weight: 600; font-size: var(--t-md); letter-spacing: -.02em; }
.tool__cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tool__desc { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.55; flex: 1; }

.tool__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-2); border-top: 1px solid var(--line); }
.rating { display: flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-2); }
.rating__stars { display: flex; gap: 1px; color: var(--amber); }

/* Horizontal strip variant used on the homepage */
.tool-strip {
  display: flex; gap: var(--s-4);
  overflow-x: auto; padding-bottom: var(--s-3);
  scrollbar-width: thin; scroll-snap-type: x proximity;
}
.tool-strip::-webkit-scrollbar { height: 6px; }
.tool-strip::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.tool-strip .tool { min-width: 268px; scroll-snap-align: start; }

/* --------------------------------------------------------------------------
   11. NEWSLETTER BAND
   -------------------------------------------------------------------------- */
.band {
  position: relative; isolation: isolate;
  margin: var(--s-9) 0 0;
  padding: var(--s-9) 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
}
.band .aurora-field { mask-image: none; -webkit-mask-image: none; }
.band .aurora-blob { opacity: .46; filter: blur(84px); }
.band__inner { position: relative; z-index: 3; text-align: center; max-width: 620px; margin-inline: auto; padding-inline: var(--s-5); }
.band h2 { font-size: var(--t-2xl); letter-spacing: -.035em; }
.band p { margin-top: var(--s-4); color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: var(--t-md); }

.subscribe {
  display: flex; gap: var(--s-2);
  margin-top: var(--s-6);
  padding: 7px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-pill);
  backdrop-filter: blur(12px);
}
.subscribe input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  padding: var(--s-3) var(--s-4); color: var(--paper); font-size: var(--t-base);
}
.subscribe input::placeholder { color: rgba(255,255,255,.45); }
.subscribe .btn { background: var(--paper); color: var(--ink); }

.band__note { margin-top: var(--s-4); font-family: var(--font-mono); font-size: var(--t-xs); color: rgba(255,255,255,.4); }

/* --------------------------------------------------------------------------
   12. HANDOFF CTA  (the block that earns the leads — on every article)
   -------------------------------------------------------------------------- */
.handoff {
  position: relative; isolation: isolate; overflow: hidden;
  margin: var(--s-8) 0;
  padding: var(--s-7);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 130% at 0% 0%, color-mix(in srgb, var(--violet) 12%, transparent), transparent 60%),
    radial-gradient(80% 120% at 100% 100%, color-mix(in srgb, var(--cyan) 12%, transparent), transparent 60%),
    var(--paper-2);
}
.handoff__inner { position: relative; z-index: 2; display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; }
.handoff__copy { flex: 1; min-width: 260px; }
.handoff h3 { font-size: var(--t-lg); letter-spacing: -.03em; margin-top: var(--s-3); }
.handoff p { margin-top: var(--s-3); color: var(--ink-2); font-size: var(--t-base); max-width: 52ch; }
.handoff__list { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-2); }
.handoff__list span {
  font-family: var(--font-mono); font-size: var(--t-xs);
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--paper-3); color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   13. COMMAND-K SEARCH OVERLAY
   -------------------------------------------------------------------------- */
.cmdk {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: start center;
  padding: 12vh var(--s-4) var(--s-4);
  background: color-mix(in srgb, var(--ink) 34%, transparent);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
.cmdk.is-open { opacity: 1; pointer-events: auto; }

.cmdk__panel {
  width: 100%; max-width: 620px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  transform: translateY(-14px) scale(.97);
  opacity: 0;
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.cmdk.is-open .cmdk__panel { transform: none; opacity: 1; }

.cmdk__field {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
}
.cmdk__field input { flex: 1; border: 0; outline: none; background: none; font-size: var(--t-md); }

.cmdk__results { max-height: 52vh; overflow-y: auto; padding: var(--s-2); }
.cmdk__group { padding: var(--s-3) var(--s-3) var(--s-2); }

.cmdk__item {
  display: flex; align-items: center; gap: var(--s-3);
  width: 100%; text-align: left;
  padding: 10px var(--s-3); border-radius: var(--r-sm);
  transition: background-color .15s var(--ease);
}
.cmdk__item:hover, .cmdk__item.is-cursor { background: var(--paper-3); }
.cmdk__item__swatch { width: 6px; height: 30px; border-radius: 99px; background: var(--accent); flex-shrink: 0; }
.cmdk__item__body { flex: 1; min-width: 0; }
.cmdk__item__t {
  display: block; font-size: var(--t-base); line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cmdk__item__m {
  display: block; margin-top: 2px;
  font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cmdk__item__k { margin-left: auto; flex-shrink: 0; }

.cmdk__empty { padding: var(--s-7) var(--s-5); text-align: center; color: var(--ink-3); font-size: var(--t-sm); }
.cmdk__foot {
  display: flex; gap: var(--s-5); align-items: center;
  padding: var(--s-3) var(--s-5);
  border-top: 1px solid var(--line); background: var(--paper);
  font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-3);
}
.cmdk__foot span { display: inline-flex; align-items: center; gap: 6px; }

mark { background: color-mix(in srgb, var(--amber) 40%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }

/* --------------------------------------------------------------------------
   14. PAGE HEADERS (interior pages)
   -------------------------------------------------------------------------- */
.phead {
  position: relative; isolation: isolate; overflow: hidden;
  padding: var(--s-9) 0 var(--s-8);
  border-bottom: 1px solid var(--line);
}
.phead__inner { position: relative; z-index: 3; }
.phead h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -.04em; margin-top: var(--s-4); }
.phead p { margin-top: var(--s-5); max-width: 58ch; font-size: var(--t-md); color: var(--ink-2); }

.crumbs { display: flex; align-items: center; gap: var(--s-2); font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   15. FILTER BAR (blogroll + tools)
   -------------------------------------------------------------------------- */
.filters {
  position: sticky; top: var(--nav-h); z-index: 40;
  padding: var(--s-4) 0;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.filters__row { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.filters__scroll { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; flex: 1; }
.filters__scroll::-webkit-scrollbar { display: none; }

.field {
  display: flex; align-items: center; gap: var(--s-2);
  padding: 8px var(--s-4);
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--paper-2);
}
.field input, .field select { border: 0; outline: none; background: none; font-size: var(--t-sm); min-width: 0; }
.field input { width: 180px; }

.result-count { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-3); }

/* --------------------------------------------------------------------------
   16. ARTICLE TEMPLATE
   -------------------------------------------------------------------------- */
.article { padding: var(--s-8) 0 var(--s-9); }

.article__head { max-width: var(--measure); margin-inline: auto; text-align: center; }
.article__title { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -.04em; margin-top: var(--s-5); }
.article__dek { margin-top: var(--s-5); font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.5; color: var(--ink-2); }

.byline {
  display: flex; align-items: center; justify-content: center; gap: var(--s-3);
  margin-top: var(--s-6); padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--t-sm); color: var(--ink-2);
}
.byline__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.byline__meta { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-3); }

.article__hero {
  margin: var(--s-7) 0;
  border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 21 / 9; border: 1px solid var(--line);
}
.article__hero img { width: 100%; height: 100%; object-fit: cover; }

.prose {
  max-width: var(--measure); margin-inline: auto;
  font-family: var(--font-serif);
  font-size: 1.185rem; line-height: 1.75; color: #24222C;
}
.prose > * + * { margin-top: 1.35em; }
.prose h2 {
  font-family: var(--font-display); font-size: var(--t-xl);
  letter-spacing: -.03em; margin-top: 2.1em; color: var(--ink);
}
.prose h3 { font-family: var(--font-display); font-size: var(--t-lg); margin-top: 1.7em; color: var(--ink); }
.prose a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .5em; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose blockquote {
  border-left: 3px solid var(--violet);
  padding-left: var(--s-5); margin-left: 0;
  font-style: italic; color: var(--ink-2);
}
.prose figure figcaption {
  font-family: var(--font-mono); font-size: var(--t-xs);
  color: var(--ink-3); text-align: center; margin-top: var(--s-3);
}
.prose img { border-radius: var(--r-md); border: 1px solid var(--line); }

.callout {
  font-family: var(--font-ui); font-size: var(--t-base);
  padding: var(--s-5); border-radius: var(--r-md);
  background: color-mix(in srgb, var(--cyan) 8%, var(--paper-2));
  border: 1px solid color-mix(in srgb, var(--cyan) 24%, transparent);
}
.callout b { display: block; margin-bottom: var(--s-2); font-family: var(--font-display); }

.share { display: flex; align-items: center; gap: var(--s-3); max-width: var(--measure); margin: var(--s-8) auto 0; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.share__btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2); display: grid; place-items: center;
  transition: all .2s var(--ease);
}
.share__btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }

/* Reading progress */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--rose));
}

/* --------------------------------------------------------------------------
   17. ABOUT / CONTACT
   -------------------------------------------------------------------------- */
.split { display: grid; gap: var(--s-8); grid-template-columns: 1.05fr .95fr; align-items: center; }
.split--rev > :first-child { order: 2; }

.figure-stack { position: relative; }
.figure-stack img { border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.figure-stack__badge {
  position: absolute; right: -14px; bottom: -18px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-4) var(--s-5);
  box-shadow: var(--shadow-2);
}

.values { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.value {
  padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper-2);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.value:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.value__n { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--accent); letter-spacing: .1em; }
.value h3 { margin-top: var(--s-3); font-size: var(--t-md); }
.value p { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--ink-2); line-height: 1.6; }

.team { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.member img { aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); }
.member h3 { margin-top: var(--s-4); font-size: var(--t-md); }
.member p { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-3); margin-top: 4px; }

/* Forms */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); grid-template-columns: 1fr 1fr; }
.form label { display: grid; gap: var(--s-2); font-size: var(--t-sm); font-weight: 500; }
.form input, .form textarea, .form select {
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--paper-2); outline: none;
  font-size: var(--t-base);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form input:focus, .form textarea:focus, .form select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 14%, transparent);
}
.form textarea { min-height: 150px; resize: vertical; }
.form__hint { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-3); font-weight: 400; }
.form__error { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--rose); }

.form-success {
  padding: var(--s-6); border-radius: var(--r-md);
  background: color-mix(in srgb, var(--emerald) 9%, var(--paper-2));
  border: 1px solid color-mix(in srgb, var(--emerald) 30%, transparent);
  text-align: center;
}

.contact-card {
  padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper-2); display: flex; gap: var(--s-4); align-items: flex-start;
}
.contact-card__icon {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) 0; text-align: left;
  font-family: var(--font-display); font-weight: 500; font-size: var(--t-md); letter-spacing: -.02em;
}
.faq__q svg { flex-shrink: 0; transition: transform .3s var(--ease-out); color: var(--ink-3); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: var(--s-5); color: var(--ink-2); max-width: 62ch; }

/* --------------------------------------------------------------------------
   18. FOOTER
   -------------------------------------------------------------------------- */
.footer { margin-top: var(--s-9); border-top: 1px solid var(--line); background: var(--paper-2); }
.footer__top { padding: var(--s-8) 0; display: grid; gap: var(--s-7); grid-template-columns: 1.4fr repeat(3, 1fr); }
.footer__brand p { margin-top: var(--s-4); font-size: var(--t-sm); color: var(--ink-2); max-width: 34ch; line-height: 1.6; }
.footer h4 { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; }
.footer ul { list-style: none; padding: 0; margin-top: var(--s-4); display: grid; gap: var(--s-3); }
.footer li a { font-size: var(--t-sm); color: var(--ink-2); transition: color .2s var(--ease), transform .2s var(--ease); display: inline-block; }
.footer li a:hover { color: var(--ink); transform: translateX(3px); }

.footer__bottom {
  padding: var(--s-5) 0; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
  font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-3);
}
.socials { display: flex; gap: var(--s-2); }
.socials a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; transition: all .2s var(--ease);
}
.socials a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   19. SCROLL REVEAL
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   20. PROTOTYPE BANNER (removed at WordPress build)
   -------------------------------------------------------------------------- */
.proto {
  position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: 400;
  display: flex; align-items: center; gap: var(--s-3);
  padding: 10px var(--s-4) 10px 12px;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-3);
  font-family: var(--font-mono); font-size: var(--t-xs);
}
.proto__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 3px color-mix(in srgb, var(--emerald) 25%, transparent); }
.proto button { color: rgba(255,255,255,.55); padding: 2px; }
.proto button:hover { color: var(--paper); }

/* --------------------------------------------------------------------------
   21. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --s-8: 3rem; --s-9: 4rem; --s-10: 5rem; }
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .nav__search { display: none; }
  .nav__burger { display: grid; place-items: center; }
  .nav__actions .btn--aurora { display: none; }
  .card--feature { grid-column: span 1; }
  .card--feature .card__title { font-size: var(--t-md); }
  .article__hero { aspect-ratio: 16/9; }
  .form__row { grid-template-columns: 1fr; }
  .hero__stats { gap: var(--s-5) var(--s-6); }
}

@media (max-width: 620px) {
  /* The display scale has to come down hard here or the h1 sets a minimum
     width wider than the viewport and the page clips. */
  :root {
    --t-4xl: clamp(2.05rem, 8.6vw, 2.9rem);
    --t-2xl: 1.75rem;
    --t-xl:  1.4rem;
  }
  .hero { padding-top: var(--s-7); }
  .hero__title { letter-spacing: -.03em; }
  .hero__sub { font-size: var(--t-base); }
  .hero__stats { gap: var(--s-5) var(--s-6); }
  .stat { flex: 1 1 40%; }
  .searchbar__field { padding-left: var(--s-4); gap: var(--s-2); }
  .searchbar__field input { font-size: var(--t-base); }
  .searchbar__field .kbd { display: none; }
  .phead h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .article__title { font-size: clamp(1.7rem, 7.6vw, 2.3rem); }
  .article__dek { font-size: 1.12rem; }
  .filters__row { gap: var(--s-3); }
  .field input { width: 100%; }
  .card-grid, .card-grid--4 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: var(--s-6); }
  .block__head { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
  .band { border-radius: 0; margin-inline: calc(var(--s-5) * -1); }
  .subscribe { flex-direction: column; border-radius: var(--r-md); }
  .subscribe .btn { width: 100%; }
  .handoff { padding: var(--s-5); }
  .proto { left: var(--s-4); right: var(--s-4); justify-content: center; }
  .prose { font-size: 1.09rem; }
}

/* --------------------------------------------------------------------------
   22. ACCESSIBILITY — reduced motion (explicit client requirement)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .aurora-blob { animation: none; }
  .ticker__track { animation: none; }
}

/* --------------------------------------------------------------------------
   23. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .nav, .pills, .footer, .proto, .cmdk, .band, .handoff, .share, .ticker { display: none !important; }
  body { background: #fff; }
  .prose { max-width: none; font-size: 11pt; }
}

/* ==========================================================================
   24. SPONSORED HIGHLIGHT
   --------------------------------------------------------------------------
   Visually distinct from editorial, but built from the same design tokens so
   it sits inside the publication rather than on top of it. The label is part
   of the component and is never optional: the tinted ground, the dotted rule
   and the "Sponsored Highlight" chip all exist so a reader can tell at a
   glance that this is advertising.
   ========================================================================== */
.sponsored {
  --sp: var(--violet);
  position: relative;
  display: grid;
  gap: var(--s-4);
  padding: clamp(20px, 3vw, 30px);
  margin: var(--s-7) 0;
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--sp) 7%, var(--paper)), var(--paper));
  border: 1px solid color-mix(in oklab, var(--sp) 24%, transparent);
  /* Dashed outer edge reads as "not editorial" without shouting. */
  outline: 1px dashed color-mix(in oklab, var(--sp) 30%, transparent);
  outline-offset: 4px;
}
.sponsored::before {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: 3px; border-radius: var(--r-lg) 0 0 var(--r-lg);
  background: linear-gradient(180deg, var(--sp), color-mix(in oklab, var(--sp) 30%, transparent));
}
.sponsored__label {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sp);
}
.sponsored__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sp); flex: none;
}
.sponsored__label-text { font-weight: 500; }
.sponsored__sponsor {
  color: var(--ink-3);
  border-left: 1px solid var(--line);
  padding-left: 8px;
  text-transform: none; letter-spacing: 0;
}
.sponsored__heading {
  font-family: var(--font-display);
  font-size: var(--t-lg); line-height: 1.2; font-weight: 600;
  color: var(--ink);
}
.sponsored__copy {
  margin-top: 10px; color: var(--ink-2); line-height: 1.6;
  font-size: var(--t-sm); max-width: 62ch;
}
.sponsored__foot {
  display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap;
}
.sponsored__why {
  font-size: var(--t-xs); color: var(--ink-3); text-decoration: underline;
  text-underline-offset: 2px;
}
.sponsored__why:hover { color: var(--sp); }

/* Inline variant for use inside article prose. */
.sponsored--inline { margin: var(--s-6) 0; padding: var(--s-5); }
.sponsored--inline .sponsored__heading { font-size: var(--t-md); }

/* Rail variant for a sidebar. */
.sponsored--rail { margin: 0; }

/* ==========================================================================
   25. HONEST-STATE NOTICES
   Used wherever the site has to say "this is not real yet" — draft policies,
   unconnected forms, unreviewed tools, sample content.
   ========================================================================== */
.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  background: color-mix(in oklab, var(--amber) 6%, var(--paper));
  border-radius: var(--r-md);
  padding: var(--s-5);
  margin: var(--s-6) 0;
}
.notice b {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: color-mix(in oklab, var(--amber) 70%, var(--ink));
  margin-bottom: 8px;
}
.notice p { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.6; }
.notice a { color: var(--violet); text-decoration: underline; }
.notice--draft  { border-left-color: var(--rose);   background: color-mix(in oklab, var(--rose) 6%, var(--paper)); }
.notice--draft b { color: color-mix(in oklab, var(--rose) 70%, var(--ink)); }
.notice--sample { border-left-color: var(--cyan);   background: color-mix(in oklab, var(--cyan) 6%, var(--paper)); }
.notice--sample b { color: color-mix(in oklab, var(--cyan) 70%, var(--ink)); }

.disclosure, .disclosure-block {
  font-size: var(--t-xs); color: var(--ink-3); line-height: 1.6;
  border-top: 1px solid var(--line); padding-top: var(--s-4); margin-top: var(--s-6);
}
.disclosure a { color: var(--violet); text-decoration: underline; }

/* ==========================================================================
   26. AUTHORS
   ========================================================================== */
.authorbox {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-5);
  align-items: start;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-5); margin-top: var(--s-7);
  background: var(--paper-2, var(--paper));
}
.authorbox__avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none;
}
.authorbox__avatar--initial {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #fff; font-family: var(--font-display); font-size: 28px; font-weight: 600;
}
.authorbox__name { font-family: var(--font-display); font-size: var(--t-md); font-weight: 600; }
.authorbox__name a { color: var(--ink); }
.authorbox__name a:hover { color: var(--violet); }
.authorbox__role {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-3); margin-left: 8px;
}
.authorbox__bio { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.6; margin-top: 8px; }
.authorbox__meta { font-size: var(--t-xs); color: var(--ink-3); margin-top: 10px; }
.authorbox__meta a { color: var(--violet); text-decoration: underline; }

.authorgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-4); }
.authorcard {
  display: flex; align-items: center; gap: var(--s-4);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4);
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.authorcard:hover { border-color: var(--violet); transform: translateY(-2px); }
.authorcard.is-current { border-color: var(--violet); }
.authorcard__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #fff; font-family: var(--font-display); font-weight: 600;
}
.authorcard b { display: block; font-size: var(--t-sm); color: var(--ink); }
.authorcard i { font-style: normal; font-size: var(--t-xs); color: var(--ink-3); }

.byline__avatar--initial {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #fff; font-family: var(--font-display); font-size: 15px; font-weight: 600;
}
.byline__meta > * + *::before { content: " · "; color: var(--ink-3); }
.byline__method { color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; }
.byline__method:hover { color: var(--violet); }

/* ==========================================================================
   27. TOOL DATABASE — profile page
   ========================================================================== */
.toolhead { display: grid; grid-template-columns: auto 1fr; gap: var(--s-5); align-items: start; text-align: left; }
.toolhead__logo {
  width: 68px; height: 68px; border-radius: var(--r-md); flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 30px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent, var(--violet)), color-mix(in oklab, var(--accent, var(--violet)) 40%, var(--violet)));
}
.toolhead__meta { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-4); }
.toolhead__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-5); }
.toolhead__house {
  margin-top: var(--s-5); font-size: var(--t-xs); color: var(--ink-2);
  border-left: 2px solid var(--violet); padding-left: var(--s-4); line-height: 1.6;
}

.facts { border-top: 1px solid var(--line); margin-top: var(--s-5); }
.factrow {
  display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: var(--s-4);
  padding: var(--s-4) 0; border-bottom: 1px solid var(--line);
}
.factrow dt {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
}
.factrow dd { color: var(--ink-2); line-height: 1.6; }

.verdict { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-6); margin-top: var(--s-7); }
.verdict__h { font-family: var(--font-display); font-size: var(--t-md); font-weight: 600; margin-bottom: var(--s-3); }
.verdict__h--pro { color: var(--emerald); }
.verdict__h--con { color: var(--rose); }
.verdict__list { display: grid; gap: 10px; }
.verdict__list li { color: var(--ink-2); line-height: 1.6; padding-left: 20px; position: relative; }
.verdict__list li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }

.rating--none {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-3);
  border: 1px dashed var(--line); border-radius: 999px; padding: 4px 10px;
}
.tool__sponsor {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--violet);
  border: 1px solid color-mix(in oklab, var(--violet) 35%, transparent);
  border-radius: 999px; padding: 2px 7px; margin-left: 8px; vertical-align: middle;
}

/* ==========================================================================
   28. COMPARISONS
   ========================================================================== */
.compare-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s-5); }
.compare-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5);
  display: grid; gap: var(--s-3); align-content: start;
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.compare-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.compare-card h3 { font-family: var(--font-display); font-size: var(--t-md); font-weight: 600; }
.compare-card p { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; }
.compare-card__tools { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3) !important; }
.badge--soft {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
  border: 1px dashed var(--line); border-radius: 999px; padding: 4px 10px;
  justify-self: start;
}

.comparetable { overflow-x: auto; margin-top: var(--s-6); }
.ctable { width: 100%; border-collapse: collapse; min-width: 520px; }
.ctable th, .ctable td {
  text-align: left; padding: var(--s-4); border-bottom: 1px solid var(--line);
  font-size: var(--t-sm); color: var(--ink-2); vertical-align: top;
}
.ctable thead th { font-family: var(--font-display); font-size: var(--t-md); color: var(--ink); }
.ctable tbody th {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}

/* ==========================================================================
   29. LEGAL / POLICY PAGES
   ========================================================================== */
.legal { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: var(--s-7); align-items: start; }
.legal__nav { display: grid; gap: 2px; position: sticky; top: 100px; }
.legal__nav a {
  padding: 10px var(--s-4); border-radius: var(--r-sm);
  font-size: var(--t-sm); color: var(--ink-2);
}
.legal__nav a:hover { background: color-mix(in oklab, var(--violet) 7%, transparent); color: var(--ink); }
.legal__nav a.is-current { background: color-mix(in oklab, var(--violet) 12%, transparent); color: var(--violet); font-weight: 500; }
.legal__nav i {
  font-style: normal; font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; color: var(--ink-3); margin-left: 6px;
}

.prose--doc h2 {
  font-family: var(--font-display); font-size: var(--t-lg);
  margin-top: var(--s-8); margin-bottom: var(--s-4);
}
.prose--doc p, .prose--doc li { color: var(--ink-2); line-height: 1.75; }
.prose--doc ul { margin: var(--s-4) 0 var(--s-4) var(--s-5); display: grid; gap: 8px; }
.prose--doc a { color: var(--violet); text-decoration: underline; }

/* ==========================================================================
   30. MISC — derived-count grids, footer additions
   ========================================================================== */
.factgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.factgrid__item {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5);
}
.phead__count { color: var(--ink-3); font-size: var(--t-sm); margin-top: var(--s-4); }
.loadmore { display: flex; justify-content: center; margin-top: var(--s-7); }
.footer__disclosure { margin-top: var(--s-7); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px; }
.footer__legal a { color: var(--ink-3); }
.footer__legal a:hover { color: var(--violet); }

@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; }
  .legal__nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .toolhead { grid-template-columns: 1fr; }
  .factrow { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 620px) {
  .factgrid { grid-template-columns: 1fr; }
  .authorbox { grid-template-columns: 1fr; }
}
