/* Content pages (FAQ, compare, alternatives). Loads after landing.css and
   reuses its tokens; only adds the page header, prose width and the table. */

.page-hero {
  padding: 32px 0 0;
}

.page-hero h1 {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 44rem;
}

.page-hero .lede {
  margin-top: 16px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
}

@media (min-width: 900px) {
  .page-hero {
    padding: 64px 0 0;
  }
  .page-hero h1 {
    font-size: 64px;
  }
}

.page-hero + section {
  padding-top: 48px;
}

/* Closing App Store block sits close to the content it follows. */
main > section:last-child {
  padding-top: 0;
}

main > section:has(+ section:last-child) {
  padding-bottom: 48px;
}

/* Compare uses the home page's section rhythm (64px, 96px from 900px up)
   instead of the tighter 48px / 0 values the other content pages keep. */
.page-compare .page-hero + section,
.page-compare > section:last-child {
  padding-top: 64px;
}

.page-compare > section:has(+ section:last-child) {
  padding-bottom: 64px;
}

@media (min-width: 900px) {
  .page-compare .page-hero + section,
  .page-compare > section:last-child {
    padding-top: 96px;
  }
  .page-compare > section:has(+ section:last-child) {
    padding-bottom: 96px;
  }
}

/* Left-aligned prose column inside the full-width container. */
.prose > * {
  max-width: 44rem;
}

.prose h2 {
  font-size: 32px;
  margin: 48px 0 16px;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 32px 0 8px;
}

.prose p,
.prose li {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.prose p + p {
  margin-top: 16px;
}

.prose ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose li {
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}

.prose li:last-child {
  border-bottom: 1px solid var(--hairline);
}

.prose a {
  text-decoration-color: var(--amber);
}

.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--hairline);
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

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

.compare-table thead th {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--canvas);
}

.compare-table tbody th {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

/* DayStart's row carries a light wash of the accent. */
.compare-table tr.is-us {
  background: color-mix(in oklch, var(--banana) 18%, var(--card));
}

/* Dark: a warm lift instead of a yellow wash (which turns olive on brown). */
@media (prefers-color-scheme: dark) {
  .compare-table tr.is-us {
    background: var(--track);
  }
}

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

/* Phones: each app becomes a short labeled block instead of a scrolling table. */
@media (max-width: 640px) {
  .compare-wrap {
    overflow: hidden;
  }
  .compare-table {
    min-width: 0;
  }
  .compare-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
  }
  .compare-table tr {
    padding: 16px;
    border-bottom: 1px solid var(--hairline);
  }
  .compare-table tr:last-child {
    border-bottom: 0;
  }
  .compare-table th,
  .compare-table td {
    padding: 0;
    border: 0;
  }
  .compare-table tbody th {
    margin-bottom: 8px;
  }
  .compare-table td + td {
    margin-top: 8px;
  }
  .compare-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
  }
}

.compare-note {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 16px;
}

.compare-note {
  max-width: 70ch;
}

/* The Huxe disclaimer sits in prose but reads as a footnote. */
.prose .compare-note {
  color: var(--ink-2);
}
