/* Comparison pages: shared document styles (light theme, matching /vs/ai-video-generators). */

.doc-hero { padding: 200px 0 72px; border-bottom: 1px solid var(--line); }
.doc-hero h1 { margin: 26px 0 0; font-size: clamp(48px, 4.9vw, 74px); line-height: .98; letter-spacing: -.047em; font-weight: 500; }
.doc-hero h1 .ghost { color: #9b9b96; }
.doc-standfirst { margin: 30px 0 0; max-width: 52ch; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.34; letter-spacing: -.028em; }
.doc-meta { margin-top: 34px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,0,0,.2); }
.crumbs a:hover { color: var(--ink); }

.doc-grid { display: grid; grid-template-columns: 200px 1fr; gap: 72px; align-items: start; padding: 90px 0 130px; }
.toc { position: sticky; top: 110px; border-top: 1px solid var(--line); padding-top: 16px; }
.toc h2 { margin: 0 0 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.toc a { display: block; padding: 7px 0; font-size: 13px; color: var(--muted); transition: color .25s ease; }
.toc a:hover { color: var(--ink); }

.doc-body { max-width: 74ch; min-width: 0; }
.doc-body section { scroll-margin-top: 110px; }
.doc-body section + section { margin-top: 68px; border-top: 1px solid var(--line); padding-top: 46px; }
.doc-body h2 { margin: 0 0 22px; font-size: clamp(28px, 2.9vw, 40px); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; }
.doc-body h3 { margin: 38px 0 10px; font-size: 19px; letter-spacing: -.035em; font-weight: 600; }
.doc-body p { margin: 0 0 18px; font-size: 17px; line-height: 1.6; letter-spacing: -.014em; }
.doc-body p.lead { font-size: 19px; line-height: 1.55; }
.doc-body ul, .doc-body ol { margin: 0 0 18px; padding-left: 0; list-style: none; }
.doc-body li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 16px; line-height: 1.55; }
.doc-body li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 2px; background: var(--amber); }
.doc-body a:not(.pill-button) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(217,131,36,.55); }
.doc-body a:not(.pill-button):hover { text-decoration-color: var(--ink); }

.callout { margin: 26px 0; padding: 20px 22px; border-left: 2px solid var(--amber); background: #fff; border-radius: 0 10px 10px 0; box-shadow: 0 10px 30px rgba(0,0,0,.04); }
.callout p { margin: 0; font-size: 16px; line-height: 1.55; }
.callout b { font-weight: 650; }

.cmp-wrap { margin: 26px 0 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.cmp { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { padding: 13px 15px; text-align: left; font-size: 13.5px; line-height: 1.45; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; background: #f4f4f2; }
.cmp tbody th { font-weight: 600; width: 26%; }
.cmp td.us { background: #fffaf3; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp-note { font-family: var(--mono); font-size: 10.5px; letter-spacing: .03em; line-height: 1.6; color: var(--muted); display: block; margin-bottom: 26px; }

.cost { margin: 26px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cost > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.cost .who { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cost .sum { margin: 10px 0 6px; font-size: 34px; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.cost .sum small { font-size: 14px; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.cost p { margin: 0; font-size: 14px; line-height: 1.5; color: #555; }
.cost > div.us { border-color: rgba(217,131,36,.5); background: #fffaf3; }

.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.verdict div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.verdict h3 { margin: 0 0 12px; font-size: 15px; letter-spacing: -.02em; }
.verdict ul { margin: 0; }
.verdict li { font-size: 14px; }
.verdict div:first-child li::before { background: #9b9b96; }

.sources { margin: 0; }
.sources li { font-size: 14px; word-break: break-word; }
.sources li::before { background: #c9c9c4; }

.related { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 0; }
.related a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none !important; transition: border-color .25s, transform .35s var(--ease); }
.related a:hover { border-color: #bdbdb8; transform: translateY(-2px); }
.related b { display: block; font-size: 15px; letter-spacing: -.02em; }
.related span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

.doc-cta { border-top: 1px solid var(--line); padding: 90px 0 110px; text-align: center; }
.doc-cta h2 { margin: 0 auto 14px; max-width: 20ch; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.02; letter-spacing: -.047em; font-weight: 500; }
.doc-cta p { margin: 0 auto 30px; max-width: 46ch; color: var(--muted); font-size: 16px; line-height: 1.5; }
.doc-cta .cta-row { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.doc-cta .hero-secondary { font-size: 14px; }

/* Hub */
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 72px 0 40px; }
.hub-card { display: flex; flex-direction: column; gap: 14px; min-height: 230px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: border-color .25s, transform .35s var(--ease), box-shadow .35s var(--ease); }
.hub-card:hover { border-color: #c4c4bf; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.06); }
.hub-card .kind { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.hub-card h2 { margin: 0; font-size: 30px; line-height: 1.02; letter-spacing: -.045em; font-weight: 500; }
.hub-card h2 .ghost { color: #9b9b96; }
.hub-card p { margin: 0; font-size: 15px; line-height: 1.55; color: #555; }
.hub-card .go { margin-top: auto; font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; }
.hub-card .go span { transition: transform .35s var(--ease); }
.hub-card:hover .go span { transform: translate(3px, -3px); }
.hub-map { padding: 30px 0 120px; }
.hub-map h2 { margin: 0 0 8px; font-size: clamp(30px, 3vw, 42px); letter-spacing: -.045em; font-weight: 500; line-height: 1.02; }
.hub-map > p { margin: 0 0 24px; max-width: 62ch; color: #555; font-size: 17px; line-height: 1.55; }

@media (max-width: 900px) {
  .doc-hero { padding: 150px 0 56px; }
  .doc-grid { grid-template-columns: 1fr; gap: 0; padding: 60px 0 90px; }
  .toc { display: none; }
  .verdict, .cost, .related, .hub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .doc-hero h1 { font-size: 44px; }
  .hub-card { min-height: 0; }
  /* Stack each comparison row: label, then one line per product. */
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp thead { display: none; }
  .cmp tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .cmp tr:last-child { border-bottom: 0; }
  .cmp tbody th { width: auto; padding: 0 0 8px; border: 0; font-size: 14px; }
  .cmp td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 5px 0; border: 0; font-size: 14px; }
  .cmp td::before { content: attr(data-label); padding-top: 2px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .cmp td.us { background: none; }
  .cmp td.us::before { color: var(--amber); }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
