/* BrandTab: the long-form pages (blog, comparisons, who-it's-for, tools),
   carried over from the Next.js site's content.css so they look exactly as
   they did on brandtab.co. The variables below map its names onto the new
   design's tokens in site.css. */
.bt-content {
  --display: var(--f-display);
  --ui: var(--f-body);
  --accent: #35584d;
  --accent-warm: #a4713f;
  --muted: #5d665f;
  --line: rgba(23, 35, 31, .12);
  --line-strong: rgba(23, 35, 31, .18);
  --faint: #9aa19c;
  --sunk: #f1eee7;
  --moss-band: #e3e8d4;
  --forest-2: #2a4a40;
  --width: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 92px;
  --band-ink: var(--ink);
  --band-muted: var(--muted);
  --band-eyebrow: var(--accent-warm);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
.bt-content a:focus-visible, .bt-content button:focus-visible, .bt-content summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/*
 * The frame these pages stand in on the old site, from its marketing.css:
 * section bands (with their waves), the questions list, and hidden captions.
 * The new design has none of these, so they come along here. Bands and waves
 * keep the old class names; .wave also exists in site.css, hence .band > .wave.
 */
/* WordPress spaces the blocks inside a group by itself (1.2em). Inside the
   bands and sections built from groups, the rules below space them instead,
   as on the old site; this sits first so they win. */
.bt-content.is-layout-flow > *,
.bt-content :where(.band, .band-inner, .vs-section, .vs-section .wp-block-group) > * {
  margin-block: 0;
}

/* Links aren't underlined unless a rule below says so (the old site's
   globals.css); post bodies and breadcrumbs on hover underline their own. */
.bt-content a {
  text-decoration: none;
}

.band {
  --band-bg: var(--cream);
  --band-ink: var(--ink);
  --band-muted: var(--muted);
  --band-eyebrow: var(--accent-warm);

  position: relative;
  padding: clamp(72px, 10vw, 124px) 0;
  background: var(--band-bg);
  color: var(--band-ink);
}

/* Bands with waves sit above their neighbours, so the wave draws over the
   neighbour's edge instead of underneath it. */
.band:has(> .wave) {
  z-index: 1;
}

.band-cream {
  --band-bg: var(--cream);
}

.band-parchment {
  --band-bg: var(--parchment);
}

.band-moss {
  --band-bg: var(--moss-band);
}

.band-forest {
  --band-bg: var(--forest);
  --band-ink: var(--on-forest);
  --band-muted: rgba(244, 238, 223, 0.76);
  --band-eyebrow: var(--gold-soft);
}

.band-walnut {
  --band-bg: var(--walnut);
  --band-ink: var(--on-forest);
  --band-muted: rgba(244, 238, 223, 0.78);
  --band-eyebrow: var(--gold-soft);
}

.band-inner {
  width: min(var(--width), 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.band > .wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: clamp(22px, 3.2vw, 46px);
  margin: 0;
  fill: var(--band-bg);
  pointer-events: none;
}

.band > .wave-top {
  bottom: calc(100% - 1px);
}

.band > .wave-bottom {
  top: calc(100% - 1px);
  transform: scale(-1, -1);
}

/* Headings on a dark band take the band's ink. */
.band-forest :where(h2, h3),
.band-walnut :where(h2, h3) {
  color: var(--band-ink);
}

/* Questions as <details>. Only inside the long-form pages: the home page's
   questions section also has the class .faq. (:where keeps these as weak as
   on the old site, so .vs-section's spacing still applies.) */
:where(.bt-content) .faq {
  width: min(760px, 100%);
  margin: 0 auto;
}

:where(.bt-content) .faq h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500;
}

:where(.bt-content) .faq details {
  border-bottom: 1px solid var(--line);
}

:where(.bt-content) .faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

:where(.bt-content) .faq summary::-webkit-details-marker {
  display: none;
}

:where(.bt-content) .faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.18s var(--ease);
}

:where(.bt-content) .faq details[open] summary::after {
  transform: rotate(45deg);
}

