/* Comparison pages (/squad-so-alternatives and future alternatives/vs pages).
   Loaded after home.css; reuses its tokens, nav, buttons and footer. Meta blue only, amber never.
   Compare surface: aligned structure, one differentiator (ShiftHands) emphasised, no feature-tile filler. */
.nav { background: rgba(24, 25, 26, .86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--line); }
.cmp a:not(.btn) { color: var(--blue-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cmp a:not(.btn):hover { color: var(--text); }
.cmp b { color: var(--text); font-weight: 650; }

/* ---------- Hero ---------- */
.cmp-hero { position: relative; padding: clamp(36px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); overflow: hidden; }
.cmp-hero::before { content: ""; position: absolute; inset: -30% -10% auto 35%; height: 560px; background: radial-gradient(closest-side, rgba(8,102,255,.16), transparent 70%); pointer-events: none; }
.cmp-hero-grid { position: relative; display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 980px) { .cmp-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.cmp-kicker { color: var(--faint); font-size: 14px; letter-spacing: .01em; }
.cmp-kicker a { color: var(--muted) !important; text-decoration: none; }
.cmp-kicker a:hover { color: var(--text) !important; }
.cmp h1 { font-size: clamp(38px, 6.4vw, 68px); line-height: 1.02; letter-spacing: -.04em; margin-top: 16px; text-wrap: balance; font-weight: 800; }
.cmp-lede { font-size: clamp(17px, 1.9vw, 19px); line-height: 1.6; color: var(--muted); margin-top: 20px; max-width: 38em; text-wrap: pretty; }
.cmp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.cmp-takeaways { background: linear-gradient(180deg, rgba(36,37,38,.96), rgba(36,37,38,.86)); border: 1px solid var(--line-2); border-radius: 24px; padding: clamp(22px, 3vw, 30px); box-shadow: 0 30px 80px -40px rgba(0,0,0,.8); }
.cmp-takeaways h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-text); }
.cmp-takeaways ul { margin-top: 14px; display: grid; gap: 0; counter-reset: tk; }
.cmp-takeaways li { counter-increment: tk; position: relative; padding: 12px 0 12px 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.cmp-takeaways li:first-child { border-top: 0; padding-top: 4px; }
.cmp-takeaways li::before { content: counter(tk); position: absolute; left: 0; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.cmp-takeaways li:first-child::before { top: 4px; }

/* ---------- Sticky in-page nav ---------- */
.cmp-toc { position: sticky; top: 61px; z-index: 40; background: rgba(24,25,26,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.cmp-toc-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.cmp-toc-row::-webkit-scrollbar { display: none; }
.cmp-toc a { flex: none; padding: 8px 14px; border-radius: 999px; color: var(--muted) !important; text-decoration: none; font-size: 14px; font-weight: 550; white-space: nowrap; transition: background-color .2s, color .2s; }
.cmp-toc a:hover { background: rgba(255,255,255,.06); color: var(--text) !important; }

/* ---------- Sections ---------- */
.cmp-sec { padding: clamp(48px, 7vw, 96px) 0 0; scroll-margin-top: 120px; }
.cmp-sec h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -.03em; font-weight: 780; text-wrap: balance; }
.cmp-sec-head { max-width: 720px; }
.cmp-sec-head p { color: var(--muted); font-size: 17px; margin-top: 12px; text-wrap: pretty; }
.cmp-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-text); margin-bottom: 12px !important; }
.cmp-src { color: var(--faint); font-size: 13.5px; margin-top: 14px; }
.cmp-src a { color: var(--muted) !important; }
.cmp-src a:hover { color: var(--text) !important; }

/* Spec lists: label / value rows instead of bold-label bullets */
.spec { display: grid; margin: 0; }
.spec > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.spec > div:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 560px) { .spec > div { grid-template-columns: 150px 1fr; gap: 16px; } }
.spec dt { color: var(--faint); font-size: 13.5px; font-weight: 600; padding-top: 2px; }
.spec dd { margin: 0; color: var(--text); font-size: 15.5px; line-height: 1.55; }

/* Squad at a glance */
.cmp-split { display: grid; gap: 28px; }
@media (min-width: 980px) { .cmp-split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; } }
.cmp-split-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.cmp-split-head .cmp-src { font-size: 13.5px; }
.cmp-panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: clamp(20px, 3vw, 28px); }

