/* "AskEleven vs <product>" pages (src/templates/compare.njk) and the
   /alternatives/ hub. Tokens come from pages.css. */

/* The opener: a dark full-width band with a live field behind the title. */
.cmp-open { position: relative; overflow: hidden; min-height: min(78vh, 760px); display: flex; align-items: flex-end; background: #0A0B0D center / cover no-repeat; color: #EFF1F4; }
.cmp-open canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cmp-open .wrap { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 84px; pointer-events: none; }
.cmp-open .wrap a { pointer-events: auto; }
.cmp-open .eyebrow { font-size: 15px; font-weight: 500; color: var(--slate-soft); }
.cmp-open .eyebrow a { color: inherit; text-decoration: none; }
.cmp-open .eyebrow a:hover { color: #fff; }
.cmp-open h1 { font-size: clamp(42px, 6.2vw, 92px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 500; margin: 14px 0 24px; max-width: 9em; }
.cmp-open h1 span { display: block; color: #9AA0AA; }
.cmp-open .sub { font-size: 17.5px; line-height: 1.55; color: #A9AEB7; max-width: 46ch; }
.cmp-open + .section { padding-top: 96px; }

/* Hero facts: three plain claims under the verdict. */
.cmp-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; }
.cmp-facts li { font-size: 13.5px; font-weight: 550; color: #E4E7EC; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px); }

/* The real price: their bill and ours. */
.cmp-lede { font-size: 17px; line-height: 1.6; color: var(--mute); max-width: 60ch; margin-top: 16px; }
.cmp-ledger { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; align-items: stretch; }
.cmp-bill { display: flex; flex-direction: column; padding: 34px 34px 30px; border-radius: 18px; background: var(--card); border: 1px solid var(--hairline); }
.cmp-bill.us { background: #1c1d19; border-color: #1c1d19; color: #fff; box-shadow: 0 30px 70px rgba(30, 31, 27, 0.18); }
.cmp-kind { font-size: 13.5px; font-weight: 550; color: var(--mute); }
.cmp-bill.us .cmp-kind { color: var(--slate-soft); }
.cmp-bill h3 { font-size: clamp(24px, 2.4vw, 31px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 500; margin: 8px 0 18px; }
.cmp-line { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 16px 0; border-top: 1px solid var(--hairline); font-size: 15.5px; color: var(--ink); }
.cmp-bill.us .cmp-line { border-top-color: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.92); }
.cmp-line small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--mute); }
.cmp-bill.us .cmp-line small { color: #A9AEB7; }
.cmp-line b { font-weight: 550; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp-line.total { margin-top: auto; padding-top: 22px; border-top-width: 2px; border-top-color: var(--ink); }
.cmp-bill.us .cmp-line.total { border-top-color: #fff; }
.cmp-line.total span { font-weight: 550; }
.cmp-line.total b { font-size: clamp(30px, 3.2vw, 42px); font-weight: 500; letter-spacing: -0.025em; }
.cmp-inputs { display: grid; gap: 20px; padding: 20px 22px; margin: 4px 0 22px; border-radius: 12px; background: var(--paper); border: 1px solid var(--hairline); }
.cmp-inputs label { display: block; font-size: 13.5px; font-weight: 550; line-height: 1.45; margin-bottom: 10px; color: var(--ink); }
.cmp-range { display: flex; align-items: center; gap: 14px; }
.cmp-range output { min-width: 2.4em; text-align: right; font-weight: 600; color: var(--slate); font-variant-numeric: tabular-nums; }
.cmp-inputs input[type="range"] { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: var(--hairline); outline: none; }
.cmp-inputs input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--slate); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(30, 31, 27, 0.25); cursor: pointer; }
.cmp-inputs input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--slate); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(30, 31, 27, 0.25); cursor: pointer; }
.cmp-inputs input:focus-visible { outline: 2px solid var(--slate); outline-offset: 4px; }
.cmp-inputs .money { display: flex; align-items: center; gap: 10px; }
.cmp-inputs .money .cur { color: var(--mute); font-size: 15px; }
.cmp-inputs .money input { width: 120px; min-height: 44px; font: inherit; font-size: 15px; padding: 10px 14px; border: 1px solid var(--hairline); border-radius: 9px; background: var(--card); color: var(--ink); font-variant-numeric: tabular-nums; }
.cmp-inc-h { margin: 22px 0 12px; font-size: 12.5px; font-weight: 600; color: var(--slate-soft); }
.cmp-inc { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 11px; }
.cmp-inc li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.88); }
.cmp-inc .ae-icon { flex: none; margin-top: 3px; color: var(--slate-soft); }
.cmp-verdict { margin: 28px 0 0; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.4; letter-spacing: -0.012em; color: var(--ink); max-width: 52ch; }
.cmp-anchor { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: var(--mute); max-width: 64ch; }
.cmp-anchor b { color: var(--ink); font-weight: 600; }
.cmp-note { margin: 18px 0 0; font-size: 13px; line-height: 1.6; color: var(--mute); max-width: 82ch; }

/* The table reuses .vs from pages.css; give our column a quiet band. */
.cmp .vs td.us, .cmp .vs th.us { background: rgba(61, 88, 118, 0.045); }
.cmp .vs th:nth-child(2) { color: var(--ink); }
.cmp .vs td.us b { font-weight: 600; color: var(--slate); }
.cmp-said { margin: 28px 0 0; padding: 26px 30px; border-radius: 16px; background: var(--cream); }
.cmp-said-label { font-size: 12.5px; font-weight: 600; color: var(--slate); }
.cmp-said-quote { margin: 8px 0 10px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.4; letter-spacing: -0.012em; color: var(--ink); max-width: 46ch; }
.cmp-said cite { font-style: normal; font-size: 13.5px; color: var(--mute); }

/* Which one should you choose. */
.cmp-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 36px; border-radius: 18px; overflow: hidden; border: 1px solid var(--hairline); background: var(--card); }
.cmp-pick-col { padding: 34px; }
.cmp-pick-col.us { background: rgba(61, 88, 118, 0.06); border-left: 1px solid var(--hairline); }
.cmp-pick-col h3 { font-size: 19px; font-weight: 550; letter-spacing: -0.012em; margin: 0 0 18px; }
.cmp-pick-col.us h3 { color: var(--slate); }
.cmp-pick-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cmp-pick-col li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.cmp-pick-col li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 10px; height: 1.5px; background: var(--mute); }
.cmp-pick-col.us li::before { background: var(--slate); }