:where(.bt-content) .faq details p {
  margin: -4px 0 18px;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.62;
}

.bt-content .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/*
 * The pages written for search: the blog, the comparison pages and the
 * audience pages. Built on marketing.css (bands, intros, buttons) and
 * studio.css (closing invitations, persona pills).
 *
 * Kindrid Studio type rules hold here too: Fraunces at 500 or 600, never
 * heavier; Avenir Next for body and UI, never above 700; small uppercase
 * labels at 600 and 12px or larger. One surface level: no cards in cards.
 */

/* --- Shared: breadcrumbs, kickers, the closing call to action --- */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: var(--faint);
}

.crumbs a {
  color: var(--accent);
  font-weight: 600;
}

.crumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The page's own crumb can be a long title: keep it to one line. */
.crumbs li[aria-current="page"] {
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* A page heading with Tabitha beside it (features/content/head-art.tsx). */
.head-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.head-split .head-art {
  width: 100%;
  max-width: 500px;
  height: auto;
  justify-self: end;
}

@media (max-width: 760px) {
  .head-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .head-split .head-art {
    display: none;
  }
}

.post-kicker {
  margin: 0;
  color: var(--accent-warm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cta-mac {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 14px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.cta-mac a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(53, 88, 77, 0.3);
}

.cta-mac a:hover {
  border-color: var(--accent);
}

.cta-mac svg {
  width: 17px;
  height: 17px;
}

/* --- Blog index and category pages --- */

.blog-top {
  padding-top: clamp(36px, 6vw, 72px);
}

.blog-head {
  max-width: 760px;
}

.blog-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.blog-lede {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.62;
}

.blog-lede code {
  font-size: 0.9em;
}

.blog-empty {
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.blog-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 28px 0 0;
}

.blog-pills a {
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.blog-pills a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.blog-pills a[aria-current="page"] {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--on-forest);
}

.blog-pills .blog-feed-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  border-color: transparent;
  background: none;
  color: var(--muted);
}

.blog-feed-link svg {
  width: 15px;
  height: 15px;
}

.blog-section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.blog-section-title span {
  color: var(--faint);
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 600;
}

/* The newest post, large: cover beside its title. */
.blog-featured {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
}

.blog-featured-link {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 48px);
}

.blog-featured-copy h2 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.blog-featured-copy > p:not(.post-kicker) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.blog-featured-link:hover h2 {
  color: var(--accent);
}

.blog-latest {
  margin-top: clamp(48px, 7vw, 76px);
}

/* Cards: the cover, then plain text on the page. No box around them. */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 40px) clamp(20px, 3vw, 32px);
  margin-top: 28px;
}

.blog-latest .post-grid,
.post-more .post-grid {
  margin-top: 0;
}

.post-card-link {
  display: grid;
  gap: 10px;
  color: inherit;
}

.post-card-link .post-cover {
  margin-bottom: 6px;
}

.post-card h2,
.post-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  transition: color 0.18s var(--ease);
}

.post-card-link:hover h2,
.post-card-link:hover h3 {
  color: var(--accent);
}

.post-card-summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.post-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  background: var(--parchment);
  box-shadow: 0 12px 30px rgba(23, 35, 31, 0.08);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

a:hover > .post-cover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(23, 35, 31, 0.12);
}

.post-cover-empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 80% 10%, rgba(236, 216, 162, 0.7), transparent 55%),
    linear-gradient(135deg, var(--moss-band), var(--parchment));
}

.post-cover-empty span {
  color: var(--walnut);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
}

/* Topics and the comparisons callout, side by side. */
.blog-topics-grid {
  display: grid;
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 72px);
}

.topic-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.topic-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.topic-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.topic-list b {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
}

.topic-list a:hover b {
  color: var(--accent);
}

.topic-count {
  flex: none;
  color: var(--accent-warm);
  font-size: 0.85rem;
  font-weight: 600;
}