/* Alternatives */
.cmp-alts { margin-top: 36px; display: grid; gap: 16px; }
@media (min-width: 900px) { .cmp-alts { grid-template-columns: 1fr 1fr; } .cmp-alt-ours { grid-column: 1 / -1; } }
.cmp-alt { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; scroll-margin-top: 120px; }
.cmp-alt-ours { border-color: var(--sh-blue-line); background: linear-gradient(160deg, rgba(8,102,255,.10), rgba(36,37,38,1) 45%); }
.cmp-alt-ours .spec { }
@media (min-width: 900px) { .cmp-alt-ours .spec-2 { grid-template-columns: 1fr 1fr; column-gap: 40px; } .cmp-alt-ours .spec-2 > div:nth-child(2) { border-top: 0; padding-top: 0; } }
.cmp-alt-head { display: flex; align-items: flex-start; gap: 14px; }
.cmp-num { flex: none; font-size: 13px; font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; padding-top: 6px; }
.cmp-alt h3 { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cmp-alt-name { font-size: 24px; font-weight: 780; letter-spacing: -.02em; line-height: 1.2; color: var(--text); }
.cmp-alt-tag { font-size: 15px; font-weight: 500; color: var(--muted); }
.cmp-badge { flex: none; font-size: 12px; font-weight: 700; color: #fff; background: var(--sh-blue); border-radius: 999px; padding: 5px 10px; margin-top: 4px; }
.cmp-alt-what { color: var(--muted); font-size: 16px; margin: 14px 0 18px; }
.cmp-alt .spec { margin-bottom: auto; }
.cmp-trade { margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-size: 15px; line-height: 1.5; }
.cmp-trade b { display: block; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--text); margin-bottom: 2px; }
.cmp-alt .cmp-src { margin-top: 12px; }

/* Comparison table */
.cmp-table-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.cmp-table-wrap:focus-visible { outline-offset: 4px; }
.cmp-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 980px; font-size: 14.5px; line-height: 1.45; }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cmp-table thead th { position: sticky; top: 0; background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.cmp-table tbody tr:last-child > * { border-bottom: 0; }
.cmp-table td { color: var(--muted); }
.cmp-table tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); color: var(--text); font-size: 16px; font-weight: 750; white-space: nowrap; box-shadow: 1px 0 0 var(--line); }
.cmp-table thead th:first-child { left: 0; z-index: 2; }
.cmp-table tbody tr:hover td { background: rgba(255,255,255,.02); }
.cmp-table tr.is-ours > * { background: #1d2a3d; }
.cmp-table tr.is-ours th { color: #fff; box-shadow: inset 3px 0 0 var(--sh-blue), 1px 0 0 var(--line); }
.cmp-table tr.is-ours td { color: var(--text); }
.cmp-table tr.is-ours:hover td { background: #1f2e44; }

/* When ShiftHands fits */
.cmp-fit { margin-top: 28px; display: grid; gap: 16px; }
@media (min-width: 900px) { .cmp-fit { grid-template-columns: 1.4fr 1fr; } }
.cmp-fit-col { background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: clamp(22px, 3vw, 32px); }
.cmp-fit-col p { color: var(--muted); font-size: 16px; }
.cmp-fit-ours { border-color: var(--sh-blue-line); background: linear-gradient(160deg, rgba(8,102,255,.12), rgba(36,37,38,1) 55%); }
.cmp-fit-label { font-size: 13px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text) !important; margin-bottom: 14px; }
.cmp-fit-ours .cmp-fit-label { color: var(--blue-text) !important; }
.cmp-check { display: grid; gap: 12px; }
.cmp-check li { position: relative; padding-left: 30px; color: var(--text); font-size: 16px; line-height: 1.5; }
.cmp-check li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.4px solid var(--blue-text); border-bottom: 2.4px solid var(--blue-text); transform: rotate(-45deg); }
.cmp-fit-macs { margin-top: 20px; }
.cmp-fit-ours .btn { margin-top: 20px; }

/* How to choose */
.cmp-criteria { margin-top: 28px; display: grid; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; counter-reset: cr; }
@media (min-width: 720px) { .cmp-criteria { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .cmp-criteria { grid-template-columns: repeat(3, 1fr); } }
.cmp-criteria li { counter-increment: cr; background: var(--surface); padding: 22px 24px 24px; }
.cmp-criteria h3 { font-size: 17px; font-weight: 750; display: flex; align-items: baseline; gap: 10px; }
.cmp-criteria h3::before { content: counter(cr, decimal-leading-zero); font-size: 12.5px; font-weight: 700; color: var(--blue-text); font-variant-numeric: tabular-nums; }
.cmp-criteria p { color: var(--muted); font-size: 15px; margin-top: 8px; line-height: 1.55; }

/* FAQ */
.cmp-faq-grid { display: grid; gap: 24px; }
@media (min-width: 980px) { .cmp-faq-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 56px; } }
.cmp-faq { display: grid; }
.cmp-qa { padding: 20px 0; border-top: 1px solid var(--line-2); }
.cmp-qa:last-child { border-bottom: 1px solid var(--line-2); }
.cmp-qa h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.cmp-qa p { color: var(--muted); font-size: 16px; margin-top: 8px; }

.cmp-foot { color: var(--faint); font-size: 13.5px; margin: clamp(48px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); max-width: 60em; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Motion (Brandon 2026-10-01: "more eye-catching") ---------- */
/* H1 accent, same treatment as the homepage hero */
.cmp h1 em { font-style: normal; background: linear-gradient(90deg, #4599FF, #1877F2 40%, #7fb6ff 70%, #4599FF); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cmpShine 7s ease-in-out infinite; }
@keyframes cmpShine { 50% { background-position: 100% 0; } }

/* Hero: drifting light + faint grid */
.cmp-hero::before { animation: cmpDrift 14s ease-in-out infinite alternate; }
.cmp-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000, transparent 75%); }
.cmp-hero-grid { z-index: 1; }
@keyframes cmpDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-12%, 10%) scale(1.15); } }

