/*
 * Worth Finding (itsworthfinding.com), one-page site.
 * Two families: Schibsted Grotesk for headings, Instrument Sans for everything else.
 * Fonts are served from this site, not Google, so visitors' addresses are not sent to a third party. Latin subset only.
 */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: light;

  --floor: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --dark: #0a162c;
  --dark-2: #13233f;

  --ink: #0c1a33;
  --ink-2: #3a4763;
  --ink-3: #5d6984;
  --line: #e2e7f0;
  --line-2: #cfd7e5;

  --blue: #2343e8;
  --blue-hover: #1b34c4;
  --blue-text: #1c37c9;
  --blue-soft: #eaeeff;
  --teal: #0b9c8b;
  --spark: #ea5a1e;
  --spark-text: #b4400f;
  --good-text: #0a6747;
  --good-bg: #e5f5ee;
  --miss-text: #9f2028;
  --miss-bg: #fdecee;
  --off: #c9d1de;

  --font-head: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 64px;
  --radius: 16px;
  --shadow-card: 0 0 0 1px rgb(12 26 51 / 0.07), 0 1px 2px rgb(12 26 51 / 0.04), 0 18px 40px -24px rgb(12 26 51 / 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--floor);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.032em;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

::selection {
  background: rgb(35 67 232 / 0.18);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 50px;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 12px;
  font: 600 1rem/1 var(--font-body);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.18) inset,
    0 8px 20px -10px rgb(35 67 232 / 0.7);
}

.btn-primary:hover {
  background: var(--blue-hover);
}

.btn-quiet {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line-2) inset;
}

.btn-quiet:hover {
  background: var(--surface-2);
  box-shadow: 0 0 0 1px #b7c2d6 inset;
}

.btn-quiet-dark {
  background: transparent;
  color: #fff;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.28) inset;
}

.btn-quiet-dark:hover {
  background: rgb(255 255 255 / 0.06);
}