.topic-list p {
  margin: 4px 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.compare-callout {
  padding: clamp(24px, 3vw, 32px);
  border-radius: 22px;
  background: var(--forest);
  color: var(--on-forest);
}

.compare-callout .eyebrow {
  color: var(--gold-soft);
}

.compare-callout h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.1;
}

.compare-callout > p:not(.eyebrow) {
  margin: 12px 0 16px;
  color: rgba(244, 238, 223, 0.8);
  line-height: 1.55;
}

.compare-callout ul {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.compare-callout ul a {
  color: var(--on-forest);
  font-weight: 600;
}

.compare-callout ul a:hover {
  color: var(--gold-soft);
}

.compare-callout .arrow-link {
  color: var(--gold-soft);
  border-color: rgba(236, 216, 162, 0.4);
}

/* --- A post --- */

/* Scoped to the article page: the home page's blog cards are also called .post (site.css). */
.bt-content article.post {
  padding: clamp(28px, 5vw, 56px) var(--gutter) 0;
  background: var(--cream);
}

.post-head {
  width: min(760px, 100%);
  margin: 0 auto;
}

.post-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.post-lede {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 22px;
}

.byline > div {
  display: grid;
  line-height: 1.3;
}

.byline b {
  font-weight: 600;
}

.byline > div span {
  color: var(--muted);
  font-size: 0.86rem;
}

.byline-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  object-fit: cover;
  object-position: 50% 8%;
}

img.byline-avatar {
  background: var(--gold-soft);
}

.byline-meta {
  display: flex;
  gap: 8px;
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 0.88rem;
}

.post-figure {
  width: min(1080px, 100%);
  margin: clamp(28px, 4vw, 44px) auto 0;
}

.post-figure .post-cover {
  border-radius: 24px;
}

.post-figure figcaption {
  margin-top: 10px;
  color: var(--faint);
  font-size: 0.82rem;
  text-align: right;
}

.post-figure figcaption a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 700px);
  justify-content: center;
  gap: clamp(32px, 5vw, 64px);
  width: min(1080px, 100%);
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding-bottom: clamp(48px, 7vw, 88px);
}

/* No contents list (a short post): the body takes the centre alone. */
.post-layout:not(:has(.post-toc)) {
  grid-template-columns: minmax(0, 700px);
}

