/* Long-form BOFU comparison pages. Extends styles.css tokens. */

.bofu-body {
  background:
    radial-gradient(circle at 78% -8%, rgba(249, 69, 35, .06), transparent 36rem),
    var(--bg);
}

.bofu-header {
  width: var(--page);
  height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.bofu-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-self: end;
}

.bofu-header nav a {
  color: #c5c8c2;
  font-size: 14px;
  text-decoration: none;
}

.bofu-header nav a:hover,
.bofu-header nav a[aria-current="page"] {
  color: var(--text);
}

.bofu-header .header-cta {
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.bofu-page {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
}

.bofu-hero {
  padding: clamp(64px, 8vw, 110px) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}

.bofu-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 22px;
  color: #747a72;
  font-size: 13px;
}

.bofu-crumbs a {
  color: #b9bdb6;
  text-underline-offset: 3px;
}

.bofu-crumbs span[aria-hidden="true"] {
  color: #555a54;
}

.bofu-hero .eyebrow {
  margin-bottom: 16px;
}

.bofu-hero h1 {
  max-width: 920px;
  margin: 0 0 22px;
  font-size: clamp(2.35rem, 5.4vw, 4.15rem);
  font-weight: 540;
  line-height: 1.02;
  letter-spacing: -.05em;
}

.bofu-hero .dek {
  max-width: 680px;
  margin: 0 0 28px;
  color: #c4c7c1;
  font-size: clamp(1.12rem, 1.7vw, 1.35rem);
  line-height: 1.45;
}

.bofu-dateline {
  margin: 0;
  max-width: 680px;
  color: #8b9088;
  font-size: 13px;
  line-height: 1.46;
}

.bofu-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 760px);
  justify-content: center;
  column-gap: clamp(36px, 5vw, 72px);
  padding: clamp(48px, 7vw, 88px) 0 40px;
}

