/* /compare/: voice bug reporting tools side by side, made to be scanned, not read (design/pages-canvas, compare C).
   The page starts from the visitor's wish: three big buttons, each opening its answer. Then the score proves it:
   Callout against each kind of tool, one dot per row, Callout's column lit, the price under it. The full table of
   14 tools waits folded shut until asked for. */

/* Shorter gaps than the home page: this page is one comparison, not chapters of a story. */
.compare { --sp-section: clamp(80px, 10vw, 150px); }
.compare .cmp-details { padding-bottom: clamp(24px, 4vw, 48px); }

/* ---------- The top: the wish, and its answer ---------- */
.cmp-hero h1 { max-width: 13em; }
.wishes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(30px, 4vw, 48px); }
.wish { position: relative; padding: 22px 22px 20px; border: 0; border-radius: 18px; text-align: left; cursor: pointer; font: inherit; color: var(--text-1); background: var(--panel); box-shadow: var(--panel-edge); transition: transform var(--d-4) var(--ease-out), box-shadow var(--d-3) var(--ease-standard), background var(--d-3) var(--ease-standard); }
.wish:hover { transform: translateY(-3px); }
.wish:active { transform: scale(0.985); }
.wish:focus-visible { outline: 2px solid rgba(207, 238, 255, 0.8); outline-offset: 3px; }
.wish q { display: block; font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem); font-weight: 640; font-stretch: 108%; letter-spacing: -0.026em; line-height: 1.15; quotes: "“" "”"; text-wrap: balance; }
.wish > span { display: block; margin-top: 10px; font-size: 14px; font-weight: 540; color: var(--text-2); transition: color var(--d-3) var(--ease-standard); }
.wish[aria-selected="true"] { background: linear-gradient(180deg, rgba(74, 168, 255, 0.16), rgba(74, 168, 255, 0.06)); box-shadow: inset 0 0 0 1px rgba(142, 201, 255, 0.45), 0 30px 70px -30px rgba(23, 71, 255, 0.6); }
.wish[aria-selected="true"] > span { color: var(--atmo-edge); }
/* The tail that points from the lit wish down to its answer. */
.wish::after { content: ""; position: absolute; left: 50%; bottom: -13px; width: 18px; height: 18px; margin-left: -9px; transform: rotate(45deg) scale(0); background: #0d1626; box-shadow: 1px 1px 0 rgba(142, 201, 255, 0.45); transition: transform 320ms var(--spring-bouncy); }
.wish[aria-selected="true"]::after { transform: rotate(45deg) scale(1); }

/* The answer. Its box grows or shrinks to the new answer (cmp.js: 420 ms, ease-out) while the old words fade out
   (160 ms) and the new ones rise in (420 ms). The two short answers are one band: the words on the left, the six
   steps in two columns on the right. Callout's has its steps beside the trailer's footage. */
.answers { margin-top: 26px; }
.answer { display: grid; gap: clamp(22px, 4vw, 56px); padding: clamp(22px, 3vw, 36px); border-radius: 22px; background: linear-gradient(180deg, rgba(23, 34, 56, 0.6), rgba(10, 12, 18, 0.6)); box-shadow: inset 0 0 0 1px rgba(142, 201, 255, 0.18); }
.answer + .answer { margin-top: 14px; } /* without scripts, all three show */
.js .answer + .answer { margin-top: 0; }
.js .answer[hidden] { display: none; }
.answer.short { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.answer.lit { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; }
.answers.swap .answer:not([hidden]) > * { opacity: 0; transform: translateY(10px); transition: opacity 160ms var(--ease-in), transform 160ms var(--ease-in); }
.answer > * { transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out); }
.answer .who { font-size: 15px; font-weight: 600; color: var(--atmo-edge); }
.answer .who code { color: inherit; }
.answer .h2 { margin-top: 10px; font-size: clamp(1.9rem, 1rem + 2.4vw, 3.1rem); }
.ans-what { margin-top: 14px; font-size: 16px; line-height: 1.5; color: var(--body); max-width: 30em; }
.ans-what b { color: var(--text-1); font-weight: 600; }
.hand { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.answer.short .hand { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.answer.short .hand li { align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line-1); }
.answer.lit .hand { margin-top: 22px; }
.hand li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; line-height: 1.4; color: var(--body); }
.hand li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; transform: translateY(-1px); background: var(--sev-major); box-shadow: 0 0 10px rgba(255, 159, 10, 0.5); }
.hand li.done { color: var(--text-1); }
.hand li.done::before { background: var(--ok); box-shadow: 0 0 10px rgba(48, 209, 88, 0.6); }
.hand li.part::before { background: linear-gradient(90deg, var(--ok) 50%, var(--sev-major) 50%); box-shadow: none; }
.answer.short .hand-note { display: none; } /* the dot says it; the key under the answers names the colours */
.hand-k { margin-top: 18px; font-size: 14px; color: var(--text-1); }
.ans-clip .clip video { aspect-ratio: 1440 / 585; }
.hand-key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 14px; font-weight: 540; color: var(--text-2); }
.hand-key span { display: inline-flex; align-items: center; gap: 8px; }
.hand-key i { width: 9px; height: 9px; border-radius: 50%; }
.k-done { background: var(--ok); } .k-you { background: var(--sev-major); } .k-part { background: linear-gradient(90deg, var(--ok) 50%, var(--sev-major) 50%); }