/* Sources: small, plain, always there. */
.cmp-faq { padding-top: 96px; }
.cmp-sources { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hairline); font-size: 13.5px; line-height: 1.6; color: var(--mute); }
.cmp-sources h3 { font-size: 13.5px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.cmp-sources p { max-width: 82ch; margin: 0; }
.cmp-sources ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0; padding: 0; }
.cmp-sources a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 3px; }
.cmp-sources a:hover { color: var(--slate); text-decoration-color: currentColor; }
.cmp-tm { font-size: 12.5px; }

/* Hub tiles. */
.cmp-hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.cmp-tile { display: flex; flex-direction: column; padding: 0 26px 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--hairline); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.cmp-tile:hover { transform: translateY(-3px); border-color: #cfcfc6; box-shadow: 0 24px 50px rgba(30, 31, 27, 0.1); }
.cmp-tile:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }
.cmp-tile-art { display: block; margin: 0 -26px 20px; background: #0A0B0D; }
.cmp-tile-art img { display: block; width: 100%; height: auto; }
.cmp-hub.plain .cmp-tile { padding-top: 26px; }
.cmp-tile-vs { font-size: 13px; font-weight: 550; color: var(--mute); }
.cmp-tile-name { font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; margin: 4px 0 10px; }
.cmp-tile-line { font-size: 14.5px; line-height: 1.55; color: var(--mute); flex: 1; }
.cmp-tile-go { margin-top: 18px; font-size: 14px; font-weight: 550; color: var(--ink); }
.cmp-tile-go::after { content: ' >'; color: var(--slate); }

@media (max-width: 900px) {
  /* On a tall screen the words sit at the top and the strokes below them. */
  .cmp-open { min-height: 780px; align-items: flex-start; background-position: 72% center; }
  .cmp-open .wrap { padding-top: 44px; padding-bottom: 0; }
  .cmp-open .sub { font-size: 16px; }
  .cmp-ledger, .cmp-pick { grid-template-columns: 1fr; }
  .cmp-bill, .cmp-pick-col { padding: 26px 22px; }
  .cmp-inputs { padding: 18px 16px; }
  .cmp-pick-col.us { border-left: 0; border-top: 1px solid var(--hairline); }
  .cmp-said { padding: 22px; }
  .cmp-hub { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) { .cmp-hub { grid-template-columns: repeat(2, 1fr); } }
