/* ==========================================================================
   Why AEO comparison pages: /aeo-vs-seo and /aeo-vs-geo (owner, Nov 22,
   2026). Built on the Home system (home.css): framed hero, two-tone
   headings, story rows, lead lists, FAQ, closing. This file only adds the
   frames these pages need. Motion: rows and items come in one by one when
   their frame enters view ([data-draw] → .is-in, library pattern 3); the
   proposals tick their items in pairs; reduced motion shows the end state.
   ========================================================================== */

/* A side-by-side table in a frame: label column, then two or more columns. */
.vs-tbl table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.vs-tbl th, .vs-tbl td { padding: 15px 18px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; line-height: 1.5; }
.vs-tbl tbody tr:last-child > * { border-bottom: 0; }
.vs-tbl thead th { padding-top: 14px; padding-bottom: 12px; color: var(--muted); font-size: .8125rem; font-weight: 500; }
.vs-tbl thead th.is-us { color: var(--signal); }
.vs-tbl tbody th { width: 26%; font-weight: 500; color: var(--ink); }
.vs-tbl td { color: var(--muted); }
.vs-tbl td.is-us { color: var(--ink); }
.vs-tbl .vs-term { display: block; font-weight: 600; color: var(--ink); }
.vs-tbl .vs-sub { display: block; margin-top: 2px; font-size: .8125rem; color: var(--muted); font-weight: 400; }
[data-draw].vs-tbl tbody tr { opacity: 0; transform: translateY(6px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-draw].vs-tbl.is-in tbody tr { opacity: 1; transform: none; }
@media (max-width: 740px) {
  .vs-tbl thead { display: none; }
  .vs-tbl tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
  .vs-tbl tbody tr:last-child { border-bottom: 0; }
  .vs-tbl th, .vs-tbl td { display: block; width: auto; padding: 4px 0; border: 0; }
  .vs-tbl tbody th { width: auto; padding-bottom: 6px; }
  .vs-tbl td[data-col]::before { content: attr(data-col); display: block; font-size: .72rem; color: var(--muted); }
  .vs-tbl td.is-us[data-col]::before { color: var(--signal); }
}

/* What carries over / what's new: two columns of items in one frame. */
.vs-ledger { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.vs-ledger > div { padding: 22px 24px 26px; }
.vs-ledger > div + div { border-left: 1px solid var(--rule); }
.vs-ledger h3 { font-size: .875rem; font-weight: 500; color: var(--muted); margin-bottom: 14px; }
.vs-ledger .is-new h3 { color: var(--signal); }
.vs-ledger ul { list-style: none; display: grid; gap: 12px; }
.vs-ledger li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .9375rem; line-height: 1.45; color: var(--ink); }
.vs-ledger li svg { margin-top: 2px; }
.vs-ledger .is-kept li { color: rgba(232, 239, 243, .78); }
.vs-ledger .is-kept svg { color: var(--muted); }
.vs-ledger .is-new svg { color: var(--signal); }
[data-draw].vs-ledger li { opacity: 0; transform: translateY(6px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-draw].vs-ledger.is-in li { opacity: 1; transform: none; }
@media (max-width: 740px) {
  .vs-ledger { grid-template-columns: minmax(0, 1fr); }
  .vs-ledger > div + div { border-left: 0; border-top: 1px solid var(--rule); }
}

/* Two proposals, the same items: each pair ticks in together. */
.vs-props { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 18px; }
.vs-prop { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-2); padding: 18px 18px 20px; }
.vs-prop-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--rule); }
.vs-prop-head b { font-size: 1rem; font-weight: 600; }
.vs-prop-head small { font-size: .75rem; color: var(--muted); }
.vs-prop ul { list-style: none; display: grid; gap: 10px; }
.vs-prop li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 9px; font-size: .875rem; line-height: 1.4; color: rgba(232, 239, 243, .85); }
.vs-prop li svg { margin-top: 2px; color: var(--signal); }
.vs-props-foot { padding: 12px 18px 16px; border-top: 1px solid var(--rule); font-size: .875rem; color: var(--muted); }
.vs-props-foot b { color: var(--ink); font-weight: 500; }
[data-draw] .vs-prop li { opacity: .18; transition: opacity 380ms var(--ease); transition-delay: calc(120ms + var(--i, 0) * 260ms); }
[data-draw] .vs-prop li svg { transform: scale(.4); opacity: 0; transition: transform 380ms var(--ease), opacity 380ms var(--ease); transition-delay: inherit; }
[data-draw].is-in .vs-prop li { opacity: 1; }
[data-draw].is-in .vs-prop li svg { transform: none; opacity: 1; }
@media (max-width: 560px) { .vs-props { grid-template-columns: minmax(0, 1fr); } }

/* Five questions to ask: numbered cards in two columns. */
.vs-ask { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 4vw, 48px); counter-reset: ask; }
.vs-ask li { counter-increment: ask; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 14px; padding: 22px 24px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); }
.vs-ask li::before { content: counter(ask); grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: .8125rem; color: var(--muted); }
.vs-ask h3 { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.35; }
.vs-ask p { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.vs-ask li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 740px) { .vs-ask { grid-template-columns: minmax(0, 1fr); } }

/* One big two-tone statement (§5a, once per page), with a quiet link. */
.vs-big { font: 500 clamp(1.75rem, 3.4vw, 2.875rem)/1.14 var(--display); letter-spacing: -.035em; max-width: 26ch; }
.vs-big span { color: var(--muted); }
.vs-big-link { display: inline-block; margin-top: 26px; color: var(--signal); text-decoration: none; font-size: var(--t-m); }
.vs-big-link:hover { color: var(--signal-hover); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  [data-draw].vs-tbl tbody tr, [data-draw].vs-ledger li, [data-draw] .vs-prop li, [data-draw] .vs-prop li svg { opacity: 1; transform: none; transition: none; }
}