.cmp-proof { padding-top: clamp(56px, 8vw, 110px); }

/* The score: one dot per tool and row. Callout's column is the same lit band as the table's; its dots are green and
   pop in row after row (520 ms, the bouncy spring, 45 ms apart) once the board is on screen, and the scores under each
   column count up after them. */
.sb { margin-top: clamp(28px, 4vw, 48px); padding: clamp(10px, 1.6vw, 18px); }
.sb-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.sb-table th, .sb-table td { padding: 13px 16px; text-align: left; vertical-align: middle; }
.sb-table thead th { padding-top: 22px; padding-bottom: 16px; vertical-align: bottom; font-size: 15px; font-weight: 640; font-stretch: 106%; letter-spacing: -0.012em; color: var(--text-1); }
.sb-table thead .sb-corner { width: 34%; }
.sb-table tbody th { font-size: 15.5px; font-weight: 580; line-height: 1.3; letter-spacing: -0.01em; color: var(--text-1); }
.sb-table tbody tr > * { border-top: 1px solid var(--line-1); }
.sb-table .me { background: linear-gradient(180deg, rgba(74, 168, 255, 0.11), rgba(74, 168, 255, 0.07)); box-shadow: inset 1px 0 0 rgba(142, 201, 255, 0.28), inset -1px 0 0 rgba(142, 201, 255, 0.28); }
.sb-table thead .me { border-radius: 16px 16px 0 0; box-shadow: inset 1px 0 0 rgba(142, 201, 255, 0.28), inset -1px 0 0 rgba(142, 201, 255, 0.28), inset 0 1px 0 rgba(142, 201, 255, 0.4); background: linear-gradient(180deg, rgba(23, 71, 255, 0.3), rgba(74, 168, 255, 0.11)); }
.sb-table tbody tr:last-child .me { border-radius: 0 0 16px 16px; box-shadow: inset 1px 0 0 rgba(142, 201, 255, 0.28), inset -1px 0 0 rgba(142, 201, 255, 0.28), inset 0 -1px 0 rgba(142, 201, 255, 0.28), 0 30px 60px -30px rgba(23, 71, 255, 0.6); }
.dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: middle; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28); }
.dot.partly { background: linear-gradient(90deg, #8c93a3 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px #8c93a3; }
.dot.yes { background: #b9c0cc; box-shadow: none; }
.sb-table .me .dot.yes { background: var(--ok); box-shadow: 0 0 12px rgba(48, 209, 88, 0.7); }
.js .sb-table tbody .dot { transform: scale(0.4); opacity: 0; transition: transform 520ms var(--spring-bouncy), opacity 300ms var(--ease-out); transition-delay: calc(var(--d, 0) * 45ms + 250ms); }
.js .sb.in .sb-table tbody .dot { transform: none; opacity: 1; }
.sb-score th, .sb-score td { padding-top: 16px; padding-bottom: 18px; }
.sb-score td { font-size: 13.5px; font-weight: 540; color: var(--text-2); }
.sb-score b { display: block; font-family: var(--font-ui); font-size: 26px; font-weight: 660; font-stretch: 110%; letter-spacing: -0.02em; color: var(--text-1); }
.sb-score .me b { color: var(--ok); }
.sb-price th, .sb-price td { padding-top: 16px; padding-bottom: 20px; }
.sb-price td { font-size: 13.5px; font-weight: 540; line-height: 1.35; color: var(--body); }
.sb-short { display: none; }
.sb-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 16px 6px; font-size: 14px; font-weight: 540; color: var(--text-2); }
.sb-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sb-legend .dot { width: 12px; height: 12px; }
.sb-legend .sb-how { display: block; } /* one line of words with its link, not a row of pieces */
@media (max-width: 759px) {
  .sb { padding: 4px; }
  .sb-table th, .sb-table td { padding: 11px 6px; }
  .sb-table thead th { font-size: 11.5px; line-height: 1.15; }
  .sb-table thead .me .vs-me { font-size: 12.5px; gap: 0; }
  .sb-table thead .me .speck { display: none; }
  .sb-table thead th { padding-left: 4px; padding-right: 4px; text-align: center; }
  .sb-table thead .me { width: 17%; }
  .sb-table thead .vs-sub { display: none; }
  .sb-table thead .sb-corner { width: 37%; }
  .sb-table tbody th { font-size: 13px; line-height: 1.25; padding-left: 10px; }
  .sb-table td { text-align: center; }
  .dot { width: 13px; height: 13px; }
  .sb-score b { font-size: 18px; }
  .sb-score td { text-align: center; }
  .sb-score td { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) { .js .sb-table tbody .dot { transform: none; opacity: 1; transition: none; } }

/* The names in the score's head, and the price in Callout's column. */
.vs-sub { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--text-2); }
.vs-me { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 680; font-stretch: var(--wide); letter-spacing: -0.01em; }
.vs-once { display: inline-block; padding: 6px 13px; border-radius: 99px; font-size: 15px; font-weight: 680; color: #fff; white-space: nowrap; background: rgba(74, 168, 255, 0.22); box-shadow: inset 0 0 0 1px rgba(142, 201, 255, 0.5), 0 0 26px -4px rgba(74, 168, 255, 0.6); }
/* The price pops in after the last count (32 dots at 45 ms, then the counts). */
.vs-once.fx-wrap { padding: 5px 7px; font-size: 12px; line-height: 1.3; white-space: normal; text-wrap: balance; text-align: center; border-radius: 14px; } /* a long local price in a narrow column (js/money.js) */
.js .sb .vs-once { opacity: 0; transform: translateY(6px) scale(0.94); }
.js .sb.in .vs-once { opacity: 1; transform: none; transition: opacity 400ms var(--ease-out) 1900ms, transform var(--spring-bouncy-ms) var(--spring-bouncy) 1900ms; }

.cmp-fair { margin-top: 18px; font-size: 14px; line-height: 1.55; color: var(--body); max-width: 46em; }
.cmp-fair .link { margin-left: 4px; }

/* ---------- Every detail: shut until asked for ---------- */
.details-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.details-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--d-4) var(--ease-out); }
.details-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.details-toggle .dt-close, .details-toggle[aria-expanded="true"] .dt-open { display: none; }
.details-toggle[aria-expanded="true"] .dt-close { display: inline; }
html:not(.js) .details-toggle { display: none; }
/* It opens down in 560 ms ease-out and closes back up in 300 ms ease-in; the table fades with it. */
.fold { display: grid; grid-template-rows: 1fr; }
.fold-in { min-height: 0; overflow: hidden; }
.js .fold { grid-template-rows: 0fr; transition: grid-template-rows 300ms var(--ease-in); }
.js .fold .fold-in { opacity: 0; transform: translateY(-8px); transition: opacity 200ms var(--ease-in), transform 300ms var(--ease-in); }
.js .fold.open { grid-template-rows: 1fr; transition: grid-template-rows 560ms var(--ease-out); }
.js .fold.open .fold-in { opacity: 1; transform: none; transition: opacity 420ms var(--ease-out) 80ms, transform 560ms var(--ease-out); }

.facts-table { margin-top: 32px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.facts-table table { width: 100%; min-width: 1040px; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.45; }
.facts-table th, .facts-table td { padding: 14px 16px; text-align: left; vertical-align: top; color: var(--body); }
.facts-table thead th { font-size: 12.5px; font-weight: 600; color: var(--text-1); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.facts-table tbody tr + tr > * { border-top: 1px solid var(--line-1); }
.facts-table tbody th { font-weight: 600; color: var(--text-1); white-space: nowrap; }
/* Where the table scrolls sideways (a tablet), each row's name stays put on the left. */
@media (min-width: 760px) and (max-width: 1199px) {
  .facts-table tbody th { position: sticky; left: 0; z-index: 1; transition: background var(--d-3) var(--ease-standard), box-shadow var(--d-3) var(--ease-standard); }
  /* Only once the table has moved sideways does the name get a backing, so the columns never show a seam at rest. */
  .facts-table thead th:first-child { position: sticky; left: 0; z-index: 2; transition: background var(--d-3) var(--ease-standard), box-shadow var(--d-3) var(--ease-standard); }
  .facts-table.slid tbody th, .facts-table.slid thead th:first-child { background: #0a0a0d; box-shadow: 1px 0 0 var(--line-2); }
  .facts-table.slid thead th:first-child { box-shadow: 1px 0 0 var(--line-2), inset 0 -1px 0 var(--line-2); }
  .facts-table.slid .t-callout th { background: #0b1220; }
}
.facts-table tbody th a { background: linear-gradient(var(--line-4), var(--line-4)) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background var(--d-2) var(--ease-standard); }
.facts-table tbody th a:hover { background-image: linear-gradient(var(--text-1), var(--text-1)); }
.facts-table .t-callout > * { background: rgba(74, 168, 255, 0.08); color: var(--text-1); }
.facts-table .yes { color: var(--ok); font-weight: 600; }
.facts-table td.nil { color: var(--text-3); }

/* ---------- Phones ---------- */
@media (max-width: 759px) {
  .sb-price td { font-size: 11px; line-height: 1.3; text-align: center; }
  .sb-long { display: none; }
  .sb-short { display: inline; }
  .vs-once { padding: 4px 7px; font-size: 12px; white-space: normal; }

  .wishes { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wish { padding: 16px 18px; }
  .wish q { font-size: 1.2rem; }
  .wish > span { margin-top: 6px; }
  .wish::after { display: none; }
  .answer.short, .answer.lit { grid-template-columns: minmax(0, 1fr); }
  .answer.short .hand { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .answer.short .hand li { padding: 10px 11px; font-size: 14px; gap: 9px; }

  .details-toggle { width: 100%; }
  .facts-table { overflow: visible; background: none; box-shadow: none; }
  .facts-table table { min-width: 0; }
  .facts-table thead { display: none; }
  .facts-table table, .facts-table tbody, .facts-table tr, .facts-table tbody th, .facts-table td { display: block; }
  .facts-table tbody tr { padding: 16px 18px; border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--panel-edge); }
  .facts-table tbody tr + tr { margin-top: 10px; }
  .facts-table tbody tr + tr > * { border-top: 0; }
  .facts-table tbody th { position: static; padding: 0 0 8px; font-size: 17px; background: none; }
  .facts-table .t-callout { box-shadow: inset 0 0 0 1px rgba(142, 201, 255, 0.3); }
  .facts-table .t-callout > *, .facts-table .t-callout th { background: none; }
  .facts-table td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 5px 0; font-size: 14px; }
  .facts-table td::before { content: attr(data-l); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
}

@media (prefers-reduced-motion: reduce) {
  .js .sb .vs-once { opacity: 1; transform: none; transition: none; }
  .wish, .wish:hover, .wish:active { transform: none; }
  .js .fold, .js .fold.open, .js .fold .fold-in, .js .fold.open .fold-in { transform: none; transition-duration: 1ms; }
}
