/* foco-ai.net/compare (12 Nov 2026): the comparison page. Only this page loads this file. */
.compare-page .page-intro h1 { white-space: normal; max-width: 900px; }
.compare-page .page-intro > p:not(.eyebrow) + p { margin-top: 14px; }
.compare-section { padding-block: 56px; }
.compare-section.compare-soft { background: var(--soft); }
.compare-section h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.compare-lead { max-width: 720px; margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

/* The short answer: three equal cards, Foco first. */
.compare-short { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.compare-short article { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.compare-short article.is-foco { border: 2px solid var(--forest); background: #f4f9e6; }
.compare-short h3 { font-size: 1.18rem; line-height: 1.3; margin-bottom: 10px; }
.compare-short p { color: var(--muted); font-size: .97rem; }

/* Side by side table; Foco's column lightly marked. */
.compare-table-wrap { margin-top: 28px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); }
.compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .93rem; line-height: 1.5; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.compare-table thead th { border-top: 0; background: var(--forest); color: var(--cream); font-size: 1rem; }
.compare-table thead th.is-foco { background: #0b3027; color: var(--lime); }
.compare-table thead th:first-child { width: 17%; }
.compare-table tbody th { font-weight: 700; color: var(--ink); background: var(--soft); }
.compare-table td { color: var(--muted); }
.compare-table td.is-foco { background: #f4f9e6; color: var(--ink); }
.compare-table strong { color: var(--forest); }
.compare-table td a { color: var(--forest); font-weight: 700; text-underline-offset: 3px; }

.compare-notes { margin-top: 26px; max-width: 900px; font-size: .93rem; color: var(--muted); }
.compare-notes > p + p, .compare-notes > ul + p { margin-top: 12px; }
.compare-notes ul { margin: 12px 0 0; padding-left: 20px; }
.compare-notes li + li { margin-top: 8px; }
.compare-notes strong { color: var(--ink); }

/* Where Foco fits best: two columns on computers, one on phones. */
.compare-fits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 44px; margin-top: 32px; }
.compare-fits article { border-top: 1px solid #ced9c8; padding-top: 18px; }
.compare-fits h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 10px; }
.compare-fits p { color: var(--muted); font-size: .97rem; }
.compare-fits sup a { color: var(--forest); text-decoration: none; font-weight: 700; }

.compare-other { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 900px; }
.compare-other li { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--muted); font-size: .97rem; }
.compare-other strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 1.05rem; }

.compare-sources { padding-block: 36px 44px; font-size: .84rem; color: var(--muted); }
.compare-sources h2 { font-size: 1.15rem; letter-spacing: 0; margin-bottom: 10px; color: var(--ink); }
.compare-sources ul { margin: 0; padding-left: 18px; }
.compare-sources li + li { margin-top: 6px; }
.compare-sources a { overflow-wrap: anywhere; }
.compare-sources .compare-publisher { margin-top: 14px; }

/* Buttons size to their words, side by side (neat layouts rule). */
.compare-page .next-button { width: auto; min-width: 196px; white-space: nowrap; }
@media (max-width: 700px) { .compare-page .next-button { width: 100%; white-space: normal; } }

/* Column heading read by screen readers only. */
.compare-page .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1000px) {
  .compare-short { grid-template-columns: 1fr; }
  .compare-table thead th:first-child { width: 20%; }
}
/* Phones and small tablets: each row becomes a card, with the product names above each answer. */
@media (max-width: 760px) {
  .compare-section { padding-block: 40px; }
  .compare-fits { grid-template-columns: 1fr; gap: 20px; }
  .compare-table-wrap { border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: auto; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare-table tr { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); }
  .compare-table tbody th { border-top: 0; padding: 12px 14px; font-size: 1rem; }
  .compare-table td { padding: 10px 14px 12px; }
  .compare-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
  .compare-table td.is-foco::before { color: var(--forest); }
}
