/* Content pages: the FAQ and the comparisons. Loaded after home.css: same tokens, header and footer, one
   readable column with the tables, cards and closing calls to action those pages need. */
.page {
  max-width: calc(72ch + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(40px, 8vw, 88px) var(--gutter) clamp(72px, 10vw, 120px);
  overflow-wrap: break-word;
}
.page h1 {
  margin-top: 12px;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.02;
}
.page .lede { margin-top: 24px; font-size: clamp(19px, 2.2vw, 21px); line-height: 1.5; color: var(--muted); }

/* home.css gives every section a hero's worth of padding; here they're runs of content. */
.page section { padding: 0; margin-top: clamp(44px, 6vw, 64px); }
.page h2 {
  font-size: clamp(26px, 3.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  word-spacing: normal;
  scroll-margin-top: 84px;
}
.page h3 { margin-top: 28px; }
.page p, .page ul, .page ol { margin: 14px 0 0; color: var(--muted); }
.page section > :first-child, .page section h2 + p { margin-top: 0; }
.page p:first-child + p { margin-top: 14px; }
.page ul, .page ol { padding-left: 1.25em; }
.page li + li { margin-top: 8px; }
.page li::marker { color: var(--faint); }
.page a { text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.page a:hover { text-decoration-color: currentColor; }
.page strong { color: var(--fg); font-weight: 600; }

/* The quick-facts table at the top of each comparison. */
.page .table-wrap { margin-top: 28px; }
.page .footnote a { color: var(--faint); }

/* The price tally, borrowed from the landing page. */
.page .tally { max-width: 460px; margin-top: 28px; }

/* Two honest halves: what the other app does well, and where Yap wins. */
.page .cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin-top: 28px;
}
.page .cols > div {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.page .cols h3 { margin-top: 0; font-size: 18px; }
.page .cols p { font-size: 16px; margin-top: 10px; }
.page .cols p:first-of-type { margin-top: 14px; }
.page .them-cards h3 { color: var(--muted); }
.page .us-cards { background: var(--bg-alt); }

/* Cards on the comparisons front page. */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 24px); margin-top: 32px; }
.cards a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.cards a:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.cards h3 { margin: 0; font-size: 20px; }
.cards p { margin: 0; font-size: 15px; color: var(--muted); }
.cards .go { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; }

/* The closing call to action, and the run of further comparisons under it. */
.page .cta {
  margin-top: clamp(52px, 7vw, 80px);
  padding: clamp(36px, 5vw, 56px) clamp(20px, 4vw, 48px);
  border-radius: 28px;
  background: var(--bg-alt);
  text-align: center;
}
.page .cta h2 { max-width: 18ch; margin: 0 auto 24px; }
.page .cta .meta { margin-top: 16px; font-size: 14px; color: var(--faint); }
.more { margin-top: 32px; font-size: 15px; color: var(--muted); }
.more ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; padding: 0; list-style: none; }
.more a { text-decoration: none; color: var(--muted); }
.more a:hover, .more [aria-current="page"] { color: var(--fg); }

/* The FAQ groups its questions under small headings. */
.page .faq h2 { font-size: 20px; letter-spacing: -0.01em; margin-top: 44px; }
.page .faq h2:first-of-type { margin-top: 28px; }
.page details p a { color: var(--muted); }

footer [aria-current="page"] { color: var(--fg); }

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

/* Comparison pages (server/compare/build.py) */
.page .matrix-wrap { margin-top: clamp(32px, 5vw, 48px); }
.page .try .button { margin-top: 18px; }
.page .try .requires { margin-top: 12px; }
/* Two apps fit a phone without scrolling. */
@media (max-width: 640px) {
  .page .matrix tbody th, .page .matrix td { min-width: 0; }
  .page .matrix th, .page .matrix td { padding: 12px 10px; }
}