/* Takeaways: rows slide in one after another after the panel lands */
.js .cmp-takeaways li { opacity: 0; transform: translateX(14px); animation: cmpRowIn .7s var(--ease) forwards; animation-delay: calc(var(--k, 0) * 110ms + 650ms); }
.cmp-takeaways li:nth-child(1) { --k: 0; } .cmp-takeaways li:nth-child(2) { --k: 1; } .cmp-takeaways li:nth-child(3) { --k: 2; }
.cmp-takeaways li:nth-child(4) { --k: 3; } .cmp-takeaways li:nth-child(5) { --k: 4; } .cmp-takeaways li:nth-child(6) { --k: 5; }
@keyframes cmpRowIn { to { opacity: 1; transform: none; } }

/* Reading progress + active nav link */
.cmp-progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #0866FF, #4599FF); pointer-events: none; }
.cmp-toc a.is-on { background: var(--blue-soft); color: var(--text) !important; }

/* Card lift + pointer spotlight */
.cmp-alt, .cmp-fit-col, .cmp-panel { transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease), opacity .9s var(--ease); }
.cmp-alt:hover, .cmp-fit-col:hover { transform: translateY(-4px); border-color: rgba(69,153,255,.45); box-shadow: 0 24px 60px -30px rgba(8,102,255,.45); }
.js [data-reveal].cmp-alt.in:hover { transform: translateY(-4px); }
.has-spot { position: relative; isolation: isolate; }
.has-spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--px, 50%) var(--py, 50%), rgba(69,153,255,.12), transparent 60%); }
.has-spot:hover::after { opacity: 1; }