.bofu-toc {
  position: sticky;
  top: 28px;
  align-self: start;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.bofu-toc p {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bofu-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bofu-toc li {
  margin: 0 0 11px;
}

.bofu-toc a {
  color: #9aa09a;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.bofu-toc a:hover {
  color: var(--text);
}

.bofu-mobile-toc {
  display: none;
  margin: 0 0 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.bofu-mobile-toc summary {
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}

.bofu-mobile-toc ol {
  margin: 0;
  padding: 0 16px 16px 32px;
  color: #b5b9b2;
}

.bofu-mobile-toc a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.bofu-article {
  min-width: 0;
}

.bofu-article > section {
  margin: 0 0 clamp(52px, 7vw, 84px);
  scroll-margin-top: 28px;
}

.bofu-article h2 {
  margin: 0 0 20px;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  font-weight: 540;
  letter-spacing: -.04em;
  line-height: 1.12;
}

.bofu-article h3 {
  margin: 32px 0 14px;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.bofu-article p,
.bofu-article li {
  color: #b7bbb4;
  font-size: 17px;
  line-height: 1.7;
}

.bofu-article p {
  margin: 0 0 16px;
}

.bofu-article p:last-child,
.bofu-article ul:last-child,
.bofu-article ol:last-child {
  margin-bottom: 0;
}

.bofu-article ul,
.bofu-article ol {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.bofu-article li {
  margin-bottom: 10px;
}

.bofu-article strong {
  color: var(--text);
  font-weight: 650;
}

.bofu-article a:not(.button) {
  color: var(--accent);
  text-underline-offset: 4px;
}

.bofu-lead {
  margin-bottom: 28px !important;
  color: #d5d7d2 !important;
  font-size: 19px !important;
  line-height: 1.58 !important;
}

.keypoints {
  margin: 8px 0 0;
  padding: 28px 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.keypoints h2 {
  margin-bottom: 18px;
}

.keypoints ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: kp;
}

.keypoints li {
  counter-increment: kp;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 10px;
  margin: 0 0 16px;
  color: #c2c5c0;
}

.keypoints li::before {
  content: counter(kp, decimal-leading-zero);
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .04em;
}

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

.shortlist > li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 18px 24px;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.shortlist h3 {
  margin: 0;
  font-size: 1.15rem;
}

.shortlist p {
  margin: 0;
}

.compare-table-wrap {
  margin: 8px 0 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: #b7bbb4;
}

.compare-table th {
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 680;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table .name {
  color: var(--text);
  font-weight: 650;
}

.shot {
  margin: 22px 0 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0c0d0c;
}

.shot img {
  width: 100%;
  height: auto;
}

.shot figcaption {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
  color: #8b9088;
  font-size: 13px;
  line-height: 1.5;
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.fit-grid article {
  padding: 24px 24px 22px;
}

.fit-grid article:last-child {
  border-left: 1px solid var(--line);
}

.fit-grid p.kicker {
  margin: 0 0 10px;
  color: #8b9088;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fit-grid article:last-child p.kicker {
  color: var(--accent);
}

.fit-grid h3 {
  margin: 0 0 12px;
}

.fit-grid p {
  margin: 0;
}

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

.diff-list > li {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.diff-list h3 {
  margin: 0 0 12px;
}

.diff-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tests {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: test;
}

.tests > li {
  counter-increment: test;
  margin: 0 0 22px;
  padding: 0 0 0 3.2rem;
  position: relative;
}

.tests > li::before {
  content: counter(test, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
}

.tests h3 {
  margin: 0 0 10px;
}

.faq-list {
  margin: 8px 0 0;
  border-top: 1px solid var(--line);
}

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

.faq-list summary {
  padding: 18px 36px 18px 0;
  cursor: pointer;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -.02em;
  list-style: none;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
}

.faq-list details[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.faq-list details p {
  margin: 0 0 18px;
  max-width: 680px;
}

.method-box,
.cta-box {
  margin: 8px 0 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
}

.cta-box h2 {
  margin-top: 0;
}

.cta-box p {
  max-width: 620px;
}

.cta-box .button {
  margin-top: 18px;
}

.related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0 0;
}

.related a {
  display: block;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  text-decoration: none !important;
  color: var(--text) !important;
}

.related a:hover {
  background: var(--surface);
}

.related span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.related strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.related em {
  display: block;
  color: #8b9088;
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
}

.bofu-footer {
  width: var(--page);
  margin: 0 auto;
  padding: 36px 0 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  border-top: 1px solid var(--line);
}

.bofu-footer a {
  color: #aeb2ab;
  font-size: 14px;
  text-decoration: none;
}

.bofu-footer a:hover {
  color: var(--text);
}

.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0 0;
}

.hub-grid a {
  display: block;
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  text-decoration: none !important;
  color: inherit !important;
}

.hub-grid a:hover {
  background: var(--surface);
}

.hub-grid h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.hub-grid p {
  margin: 0;
  color: #8b9088;
  font-size: 15px;
}

@media (max-width: 980px) {
  .bofu-layout {
    grid-template-columns: minmax(0, 760px);
  }

  .bofu-toc {
    display: none;
  }

  .bofu-mobile-toc {
    display: block;
  }
}

@media (max-width: 760px) {
  .bofu-header {
    height: 66px;
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .bofu-header nav {
    display: none;
  }

  .bofu-header .header-cta {
    justify-self: end;
    font-size: 12px;
  }

  .bofu-page {
    width: calc(100vw - 32px);
  }

  .bofu-hero h1 {
    font-size: clamp(2.05rem, 10vw, 2.8rem);
  }

  .bofu-article p,
  .bofu-article li {
    font-size: 16px;
  }

  .shortlist > li,
  .diff-pair,
  .fit-grid,
  .related,
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .fit-grid article:last-child {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .keypoints,
  .method-box,
  .cta-box {
    padding: 22px 18px;
  }

  .compare-table-wrap {
    margin-right: -16px;
  }

  .bofu-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 0 40px;
  }
}

@media (max-width: 360px) {
  .bofu-hero h1 {
    font-size: 1.85rem;
  }
}
