/* The public AI Index (server/ai-index-page.js) and its Quake Profiles. Website tokens (styles.css) and
   the iPhone page's panels (app.css); the brand's violet marks every share and its 95% range. The index
   reads like a weekly chart: places, moves, peaks and waves on the chart (.aix-*). */
.ai-index-page .resource-main { padding-top: clamp(32px, 5vw, 64px); }
.ai-index-page main > section, .ai-index-page main > div { margin-top: clamp(40px, 6vw, 72px); }
.ai-index-page main > section:first-child { margin-top: 0; }
.ai-index-page h2 { font: 560 clamp(26px, 3vw, 34px)/1.2 var(--heading); letter-spacing: -.025em; }
.ai-index-page h3 { font: 560 19px/1.3 var(--heading); letter-spacing: -.01em; }
.ai-index-card { padding: clamp(20px, 2.4vw, 28px); border: 1px solid transparent; border-radius: 18px; background: var(--surface); box-shadow: var(--card, 0 0 0 .5px #19191b17, 0 1px 1px -1px #19191b14, 0 1px 3px #19191b0d); }
.ai-index-eyebrow { color: var(--accent-dark); font: 700 11px/1.4 var(--body) !important; letter-spacing: .09em !important; text-transform: uppercase; }
.ai-index-page .check-table small { color: var(--muted); }

/* Hero actions. */
.ai-index-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }
.ai-index-actions .button { min-height: 46px; font-size: 14px; }
.ai-index-link { color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--lavender); text-underline-offset: 4px; }
.ai-index-link:hover, .ai-index-link:focus-visible { text-decoration-color: var(--accent); }
.ai-index-letter { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 5px; color: #fff; font-size: 11px; font-weight: 700; }

/* A figure in a card (the ads). */
.ai-index-card > p:not(.ai-index-figure):not(.ai-index-note) { max-width: 68ch; margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.ai-index-card .table-scroll { margin-top: 16px; }
.ai-index-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 12px; }
.ai-index-figure strong { font: 600 clamp(38px, 5vw, 56px)/1 var(--heading); letter-spacing: -.03em; color: var(--accent-dark); }
.ai-index-figure span { font: 560 clamp(20px, 2.2vw, 24px)/1.25 var(--heading); letter-spacing: -.015em; }
.ai-index-chip { display: inline-block; padding: 3px 9px; border-radius: 999px; background: #efedf2; color: var(--ink); font-size: 12px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.ai-index-chip[data-tone="clear"] { background: var(--lavender-soft); color: var(--accent-dark); }
.ai-index-chip[data-tone="up"] { background: #e5efe8; color: var(--green); }
.ai-index-chip[data-tone="down"] { background: #f6e6e4; color: var(--red); }

/* The share track: 0–100%, the 95% range as a band, the share as a mark. */
.ai-index-bar { position: relative; display: block; height: 8px; border-radius: 99px; background: var(--lavender-soft); }
.ai-index-bar::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 50%; width: 1px; background: #e2dcef; }
.ai-index-bar span { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--lavender); opacity: .55; }
.ai-index-bar i { position: absolute; top: -3px; width: 4px; height: 14px; margin-inline-start: -2px; border-radius: 2px; background: var(--accent); z-index: 1; }

/* The index head: what a share is, and the legend. */
.ai-index-section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 32px; align-items: end; }
.ai-index-section-head h2 { grid-column: 1 / -1; }
.ai-index-section-head > p:not(.ai-index-legend) { max-width: 70ch; color: var(--muted); font-size: 16px; line-height: 1.65; }
.ai-index-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 13px; }
.ai-index-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.ai-index-legend b { display: inline-block; width: 4px; height: 14px; border-radius: 2px; background: var(--accent); }
.ai-index-legend b.ai-index-legend-range { width: 22px; height: 8px; border-radius: 99px; background: var(--lavender); opacity: .55; }
.ai-index-note { color: var(--muted); font-size: 13px; }
.ai-index-share { display: grid; grid-template-columns: minmax(60px, 1fr) auto; align-items: center; gap: 14px; }
.ai-index-share > span:last-child { display: grid; min-width: 118px; line-height: 1.25; }
.ai-index-share strong { font-size: 15px; }
.ai-index-share small { color: var(--muted); font-size: 11px; white-space: nowrap; }

/* Method: the heading beside numbered steps. */
.ai-index-method { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2.2fr); gap: 24px clamp(28px, 5vw, 64px); padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.ai-index-method-head { align-self: start; position: sticky; top: 100px; }
.ai-index-method-head p { margin-top: 12px; font-size: 14px; }
.ai-index-method-head a { color: var(--accent-dark); }
.ai-index-method ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.ai-index-method li { counter-increment: step; padding: 18px 20px; border: 1px solid transparent; border-radius: 14px; background: var(--surface); font-size: 14.5px; line-height: 1.65; box-shadow: var(--card, 0 0 0 .5px #19191b17, 0 1px 1px -1px #19191b14, 0 1px 3px #19191b0d); }
.ai-index-method li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 8px; color: var(--accent-dark); font: 600 13px/1 var(--heading); letter-spacing: .04em; }

.ai-index-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.ai-index-cta h2 { color: #fff; }
.ai-index-cta p { margin-top: 10px; color: #c9c6d2; font-size: 15px; }
.ai-index-cta .button--primary { min-height: 48px; background: var(--paper); color: var(--ink); border-color: var(--paper); font-size: 14px; }

@media (max-width: 960px) {
  .ai-index-method { grid-template-columns: 1fr; }
  .ai-index-method-head { position: static; }
}
@media (max-width: 640px) {
  .ai-index-method ol { grid-template-columns: 1fr; }
  .ai-index-share { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .ai-index-share > span:last-child { min-width: 0; }
  .ai-index-share small { font-size: 10.5px; }
  .ai-index-section-head { grid-template-columns: 1fr; }
}

/* Why it moved: a heading over a model's brands or sources. */
.ai-index-why-label { margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 650; }

/* Quake Profiles (/ai-index/<category>/<brand>) and the links to them. */
.aix-hero-copy .resource-kicker a { color: inherit; text-decoration: none; }
.aix-hero-copy .resource-kicker a:hover, .aix-hero-copy .resource-kicker a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.ai-index-profile { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.ai-index-profile > .ai-index-card, .ai-index-page main > .ai-index-card { margin-top: 0; }
.ai-index-page main > .ai-index-card { margin-top: clamp(28px, 4vw, 40px); }
.ai-index-card .ai-index-note { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.ai-index-card .table-scroll { margin-top: 12px; }
.ai-index-back { margin-top: 24px; font-size: 15px; }
.ai-index-back a { color: var(--accent-dark); }
.ai-index-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ——— The index as a weekly chart (.aix-*) ——— */

/* Hero: the question beside the Quake meter. */
.aix-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.aix-hero h1 { margin-top: 12px; font: 580 clamp(42px, 5.4vw, 68px)/1.04 var(--heading); letter-spacing: -.05em; }
.aix-hero .resource-intro { max-width: 560px; }
.aix-engines { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.aix-engines li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface); box-shadow: var(--card); font: 600 13px/1.2 var(--body); }
.aix-engines img, .aix-meter img, .aix-diff img, .aix-why-model img, .aix-model-card img, .aix-grid-model img { width: 18px; height: 18px; flex: none; }

/* The Quake meter: a dark card with the seismograph of recent waves. */
.aix-meter { position: relative; padding: clamp(20px, 2.6vw, 30px); overflow: hidden; border-radius: 26px; background: radial-gradient(90% 70% at 100% 0%, #3d2f78 0%, #232029 52%, #19191b 100%); color: #fff; box-shadow: 0 40px 80px -36px #3a2a7a73, 0 16px 32px -20px #19191b40; }
.aix-meter .ai-index-eyebrow { color: #cbbdf7; }
.aix-meter-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.aix-live { display: inline-flex; align-items: center; gap: 8px; color: #d9d2ea; font-size: 12px; font-weight: 600; }
.aix-pulse { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #a58ff5; animation: aix-pulse 1.8s ease-out infinite; }
@keyframes aix-pulse { 0% { box-shadow: 0 0 0 0 #a58ff5a6; } 70%, 100% { box-shadow: 0 0 0 9px #a58ff500; } }
.aix-seismo { display: block; width: 100%; height: clamp(84px, 9vw, 116px); margin-top: 18px; overflow: visible; }
.aix-seismo line { stroke: #ffffff24; stroke-width: 1; }
.aix-seismo path { fill: none; stroke: #ffffff4d; stroke-width: 1.5; stroke-linejoin: round; }
.aix-seismo path[data-tone="clear"] { stroke: #b5a1f3; }
.aix-seismo path[data-tone="unsure"] { stroke: #ffffff80; }
.aix-seismo .aix-seismo-now { stroke-width: 2; filter: drop-shadow(0 0 5px #b5a1f3b3); }
.aix-seismo-pen { fill: #fff; filter: drop-shadow(0 0 6px #b5a1f3); }
/* Right to left, time runs from right to left as the day labels do: the newest wave at the left. */
[dir="rtl"] .aix-seismo { transform: scaleX(-1); }
.aix-seismo-days { display: grid; grid-template-columns: repeat(var(--waves, 1), minmax(0, 1fr)); margin: 6px 0 0; padding: 0; list-style: none; color: #ffffff80; font-size: 11px; text-align: center; }
.aix-meter-figure { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; }
.aix-meter-figure strong { font: 600 clamp(38px, 4.6vw, 54px)/1 var(--heading); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.aix-meter-note { max-width: 60ch; margin-top: 10px; color: #d6d1e0; font-size: 14px; line-height: 1.6; }
.aix-meter .ai-index-chip { background: #ffffff1f; color: #fff; }
.aix-meter .ai-index-chip[data-tone="clear"] { background: #b5a1f340; color: #efe9ff; }
.aix-models { display: grid; gap: 2px; margin: 18px 0 0; padding: 0; list-style: none; }
.aix-models li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "model chip" "bar figure" "version version"; align-items: center; gap: 6px 14px; padding: 10px 0; border-top: 1px solid #ffffff1a; }
.aix-model { grid-area: model; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.aix-models .ai-index-chip { grid-area: chip; justify-self: end; }
.aix-models .aix-range { grid-area: bar; }
.aix-model-figure { grid-area: figure; display: grid; justify-items: end; line-height: 1.25; }
.aix-model-figure strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.aix-model-figure small, .aix-model-version { color: #ffffff8c; font-size: 11px; }
.aix-model-version { grid-area: version; }
.aix-range { position: relative; display: block; height: 8px; border-radius: 99px; background: #ffffff14; }
.aix-range b { position: absolute; inset-block: -3px; inset-inline-start: 50%; width: 1px; background: #ffffff59; }
.aix-range span { position: absolute; inset-block: 0; border-radius: 99px; background: #b5a1f366; }
.aix-range i { position: absolute; top: -3px; width: 4px; height: 14px; margin-inline-start: -2px; border-radius: 2px; background: #fff; }
.aix-waves { margin-top: 14px; }
.ai-index-page .table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.aix-waves summary { width: fit-content; color: #d9d2ea; font-size: 13px; font-weight: 600; cursor: pointer; }
.aix-meter .check-table { min-width: 500px; color: #fff; }
.aix-meter .check-table th[scope="row"] { white-space: nowrap; }
.aix-meter .check-table th, .aix-meter .check-table td { border-color: #ffffff1a; background: transparent; color: inherit; }
.aix-meter .check-table thead th { color: #ffffff99; }
.aix-meter .check-table small { color: #ffffff80; }

/* This wave in figures. */
.ai-index-page main > .aix-facts { margin-top: clamp(28px, 4vw, 44px); }
.aix-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; overflow: hidden; border-radius: 18px; background: var(--surface); box-shadow: var(--card); }
.aix-facts > div { padding: 18px 22px; border-inline-start: 1px solid var(--line); }
.aix-facts > div:first-child { border-inline-start: 0; }
.aix-facts dt { color: var(--muted); font-size: 12px; font-weight: 600; }
.aix-facts dd { margin: 6px 0 0; font: 600 clamp(26px, 2.6vw, 34px)/1.1 var(--heading); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* The moves of this wave, running along. Paused under the pointer or focus; still with reduced motion. */
.ai-index-page main > .aix-ticker { margin-top: 16px; }
.aix-ticker { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; overflow: hidden; border-radius: 16px; background: var(--ink); color: #fff; }
.ai-index-page .aix-ticker-label { display: flex; align-items: center; padding: 0 18px; border-inline-end: 1px solid #ffffff1f; color: #cbbdf7; font: 700 11px/1.3 var(--body); letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.aix-ticker-window { overflow: hidden; contain: paint; mask-image: linear-gradient(90deg, #0000, #000 3%, #000 97%, #0000); -webkit-mask-image: linear-gradient(90deg, #0000, #000 3%, #000 97%, #0000); }
.aix-ticker-track { display: flex; width: max-content; animation: aix-ticker calc(var(--items, 10) * 5s) linear infinite; }
.aix-ticker:hover .aix-ticker-track, .aix-ticker:focus-within .aix-ticker-track { animation-play-state: paused; }
.aix-ticker ul { display: flex; margin: 0; padding: 0; list-style: none; }
.aix-ticker a { display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; color: #fff; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.aix-ticker a:hover strong, .aix-ticker a:focus-visible strong { text-decoration: underline; text-underline-offset: 3px; }
.aix-ticker a > span[dir] { color: #ffffff99; }
.aix-ticker-place { color: #cbbdf7; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.aix-ticker .aix-move[data-move="up"], .aix-meter .aix-move[data-move="up"] { background: #8fd3a826; color: #a5e0bb; }
.aix-ticker .aix-move[data-move="down"], .aix-meter .aix-move[data-move="down"] { background: #f2a29b26; color: #f6b6b0; }
@keyframes aix-ticker { to { transform: translateX(-50%); } }
[dir="rtl"] .aix-ticker-track { animation-name: aix-ticker-rtl; }
@keyframes aix-ticker-rtl { to { transform: translateX(50%); } }

/* A move: up or down so many places, the same place, a debut, or a re-entry. */
.aix-move { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 34px; height: 22px; padding: 0 7px; border-radius: 7px; font: 700 11.5px/1 var(--body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.aix-move svg { width: 9px; height: 9px; flex: none; }
.aix-move[data-move="up"] { background: #e5efe8; color: var(--green); }
.aix-move[data-move="down"] { background: #f6e6e4; color: var(--red); }
.aix-move[data-move="same"] { color: var(--muted); }
.aix-move[data-move="new"] { background: var(--accent); color: #fff; font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; }
.aix-move[data-move="back"] { background: var(--lavender-soft); color: var(--accent-dark); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; }

/* Chart news: four brands that stood out this wave. */
.aix-news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 20px; }
.aix-news-tile { display: grid; align-content: start; gap: 4px; padding: 18px 20px 20px; border-radius: 18px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--card); }
.aix-news-tile:hover, .aix-news-tile:focus-visible { box-shadow: var(--lift-hover, var(--pop)); translate: 0 -2px; }
.aix-news-label { color: var(--accent-dark); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.aix-news-tile strong { margin-top: 8px; font: 600 clamp(22px, 2.2vw, 26px)/1.15 var(--heading); letter-spacing: -.02em; overflow-wrap: anywhere; }
.aix-news-category { color: var(--muted); font-size: 13px; }
.aix-news-figure { margin-top: 12px; font: 600 20px/1.1 var(--heading); font-variant-numeric: tabular-nums; }
.aix-news-tile .ai-index-chip { justify-self: start; margin-top: 6px; }

/* The charts: the category list beside one chart at a time (public/landing/ai-index.js). */
.aix-board { display: grid; grid-template-columns: minmax(220px, 268px) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 24px; }
.aix-picker { position: sticky; top: 92px; max-height: calc(100vh - 116px); overflow: auto; padding: 6px; border-radius: 18px; background: var(--surface); box-shadow: var(--card); overscroll-behavior: contain; }
.aix-picker ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.aix-picker a { display: grid; gap: 2px; padding: 9px 12px; border-radius: 12px; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s; }
.aix-picker a small { overflow: hidden; color: var(--muted); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.aix-picker a:hover { background: #f4f2f8; }
.aix-picker a[aria-current] { background: var(--ink); color: #fff; }
.aix-picker a[aria-current] small { color: #ffffffb3; }
.aix-board:not([data-picker]) .aix-board-charts { display: grid; gap: 20px; }
.aix-chart { scroll-margin-top: 96px; padding: clamp(18px, 2.4vw, 28px); border-radius: 22px; background: var(--surface); box-shadow: var(--card); }
.aix-chart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.ai-index-page .aix-chart-head h3 { font: 580 clamp(26px, 3vw, 36px)/1.1 var(--heading); letter-spacing: -.035em; }
.aix-rows { margin: 0; padding: 0; list-style: none; }
.aix-row { display: grid; grid-template-columns: 52px 60px minmax(0, 1fr) minmax(220px, 1.25fr) 200px; align-items: center; gap: 14px; padding: 12px 8px; border-bottom: 1px solid #ece9f0; }
.aix-rows .aix-row:last-child { border-bottom: 0; }
.aix-rows .aix-row:hover { border-radius: 12px; background: #f8f7fb; }
.aix-row--head { margin-top: 16px; padding-block: 0 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 600; }
.aix-rank { font: 600 30px/1 var(--heading); letter-spacing: -.03em; text-align: center; font-variant-numeric: tabular-nums; }
.aix-rows .aix-row:first-child .aix-rank { color: var(--accent); font-size: 38px; }
.aix-row[data-off] { opacity: .55; }
.aix-row[data-off] .aix-rank { font-size: 22px; color: var(--muted); }
/* A brand further down the chart, shown on its own profile after the first places. */
.aix-rows .aix-row[data-gap] { margin-top: 10px; border-top: 1px dashed var(--line); }
/* The other brands this wave's answers named, by name and share. */
.aix-more { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.aix-more-title { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.aix-more ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.aix-more li { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f4f2f8; font-size: 13px; }
.aix-more a { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.aix-more a:hover, .aix-more a:focus-visible { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.aix-more span { color: var(--muted); font-variant-numeric: tabular-nums; }
.aix-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.aix-brand a { color: var(--ink); font-size: 16.5px; font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.aix-brand a:hover, .aix-brand a:focus-visible { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.aix-brand .ai-index-chip { font-size: 11px; }
.aix-row .ai-index-share { grid-template-columns: minmax(60px, 1fr) 104px; }
.aix-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; text-align: center; }
.aix-stats dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.aix-stats dd { margin: 0; font: 600 16px/1 var(--heading); font-variant-numeric: tabular-nums; }
.aix-row--head .aix-stats > span { padding-inline: 2px; }
.aix-board-note { max-width: 80ch; margin-top: 14px; }
.aix-facts dd small { display: block; margin-top: 6px; color: var(--muted); font: 500 11.5px/1.4 var(--body); letter-spacing: 0; }

/* A chart arrives: rows rise in one after another and each share slides to its place. */
@media (prefers-reduced-motion: no-preference) {
  .aix-seismo .aix-seismo-now { stroke-dasharray: 1; stroke-dashoffset: 1; animation: aix-draw 2.2s var(--ease-out, ease-out) .25s forwards; }
  .aix-seismo-pen { animation: aix-pen 1.6s ease-in-out 2.4s infinite; opacity: 0; }
  .aix-board[data-picker] .aix-chart:not([hidden]) .aix-row:not(.aix-row--head) { animation: aix-row .5s var(--ease-out, ease-out) backwards; animation-delay: calc(min(var(--i, 0), 14) * 35ms); }
  .aix-board[data-picker] .aix-chart:not([hidden]) .ai-index-bar i { animation: aix-mark .9s var(--ease-out, ease-out) backwards; animation-delay: calc(min(var(--i, 0), 14) * 35ms + 120ms); }
  .aix-board[data-picker] .aix-chart:not([hidden]) .ai-index-bar span { animation: aix-fade .8s ease backwards; animation-delay: calc(min(var(--i, 0), 14) * 35ms + 200ms); }
  .aix-move[data-move="new"] { animation: aix-glow 2.6s ease-in-out infinite; }
}
@keyframes aix-draw { to { stroke-dashoffset: 0; } }
@keyframes aix-pen { 0%, 100% { opacity: 1; r: 4; } 50% { opacity: .55; r: 6; } }
@keyframes aix-row { from { opacity: 0; transform: translateY(8px); } }
@keyframes aix-mark { from { left: 0; } }
@keyframes aix-fade { from { opacity: 0; } }
@keyframes aix-glow { 0%, 100% { box-shadow: 0 0 0 0 #6350a900; } 50% { box-shadow: 0 0 0 4px #6350a92e; } }
@media (prefers-reduced-motion: reduce) {
  .aix-pulse { animation: none; }
  .aix-ticker-track, [dir="rtl"] .aix-ticker-track { animation: none; }
  .aix-ticker-window { overflow-x: auto; }
  .aix-ticker ul[aria-hidden] { display: none; }
}

/* Why it moved: the cause, each model that moved, and the same question before and after. */
.ai-index-page .aix-why h2 { max-width: 36ch; margin-top: 12px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; letter-spacing: -.02em; }
.aix-why-lead { max-width: 70ch; margin-top: 12px; color: #48454e; font-size: 15.5px; line-height: 1.65; }
.aix-why-models { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 24px; }
.aix-why-model { padding: 18px 20px; border-radius: 18px; background: var(--surface); box-shadow: var(--card); }
.ai-index-page .aix-why-model h3 { font-size: 17px; }
.aix-why-model h3 span { display: inline-flex; align-items: center; gap: 8px; }
.aix-why-model > p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.aix-why-model ul { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; }
.aix-why-model li { display: flex; justify-content: space-between; gap: 12px; }
.aix-why-model li a { color: inherit; text-decoration: none; }
.aix-why-model li a:hover, .aix-why-model li a:focus-visible { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.aix-why-model strong[data-tone="up"] { color: var(--green); }
.aix-why-model strong[data-tone="down"] { color: var(--red); }
.ai-index-page .aix-why-sub { margin-top: 36px; font-size: 22px; }
.aix-why > .ai-index-note { margin-top: 22px; }

/* The same question in two waves, side by side, with the chart's brands highlighted. */
.aix-diff { margin: 16px 0 0; padding: clamp(16px, 2vw, 22px); border-radius: 20px; background: var(--surface); box-shadow: var(--card); }
.aix-diff figcaption { display: grid; gap: 6px; }
.aix-diff figcaption > span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.aix-diff figcaption strong { font: 600 clamp(18px, 1.8vw, 21px)/1.3 var(--heading); letter-spacing: -.01em; }
.aix-diff-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; margin-top: 16px; }
.aix-diff-arrow { display: grid; place-items: center; width: 28px; height: 28px; align-self: center; border-radius: 50%; background: var(--lavender-soft); color: var(--accent-dark); }
.aix-diff-arrow svg { width: 10px; height: 10px; transform: rotate(-90deg); }
[dir="rtl"] .aix-diff-arrow svg { transform: rotate(90deg); }
.aix-answer { display: grid; align-content: start; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #f8f7fb; }
.aix-answer[data-side="after"] { background: var(--lavender-soft); }
.aix-answer-when { color: var(--muted); font-size: 12px; font-weight: 650; }
.aix-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.aix-chips li { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--surface); box-shadow: var(--card); font-size: 13px; font-weight: 600; }
.aix-chips a { color: inherit; text-decoration: none; }
.aix-chips a:hover, .aix-chips a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.aix-chips li[data-change="left"] { background: #f6e6e4; color: var(--red); box-shadow: none; }
.aix-chips li[data-change="left"] a { text-decoration: line-through; text-decoration-thickness: 1px; }
.aix-chips li[data-change="arrived"] { background: #e5efe8; color: var(--green); box-shadow: none; }
.aix-chips li[data-change="arrived"]::before { content: "+" / ""; margin-inline-end: 3px; }
.aix-none { color: var(--ink); font-size: 13.5px; font-weight: 600; }
.aix-answer blockquote { margin: 0; color: var(--ink); font-size: 14.5px; line-height: 1.65; }
.aix-answer mark { padding: 0 2px; border-radius: 4px; background: #b5a1f359; color: inherit; }
.aix-place { font-weight: 650; font-variant-numeric: tabular-nums; }

@media (max-width: 1080px) {
  .aix-row { grid-template-columns: 44px 60px minmax(0, 1fr) minmax(150px, .9fr) 168px; gap: 10px; }
}
@media (max-width: 960px) {
  .aix-hero { grid-template-columns: 1fr; }
  .aix-board { grid-template-columns: 1fr; }
  .aix-picker { position: static; max-height: none; overflow-x: auto; padding: 4px; border-radius: 14px; }
  .aix-picker ol { display: flex; gap: 4px; }
  .aix-picker a { padding: 8px 12px; white-space: nowrap; }
  .aix-picker a small { display: none; }
  .aix-board:not([data-picker]) .aix-picker { display: none; }
}
@media (max-width: 720px) {
  .aix-row--head { display: none; }
  .aix-row { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "rank brand move" "rank share share" "rank stats stats"; gap: 6px 12px; padding: 12px 4px; }
  .aix-rank { grid-area: rank; align-self: start; font-size: 24px; }
  .aix-rows .aix-row:first-child .aix-rank { font-size: 28px; }
  .aix-row > .aix-move { grid-area: move; }
  .aix-brand { grid-area: brand; }
  .aix-row .ai-index-share { grid-area: share; grid-template-columns: minmax(0, 1fr) auto; }
  .aix-stats { grid-area: stats; display: flex; flex-wrap: wrap; gap: 2px 14px; text-align: start; }
  .aix-stats > div { display: flex; gap: 5px; align-items: baseline; }
  .aix-stats dt { position: static; width: auto; height: auto; overflow: visible; clip: auto; color: var(--muted); font-size: 11.5px; font-weight: 600; }
  .aix-stats dd { font: 650 12px/1.3 var(--body); }
  .aix-diff-grid { grid-template-columns: 1fr; }
  .aix-diff-arrow { justify-self: center; }
  .aix-diff-arrow svg, [dir="rtl"] .aix-diff-arrow svg { transform: none; }
  .aix-facts { grid-template-columns: 1fr 1fr; }
  .aix-facts > div:nth-child(odd) { border-inline-start: 0; }
  .aix-facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .aix-ticker { grid-template-columns: 1fr; }
  .ai-index-page .aix-ticker-label { padding: 10px 16px 0; border: 0; }
  .aix-ticker a { padding: 10px 16px 12px; }
}

/* ——— A brand's Quake Profile, read like a chart ——— */

/* The dark card: the place on its chart, its move, the share wave by wave, its run on the chart. */
.aix-rank-now { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; }
.aix-rank-no { color: #cbbdf7; font: 600 clamp(22px, 2.4vw, 28px)/1 var(--heading); letter-spacing: -.02em; }
.aix-rank-num { color: #fff; font-size: clamp(64px, 8vw, 96px); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.aix-rank-of { color: #ffffffb3; font-size: 14px; }
.aix-meter .aix-move { height: 26px; min-width: 40px; padding: 0 9px; font-size: 13px; }
.aix-meter .aix-move[data-move="same"] { background: #ffffff14; color: #ffffffa6; }
.aix-meter .ai-index-chip[data-tone="up"] { background: #8fd3a826; color: #a5e0bb; }
.aix-meter .ai-index-chip[data-tone="down"] { background: #f2a29b26; color: #f6b6b0; }
.aix-rank-share { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #ffffff1a; }
.aix-rank-share p { display: grid; gap: 5px; }
.aix-rank-label { color: #ffffff99; font-size: 12px; font-weight: 600; }
.aix-rank-share strong { font: 600 clamp(36px, 4.2vw, 48px)/1 var(--heading); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.aix-rank-share small { color: #ffffff80; font-size: 12px; }
.aix-trend-wrap { position: relative; margin-top: 18px; }
.aix-trend { display: block; width: 100%; height: auto; overflow: visible; }
.aix-trend line { stroke: #ffffff1f; stroke-width: 1; stroke-dasharray: 3 5; }
.aix-trend-band { fill: #b5a1f333; }
.aix-trend-line { fill: none; stroke: #b5a1f3; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px #b5a1f399); }
.aix-trend circle { fill: #232029; stroke: #b5a1f3; stroke-width: 2; }
.aix-trend circle.aix-seismo-pen { fill: #fff; stroke: none; }
/* Right to left, time runs from right to left as the dates under it do. */
[dir="rtl"] .aix-trend { transform: scaleX(-1); }
.aix-trend-axis { position: absolute; inset-inline-start: 0; translate: 0 -125%; color: #ffffff59; font-size: 10px; font-variant-numeric: tabular-nums; pointer-events: none; }
.aix-meter .aix-trend-legend { margin-top: 10px; color: #ffffff99; font-size: 12px; }
.aix-meter .ai-index-legend b { background: #fff; }
.aix-meter .ai-index-legend b.ai-index-legend-range { background: #b5a1f366; opacity: 1; }
.aix-rank-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 12px 16px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #ffffff1a; }
.aix-rank-stats dt { color: #ffffff8c; font-size: 11.5px; font-weight: 600; }
.aix-rank-stats dd { margin: 4px 0 0; font: 600 24px/1.1 var(--heading); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* A section's heading with its link or count on the same line. */
.aix-section-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.ai-index-page .aix-card-title { font-size: clamp(20px, 2vw, 24px); }
.aix-standing .aix-chart, .aix-grid-card { margin-top: 18px; }
.aix-questions > .ai-index-note { margin-top: 8px; font-size: 14px; }

/* Each model: its share in large, the range, the wave before. */
.aix-model-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: 18px; }
.aix-model-card { display: grid; align-content: start; gap: 12px; padding: 18px 20px 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--card); }
.ai-index-page .aix-model-card h3 { font: 600 15px/1.3 var(--body); letter-spacing: 0; }
.aix-model-card h3 span { display: inline-flex; align-items: center; gap: 8px; }
.aix-model-card-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.aix-model-card-figure strong { font: 600 clamp(34px, 3.6vw, 42px)/1 var(--heading); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.aix-model-card-figure > span { color: var(--muted); font-size: 13px; }
.aix-model-card-note { color: var(--muted); font-size: 12px; line-height: 1.6; }

/* The brand's own row on its chart. */
.aix-rows .aix-row[data-current] { border-radius: 12px; background: var(--lavender-soft); box-shadow: inset 0 0 0 1px #6350a933; }
.aix-row[data-current] .aix-brand a { color: var(--accent-dark); }
.aix-row[data-current] .ai-index-bar { background: var(--surface); }

/* Each question, with a dot for each model that named the brand. */
.aix-grid-card { padding: 4px clamp(12px, 2vw, 20px) 8px; border-radius: 20px; background: var(--surface); box-shadow: var(--card); }
.aix-grid { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.aix-grid th, .aix-grid td { padding: 11px 8px; border-bottom: 1px solid #ece9f0; text-align: center; vertical-align: middle; }
.aix-grid tbody tr:last-child > * { border-bottom: 0; }
.aix-grid thead th { color: var(--muted); font-size: 11.5px; font-weight: 600; vertical-align: bottom; }
.aix-grid thead th:first-child, .aix-grid th[scope="row"] { text-align: start; }
.aix-grid th[scope="row"] { min-width: 220px; font-weight: 500; line-height: 1.45; }
.aix-grid tbody tr:hover { background: #f8f7fb; }
.aix-grid-model { display: inline-grid; justify-items: center; gap: 5px; max-width: 96px; line-height: 1.25; }
.aix-dot { display: inline-block; width: 14px; height: 14px; border: 1.5px solid #d9d3e6; border-radius: 50%; vertical-align: middle; }
.aix-dot[data-named] { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 3px #6350a91f; }
.aix-dot[data-none] { width: 8px; height: 2px; border: 0; border-radius: 1px; background: #d9d3e6; box-shadow: none; }

/* Shares as bars: brands named beside it, sources cited (its own website marked). */
.aix-pairs { display: grid; gap: 2px; margin: 14px 0 0; padding: 0; list-style: none; }
.aix-pairs li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 1.1fr) 46px; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; font-size: 14.5px; }
.aix-pairs li[data-own] { background: var(--lavender-soft); }
.aix-pairs a { color: var(--ink); font-weight: 600; text-decoration: none; }
.aix-pairs a:hover, .aix-pairs a:focus-visible { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.aix-pair-name { min-width: 0; overflow-wrap: anywhere; }
.aix-pair-bar { position: relative; height: 8px; overflow: hidden; border-radius: 99px; background: var(--lavender-soft); }
.aix-pairs li[data-own] .aix-pair-bar { background: #fff; }
.aix-pair-bar span { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 99px; background: var(--accent); }
.aix-pairs strong { text-align: end; font-variant-numeric: tabular-nums; }
.aix-why-model > .aix-why-figure { margin-top: 8px; color: var(--ink); font-size: 15px; }
.aix-why-figure small { color: var(--muted); font-size: 13px; }

/* The profile arrives: the share line draws itself; further down, rows rise and bars fill as each
   section comes into view (data-arrive, public/landing/ai-index.js). */
@media (prefers-reduced-motion: no-preference) {
  .aix-trend-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: aix-draw 1.6s var(--ease-out, ease-out) .3s forwards; }
  .aix-trend-band { animation: aix-fade 1.2s ease .2s backwards; }
  [data-arrive="wait"] :is(.aix-row:not(.aix-row--head), .aix-model-card, .aix-pairs li, .aix-grid tbody tr) { opacity: 0; }
  [data-arrive="on"] :is(.aix-row:not(.aix-row--head), .aix-model-card, .aix-pairs li, .aix-grid tbody tr) { animation: aix-row .5s var(--ease-out, ease-out) backwards; animation-delay: calc(min(var(--i, 0), 14) * 35ms); }
  [data-arrive="on"] .ai-index-bar i { animation: aix-mark .9s var(--ease-out, ease-out) backwards; animation-delay: calc(min(var(--i, 0), 14) * 35ms + 120ms); }
  [data-arrive="on"] .aix-pair-bar span { animation: aix-grow .9s var(--ease-out, ease-out) backwards; animation-delay: calc(min(var(--i, 0), 14) * 40ms + 150ms); }
  [data-arrive="on"] .aix-dot[data-named] { animation: aix-pop .45s var(--ease-out, ease-out) backwards; animation-delay: calc(min(var(--i, 0), 20) * 30ms + 200ms); }
}
@keyframes aix-grow { from { width: 0; } }
@keyframes aix-pop { from { transform: scale(0); } }

@media (max-width: 720px) {
  .aix-trend-days li:not(:first-child):not(:last-child) { visibility: hidden; }
  .aix-pairs li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name share" "bar bar"; gap: 6px 12px; }
  .aix-pair-name { grid-area: name; }
  .aix-pair-bar { grid-area: bar; }
  .aix-pairs strong { grid-area: share; }
  /* On a phone the models are their marks (names stay for screen readers), so every column fits. */
  .aix-grid th[scope="row"] { min-width: 0; }
  .aix-grid th, .aix-grid td { padding: 10px 4px; }
  .aix-grid-model > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

/* Email updates (server/ai-index-updates.js): the section on the index and on each Quake Profile, and
   the pages of the confirm and unsubscribe links. */
.aix-updates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 20px clamp(28px, 5vw, 64px); align-items: start; }
.aix-updates-copy p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.aix-updates-form { display: grid; gap: 10px; }
.aix-updates-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.aix-updates-field { display: grid; flex: 1 1 200px; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 650; }
.aix-updates-field input, .aix-updates-field select { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #c9c4d3; border-radius: 10px; background: #fff; color: var(--ink); font: 400 16px/1.4 var(--body); }
/* The browser's own arrow sits against the select's edge, so the select draws its own chevron with
   room on both sides (on the left in right-to-left text), like the footer's language menu. */
.aix-updates-select { position: relative; display: block; }
.aix-updates-select::after { content: ''; position: absolute; inset-inline-end: 18px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: 0.7; pointer-events: none; }
.aix-updates-field select { appearance: none; -webkit-appearance: none; padding-inline-end: 46px; text-overflow: ellipsis; cursor: pointer; }
.aix-updates-field select:hover { border-color: #a49dbb; }
.aix-updates-field input:focus, .aix-updates-field select:focus { outline: 2px solid var(--accent-dark); outline-offset: 1px; border-color: var(--accent-dark); }
.aix-updates-field--error input { border-color: var(--red, #b42318); }
.aix-updates-fields .button { min-height: 46px; font-size: 14px; }
.aix-updates-error { color: var(--red, #b42318); font-size: 13px; font-weight: 500; line-height: 1.45; }
.aix-updates-alert { padding: 12px 14px; border-radius: 10px; background: #fdecea; color: #8a1c12; font-size: 14px; line-height: 1.5; }
.aix-updates-note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.aix-updates-note a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.aix-updates .report-trap, .aix-updates-page .report-trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.aix-updates-page { max-width: 720px; padding-bottom: clamp(48px, 6vw, 80px); }
.aix-updates-page h1 { margin-top: 14px; font: 580 clamp(32px, 4.4vw, 52px)/1.1 var(--heading); letter-spacing: -.04em; }
.aix-updates-page .resource-intro { margin-top: 16px; }
.aix-updates-page form, .aix-updates-page .ai-index-actions { margin-top: 26px; }
.aix-updates-page > p:last-child { margin-top: 28px; }
@media (max-width: 760px) { .aix-updates { grid-template-columns: 1fr; } }