/* "Our product" badge shimmer and ShiftHands card border glow */
.cmp-badge { position: relative; overflow: hidden; }
.cmp-badge::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55), transparent 70%); animation: cmpGlint 4.5s ease-in-out infinite 1.5s; }
@keyframes cmpGlint { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.cmp-alt-ours { box-shadow: 0 0 0 0 rgba(8,102,255,0); animation: cmpPulse 4s ease-in-out infinite; }
@keyframes cmpPulse { 50% { box-shadow: 0 0 0 1px rgba(69,153,255,.25), 0 20px 70px -30px rgba(8,102,255,.55); } }
.cmp-num { transition: color .3s; }
.cmp-alt:hover .cmp-num { color: var(--blue-text); }

/* Table: rows cascade in; the ShiftHands row gets a light sweep */
.js .cmp-table-wrap[data-reveal] tbody tr { opacity: 0; transform: translateY(10px); }
.js .cmp-table-wrap[data-reveal].in tbody tr { animation: cmpRowIn .6s var(--ease) forwards; }
.cmp-table tbody tr:nth-child(1) { animation-delay: .15s !important; } .cmp-table tbody tr:nth-child(2) { animation-delay: .27s !important; }
.cmp-table tbody tr:nth-child(3) { animation-delay: .39s !important; } .cmp-table tbody tr:nth-child(4) { animation-delay: .51s !important; }
.cmp-table tbody tr:nth-child(5) { animation-delay: .63s !important; } .cmp-table tbody tr:nth-child(6) { animation-delay: .75s !important; }
.cmp-table tr.is-ours td:last-child { position: relative; overflow: hidden; }
.cmp-table tr.is-ours th { position: sticky; }

/* Fit list: checks draw in */
.js .cmp-fit-col[data-reveal] .cmp-check li { opacity: 0; transform: translateX(-8px); }
.js .cmp-fit-col[data-reveal].in .cmp-check li { animation: cmpRowIn .55s var(--ease) forwards; }
.cmp-check li:nth-child(1) { animation-delay: .25s !important; } .cmp-check li:nth-child(2) { animation-delay: .4s !important; }
.cmp-check li:nth-child(3) { animation-delay: .55s !important; } .cmp-check li:nth-child(4) { animation-delay: .7s !important; }

/* Criteria grid: tiles pop in */
.js .cmp-criteria[data-reveal] li { opacity: 0; transform: translateY(14px); }
.js .cmp-criteria[data-reveal].in li { animation: cmpRowIn .6s var(--ease) forwards; }
.cmp-criteria li:nth-child(2) { animation-delay: .08s !important; } .cmp-criteria li:nth-child(3) { animation-delay: .16s !important; }
.cmp-criteria li:nth-child(4) { animation-delay: .24s !important; } .cmp-criteria li:nth-child(5) { animation-delay: .32s !important; }
.cmp-criteria li:nth-child(6) { animation-delay: .4s !important; }
.cmp-criteria li { transition: background-color .3s; }
.cmp-criteria li:hover { background: #2a2b2d; }

/* Tour section on a compare page: spacing to match */
.cmp .showcase { padding-top: clamp(40px, 6vw, 80px); scroll-margin-top: 110px; }

@media (prefers-reduced-motion: reduce) {
  .cmp h1 em, .cmp-hero::before, .cmp-badge::after, .cmp-alt-ours { animation: none !important; }
  .js .cmp-takeaways li, .js .cmp-table-wrap[data-reveal] tbody tr, .js .cmp-fit-col[data-reveal] .cmp-check li, .js .cmp-criteria[data-reveal] li { opacity: 1 !important; transform: none !important; animation: none !important; }
  .cmp-alt:hover, .cmp-fit-col:hover { transform: none; }
}
