/* relaysos.com topic pages (pricing, features, comparisons): the home page's
   look and motion (home.css + home.js), plus the few parts home does not have.
   Loaded after home.css. Built by scripts/build-pages.mjs. */

.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); display: flex; gap: 8px; justify-content: center; margin-bottom: 22px; }
.crumbs a:hover { color: var(--ink); }
.hero.slim h1 { font-size: clamp(40px, 6vw, 82px); max-width: 13em; }

/* prose sections: a heading on the left, plain text on the right */
.prose { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); align-items: start; }
@media (max-width: 860px) { .prose { grid-template-columns: 1fr; } }
.prose h2 { font-size: clamp(30px, 4vw, 52px); }
.prose .txt { display: flex; flex-direction: column; gap: 16px; color: var(--ink-2); font-size: 17px; }
.prose .txt ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose .txt li { display: flex; gap: 12px; }
.prose .txt li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--p); margin-top: .6em; flex: none; }

/* steps: numbered cards */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border-radius: 22px; padding: 24px; box-shadow: 0 0 0 1px rgba(22,18,31,.06); display: flex; flex-direction: column; gap: 10px; counter-increment: st; }
.step::before { content: counter(st, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--p2); letter-spacing: .1em; }
.step p { color: var(--mut); font-size: 15px; }

/* comparison table */
.vs { background: #fff; border-radius: 24px; box-shadow: 0 0 0 1px rgba(22,18,31,.07), 0 30px 80px rgba(60,30,130,.1); overflow: hidden; }
.vs-scroll { overflow-x: auto; }
.vs table { width: 100%; min-width: 640px; border-collapse: collapse; }
.vs th, .vs td { text-align: left; padding: 15px 22px; border-top: 1px solid var(--line); vertical-align: top; font-size: 15px; line-height: 1.45; }
.vs thead th { border-top: 0; background: var(--bg-2); font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); font-weight: 500; }
.vs thead th.us { color: var(--p2); }
.vs tbody th { font-weight: 600; width: 30%; }
.vs td.us { background: rgba(166,120,240,.06); }
.vs .y, .vs .n, .vs .p { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 100px; margin-right: 8px; white-space: nowrap; }
.vs .y { background: var(--good-soft); color: var(--good); }
.vs .n { background: #f3f1f6; color: var(--mut); }
.vs .p { background: var(--warn-soft); color: var(--warn); }
.js .vs tbody tr { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--r, 0) * 60ms); }
.js .vs.in tbody tr { opacity: 1; transform: none; }
.sources { margin-top: 14px; font-size: 13px; color: var(--mut); }
.sources a { text-decoration: underline; text-underline-offset: 2px; }

/* where the other tool is the better pick */
.fair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .fair { grid-template-columns: 1fr; } }
.fair > div { border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.fair .them { background: #fff; box-shadow: 0 0 0 1px rgba(22,18,31,.07); }
.fair .us { background: #120d1f; color: var(--dark-ink); background-image: radial-gradient(600px 300px at 100% 0%, rgba(124,77,219,.45), transparent 70%); }
.fair h3 { font-size: 22px; }
.fair ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.fair li { display: flex; gap: 12px; font-size: 15px; line-height: 1.45; }
.fair li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--p); margin-top: .55em; flex: none; }
.fair .them li { color: var(--ink-2); }
.fair .us li { color: rgba(245,240,235,.8); }

/* example credit math on the pricing page */
.sums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .sums { grid-template-columns: 1fr; } }
.sum { background: #fff; border-radius: 22px; padding: 24px; box-shadow: 0 0 0 1px rgba(22,18,31,.07); display: flex; flex-direction: column; gap: 8px; }
.sum .n { font-size: clamp(34px, 4vw, 46px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.sum .n small { display: block; margin-top: 8px; font-size: .36em; line-height: 1.3; color: var(--mut); font-weight: 600; letter-spacing: 0; }
.sum p { color: var(--mut); font-size: 14.5px; }

/* links to the other topic pages */
.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .more { grid-template-columns: 1fr; } }
.more a { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 0 0 1px rgba(22,18,31,.07); display: flex; flex-direction: column; gap: 4px; transition: box-shadow .3s, transform .3s; }
.more a:hover { box-shadow: 0 20px 50px rgba(40,20,90,.12), 0 0 0 1px rgba(166,120,240,.35); transform: translateY(-2px); }
.more b { font-size: 16px; }
.more span { color: var(--mut); font-size: 14px; }

/* phones: each row stacks, so both answers are readable without scrolling */
@media (max-width: 640px) {
  .vs table { min-width: 0; }
  .vs thead { display: none; }
  .vs tbody tr { display: block; padding: 16px 18px; border-top: 1px solid var(--line); }
  .vs tbody tr:first-child { border-top: 0; }
  .vs tbody th, .vs tbody td { display: block; width: auto; border: 0; padding: 0; }
  .vs tbody th { margin-bottom: 8px; }
  .vs tbody td { padding: 8px 10px; border-radius: 10px; }
  .vs tbody td + td { margin-top: 6px; }
  .vs tbody td::before { content: attr(data-l); display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); margin-bottom: 4px; }
  .vs tbody td.us::before { color: var(--p2); }
}

@media (prefers-reduced-motion: reduce) { .js .vs tbody tr { opacity: 1; transform: none; transition: none; } }
