/* Waymorphic Map - the comparisons pages (/comparisons and /comparisons/<name>).
   The same tokens, nav and footer as the examples page; written once here
   because scripts/build-comparisons.js generates nine pages from one list. */
:root {
  --bg: #07090d; --bg-2: #0c1016;
  --surface: rgba(255, 255, 255, .035); --surface-2: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .09); --border-2: rgba(255, 255, 255, .16);
  --fg: #f3f5f8; --muted: #8f9aab; --dim: #5f6b7c;
  --accent: #3b82f6; --grad: linear-gradient(100deg, #7dd3fc 0%, #60a5fa 45%, #a78bfa 100%);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1160px; color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.1; }
h1 { font-size: clamp(32px, 4.8vw, 56px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }
code, pre { font-family: var(--mono); }
p code, li code, td code { color: #d9e2ee; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: .88em; overflow-wrap: anywhere; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #93c5fd; margin-bottom: 18px; text-decoration: none; }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }

/* nav */
#nav {
  position: fixed; z-index: 20; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(var(--max), calc(100% - 24px)); height: 58px; padding: 0 8px 0 18px;
  display: flex; align-items: center; gap: 12px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(12, 16, 22, .7); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -.02em; white-space: nowrap; }
.logo svg { width: 28px; height: 28px; border-radius: 8px; }
.crumb { color: var(--dim); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--fg); }
.crumb b { color: var(--muted); font-weight: 500; }
#nav .links { display: flex; gap: 4px; margin-left: auto; }
#nav .links a { display: block; padding: 7px 13px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
#nav .links a:hover { color: var(--fg); background: var(--surface-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; border: 1px solid transparent; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn.white { background: #fff; color: #0b0f14; }
.btn.white:hover { background: #e8eef7; }
.btn.ghost { border-color: var(--border-2); color: var(--fg); background: var(--surface); }
.btn.ghost:hover { background: var(--surface-2); }

/* header */
header { position: relative; overflow: hidden; padding: 140px 0 40px; }
header::after { content: ""; position: absolute; pointer-events: none; z-index: -1; width: 900px; height: 900px; left: -300px; top: -300px; background: radial-gradient(closest-side, rgba(59,130,246,.18), rgba(59,130,246,0)); filter: blur(20px); }
header h1 .vs { color: var(--dim); font-weight: 500; font-size: .55em; margin: 0 .15em; vertical-align: .15em; }
header .lead { color: var(--muted); font-size: 18px; max-width: 760px; margin-top: 20px; line-height: 1.6; }
header .lead b { color: var(--fg); font-weight: 500; }
header .checked { margin-top: 22px; font-size: 13.5px; color: var(--dim); max-width: 760px; }
header .checked a { color: var(--muted); }

/* sections */
main { padding-bottom: 40px; }
main > section { padding: 40px 0; border-top: 1px solid var(--border); }
main > section:first-child { border-top: 0; padding-top: 16px; }
.sec-head { margin-bottom: 22px; }
.sec-head p { color: var(--muted); margin-top: 8px; max-width: 720px; }

/* the at-a-glance table */
.tablewrap { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow-x: auto; }
.glance { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.glance th, .glance td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.glance thead th { color: var(--dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.glance tbody th { color: var(--fg); font-weight: 600; width: 16%; white-space: nowrap; }
.glance td { color: var(--muted); width: 42%; }
.glance td.wm { color: #d9e2ee; }
.glance tr:last-child td, .glance tr:last-child th { border-bottom: 0; }
.glance .who { display: none; }

/* the summary table on the hub: the service name as narrow as it can be, the four answers sharing the rest */
.summary tbody th, .summary td { width: auto; }
.summary th:first-child, .summary td:first-child { white-space: nowrap; width: 190px; }
.summary td a { text-decoration: none; color: var(--fg); font-weight: 600; }
.summary td a:hover { text-decoration: underline; text-decoration-color: var(--dim); }

/* two columns of points */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.col { border: 1px solid var(--border); border-radius: 20px; background: var(--surface); padding: 26px; }
.col h2 { font-size: 21px; margin-bottom: 6px; }
.col > p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.col li b { display: block; color: var(--fg); margin-bottom: 3px; }
.col li p { color: var(--muted); font-size: 14.5px; }
.col.wm { border-color: rgba(59,130,246,.35); background: rgba(59,130,246,.06); }
.tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(250,204,21,.45); background: rgba(250,204,21,.1); color: #fde68a; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* the switch */
.swap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.box { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border-2); border-radius: 14px; background: #070a0f; overflow: hidden; }
.bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); flex: none; }
.bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3441; }
.bar i:nth-child(1) { background: #ff5f57; } .bar i:nth-child(2) { background: #febc2e; } .bar i:nth-child(3) { background: #28c840; }
.bar .file { margin-left: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.bar .tag { margin-left: auto; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.box.after .bar .tag { color: #7ee8b0; }
.box pre { margin: 0; padding: 16px 18px 20px; overflow: auto; font-size: 13px; line-height: 1.6; color: #d7e1ee; flex: 1; tab-size: 2; }
.notes { margin: 22px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }
.notes li::marker { color: var(--dim); }

/* faq */
.faq { display: grid; gap: 22px; max-width: 800px; }
.faq h3 { margin-bottom: 6px; }
.faq p { color: var(--muted); }

/* cards: the hub list, and "more comparisons" */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { display: block; border: 1px solid var(--border); border-radius: 18px; padding: 22px; background: var(--surface); text-decoration: none; transition: border-color .2s, background .2s; }
.card:hover { border-color: var(--border-2); background: var(--surface-2); }
.card small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #93c5fd; margin-bottom: 10px; }
.card b { display: block; font-size: 17px; letter-spacing: -.02em; margin-bottom: 6px; }
.card span { display: block; color: var(--muted); font-size: 14px; }
.card .arrow { display: inline; color: var(--dim); margin-left: 4px; }

/* how these pages are written */
.note { border: 1px dashed var(--border-2); border-radius: 16px; padding: 20px 22px; color: var(--muted); font-size: 14.5px; max-width: 800px; }
.note b { color: var(--fg); font-weight: 600; }

/* closing */
#cta { padding: 60px 0 100px; text-align: center; border-top: 1px solid var(--border); }
#cta h2 { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.04em; }
#cta p { color: var(--muted); font-size: 17px; margin: 14px auto 0; max-width: 640px; }
#cta .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
#cta .btn { padding: 12px 22px; font-size: 15px; }

footer { border-top: 1px solid var(--border); padding: 32px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer a { text-decoration: none; color: var(--muted); }
footer a:hover { color: var(--fg); }
footer .logo { color: var(--fg); font-size: 15px; }
footer .credits { margin-left: auto; color: var(--dim); }
footer .credits a { color: var(--muted); }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two, .swap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  #nav { height: 54px; padding: 0 6px 0 14px; }
  .crumb, #nav .links { display: none; }
  header { padding: 110px 0 32px; }
  main > section { padding: 32px 0; }
  .cards { grid-template-columns: 1fr; }
  .col { padding: 20px; border-radius: 16px; }
  .box pre { font-size: 12.5px; }
  /* The tables: one block per row, the row's name above the two answers, each labelled. */
  .glance thead { display: none; }
  .glance tr, .glance th, .glance td { display: block; width: auto; white-space: normal; }
  .glance tbody th { padding: 14px 16px 4px; border-bottom: 0; }
  .glance td { padding: 4px 16px 6px; border-bottom: 0; }
  .glance tr td:last-child { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
  .glance tr:last-child td:last-child { border-bottom: 0; }
  .glance .who { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px; }
  .glance td.wm .who { color: #93c5fd; }
  .summary th:first-child, .summary td:first-child { white-space: normal; }
}
