/* Shared by the blog, the about page and the 404 page. The landing page keeps its own inline styles. */
:root {
  --accent: #7c5cfc;
  --accent-soft: rgba(124, 92, 252, 0.16);
  --link: #ab9cff;
  --bg: #111113;
  --card: #1c1c1e;
  --border: #2a2a2e;
  --text: #fff;
  --prose: rgba(255, 255, 255, 0.8);
  --body: rgba(255, 255, 255, 0.7);
  --secondary: rgba(255, 255, 255, 0.54);
  --know: #34c77b;
  --know-soft: rgba(52, 199, 123, 0.16);
  --again: #ff8a8a;
  --again-soft: rgba(255, 138, 138, 0.14);
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; }

.glow {
  position: absolute;
  inset: -30vh 0 auto;
  height: 80vh;
  background: radial-gradient(50% 50% at 50% 50%, rgba(124, 92, 252, 0.18), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.wrap { width: min(1080px, 100% - 48px); margin: 0 auto; }

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.brand img { width: 32px; height: 32px; }

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav .nav-cta {
  margin-left: 6px;
  padding: 9px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.nav .nav-cta:hover { background: #8a6dff; }

/* Buttons */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(124, 92, 252, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(124, 92, 252, 0.9); }

/* Page intro (blog index, about, 404) */

.intro { max-width: 720px; padding: 48px 0 8px; }
.intro.centered { margin: 0 auto; text-align: center; }

.eyebrow {
  color: var(--link);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.intro h1 {
  margin-top: 12px;
  font-size: clamp(36px, 5.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.intro p.lede { margin-top: 18px; color: var(--body); font-size: 19px; text-wrap: pretty; }

/* Blog index */

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  margin: 44px 0 96px;
}

.post-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.post-card:hover { border-color: rgba(124, 92, 252, 0.55); transform: translateY(-3px); }

.post-card .visual {
  display: grid;
  place-items: center;
  height: 180px;
  padding: 20px;
  background:
    radial-gradient(120% 90% at 15% 0%, color-mix(in srgb, var(--c, #7c5cfc) 38%, transparent), transparent 65%),
    radial-gradient(90% 80% at 100% 100%, rgba(40, 157, 169, 0.22), transparent 60%),
    #1a1730;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.post-card .body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; }
.post-card .meta { color: var(--secondary); font-size: 13px; font-weight: 500; }
.post-card h2 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; text-wrap: balance; }
.post-card p { color: var(--body); font-size: 15px; }

/* Card visuals */

.v-card {
  width: min(250px, 100%);
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(17, 17, 19, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.8);
  font-size: 13px;
  color: var(--body);
}

.v-card b { display: block; color: var(--text); font-size: 20px; letter-spacing: -0.01em; }
.v-card i { display: block; margin: 2px 0 10px; color: var(--link); font-style: normal; font-weight: 500; }
.v-card span { display: block; padding-top: 8px; border-top: 1px solid var(--border); }
.v-card span strong { color: var(--text); font-weight: 600; }

.v-ladder { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 270px; }

.v-ladder span, .ladder span {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(124, 92, 252, calc(0.08 + var(--i) * 0.05));
  border: 1px solid rgba(124, 92, 252, calc(0.2 + var(--i) * 0.09));
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.v-number { text-align: center; }
.v-number b { display: block; font-size: 64px; line-height: 1; letter-spacing: -0.04em; font-weight: 800; }
.v-number span { display: block; margin-top: 8px; color: var(--body); font-size: 14px; }

.v-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; }

.v-bars i {
  width: 22px;
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #ab9cff, rgba(124, 92, 252, 0.45));
}

.v-bars.muted i { background: rgba(255, 255, 255, 0.22); }
.v-bars.muted i.us { background: var(--accent); }

.v-widget { width: min(270px, 100%); height: auto; border-radius: 16px; box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.8); }

.v-chat { display: grid; gap: 6px; width: min(290px, 100%); }

.v-chat span {
  justify-self: start;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 16px 16px 16px 5px;
  background: var(--b);
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.8);
}

.v-chat span + span { justify-self: end; border-radius: 16px 16px 5px 16px; }

/* Article */

.article { max-width: 720px; margin: 0 auto; padding: 24px 0 40px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--secondary); font-size: 14px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }

.article h1 {
  margin-top: 18px;
  font-size: clamp(34px, 5.2vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.033em;
  font-weight: 800;
  text-wrap: balance;
}

.dek { margin-top: 20px; color: var(--body); font-size: 20px; line-height: 1.55; text-wrap: pretty; }

.byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--secondary); font-size: 14px; }
.byline img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline a { color: var(--text); font-weight: 600; text-decoration: none; }
.byline a:hover { color: var(--link); }

.takeaways {
  margin-top: 36px;
  padding: 22px 26px 24px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
}

.takeaways h2 { color: var(--secondary); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.takeaways ul { margin-top: 12px; padding-left: 1.2em; color: var(--prose); font-size: 16.5px; line-height: 1.6; }
.takeaways li + li { margin-top: 8px; }
.takeaways li::marker { color: var(--accent); }

.prose { margin-top: 40px; color: var(--prose); font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 1.15em; }

.prose h2 {
  margin-top: 2.2em;
  color: var(--text);
  font-size: clamp(25px, 3.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.022em;
  font-weight: 700;
  text-wrap: balance;
  scroll-margin-top: 24px;
}

.prose h3 { margin-top: 1.8em; color: var(--text); font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }

.prose a { color: var(--link); text-decoration: underline; text-decoration-color: rgba(171, 156, 255, 0.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--link); }
.prose a.cta { color: #fff; text-decoration: none; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--secondary); }

.table-wrap {
  position: relative;
  overflow-x: auto;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
}

.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; white-space: nowrap; }
.prose tr + tr td, .prose thead + tbody td { border-top: 1px solid var(--border); }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose caption { padding: 14px 16px 0; color: var(--secondary); font-size: 14px; text-align: left; caption-side: bottom; padding-bottom: 14px; }

.prose figure { margin-top: 2em; margin-bottom: 2em; }
.prose figcaption { margin-top: 12px; color: var(--secondary); font-size: 14px; line-height: 1.5; text-align: center; text-wrap: balance; }

.panel {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
}

/* Figure: comparison bars */

.compare { display: grid; gap: 14px; }
.compare div { display: grid; grid-template-columns: var(--lw, 150px) 1fr auto; align-items: center; gap: 14px; font-size: 15px; }
.compare i { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.compare s { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--c, var(--accent)); }
.compare b { min-width: var(--vw, 3em); color: var(--text); font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.compare > p { color: var(--text); font-size: 15px; font-weight: 600; }
.compare > div + p { margin-top: 10px; }

/* Figure: example flashcard */

.flashcard { max-width: 520px; margin-left: auto; margin-right: auto; }
.flashcard .word { color: var(--text); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.flashcard .meaning { margin-top: 2px; color: var(--link); font-size: 17px; font-weight: 500; }
.flashcard ol { margin-top: 16px; padding: 0; list-style: none; font-size: 16px; line-height: 1.5; }
.flashcard li { padding: 12px 0; border-top: 1px solid var(--border); }
.flashcard li + li { margin-top: 0; }
.flashcard li b { color: var(--text); font-weight: 600; }
.flashcard li span { display: block; color: var(--secondary); font-size: 14.5px; }

/* Figure: interval ladder */

.ladder { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.ladder span { font-size: 14px; padding: 7px 13px; }
.ladder b { color: var(--secondary); font-weight: 400; }

/* Figure: review timeline (square-root day axis) */

.timeline { position: relative; height: 64px; margin: 8px 14px 0; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; border-top: 2px solid var(--border); }

.timeline span {
  position: absolute;
  top: 0;
  left: var(--x);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--secondary);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.timeline span::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--text), 0 0 12px 2px rgba(124, 92, 252, 0.6);
}

/* Figure: phone with widget */

.phone {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 26px;
  border-radius: 36px;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(124, 92, 252, 0.45), transparent 60%),
    radial-gradient(100% 80% at 100% 100%, rgba(40, 157, 169, 0.35), transparent 60%),
    #1a1730;
  border: 1px solid var(--border);
}

.phone img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.7); }
.phone .apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.phone .apps i { aspect-ratio: 1; border-radius: 13px; background: rgba(255, 255, 255, 0.08); }

/* Figure: a card as the app shows it. Two emoji characters chat in front of the word's scene
   (`--s`, its colour corner to corner; emojis at 75%, `--z` their size in fractions of the height
   or half the width; a black overlay), white bubble left, violet `.reply` right, each line's
   translation under it. */
.chat {
  position: relative;
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(118deg, color-mix(in srgb, var(--s) 88%, #fff), var(--s), color-mix(in srgb, var(--s) 84%, #000));
}

.chat .scene { position: absolute; inset: 0; container-type: size; }
.chat .scene i { position: absolute; font-size: calc(var(--z) * min(100cqh, 50cqw)); font-style: normal; line-height: 1; opacity: 0.75; transform: translate(-50%, -50%) rotate(var(--r)); }
.chat .scene::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); }
.chat > div:not(.scene) { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; justify-items: start; gap: 4px 10px; }
.chat > div.reply { grid-template-columns: minmax(0, 1fr) auto; justify-items: end; text-align: right; }
.chat .who { grid-row: 1; display: grid; place-items: center; width: 40px; height: 40px; font-size: 32px; font-style: normal; line-height: 1; }
.chat .reply .who { grid-column: 2; }

.chat p {
  max-width: 88%;
  padding: 10px 16px;
  border-radius: 20px 20px 20px 6px;
  background: #fff;
  color: #17171a;
  font-size: 18px;
  line-height: 1.4;
  text-align: left;
}

.chat .reply p { grid-column: 1; border-radius: 20px 20px 6px 20px; background: #7c5cfc; color: #fff; }
.chat b { font-weight: 700; }
.chat span { grid-column: 2; max-width: 88%; color: rgba(255, 255, 255, 0.92); font-size: 14.5px; line-height: 1.45; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.chat .reply span { grid-column: 1; }

/* Figure: scene colours and what they evoke */

.prose .swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}

.prose .swatches li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card);
  color: var(--body);
  font-size: 15px;
  line-height: 1.45;
}

.swatches b { padding: 4px 12px; border-radius: 14px 14px 14px 5px; background: var(--b); color: #fff; font-size: 14.5px; font-weight: 600; }

/* Figure: tiles side by side */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.tiles > div { padding: 18px 20px; border-radius: 18px; background: var(--card); }
.tiles b { display: block; color: var(--text); font-size: 17px; font-weight: 600; line-height: 1.3; }
.tiles p { margin-top: 6px; color: var(--body); font-size: 15.5px; line-height: 1.5; }
.prose .tiles ul { display: grid; gap: 6px; margin-top: 12px; padding: 0; list-style: none; }
.prose .tiles li { margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); color: var(--prose); font-size: 15px; line-height: 1.45; }

/* Tiles of app chips (ours in the accent), and pros/cons tiles with a green or red dot */

.prose .tiles .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.prose .tiles .chips li { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--text); font-size: 14px; line-height: 1.4; }
.prose .tiles .chips li.us { background: var(--accent); }

/* App icons (landing/logos/*.webp, 128px squares from the app stores), rounded like on a phone */

.app-icon { flex: none; display: inline-block; border-radius: 23%; object-fit: cover; vertical-align: middle; }
.chips .app-icon { width: 20px; height: 20px; border-radius: 6px; }

.prose .picks { padding: 0; list-style: none; }
.prose .picks li, .prose .picks-us { display: flex; align-items: flex-start; gap: 12px; }
.prose .picks li + li { margin-top: 10px; }
.picks .app-icon, .picks-us .app-icon { width: 28px; height: 28px; margin-top: 2px; }

.prose .app-title { display: flex; align-items: center; gap: 14px; }
.prose h3.app-title { margin-top: 2.4em; font-size: 22px; }
.prose h2 + h3.app-title { margin-top: 0.9em; }
.app-title .app-icon { width: 44px; height: 44px; }

.prose .note { color: var(--secondary); font-size: 14px; }

.pc b { display: flex; align-items: center; gap: 8px; }
.pc b::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--know); }
.pc > div + div b::before { background: var(--again); }

/* An app's key facts and its links */

.prose .app-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.app-facts div { padding: 10px 14px; border-radius: 14px; background: var(--card); }
.app-facts dt { color: var(--secondary); font-size: 13px; line-height: 1.4; }
.app-facts dd { margin-top: 2px; color: var(--text); font-size: 15px; line-height: 1.4; }

.prose .app-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.prose .app-links a { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--text); font-size: 14.5px; font-weight: 500; line-height: 1.4; text-decoration: none; transition: background-color 0.2s ease; }
.prose .app-links a:hover { background: var(--accent-soft); }
.prose .app-links a::after { content: " ↗"; color: var(--secondary); }