.btn-sm {
  height: 38px;
  padding: 0 0.95rem;
  border-radius: 10px;
  font-size: 0.9375rem;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(244 246 250 / 0.82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 rgb(12 26 51 / 0);
  transition: box-shadow 0.2s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.site-nav a {
  padding: 0.45rem 0.8rem;
  border-radius: 9px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.site-nav a:hover {
  background: rgb(12 26 51 / 0.05);
  color: var(--ink);
}

@media (max-width: 719px) {
  .site-nav {
    display: none;
  }
  .header-cta {
    margin-left: auto;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.75rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: calc(var(--header-h) * -1) 0 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(12 26 51 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(12 26 51 / 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

.hero-copy {
  max-width: 1000px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line) inset;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 550;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.accent {
  color: var(--blue);
}

.lede {
  max-width: 640px;
  margin: 1.5rem auto 0;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}

.hero .actions {
  justify-content: center;
  margin-top: 2.1rem;
}

.fine {
  margin-top: 0.9rem;
  color: var(--ink-3);
  font-size: 0.875rem;
}

@media (max-width: 539px) {
  .hero-copy {
    text-align: left;
  }
  .eyebrow {
    margin-bottom: 1.1rem;
  }
  .lede {
    margin-left: 0;
  }
  .hero .actions,
  .closing .actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}

/* ---------- Route card ---------- */

.route-card {
  max-width: 1000px;
  margin: clamp(2.75rem, 6vw, 4rem) auto 0;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.route-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 0 1.5rem;
}

.route-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.route-question {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue-text);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.toggle {
  display: inline-flex;
  flex: none;
  padding: 3px;
  border-radius: 11px;
  background: var(--floor);
  box-shadow: 0 0 0 1px var(--line) inset;
}

.toggle button {
  height: 34px;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  font: 600 0.875rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.toggle button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(12 26 51 / 0.1), 0 0 0 1px var(--line);
}

.route-legend {
  display: flex;
  gap: 1.1rem;
  padding: 0.85rem 1.5rem 0;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 550;
}

.route-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.swatch {
  display: inline-block;
  width: 16px;
  height: 3px;
  border-radius: 2px;
}

.swatch-search {
  background: var(--blue);
}

.swatch-ai {
  background: var(--teal);
}

.route-svg {
  display: block;
  width: 100%;
  height: auto;
  padding: 0.25rem 1rem 0.5rem;
  overflow: visible;
}

.ln {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke 0.45s var(--ease);
}

.ln-search {
  stroke: var(--blue);
}

.ln-ai {
  stroke: var(--teal);
}

.st circle {
  transition: fill 0.35s var(--ease), stroke 0.35s var(--ease);
}

.st-start circle,
.st-end circle {
  fill: var(--ink);
}

.st-search circle {
  fill: var(--blue);
}

.st-ai circle {
  fill: var(--teal);
}

.st .tick {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.3s;
}

.st .pulse {
  display: none;
}

.st-name {
  font: 600 15px var(--font-body);
  fill: var(--ink);
  transition: fill 0.3s;
}

.st-stuck {
  font: 600 13px var(--font-body);
  fill: var(--spark-text);
}

/* Before: the AI lane stops at "Cited". */
[data-state="before"] .ln-later {
  stroke: var(--off);
}

[data-state="before"] .st-later circle {
  fill: #fff;
  stroke: var(--off);
  stroke-width: 2;
}

[data-state="before"] .st-later .tick {
  opacity: 0;
}

[data-state="before"] .st-cited circle {
  stroke: var(--spark);
  stroke-width: 3;
}

[data-state="before"] .st-name-later {
  fill: var(--ink-3);
}

[data-state="before"] .st-name-stuck {
  fill: var(--spark-text);
}

[data-state="before"] .st .pulse {
  display: block;
  fill: none;
  stroke: var(--spark);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.2s var(--ease) infinite;
}

[data-state="after"] .st-stuck {
  opacity: 0;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Phone version of the route: two lanes as rows. */
.route-rows {
  display: none;
  margin: 0;
  padding: 1rem 1.25rem 0.5rem;
  list-style: none;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0;
}

.row + .row {
  border-top: 1px solid var(--line);
}

.row-label {
  flex: 0 0 100%;
  margin-bottom: 0.1rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.row-search .row-label {
  color: var(--blue-text);
}

.row-ai .row-label {
  color: var(--teal);
}

.pip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem 0.3rem 0.45rem;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line) inset;
  font-size: 0.875rem;
  font-weight: 600;
}

.pip::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
}

.row-search .pip::before {
  background: var(--blue);
}

.row-ai .pip::before {
  background: var(--teal);
}

[data-state="before"] .pip.later {
  color: var(--ink-3);
}

[data-state="before"] .pip.later::before {
  background: transparent;
  box-shadow: 0 0 0 1.5px var(--off) inset;
}

[data-state="before"] .pip.stuck {
  color: var(--spark-text);
  box-shadow: 0 0 0 1px rgb(234 90 30 / 0.35) inset;
  background: #fff6f1;
}

[data-state="before"] .pip.stuck::before {
  box-shadow: 0 0 0 2px var(--spark) inset;
}

@media (max-width: 719px) {
  .route-svg,
  .route-legend {
    display: none;
  }
  .route-rows {
    display: block;
  }
  .route-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 0;
  }
  .route-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .toggle {
    width: 100%;
  }
  .toggle button {
    flex: 1;
  }
}

.route-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.route-caption strong {
  color: var(--ink);
}

.cap-stat {
  flex: none;
  color: var(--ink-3);
  font-size: 0.875rem;
  white-space: nowrap;
}

.cap-stat b {
  margin-right: 0.3rem;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.stat-before {
  color: var(--spark-text);
}

.stat-after {
  color: var(--good-text);
}

[data-state="before"] .cap-after,
[data-state="before"] .stat-after,
[data-state="after"] .cap-before,
[data-state="after"] .stat-before {
  display: none;
}

@media (max-width: 719px) {
  .route-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(4rem, 9vw, 6.5rem) 0;
}

.section-tight {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3.5rem, 7vw, 5rem);
}

.section-white {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head p {
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: 1.125rem;
}

.h-small {
  max-width: 720px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.prose h2 {
  margin-bottom: 1.25rem;
}

.prose p {
  color: var(--ink-2);
  font-size: 1.125rem;
}

.prose p + p {
  margin-top: 1rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 899px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}

.stats li {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.6rem 1.5rem 1.5rem;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.9875rem;
}

.stat-figure {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.stat-figure span {
  color: var(--ink-3);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.source {
  margin-top: auto;
  padding-top: 0.4rem;
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.source a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

.source a:hover {
  color: var(--blue-text);
  text-decoration-color: currentColor;
}

@media (max-width: 799px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* ---------- Tables ---------- */

.table-card {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

thead th {
  padding: 0.8rem 1.1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-align: left;
  text-transform: uppercase;
}

tbody th,
tbody td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  text-align: left;
  vertical-align: top;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody th {
  color: var(--ink);
  font-weight: 600;
}

.compare .ours th,
.compare .ours td {
  background: var(--blue-soft);
  color: var(--ink);
}

.compare .ours th {
  color: var(--blue-text);
  box-shadow: inset 3px 0 0 var(--blue);
}

.bets th[scope="row"] {
  width: 38%;
}

.bets td.num {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 650;
  white-space: nowrap;
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.chip-good {
  background: var(--good-bg);
  color: var(--good-text);
}

.chip-miss {
  background: var(--miss-bg);
  color: var(--miss-text);
}

@media (max-width: 719px) {
  table,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: auto !important;
  }
  thead {
    display: none;
  }
  tbody tr {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
  }
  tbody tr:last-child {
    border-bottom: 0;
  }
  tbody th,
  tbody td {
    padding: 0;
    border: 0;
  }
  tbody th {
    margin-bottom: 0.35rem;
  }
  tbody td + td {
    margin-top: 0.2rem;
  }
  td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--ink-3);
    font-weight: 500;
  }
  .bets td:last-child {
    margin-top: 0.6rem;
  }
  .compare .ours th {
    box-shadow: none;
  }
  .compare .ours {
    background: var(--blue-soft);
    box-shadow: inset 3px 0 0 var(--blue);
  }
}

/* ---------- How it works ---------- */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 1.75rem 3.25rem;
  counter-increment: step;
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-2) inset;
  color: var(--blue-text);
  font: 650 0.9375rem/1 var(--font-head);
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1rem - 0.5px);
  top: 2.1rem;
  bottom: 0.3rem;
  width: 1px;
  background: var(--line-2);
}

.steps p {
  margin-top: 0.4rem;
  color: var(--ink-2);
  font-size: 1rem;
}

.answer-card {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 1.4rem;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.card-kicker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-3);
  font-size: 0.875rem;
  font-weight: 550;
}

.prompt {
  margin: 1rem 0 0;
  padding: 0 0 0 0.9rem;
  border-left: 3px solid var(--blue);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -0.012em;
}

.answer {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line) inset;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.answer-engine {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-chatgpt {
  background: #1baf7a;
}

mark {
  padding: 0 0.15em;
  border-radius: 4px;
  background: #fde7ee;
  color: #a3264f;
  font-weight: 600;
}

.verdict {
  margin-top: 1rem;
  color: var(--spark-text);
  font-size: 0.9375rem;
  font-weight: 600;
}

.verdict strong {
  color: var(--ink);
}

.sources {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.sources li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.src {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.why {
  flex: none;
  color: var(--ink-3);
}

.why-warn {
  color: var(--spark-text);
  font-weight: 600;
}

@media (max-width: 539px) {
  .sources li {
    flex-direction: column;
    gap: 0.1rem;
  }
  .src {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 899px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
  .answer-card {
    position: static;
  }
}

/* ---------- Never ---------- */

.never {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: 2rem;
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line) inset;
}

.never h3 {
  font-size: 1rem;
}

.never ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.never li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.never li::before {
  content: "";
  width: 12px;
  height: 12px;
  background: linear-gradient(45deg, transparent 44%, var(--miss-text) 44% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--miss-text) 44% 56%, transparent 56%);
}

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.plan-main {
  box-shadow:
    0 0 0 2px var(--blue),
    0 18px 40px -24px rgb(35 67 232 / 0.45);
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  margin-top: 0.75rem;
}

.amount {
  font-family: var(--font-head);
  font-size: 2.75rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.045em;
}

.per {
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.ticks {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--ink-2);
  font-size: 0.9875rem;
}

.ticks li {
  position: relative;
  padding-left: 1.75rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%231c37c9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 100% no-repeat,
    var(--blue-soft);
}

.plan-note {
  margin-top: auto;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.plan-note strong {
  color: var(--ink);
}

.price-foot {
  margin-top: 1.25rem;
  color: var(--ink-3);
  font-size: 0.875rem;
}

@media (max-width: 1079px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
}

.plan-lede {
  margin-top: 0.85rem;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 550;
  line-height: 1.4;
}

.plan .ticks {
  margin-top: 1.25rem;
}

.plan-cta {
  margin-top: 1rem;
  justify-content: center;
}

.plan .ticks + .plan-cta {
  margin-top: auto;
}

.plan-free {
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--ink-3), var(--ink-3)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink-3), var(--ink-3)) center / 2px 14px no-repeat;
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--blue-text);
}

.faq details p {
  max-width: 64ch;
  padding: 0 0 1.25rem;
  color: var(--ink-2);
}

@media (max-width: 799px) {
  .faq {
    grid-template-columns: 1fr;
  }
}

/* ---------- Closing ---------- */

.closing {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7rem) 0;
  background: var(--dark);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(166 188 255 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(166 188 255 / 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 75%);
}

.closing-inner {
  text-align: center;
}

.closing h2 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}

.closing-inner > p:first-of-type {
  margin-top: 1rem;
  color: #c3cee8;
  font-size: 1.125rem;
}

.closing .actions {
  justify-content: center;
  margin-top: 2rem;
}

.closing .fine {
  color: #9fb0d4;
}

.closing .fine a {
  color: #fff;
  text-underline-offset: 3px;
}

@media (max-width: 539px) {
  .closing-inner {
    text-align: left;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 2rem 0 2.5rem;
  background: var(--dark);
  border-top: 1px solid rgb(234 240 255 / 0.1);
  color: #8e9dbd;
  font-size: 0.8125rem;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.footer-inner p {
  max-width: 70ch;
  margin-left: auto;
  text-align: right;
}

.brand-sm {
  color: #fff;
  font-size: 1rem;
}

.brand-sm .brand-mark {
  width: 24px;
  height: 24px;
}

@media (max-width: 719px) {
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-inner p {
    margin-left: 0;
    text-align: left;
  }
}

/* ---------- Request dialog ---------- */

.request {
  width: min(480px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgb(12 26 51 / 0.08), 0 30px 70px -20px rgb(10 22 44 / 0.5);
  overflow: auto;
}

.request::backdrop {
  background: rgb(10 22 44 / 0.45);
  backdrop-filter: blur(3px);
}

.request[open] {
  animation: rise 0.28s var(--ease);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

.request-form,
.request-done {
  padding: 1.5rem;
}

.request-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.request h2 {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.close {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  margin: -0.2rem -0.4rem 0 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}

.close:hover {
  background: var(--floor);
  color: var(--ink);
}

.request-intro {
  margin: 0.5rem 0 1.25rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
}

.optional {
  color: var(--ink-3);
  font-weight: 450;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 0;
  border-radius: 11px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-2) inset;
  color: var(--ink);
  font: 400 1rem/1.45 var(--font-body);
  transition: box-shadow 0.15s;
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8f9ab0;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--blue) inset, 0 0 0 4px rgb(35 67 232 / 0.12);
}

.field input[aria-invalid="true"] {
  box-shadow: 0 0 0 2px var(--miss-text) inset;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 11px;
  background: var(--miss-bg);
  color: var(--miss-text);
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-error a {
  color: inherit;
  font-weight: 650;
}

.request-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.request-actions .btn {
  height: 46px;
}

.request-done {
  text-align: center;
}

.request-done:focus {
  outline: none;
}

.done-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0.5rem auto 1rem;
  border-radius: 50%;
  background: var(--good-bg);
  color: var(--good-text);
}

.request-done p {
  margin: 0.6rem auto 1.4rem;
  max-width: 34ch;
  color: var(--ink-2);
}

.request-done .request-actions {
  justify-content: center;
}

[hidden] {
  display: none !important;
}

/* ---------- Guides (roadmap WF) ---------- */

.guide-top {
  padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(2rem, 4vw, 2.75rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  color: var(--ink-3);
  font-size: 0.875rem;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--line-2);
}

.crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--blue-text);
}

.guide-top h1 {
  max-width: none;
  font-size: clamp(2.1rem, 4.6vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.038em;
}

.guide-answer {
  max-width: 720px;
  margin-top: 1.25rem;
  color: var(--ink);
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

.guide-answer + .guide-answer {
  margin-top: 0.75rem;
}

.guide-meta {
  margin-top: 1.5rem;
  color: var(--ink-3);
  font-size: 0.875rem;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(4rem, 8vw, 6rem);
}

.guide-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  font-size: 0.875rem;
}

.guide-toc p {
  margin-bottom: 0.6rem;
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.guide-toc ol {
  margin: 0;
  padding: 0 0 0 0.9rem;
  border-left: 1px solid var(--line);
  list-style: none;
}

.guide-toc li + li {
  margin-top: 0.5rem;
}

.guide-toc a {
  color: var(--ink-2);
  text-decoration: none;
}

.guide-toc a:hover {
  color: var(--blue-text);
}

@media (max-width: 959px) {
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .guide-toc {
    display: none;
  }
}

.guide-body {
  min-width: 0;
}

.guide-body > * + * {
  margin-top: 1.1rem;
}

.guide-body > :first-child {
  margin-top: 0;
}

.guide-body h2 {
  margin-top: 3rem;
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.guide-body h3 {
  margin-top: 2rem;
}

.guide-body h2 + *,
.guide-body h3 + * {
  margin-top: 0.75rem;
}

.guide-body p,
.guide-body li {
  color: var(--ink-2);
}

.guide-body strong {
  color: var(--ink);
  font-weight: 600;
}

.guide-body ul,
.guide-body ol {
  padding-left: 1.25rem;
}

.guide-body li + li {
  margin-top: 0.45rem;
}

.guide-body a:not(.btn, .card-link) {
  color: var(--blue-text);
  text-decoration: underline;
  text-decoration-color: rgb(28 55 201 / 0.3);
  text-underline-offset: 3px;
}

.guide-body a:not(.btn, .card-link):hover {
  text-decoration-color: currentColor;
}

.guide-body .table-card {
  margin-top: 1.25rem;
  box-shadow: 0 0 0 1px var(--line);
}

.guide-body table caption {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.8125rem;
  text-align: left;
  caption-side: bottom;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.guide-body td.num,
.guide-body th.num {
  white-space: nowrap;
}

.guide-body .table-note {
  color: var(--ink-3);
  font-size: 0.875rem;
}

.guide-body code {
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
}

.guide-body pre {
  overflow-x: auto;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: var(--dark);
  color: #dfe6f5;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.guide-body pre code {
  padding: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font-size: inherit;
}

.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0 !important;
  list-style: none;
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}

.figures li {
  margin: 0 !important;
  padding: 1.25rem 1.2rem;
  background: var(--surface);
  font-size: 0.9375rem;
}

.figures b {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.04em;
}

@media (max-width: 639px) {
  .figures {
    grid-template-columns: 1fr;
  }
}

.guide-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem !important;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.guide-cta p {
  max-width: 44ch;
  color: var(--ink);
  font-weight: 500;
}

.guide-cta p span {
  display: block;
  color: var(--ink-3);
  font-size: 0.9375rem;
  font-weight: 400;
}

.guide-sources {
  margin-top: 3.5rem !important;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.guide-sources h2 {
  margin-top: 0;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.guide-sources ol {
  font-size: 0.875rem;
}

.guide-sources li {
  color: var(--ink-3);
}

.guide-related {
  margin-top: 2.5rem !important;
}

.guide-related h2 {
  margin-top: 0;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}







.table-source {
  margin-top: 0.85rem;
  padding-top: 0;
}

.faq-more {
  margin-top: 1.75rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.faq-more a {
  color: var(--blue-text);
  text-decoration: underline;
  text-decoration-color: rgb(28 55 201 / 0.3);
  text-underline-offset: 3px;
}

.faq-more a:hover {
  text-decoration-color: currentColor;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

.footer-nav a {
  color: #c3cee8;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
}

/* ---------- Guides: header with chart, cards and index (roadmap WF) ---------- */

.guide-top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.guide-top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(12 26 51 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(12 26 51 / 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 45% 80% at 85% 45%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 45% 80% at 85% 45%, #000 20%, transparent 70%);
}

.guide-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.gcard-kind {
  color: var(--blue-text);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.guide-intro .gcard-kind {
  margin-bottom: 0.85rem;
}

/* The short answer: a label, the answer itself in ink, then one quieter line of support (roadmap WF) */

.short-answer {
  max-width: 36rem;
  margin-top: 1.75rem;
}

.short-label {
  margin-bottom: 0.35rem;
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.short-answer .short-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
  color: var(--blue-text);
}

.short-answer .short-label::before {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.short-lead {
  color: var(--ink);
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: -0.006em;
  text-wrap: pretty;
}

.short-more {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.short-answer code,
.short-answer .nowrap {
  white-space: nowrap;
}

.short-answer code {
  font-size: 0.85em;
}

.guide-figure,
.gcard-viz {
  margin: 0;
}

.guide-figure {
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.guide-figure figcaption,
.gcard-viz figcaption {
  margin-top: 1rem;
  color: var(--ink-3);
  font-size: 0.8125rem;
  line-height: 1.45;
}

@media (max-width: 959px) {
  .guide-head {
    grid-template-columns: 1fr;
  }
  .guide-figure .viz-wrap,
  .guide-figure .viz-legend {
    max-width: 460px;
  }
}

/* The charts */

.viz {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.viz text {
  font-family: var(--font-body);
}

.viz .lab {
  fill: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

.viz .lab-sm {
  fill: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
}

.viz .val {
  fill: var(--ink-2);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.viz .tick {
  fill: var(--ink-3);
  font-size: 11px;
}

.viz .grid {
  stroke: var(--line-2);
  stroke-dasharray: 2 4;
}

.viz .track {
  fill: var(--line);
}

.viz .c-blue {
  fill: var(--blue);
}

.viz .c-teal {
  fill: var(--teal);
}

.viz .c-spark {
  fill: var(--spark);
}

.viz .dot-edge {
  stroke: #fff;
  stroke-width: 2.5;
}

.viz .rail {
  stroke: var(--line-2);
  stroke-width: 2;
}

.viz .band-blue {
  fill: var(--blue-soft);
}

.viz .band-teal {
  fill: rgb(11 156 139 / 0.12);
}

.viz .band-text {
  font-size: 11.5px;
  font-weight: 650;
}

.viz .c-blue-text {
  fill: var(--blue-text);
}

.viz .c-teal-text {
  fill: #077468;
}

.viz .node {
  stroke: #fff;
  stroke-width: 3;
}

.viz .node.both {
  fill: var(--blue);
}

.viz .node.ai {
  fill: var(--teal);
}

.viz .node.end {
  fill: var(--ink);
}

.viz .d-blue {
  fill: rgb(35 67 232 / 0.2);
}

.viz .d-teal {
  fill: var(--teal);
}

.viz .d-spark {
  fill: var(--spark);
}

.viz .d-hollow {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.2;
}

.viz .sq-hollow {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1.3;
}

.viz .brace {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.2;
}

.viz-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.viz-legend li {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.key {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translateY(0.05em);
}

.key.d-blue {
  background: rgb(35 67 232 / 0.2);
}

.key.d-teal {
  background: var(--teal);
}

.key.d-spark {
  background: var(--spark);
}

.key.d-hollow {
  box-shadow: inset 0 0 0 1.2px var(--ink-3);
}

/* Contents: highlight where the reader is; a folded list on phones */

.guide-toc li {
  position: relative;
}

.guide-toc a.is-active {
  color: var(--ink);
  font-weight: 600;
}

.guide-toc a.is-active::before {
  content: "";
  position: absolute;
  top: 0.15em;
  bottom: 0.15em;
  left: calc(-0.9rem - 1px);
  width: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.toc-mobile {
  display: none;
}

.guide-body > .toc-mobile + * {
  margin-top: 0;
}

@media (max-width: 959px) {
  .toc-mobile {
    display: block;
    padding: 0.95rem 1.15rem;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
  }
  .toc-mobile summary {
    display: flex;
    justify-content: space-between;
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
  }
  .toc-mobile summary::-webkit-details-marker {
    display: none;
  }
  .toc-mobile summary::after {
    content: "+";
    color: var(--ink-3);
    font-weight: 400;
  }
  .toc-mobile[open] summary::after {
    content: "−";
  }
  .toc-mobile ol {
    margin: 0.75rem 0 0.15rem;
    padding-left: 1.2rem;
    font-size: 0.9375rem;
  }
  .toc-mobile a {
    color: var(--ink-2) !important;
    text-decoration: none !important;
  }
  .guide-body > .toc-mobile + * {
    margin-top: 2.25rem;
  }
}

/* Related guides at the end of each guide */

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem !important;
  padding: 0 !important;
  list-style: none;
}

.rcard {
  position: relative;
  margin: 0 !important;
  padding: 1.15rem 1.25rem 1.2rem;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.rcard:hover {
  box-shadow: 0 0 0 1px var(--blue), 0 14px 30px -22px rgb(35 67 232 / 0.55);
  transform: translateY(-1px);
}

.rcard .card-link {
  display: block;
  margin-top: 0.4rem;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.rcard .card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.rcard p:last-child {
  margin-top: 0.45rem;
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (max-width: 639px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* The guides index */

.guides-hero {
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.guides-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.guides-hero .guide-answer {
  max-width: 620px;
  margin-top: 1.4rem;
  color: var(--ink-2);
}

.guides-hero::before {
  mask-image: radial-gradient(ellipse 55% 90% at 90% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 55% 90% at 90% 40%, #000 20%, transparent 70%);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.75rem;
  margin: 2.25rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--ink-3);
  font-size: 0.875rem;
}

.facts b {
  display: block;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-guides {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0 clamp(4rem, 8vw, 6rem);
}

.gcard {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.gcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgb(35 67 232 / 0.3), 0 28px 56px -30px rgb(12 26 51 / 0.4);
}

.gcard-viz {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 250px;
  padding: 1.75rem 1.75rem 1.25rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.gcard-viz .viz-wrap {
  margin-block: auto;
}

.gcard-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem 1.75rem 1.6rem;
}

.gcard h2 {
  margin-top: 0.55rem;
  font-size: 1.375rem;
  line-height: 1.22;
  letter-spacing: -0.022em;
}

.gcard .card-link {
  color: inherit;
  text-decoration: none;
}

.gcard .card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.gcard .card-link:focus-visible {
  outline: none;
}

.gcard:has(.card-link:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.gcard-summary {
  margin-top: 0.7rem;
  color: var(--ink-2);
  font-size: 1rem;
}

.gcard-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.gcard-go {
  color: var(--blue-text);
  font-weight: 600;
  white-space: nowrap;
}

.gcard-go::after {
  content: " →";
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

.gcard:hover .gcard-go::after {
  transform: translateX(3px);
}

.gcard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gcard-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-template-areas: "text viz";
}

.gcard-feature .gcard-viz {
  grid-area: viz;
  min-height: 0;
  padding: 2.25rem 2.5rem 1.75rem;
  border-bottom: 0;
  border-left: 1px solid var(--line);
}

.gcard-feature .gcard-text {
  grid-area: text;
  justify-content: center;
  padding: 2.5rem;
}

.gcard-feature h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.gcard-feature .gcard-summary {
  font-size: 1.0625rem;
}

.gcard-feature .gcard-meta {
  margin-top: 1.75rem;
}

@media (max-width: 719px) {
  .gcard-feature {
    grid-template-columns: 1fr;
    grid-template-areas: "viz" "text";
  }
  .gcard-feature .gcard-viz {
    padding: 1.75rem 1.75rem 1.25rem;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .gcard-feature .gcard-text {
    padding: 1.5rem 1.75rem 1.6rem;
  }
}

@media (max-width: 719px) {
  .gcard-grid {
    grid-template-columns: 1fr;
  }
  .gcard-viz {
    min-height: 0;
    padding: 1.4rem 1.25rem 1.1rem;
  }
  .gcard-text,
  .gcard-feature .gcard-text {
    padding: 1.25rem 1.25rem 1.4rem;
  }
  .gcard-feature .gcard-viz {
    padding: 1.4rem 1.25rem 1.1rem;
  }
  .facts {
    gap: 1rem 1.75rem;
  }
  .facts li {
    flex: 1 1 40%;
  }
}

.method {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.method li {
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
}

.method p {
  margin-top: 0.5rem;
  color: var(--ink-2);
  font-size: 0.9875rem;
}

@media (max-width: 799px) {
  .method {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 899px) {
  .viz .lab,
  .viz .val {
    font-size: 14px;
  }
  .viz .lab-sm,
  .viz .band-text {
    font-size: 13px;
  }
  .viz .tick {
    font-size: 12.5px;
  }
}

@media (max-width: 719px) {
  .gcard-go {
    display: none;
  }
}

/* Index hero: heading left, what went into the guides right */

.guides-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.facts-card {
  padding: 1.4rem 1.5rem 1.25rem;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.facts-card .facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0.6rem 0 0;
  padding: 0;
  border-top: 0;
  border-radius: 14px;
  background: var(--line);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}

.facts-card .facts li {
  flex: none;
  padding: 1rem 1.05rem 1.05rem;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.facts-card .facts b {
  margin-bottom: 0.3rem;
  font-size: 1.9rem;
}

.facts-date {
  margin-top: 0.85rem;
  color: var(--ink-3);
  font-size: 0.8125rem;
}

@media (max-width: 959px) {
  .guides-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .facts-card {
    max-width: 520px;
  }
}

@media (max-width: 719px) {
  .facts-card {
    padding: 1.1rem 1.1rem 1rem;
  }
  .facts-card .facts li {
    flex: none;
    padding: 0.85rem 0.9rem 0.9rem;
  }
  .facts-card .facts b {
    font-size: 1.6rem;
  }
}

@media (min-width: 720px) and (max-width: 899px) {
  .gcard-grid {
    grid-template-columns: 1fr;
  }
  .gcard-grid .gcard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "text viz";
  }
  .gcard-grid .gcard-viz {
    grid-area: viz;
    min-height: 0;
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }
  .gcard-grid .gcard-text {
    grid-area: text;
    justify-content: center;
  }
}

@media (min-width: 720px) and (max-width: 959px) {
  .guide-figure {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 210px);
    grid-template-rows: auto 1fr;
    column-gap: 1.75rem;
    align-items: start;
  }
  .guide-figure .viz-wrap {
    grid-row: 1 / span 2;
    align-self: center;
  }
  .guide-figure .viz-legend {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  .guide-figure figcaption {
    grid-column: 2;
    align-self: end;
  }
  .guide-figure .viz-legend + figcaption {
    margin-top: 1rem;
  }
  .guide-figure:not(:has(.viz-legend)) figcaption {
    grid-row: 1 / span 2;
    align-self: center;
    margin-top: 0;
  }
}

.guide-body td .sub {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink-3);
  font-size: 0.8125rem;
  white-space: normal;
}

.viz .cell-on-blue {
  fill: var(--blue);
}

.viz .cell-part-blue {
  fill: rgb(35 67 232 / 0.25);
}

.viz .cell-on-teal {
  fill: var(--teal);
}

.viz .cell-part-teal {
  fill: rgb(11 156 139 / 0.25);
}

.viz .cell-off {
  fill: var(--floor);
  stroke: var(--line-2);
  stroke-width: 1.2;
  stroke-dasharray: 3 3;
}
