/* Google Analytics comparison page (2026-10-14). Loaded after styles.css
   and home.css for the shared tokens, type, buttons, nav and footer only;
   the layout is its own. The page is read and checked, so it is set like a
   document: a quiet hero, then topics on the left with rows on the right.
   House rules as home.css: no monospace outside code, no gradients, lines
   only in real tables and data rows. */

.vs main section { padding-top: 128px; }

/* ---------- Shared bits ---------- */
.vs-h2 { font-size: var(--t-l) !important; line-height: 1.15; letter-spacing: -0.02em; }
.vs-actions { margin-top: 32px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.vs-link { color: var(--ink); font-size: var(--t-s); text-decoration: underline; text-decoration-color: var(--ink-2); text-underline-offset: 4px; transition: color 150ms var(--out), text-decoration-color 150ms var(--out); }
.vs-link:hover { color: var(--acc); text-decoration-color: var(--acc); }
.vs figcaption { margin-top: 12px; font-size: var(--t-xs); color: var(--ink-2); }
.vs figcaption a { color: var(--ink); }

/* ---------- Hero ---------- */
.vs main .vs-head {
  padding-top: 96px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center;
}
.vs-head-copy { grid-column: 1 / 7; }
.vs-head h1 { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -0.035em; }
.vs-sub { margin-top: 24px; font-size: var(--t-m); line-height: 1.45; max-width: 34ch; }
.vs-small { margin-top: 20px; font-size: var(--t-xs); color: var(--ink-2); }
.vs-fig { grid-column: 8 / 13; }

/* The same-week figure: the product's own table at true size. */
.vs-two { background: var(--s1); border-radius: 14px; padding: 22px 22px 18px; font-size: 14px; line-height: 1.4; }
.vs-two-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.vs-two-title { font-size: 15px; font-weight: 600; }
.vs-switch { display: none; position: relative; background: #0f0f11; border-radius: 8px; padding: 3px; gap: 2px; }
.js .vs-switch { display: inline-flex; }
.vs-switch button {
  position: relative; z-index: 1;
  font: inherit; font-size: 13px; color: #a1a1aa; background: transparent; border: 0;
  border-radius: 6px; padding: 6px 11px; cursor: pointer; white-space: nowrap;
  transition: color 150ms var(--out), background 150ms var(--out), transform 150ms var(--out);
}
.vs-switch button:hover { color: #f4f4f5; }
.vs-switch button:active { transform: scale(0.97); }
.vs-switch button[aria-pressed="true"] { background: #232327; color: #f4f4f5; }
/* With script, one pill slides between the two buttons instead of each
   button switching its own background. */
.vs-pill { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; background: #232327; border-radius: 6px; transition: transform 250ms var(--out), width 250ms var(--out); }
.vs-switch.has-pill button[aria-pressed="true"] { background: transparent; }
.vs-view-name { margin-top: 16px; font-size: 13px; font-weight: 600; }
.js .vs-view { display: none; }
.js .vs-view.is-on { display: block; }
/* On a switch the rows cross in 25ms apart and the total settles last. */
.motion .vs-view.is-on tbody tr { animation: vs-row 200ms var(--out) backwards; animation-delay: calc(var(--r, 0) * 25ms); }
.vs-mini tbody tr:nth-child(2) { --r: 1; }
.vs-mini tbody tr:nth-child(3) { --r: 2; }
.vs-mini tbody tr:nth-child(4) { --r: 3; }
.vs-mini tbody tr:nth-child(5) { --r: 4; }
.vs-mini tbody tr:nth-child(6) { --r: 5; }
.motion .vs-view.is-on .vs-two-foot { animation: vs-foot 250ms var(--out) 150ms backwards; }
@keyframes vs-row { from { opacity: 0; transform: translateY(4px); } }
@keyframes vs-foot { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } }
.js .vs-view-name { display: none; }
.vs-mini { width: 100%; margin-top: 14px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.vs-mini th { text-align: left; font-weight: 400; font-size: 13px; color: #a1a1aa; padding: 0 0 8px; }
.vs-mini td { padding: 10px 0; border-top: 1px solid #232327; } /* taste-skill-ignore: rows of a real data table */
.vs-mini th:not(:first-child), .vs-mini td:not(:first-child) { text-align: right; }
.vs-two-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid #2e2e34; } /* taste-skill-ignore: total line of a data table */
.vs-two-foot b { font-weight: 600; color: var(--acc); }
.vs-two-foot b.vs-none { color: #a1a1aa; }

/* ---------- The comparison document ---------- */
/* One four-column grid for the header and every topic (subgrid), so the
   two answer columns line up under their names all the way down. */
.vs-doc { --vs-grid: minmax(0, 2fr) minmax(0, 3fr) minmax(0, 3.5fr) minmax(0, 3.5fr); }
.vs-cols {
  position: sticky; top: 72px; z-index: 2; margin-top: 40px;
  display: grid; grid-template-columns: var(--vs-grid); column-gap: 24px;
  padding: 14px 0; background: var(--bg); font-size: var(--t-xs); font-weight: 600; color: var(--ink-2);
}
.vs-cols span:first-child { grid-column: 1 / 3; }
.vs-cols .vs-us { color: var(--acc); padding-left: 20px; }
.vs-topic { display: grid; grid-template-columns: var(--vs-grid); column-gap: 24px; padding: 36px 0 8px; }
.vs-topic-name { font-size: var(--t-m); font-weight: 600; letter-spacing: -0.01em; align-self: start; position: sticky; top: 128px; }
.vs-rows { grid-column: 2 / 5; display: grid; grid-template-columns: subgrid; }
/* Rows are separated by space, not rules; the DataStated answers sit on one
   continuous tinted band so the eye reads down our column. */
.vs-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.vs-row > * { padding: 16px 0; }
.vs-row dd.vs-us { background: var(--s1); padding-left: 20px; padding-right: 20px; }
.vs-row:first-child dd.vs-us { border-radius: 12px 12px 0 0; }
.vs-row:last-child dd.vs-us { border-radius: 0 0 12px 12px; }
.vs-row dt { font-weight: 600; }
.vs-row dd { color: var(--ink-2); }
.vs-row dd.vs-us { color: var(--ink); }
.vs-row dd a { color: inherit; }
.vs-shot { margin-top: 28px; grid-column: 2 / 5; }
.vs-shot img { width: 100%; height: auto; border-radius: 12px; }
.vs-chatfig { margin-top: 28px; grid-column: 2 / 4; }
.home .vs-chatfig .chat { grid-column: auto; background: var(--s1); }

/* ---------- Fair to the other side ---------- */
.vs main .vs-fair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; }
.vs-fair-copy { grid-column: 1 / 8; }
.vs-fair-copy p { margin-top: 18px; font-size: var(--t-m); line-height: 1.5; max-width: 44ch; }
.vs-pick { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.vs-pick h3 { font-size: var(--t-s); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.vs-pick p { margin-top: 10px; color: var(--ink-2); max-width: 36ch; }
.vs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); flex: none; }

/* ---------- Switching ---------- */
.vs main .vs-move { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.vs-move-copy { grid-column: 1 / 6; }
.vs-move ol { margin-top: 28px; padding-left: 1.3em; display: grid; gap: 16px; }
.vs-move li { padding-left: 6px; max-width: 40ch; color: var(--ink-2); }
.vs-move li::marker { color: var(--acc); font-weight: 600; }
.vs-move li b { color: var(--ink); font-weight: 600; }
.vs-video { grid-column: 7 / 13; }
.vs-video video { width: 100%; height: auto; display: block; border-radius: 12px; background: var(--s1); }

/* ---------- Questions ---------- */
.vs-faq-list { margin-top: 32px; max-width: 760px; }
.vs-faq-list { display: grid; gap: 8px; }
.vs-faq details { background: var(--s1); border-radius: 12px; padding: 0 24px; transition: background 150ms var(--out); }
.vs-faq details:hover { background: var(--s2); }
.vs-faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-size: var(--t-s); font-weight: 600; transition: color 150ms var(--out);
}
.vs-faq summary::-webkit-details-marker { display: none; }
.vs-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 22px; color: var(--ink-2); transition: transform 250ms var(--out); }
.vs-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.vs-faq summary:hover { color: var(--acc); }
.vs-faq details p { padding: 0 40px 22px 0; color: var(--ink-2); max-width: 60ch; }

/* ---------- Close ---------- */
.vs main .vs-end { padding-bottom: 128px; }
.vs-end p { margin-top: 14px; font-size: var(--t-m); color: var(--ink-2); }

/* ---------- Phone and tablet ---------- */
@media (max-width: 900px) {
  .vs main section { padding-top: 88px; }
  .vs main .vs-head, .vs main .vs-fair, .vs main .vs-move { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .vs-head-copy, .vs-fig, .vs-fair-copy, .vs-pick, .vs-move-copy, .vs-video { grid-column: 1; }
  .vs-pick { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .vs-cols { display: none; }
  .vs-topic { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .vs-rows, .vs-row { grid-column: 1; grid-template-columns: minmax(0, 1fr); }
  .vs-topic-name { position: static; }
  .vs-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .vs-row dd::before { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 2px; }
  .vs-row dd.vs-us::before { content: "DataStated"; color: var(--acc); }
  .vs-row dd:not(.vs-us)::before { content: "Google Analytics"; }
  .vs-shot, .vs-chatfig { grid-column: 1; }
  .vs-row dd.vs-us { border-radius: 10px !important; padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .vs-pill { transition: none; }
  .vs-switch button, .vs-faq summary::after { transition: none; }
}