/* Figure: feature matrix. Filled, half and empty dots (yes, partly, no) in one hue; the app
   column stays pinned while the table scrolls sideways on phones. */

.prose .matrix th, .prose .matrix td { padding-left: 12px; padding-right: 12px; text-align: center; vertical-align: middle; }
.prose .matrix thead th { min-width: 6.6em; color: var(--secondary); font-size: 13px; font-weight: 600; line-height: 1.3; white-space: normal; vertical-align: bottom; }
.prose .matrix th:first-child { position: sticky; left: 0; z-index: 1; min-width: 0; padding-left: 16px; background: var(--card); text-align: left; white-space: nowrap; }
.prose .matrix tbody th { border-top: 1px solid var(--border); }
.prose .matrix tbody th a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.matrix .app-icon { width: 24px; height: 24px; }
.prose .matrix tbody th a:hover { color: var(--link); }
.prose .matrix small { display: block; margin-top: 4px; color: var(--secondary); font-size: 12.5px; line-height: 1.3; }
.prose .matrix tr.us > * { background: color-mix(in srgb, var(--accent) 14%, var(--card)); }
.prose .legend { margin-top: 12px; color: var(--secondary); font-size: 14px; line-height: 1.5; text-align: center; text-wrap: balance; }
.legend .dot { margin: 0 4px 0 10px; }
.legend .dot:first-child { margin-left: 0; }

.dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; vertical-align: -1px; box-shadow: inset 0 0 0 2px var(--link); }
.dot.y { background: var(--link); }
.dot.p { background: linear-gradient(90deg, var(--link) 50%, transparent 50%); }
.dot.n { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28); }
.na { color: var(--secondary); font-size: 13px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Figure: yearly price bars on a $0–150 axis (--max), hairline grid every $25. Ours in the
   accent, the others grey; hover, focus or tap shows the monthly price in `.tip`. */

.price { --max: 150; --lw: 164px; --grid: rgba(255, 255, 255, 0.07); position: relative; }
.prose .bars { position: relative; display: grid; gap: 6px; padding: 0; list-style: none; }
.bars::before { content: ""; position: absolute; top: -8px; bottom: -8px; left: calc(var(--lw) + 14px); right: 0; border-right: 1px solid var(--grid); background: linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / calc(100% / 6) 100%; pointer-events: none; }
.prose .bars li { position: relative; display: grid; grid-template-columns: var(--lw) minmax(0, 1fr); align-items: center; gap: 14px; margin: 0; padding: 3px 0; border-radius: 8px; color: var(--prose); font-size: 15px; line-height: 1.3; outline: none; }
.bars i { display: flex; align-items: center; font-style: normal; }
.bars s { flex: none; width: calc(var(--v) / var(--max) * 100%); height: 20px; border-radius: 0 4px 4px 0; background: #63636f; transition: filter 0.15s ease; }
.bars b { margin-left: 8px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars li > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bars .app-icon { width: 20px; height: 20px; border-radius: 5px; }
.bars .us span { color: var(--text); font-weight: 600; }
.bars .us s { background: var(--accent); }
.bars li:hover s, .bars li:focus-visible s { filter: brightness(1.3); }
.bars li:focus-visible { box-shadow: 0 0 0 2px var(--accent-soft); }

.axis { position: relative; height: 18px; margin: 12px 0 0 calc(var(--lw) + 14px); color: var(--secondary); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.axis span { position: absolute; left: calc(var(--t) / var(--max) * 100%); transform: translateX(-50%); }
.axis span:last-child { transform: translateX(-100%); }

.tip { position: absolute; z-index: 2; max-width: 270px; padding: 9px 12px; border-radius: 12px; background: #2c2c33; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.85); color: var(--body); font-size: 13.5px; line-height: 1.45; pointer-events: none; }
.tip strong { display: block; color: var(--text); font-size: 15px; }

.prose details.data summary { display: inline-flex; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--text); font-size: 14.5px; font-weight: 500; cursor: pointer; list-style: none; }
.prose details.data summary::-webkit-details-marker { display: none; }
.prose details.data[open] summary { background: var(--accent-soft); }
.prose details.data .table-wrap { margin-top: 12px; }

/* FAQ and sources */

.faq h3 { font-size: 19px; }
.sources { font-size: 15px; line-height: 1.6; color: var(--body); }
.sources li + li { margin-top: 0.6em; }

/* Product call to action inside articles */

.promo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 56px;
  padding: 26px 28px;
  border-radius: 24px;
  background:
    radial-gradient(100% 120% at 0% 0%, rgba(124, 92, 252, 0.3), transparent 60%),
    var(--card);
  border: 1px solid rgba(124, 92, 252, 0.45);
}

.promo img { width: 64px; height: 64px; }
.promo h2 { font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 700; }
.promo p { margin-top: 6px; color: var(--body); font-size: 15.5px; }
.promo .cta { margin-top: 16px; padding: 12px 20px; font-size: 15px; }

/* Related articles */

.related { margin-top: 64px; }
.related h2 { color: var(--secondary); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.related ul { display: grid; gap: 12px; margin-top: 14px; padding: 0; list-style: none; }

.related a {
  display: block;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.related a:hover { border-color: rgba(124, 92, 252, 0.55); }
.related b { display: block; font-size: 16.5px; font-weight: 600; }
.related span { display: block; margin-top: 2px; color: var(--secondary); font-size: 14px; }

/* About */

.founder {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 40px;
  padding: 28px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--border);
}

.founder img { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--accent-soft); }
.founder h2 { font-size: 26px; letter-spacing: -0.02em; font-weight: 700; }
.founder .role { margin-top: 2px; color: var(--link); font-weight: 500; }
.founder p { margin-top: 12px; color: var(--body); font-size: 16px; }

.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.links a:hover { border-color: var(--accent); }
.links svg { width: 16px; height: 16px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.facts div {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--body);
  font-size: 15px;
  line-height: 1.45;
}

.facts b { display: block; margin-bottom: 4px; color: var(--text); font-size: 26px; letter-spacing: -0.02em; font-weight: 700; }

/* Footer */

.site-footer { margin-top: 40px; border-top: 1px solid var(--border); }

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 40px;
  color: var(--secondary);
  font-size: 14px;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 720px) {
  .nav a { padding: 8px 9px; }
  .nav .nav-cta { display: none; }
  .intro { padding-top: 28px; }
  .prose { font-size: 17px; }
  .prose table { font-size: 14.5px; }
  .prose th, .prose td { padding: 10px 12px; }
  .prose td:first-child { min-width: 8.5em; }
  .dek { font-size: 18px; }
  .compare div { grid-template-columns: 1fr auto; }
  .compare div span { grid-column: 1 / -1; }
  .prose .app-facts { grid-template-columns: 1fr 1fr; }
  .price { --max: 168; }
  .prose .bars li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .bars::before, .axis { display: none; }
  .bars .zero b { margin-left: 0; }
  .prose .matrix thead th { min-width: 6.2em; }
  .prose .matrix small { font-size: 12px; }
  .prose h3.app-title { font-size: 20px; }
  .app-title .app-icon { width: 36px; height: 36px; }
  .promo { grid-template-columns: 1fr; text-align: center; }
  .promo img { margin: 0 auto; }
  .founder { grid-template-columns: 1fr; text-align: center; padding: 24px 20px; }
  .founder img { margin: 0 auto; width: 140px; height: 140px; }
  .links { justify-content: center; }
  .facts { grid-template-columns: 1fr; }
  .site-footer .wrap { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .post-card { transition: none; }
}