.post-toc details {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.post-toc summary {
  margin-bottom: 10px;
  color: var(--accent-warm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  list-style: none;
  pointer-events: none;
}

.post-toc summary::-webkit-details-marker {
  display: none;
}

.post-toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.post-toc a {
  display: block;
  padding: 6px 0 6px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.post-toc a:hover {
  border-color: var(--gold);
  color: var(--ink);
}

/* The article itself: long-form reading type. */
.post-body {
  color: var(--ink-2);
  font-size: 1.07rem;
  line-height: 1.75;
}

.post-body > :first-child {
  margin-top: 0;
}

.post-body h2 {
  margin: 2.2em 0 0.5em;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.post-body h3 {
  margin: 1.8em 0 0.4em;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.post-body h4 {
  margin: 1.6em 0 0.3em;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote,
.post-body figure,
.post-body .post-table {
  margin: 0 0 1.15em;
}

.post-body ul,
.post-body ol {
  padding-left: 1.3em;
}

.post-body li {
  margin-bottom: 0.4em;
  padding-left: 0.2em;
}

.post-body li::marker {
  color: var(--gold);
}

.post-body a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(53, 88, 77, 0.3);
  text-underline-offset: 3px;
}

.post-body a:hover {
  text-decoration-color: var(--accent);
}

.post-body strong {
  color: var(--ink);
  font-weight: 700;
}

.post-body blockquote {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--gold);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
}

.post-body blockquote p:last-child {
  margin-bottom: 0;
}

.post-body hr {
  height: 1px;
  margin: 2.4em 0;
  border: 0;
  background: var(--line-strong);
}

.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.post-body figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.post-body code,
.post-body kbd {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--sunk);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
}

.post-body kbd {
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  background: #fffdf8;
}

.post-body pre {
  margin: 0 0 1.15em;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: 14px;
  background: var(--forest);
  color: var(--on-forest);
  font-size: 0.9rem;
  line-height: 1.6;
}

.post-body pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.post-table {
  overflow-x: auto;
}

.post-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.post-table th {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--accent-warm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.post-table td {
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

/* The closing questions read as a list of answers, not more headings. */
.post-body h2#questions-people-ask ~ h3 {
  margin: 1.4em 0 0.3em;
  padding-top: 1.1em;
  border-top: 1px solid var(--line);
  font-size: 1.12rem;
}

.post-body h2#questions-people-ask + h3 {
  border-top: 0;
  padding-top: 0;
}

.post-more {
  width: min(var(--width), 100%);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) var(--gutter) clamp(64px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.post-more h2 {
  margin: 0 0 22px;
  padding-top: clamp(32px, 4vw, 48px);
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 500;
}

/* The drafts preview's own bits (development only). */
.draft-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 22px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: #4a3a12;
  font-size: 0.92rem;
}

.draft-notice b {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.draft-notice a {
  margin-left: auto;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.drafts-problems {
  margin-top: 36px;
  padding: 16px 20px;
  border-left: 3px solid #b5523b;
  background: #fbeee8;
}

.drafts-problems ul {
  margin: 0;
  padding-left: 1.2em;
  color: #6e2c1d;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .blog-featured-link,
  .blog-topics-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  /* On a phone the contents list sits above the post, folded. */
  .post-toc details {
    position: static;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--sunk);
  }

  .post-toc summary {
    margin: 0;
    pointer-events: auto;
    cursor: pointer;
  }

  .post-toc details[open] summary {
    margin-bottom: 10px;
  }

  .byline-meta {
    flex-basis: 100%;
    margin-left: 56px;
  }

  .blog-pills .blog-feed-link {
    margin-left: 0;
  }
}

/* --- Comparison pages and the /compare hub --- */

.vs-top {
  padding-top: clamp(36px, 6vw, 72px);
}

.vs-head {
  max-width: 780px;
}

.vs-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.vs-section {
  margin-top: clamp(48px, 7vw, 76px);
}

.vs-section > h2,
.vs-fair h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.vs-agree {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vs-agree li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  color: var(--ink-2);
  line-height: 1.55;
}

.vs-agree svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent);
}

/* The comparison table: three columns on a desktop, stacked on a phone. */
.vs-table {
  border-top: 1px solid var(--line-strong);
}

.vs-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

.vs-row b {
  font-weight: 600;
}

.vs-row span:last-child {
  color: var(--ink);
}

.vs-row-head span {
  color: var(--accent-warm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vs-row:not(.vs-row-head) span:nth-child(2) {
  color: var(--muted);
}

/* What the other tool does better, beside when to choose each. */
.vs-fair {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.vs-better {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 3px solid var(--gold);
  list-style: none;
  color: var(--ink-2);
  line-height: 1.55;
}

.vs-pick {
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.vs-pick p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.6;
}

.vs-pick b {
  display: block;
  margin-bottom: 2px;
  color: var(--accent-warm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vs-how .band-inner {
  display: grid;
  gap: 28px;
}

.vs-how-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 500;
}

.vs-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px clamp(24px, 4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vs-how-grid li {
  display: grid;
  gap: 6px;
}

.vs-how-grid svg {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(236, 216, 162, 0.16);
  color: var(--gold-soft);
}

.vs-how-grid b {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
}

.vs-how-grid span {
  color: var(--band-muted);
  line-height: 1.55;
}

.vs-bottom {
  padding-top: clamp(40px, 6vw, 72px);
}

.vs-bottom .vs-section:first-child {
  margin-top: 0;
}

/* What each costs: the other tool and BrandTab side by side. */
.vs-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 56px);
}

.vs-prices h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
}

.vs-prices > div > p:not(.vs-source) {
  margin: 0 0 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

.vs-prices dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.vs-prices dl > div {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

.vs-prices dt {
  font-weight: 600;
}

.vs-prices dd {
  display: grid;
  gap: 2px;
  margin: 0;
}

.vs-prices dd b {
  font-weight: 600;
}

.vs-prices dd span {
  color: var(--muted);
  font-size: 0.88rem;
}

.vs-source {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.vs-source a {
  color: var(--accent);
  font-weight: 600;
}

.vs-source a svg {
  width: 12px;
  height: 12px;
  margin-left: 3px;
  vertical-align: -1px;
}

.vs-bottom .faq {
  width: 100%;
  max-width: 820px;
  margin-left: 0;
}

.vs-others ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vs-others a {
  display: inline-block;
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.vs-others a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.compare-different {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px clamp(24px, 4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-different li {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 2px solid var(--gold);
}

.compare-different b {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
}

.compare-different span {
  color: var(--muted);
  line-height: 1.55;
}

.compare-also {
  margin: 28px 0 0;
  color: var(--ink-2);
}

.compare-also a {
  color: var(--accent);
  font-weight: 600;
}

/* --- The in-depth reviews: dates, quick facts, jump links, the walkthrough --- */

.vs-dated {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.vs-dated a {
  color: var(--accent);
  font-weight: 600;
}

.vs-section h2[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* The short answer, right under the H1: what AI answers and skimmers quote. */
.vs-verdict {
  margin: 18px 0 0;
  padding: 14px 18px;
  max-width: 62ch;
  border-left: 3px solid var(--gold);
  background: #fffdf8;
}

.vs-verdict p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.4vw, 1.1rem);
  line-height: 1.6;
}

.vs-verdict p.vs-verdict-label {
  margin-bottom: 4px;
  color: var(--accent-warm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* BrandTab, described the same way on every page. */
.vs-about {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.6;
}

.vs-jump {
  margin-top: 20px;
}

.vs-overview {
  max-width: 760px;
}

.vs-overview p,
.vs-intro {
  margin: 0 0 1em;
  color: var(--ink-2);
  font-size: 1.07rem;
  line-height: 1.7;
}

.vs-intro {
  max-width: 62ch;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 1rem;
}

/* Topic by topic: the part, then the other tool, then BrandTab. */
.vs-walk {
  border-top: 1px solid var(--line-strong);
}

.vs-topic {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.vs-topic h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.2;
}

.vs-topic p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.62;
}

.vs-topic p.vs-who {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vs-topic p.vs-who-us {
  color: var(--accent);
}

.vs-example {
  margin: 28px 0 0;
  padding: 16px 20px;
  max-width: 820px;
  border-left: 3px solid var(--gold);
  background: #fffdf8;
  color: var(--ink-2);
  line-height: 1.6;
}

.vs-example b {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-warm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* The questions slide open and closed (features/content/faq-accordion.tsx). */
.faq-list summary {
  align-items: flex-start;
}

.faq .faq-list summary::after {
  content: none;
}

.faq-chevron {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent);
  transition: transform 0.5s cubic-bezier(0.45, 0, 0.2, 1);
}

.faq-list details[open]:not([data-state="closing"]) .faq-chevron {
  transform: rotate(180deg);
}

.faq-body {
  overflow: hidden;
}

.faq .faq-list .faq-body p {
  margin: 0;
  padding-bottom: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .faq-chevron {
    transition: none;
  }
}

.vs-sources p {
  margin: 0 0 12px;
  max-width: 70ch;
  color: var(--ink-2);
  line-height: 1.6;
}

.vs-sources p a,
.vs-sources li a {
  color: var(--accent);
  font-weight: 600;
}

.vs-sources ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.vs-sources li a svg {
  width: 12px;
  height: 12px;
  margin-left: 4px;
  vertical-align: -1px;
}

/* --- The /compare hub: the side-by-side table and the review cards --- */

/* Eleven tools across the questions that matter: each table scrolls
   sideways on a phone, inside its own box, with the tool's name pinned. */
.hub-scroll {
  overflow-x: auto;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
  -webkit-overflow-scrolling: touch;
}

.hub-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hub-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.4;
}

.hub-table th,
.hub-table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.hub-table thead th {
  border-bottom: 1px solid var(--line-strong);
  color: var(--accent-warm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
  vertical-align: bottom;
}

/* The tool's name gets a fixed share; the other columns split the rest. */
.hub-table thead th:first-child {
  width: 13%;
}

.hub-table-5 {
  min-width: 860px;
}

.hub-table-6 {
  min-width: 960px;
}

.hub-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--band-bg);
  color: var(--ink);
  font-weight: 600;
}

.hub-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--band-bg);
}

.hub-table tbody th a {
  color: var(--ink);
  border-bottom: 1px solid rgba(53, 88, 77, 0.3);
}

.hub-table tbody th a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hub-table td {
  color: var(--ink-2);
}

.hub-table td.hub-no {
  color: var(--muted);
}

.hub-table tr.hub-us th,
.hub-table tr.hub-us td {
  background: var(--green-soft);
  color: var(--ink);
}

.hub-table tr.hub-us td {
  font-weight: 600;
}

.hub-table tr.hub-us td.hub-no {
  color: var(--muted);
  font-weight: 500;
}

.hub-honest {
  margin: 28px 0 0;
  max-width: 70ch;
  color: var(--ink-2);
  line-height: 1.62;
}

.hub-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 6px;
  height: 100%;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fffdf8;
  color: var(--ink-2);
  line-height: 1.55;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.hub-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hub-card b {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.2;
}

.hub-card-kind {
  color: var(--accent-warm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hub-card-more {
  margin-top: 4px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .hub-card {
    transition: none;
  }

  .hub-card:hover {
    transform: none;
  }
}

@media (max-width: 860px) {
  .vs-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .vs-row-head {
    display: none;
  }

  .vs-row span[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--faint);
    font-weight: 600;
  }

  .vs-fair,
  .vs-prices,
  .compare-different {
    grid-template-columns: minmax(0, 1fr);
  }

  .vs-topic {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .hub-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-table-5 {
    min-width: 760px;
  }

  .hub-table-6 {
    min-width: 860px;
  }
}

/* --- Audience pages (/for/...) --- */

.for-top {
  padding-top: clamp(36px, 6vw, 72px);
}

.for-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.for-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
}

.for-jump a {
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.for-jump a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.for-room-solo {
  max-width: 760px;
}

.for-points {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.for-points li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  color: var(--band-ink);
  line-height: 1.5;
}

.for-points svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--band-eyebrow);
}

.for-bottom .for-plan {
  max-width: 760px;
}

.for-plan h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 500;
}

.for-plan > p:not(.eyebrow) {
  margin: 10px 0 14px;
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.6;
}

.for-bottom .faq {
  width: 100%;
  max-width: 820px;
  margin-left: 0;
}

.drafts-heads-up {
  border-left-color: var(--gold);
  background: #fbf3e4;
}

.drafts-heads-up ul {
  color: #6f4f1c;
}

/* --- WordPress: the parts of the reviews written with ordinary blocks --- */

/* "Where they agree" is an ordinary list block, so its check is drawn here
   rather than an icon in each item, and a link or bold word stays in line. */
.vs-agree li:not(:has(> svg)) {
  display: block;
  position: relative;
  padding-left: 32px;
}

.vs-agree li:not(:has(> svg))::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* site.css draws every svg as a block; the small "opens elsewhere" arrows
   after source links sit in the line, as on the old site. */
.vs-source a svg,
.vs-sources a svg {
  display: inline-block;
}

/* The editor writes bold as <strong>; the old pages used <b>. */
.vs-pick strong {
  display: block;
  margin-bottom: 2px;
  color: var(--accent-warm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vs-overview p a,
.vs-better a,
.vs-agree a,
.vs-pick a,
.hub-honest a {
  color: var(--accent);
  font-weight: 600;
}
