/* Subpages (comparisons, alternatives, changelog). Loaded after landing.css and
   reuses its tokens, glass material, header, buttons, FAQ, and download card. */

/* ── Page hero ──────────────────────────────────────────────────────────── */

.page-hero { position: relative; isolation: isolate; padding: 148px 24px 24px; text-align: center; }
.page-hero .hero-glow { height: 820px; }
.page-hero h1 { font-size: clamp(46px, 6.4vw, 84px); }

.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 26px; padding: 0; color: var(--faint); font-size: 13.5px; list-style: none; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }

.page-lede { max-width: 660px; margin: 26px auto 0; color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; letter-spacing: -0.01em; text-wrap: balance; }
.page-meta { margin-top: 20px; color: var(--faint); font-size: 13px; }

.vs-badge { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-bottom: 28px; }
.brand-chip { display: inline-flex; align-items: center; gap: 9px; padding: 8px 18px 8px 10px; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.brand-chip img { width: 24px; height: 24px; }
.brand-chip.theirs { padding-left: 18px; color: rgba(255, 255, 255, 0.84); font-weight: 500; }
.vs-badge .vs { color: var(--faint); font-family: var(--mono); font-size: 13px; text-transform: uppercase; }

/* ── Sections ───────────────────────────────────────────────────────────── */

.page-section { position: relative; isolation: isolate; width: min(1040px, 100% - 48px); margin: 0 auto; padding: 110px 0 0; }
.page-section > h2 { text-align: center; font-size: clamp(36px, 4.4vw, 60px); }
.page-section > .section-sub { padding: 0; }

/* Soft colour behind glass cards, so the glass has something to blur. */
.tinted::before {
  content: ""; position: absolute; top: 58%; left: 50%; z-index: -1; width: min(1000px, 96vw); height: 70%; pointer-events: none; transform: translate(-50%, -50%);
  background:
    radial-gradient(40% 55% at 26% 50%, rgba(99, 102, 241, 0.42), transparent 72%),
    radial-gradient(36% 50% at 76% 46%, rgba(6, 182, 212, 0.3), transparent 72%),
    radial-gradient(26% 36% at 52% 84%, rgba(236, 72, 153, 0.18), transparent 72%);
  filter: blur(40px);
}

/* ── Verdict cards ──────────────────────────────────────────────────────── */

.verdict { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 56px; }
.verdict-card { padding: 30px 30px 32px; border-radius: 26px; }
.verdict-card h3 { display: flex; align-items: center; gap: 12px; font-size: 21px; }
.verdict-card h3 img { width: 28px; height: 28px; }
.verdict-card.ours { box-shadow: var(--glass-shadow), 0 0 0 1px rgba(165, 180, 252, 0.28), 0 30px 80px rgba(99, 102, 241, 0.18); }

.ticks { display: grid; gap: 13px; margin: 20px 0 0; padding: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; list-style: none; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; top: 0.18em; left: 0; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(99, 102, 241, 0.24) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23c7d2fe' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ticks.neutral li::before { background-color: rgba(255, 255, 255, 0.1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23d4d4d8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ── Split (copy + product visual) ──────────────────────────────────────── */

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 6vw, 80px); }
.split-copy h2 { font-size: clamp(34px, 4vw, 54px); }
.split-copy p { margin-top: 22px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.split .panel-visual { width: 100%; }

/* ── Comparison table ───────────────────────────────────────────────────── */

.table-wrap { margin-top: 56px; overflow-x: auto; border-radius: 26px; -webkit-overflow-scrolling: touch; }
.matrix { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.matrix caption { padding: 0; }
.matrix th,
.matrix td { padding: 17px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.matrix thead th { color: var(--faint); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.matrix thead th.ours { color: var(--indigo-soft); }
.matrix tbody th { width: 28%; color: #fff; font-weight: 500; }
.matrix td { color: var(--muted); }
.matrix td.ours { background: rgba(99, 102, 241, 0.07); color: rgba(255, 255, 255, 0.92); }
.matrix tr:last-child > * { border-bottom: 0; }
.matrix.wide tbody th { width: 20%; }
.matrix.wide td { font-size: 14px; }

.mark { display: inline-grid; place-items: center; width: 20px; height: 20px; margin: 0 8px 0 0; border-radius: 50%; vertical-align: -4px; }
.mark.yes { background: rgba(34, 197, 94, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%234ade80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.mark.no { color: var(--faint); font-weight: 600; }

.table-note { margin-top: 16px; color: var(--faint); font-size: 13px; text-align: center; }

/* ── Key differences ────────────────────────────────────────────────────── */

.diffs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 56px 0 0; padding: 0; list-style: none; }
.diff { padding: 26px 26px 28px; border-radius: 24px; }
.diff .keycap { margin-bottom: 26px; }
.diff p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ── Alternatives list ──────────────────────────────────────────────────── */

.tools { display: grid; gap: 14px; margin: 56px 0 0; padding: 0; list-style: none; counter-reset: tool; }
.tool { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px 22px; padding: 30px; border-radius: 26px; counter-increment: tool; }
.tool::before { content: counter(tool, decimal-leading-zero); color: var(--indigo-soft); font-family: var(--mono); font-size: 14px; line-height: 2; }
.tool.ours { box-shadow: var(--glass-shadow), 0 0 0 1px rgba(165, 180, 252, 0.28), 0 30px 80px rgba(99, 102, 241, 0.16); }
.tool h3 { font-size: 24px; }
.tool .best { margin-top: 6px; color: rgba(255, 255, 255, 0.78); font-size: 15.5px; }
.tool .ticks { margin-top: 18px; font-size: 15px; }
.tool .caveat { margin-top: 16px; color: var(--faint); font-size: 14px; }
.tool-links { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.link-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; color: #fff; font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: border-color 0.25s, transform 0.25s var(--ease); }
.link-pill:hover { border-color: rgba(255, 255, 255, 0.32); transform: translateY(-1px); }
.link-pill.solid { border: 0; background: #fff; color: #000; font-weight: 600; box-shadow: none; }

/* ── Hub cards ──────────────────────────────────────────────────────────── */

.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 56px 0 0; padding: 0; list-style: none; }
.hub-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hub-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 28px 28px 26px; border-radius: 24px; text-decoration: none; transition: border-color 0.35s, transform 0.45s var(--ease); }
.hub-card:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.hub-card .kicker { color: var(--indigo-soft); font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.hub-card h3 { font-size: 22px; }
.hub-card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.hub-card .more { margin-top: auto; padding-top: 12px; color: #fff; font-size: 14px; font-weight: 500; }
.hub-card .more::after { content: " →"; transition: margin 0.3s var(--ease); }
.hub-card:hover .more::after { margin-left: 4px; }

/* ── Sources and legal note ─────────────────────────────────────────────── */

.sources { width: min(720px, 100% - 48px); margin: 0 auto; padding: 10px 0 0; color: var(--faint); font-size: 13.5px; text-align: center; }
.sources h2 { margin-bottom: 12px; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.sources ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.sources a { color: var(--muted); }
.sources p { margin-top: 18px; line-height: 1.6; }

/* ── Changelog ──────────────────────────────────────────────────────────── */

.timeline { width: min(860px, 100% - 48px); margin: 64px auto 0; }
.month { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 32px; padding: 44px 0; border-top: 1px solid var(--line); }
.month h2 { position: sticky; top: 100px; align-self: start; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.month h2 small { display: block; margin-top: 4px; color: var(--faint); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.entries { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.entry { padding: 22px 24px 24px; border-radius: 20px; }
.entry-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.entry time { color: var(--faint); font-family: var(--mono); font-size: 12.5px; }
.tag { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.tag-new { background: rgba(34, 197, 94, 0.16); color: #4ade80; }
.tag-improved { background: rgba(99, 102, 241, 0.22); color: var(--indigo-soft); }
.tag-version { background: #fff; color: #000; }
.entry h3 { font-size: 18px; }
.entry p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ── One task, both ways ─────────────────────────────────────────────────── */

.walk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 56px; }
.walk-col { display: flex; flex-direction: column; padding: 30px 30px 26px; border-radius: 26px; }
.walk-col.ours { box-shadow: var(--glass-shadow), 0 0 0 1px rgba(165, 180, 252, 0.28), 0 30px 80px rgba(99, 102, 241, 0.18); }
.walk-col h3 { display: flex; align-items: center; gap: 12px; font-size: 21px; }
.walk-col h3 img { width: 28px; height: 28px; }
.walk-steps { display: grid; gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: walk; }
.walk-steps li { position: relative; padding-left: 42px; color: var(--muted); font-size: 15px; line-height: 1.55; counter-increment: walk; }
.walk-steps li::before { content: counter(walk); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: rgba(255, 255, 255, 0.09); color: #fff; font-family: var(--mono); font-size: 12.5px; }
.walk-col.ours .walk-steps li::before { background: #fff; color: #000; font-weight: 700; }
.walk-steps strong { display: block; margin-bottom: 2px; color: #fff; font-weight: 600; }
.walk-result { margin-top: auto; padding-top: 22px; color: rgba(255, 255, 255, 0.8); font-size: 14.5px; line-height: 1.5; }
.walk-result::before { content: ""; display: block; margin-bottom: 18px; border-top: 1px solid var(--line); }
.walk-result b { margin-right: 8px; color: var(--indigo-soft); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

/* ── Use cases and switching ────────────────────────────────────────────── */

.usecases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 56px 0 0; padding: 0; list-style: none; }
.usecase { padding: 26px 26px 28px; border-radius: 24px; }
.usecase .fit { display: inline-flex; margin-bottom: 20px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
.usecase .fit.ours { background: rgba(99, 102, 241, 0.22); color: var(--indigo-soft); }
.usecase h3 { font-size: 19px; }
.usecase p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.switch-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 56px 0 0; padding: 0; list-style: none; counter-reset: sw; }
.switch-steps li { padding: 26px 24px 28px; border-radius: 24px; counter-increment: sw; }
.switch-steps li::before { content: counter(sw, decimal-leading-zero); display: block; margin-bottom: 24px; color: var(--indigo-soft); font-family: var(--mono); font-size: 13px; }
.switch-steps h3 { font-size: 18px; }
.switch-steps p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.section-link { margin-top: 28px; text-align: center; font-size: 15px; }
.section-link a { color: #fff; font-weight: 500; text-underline-offset: 4px; }
.section-link a::after { content: " →"; }
.hub-group { margin: 56px 0 -34px; color: var(--muted); font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-align: center; text-transform: uppercase; }
.hub-group + .hub-grid { margin-top: 56px; }

/* ── Guides ─────────────────────────────────────────────────────────────── */

.page-hero .eyebrow-pill .keycap { width: 22px; height: 22px; margin: 0; border-radius: 7px; }
.page-hero .eyebrow-pill .keycap svg { width: 13px; height: 13px; }
.guide-visual { width: min(820px, 100% - 48px); margin: 64px auto 0; }
.guide-visual .panel-visual { width: 100%; }
.guide-body { width: min(760px, 100% - 48px); margin: 72px auto 0; }
.guide-section + .guide-section { margin-top: 60px; }
.guide-section h2 { font-size: clamp(26px, 3vw, 34px); }
.guide-section > p { margin-top: 14px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.guide-section .ticks { margin-top: 20px; font-size: 16px; }
.guide-steps { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: gs; }
.guide-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 16px; padding: 20px 22px; border-radius: 20px; counter-increment: gs; }
.guide-steps li::before { content: counter(gs); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #000; font-size: 13px; font-weight: 700; }
.guide-steps h3 { font-size: 17px; line-height: 1.3; }
.guide-steps p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.guide-body .section-link { text-align: left; }
.sources p a { color: #fff; }

/* ── Spacing for shared landing blocks ──────────────────────────────────── */

.page-faq { padding-top: 110px; }
.page-cta { padding-top: 110px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .verdict,
  .split,
  .hub-grid,
  .hub-grid.three { grid-template-columns: 1fr; }
  .diffs { grid-template-columns: 1fr; }
  .walk,
  .usecases { grid-template-columns: 1fr; }
  .switch-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-copy { text-align: center; }
  .tool { grid-template-columns: 1fr; padding: 26px 24px; }
  .tool::before { line-height: 1; }
  .tool-links { flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: 12px; }
}

@media (max-width: 720px) {
  .page-hero { padding-top: 120px; }
  .page-section { padding-top: 80px; }
  .verdict-card { padding: 24px 22px 26px; border-radius: 22px; }
  .matrix th,
  .matrix td { padding: 13px 14px; }
  .matrix:not(.wide) { min-width: 0; font-size: 13.5px; }
  .matrix:not(.wide) thead th { font-size: 11px; }
  .matrix:not(.wide) tbody th { width: 30%; }
  /* Tables that scroll sideways keep the feature names in view. */
  .matrix tbody th,
  .matrix thead th:first-child { position: sticky; left: 0; z-index: 1; background: rgba(14, 14, 20, 0.94); }
  .month { grid-template-columns: 1fr; gap: 18px; padding: 34px 0; }
  .month h2 { position: static; }
  .entry { padding: 20px; }
  .walk-col { padding: 24px 22px 22px; }
  .switch-steps { grid-template-columns: 1fr; }
  .guide-steps li { padding: 18px; }
}
