/* The blog (public/blog/, CLAUDE.md §7): standalone pages in the app's colours, light and dark. */
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}

:root {
  --bg: #f9f1f6;
  --surface: #ffffff;
  --sunk: #f3e6ee;
  --text: #2a1024;
  --soft: #6b4a61;
  --faint: #9a7d90;
  --line: #f0dde8;
  --line-strong: #e2c6d6;
  --brand: #d1186f;
  --brand-text: #b3125e;
  --on-brand: #ffffff;
  --good: #1f7a4d;
  --good-bg: #e3f4ea;
  --bad: #b3261e;
  --bad-bg: #fbe5e3;
  --shadow: 0 1px 2px rgba(42, 16, 36, 0.06), 0 8px 24px rgba(42, 16, 36, 0.07);
  --head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #140a12;
  --surface: #221220;
  --sunk: #1b0e19;
  --text: #f7eef4;
  --soft: #bfa8b8;
  --faint: #8f7587;
  --line: #3d2238;
  --line-strong: #553149;
  --brand: #ff4fa3;
  --brand-text: #ff7bbb;
  --on-brand: #2a1024;
  --good: #6fd6a0;
  --good-bg: #173326;
  --bad: #ff8f86;
  --bad-bg: #3b1a1a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-wrap: break-word;
}

a {
  color: var(--brand-text);
  text-underline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header and footer, shared by every page. */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-head-in,
.site-foot-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font: 700 19px/1 var(--head);
  letter-spacing: -0.01em;
}

.brand b {
  color: var(--brand);
}

.brand-word {
  position: relative;
  padding-right: 4px;
}

.beta {
  position: absolute;
  right: -22px;
  bottom: -9px;
  font: 700 8.5px/1 'Inter', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 15px;
}

.site-nav a {
  color: var(--soft);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand) !important;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.btn.ghost {
  background: var(--surface);
  color: var(--text) !important;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn:hover {
  filter: brightness(1.05);
}

/* Light by default; dark when the visitor picks it (page-theme.js). */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--sunk);
  color: var(--text);
}

.theme-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .i-sun,
:root[data-theme='dark'] .theme-toggle .i-moon {
  display: none;
}

:root[data-theme='dark'] .theme-toggle .i-sun {
  display: block;
}

@media (max-width: 640px) {
  .site-nav .hide-sm {
    display: none;
  }
  .site-nav {
    gap: 12px;
  }
  .site-head .btn {
    padding: 8px 12px;
    font-size: 14px;
  }
}

.site-foot {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 14px;
}

.site-foot-in {
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 28px;
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-left: auto;
}

.site-foot a {
  color: var(--soft);
}

/* The blog's front page. */
.blog-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 16px 12px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-text);
}

h1,
h2,
h3 {
  font-family: var(--head);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--text);
}

.blog-hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  margin: 8px 0 12px;
}

.blog-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--soft);
  font-size: 19px;
}

.posts {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 16px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.post-card:hover {
  transform: translateY(-2px);
}

.post-card picture,
.post-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  width: 100%;
  background: var(--sunk);
}

.post-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.post-card h2 {
  font-size: 22px;
  margin: 2px 0 2px;
}

.post-card p {
  margin: 0;
  color: var(--soft);
  font-size: 15.5px;
  line-height: 1.55;
}

.post-card .meta {
  margin-top: auto;
  padding-top: 8px;
}

.post-card.featured {
  grid-column: 1 / -1;
}

@media (min-width: 860px) {
  .post-card.featured {
    flex-direction: row;
  }
  .post-card.featured picture {
    flex: 0 0 56%;
  }
  .post-card.featured picture img {
    height: 100%;
    aspect-ratio: auto;
  }
  .post-card.featured .post-card-body {
    padding: 30px 32px;
    justify-content: center;
  }
  .post-card.featured h2 {
    font-size: 30px;
  }
}

.meta {
  font-size: 13.5px;
  color: var(--faint);
}

/* An article. */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 16px 0;
}

.crumbs {
  font-size: 14px;
  color: var(--faint);
}

.crumbs a {
  color: var(--soft);
  text-decoration: none;
}

.article h1 {
  font-size: clamp(32px, 5.5vw, 46px);
  margin: 14px 0 12px;
}

.dek {
  font-size: 20px;
  line-height: 1.55;
  color: var(--soft);
  margin: 0 0 14px;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 14px;
  color: var(--faint);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.byline img {
  width: 26px;
  height: 26px;
}

.byline strong {
  color: var(--soft);
  font-weight: 600;
}

.article h2 {
  font-size: 29px;
  margin: 52px 0 12px;
  scroll-margin-top: 76px;
}

.article h3 {
  font-size: 21px;
  margin: 30px 0 6px;
  scroll-margin-top: 76px;
}

.article p,
.article li {
  color: var(--soft);
}

.article p {
  margin: 0 0 16px;
}

.article strong {
  color: var(--text);
  font-weight: 600;
}

.article ul,
.article ol {
  padding-left: 22px;
  margin: 0 0 18px;
}

.article li + li {
  margin-top: 6px;
}

.answer {
  margin: 26px 0 8px;
  padding: 20px 22px 6px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--brand);
}

.answer .label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-text);
}

.answer p,
.answer li {
  color: var(--text);
}

.note {
  margin: 22px 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--sunk);
  font-size: 15.5px;
}

.note p {
  margin: 0;
}

.toc {
  margin: 28px 0 0;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
}

.toc strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.toc ul {
  margin: 0;
  padding-left: 18px;
  columns: 2 260px;
  column-gap: 28px;
  font-size: 15.5px;
}

.toc li {
  break-inside: avoid;
}

.toc a {
  color: var(--soft);
  text-decoration: none;
}

.toc a:hover {
  color: var(--brand-text);
}

figure {
  margin: 26px 0;
}

figure picture,
figure > img {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sunk);
}

figure.phone {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--faint);
  text-align: center;
}

/* Tables scroll inside their box on a phone; the page never scrolls sideways. */
.table-wrap {
  margin: 22px 0 26px;
  overflow-x: auto;
  border-radius: 14px;
  box-shadow: var(--shadow);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

th,
td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--sunk);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}

tbody th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

td {
  color: var(--soft);
  min-width: 150px;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: none;
}

tr.ours th,
tr.ours td {
  background: color-mix(in srgb, var(--brand) 7%, transparent);
}

.yes {
  color: var(--good);
  font-weight: 600;
}

.no {
  color: var(--bad);
  font-weight: 600;
}

.table-note {
  margin-top: -14px !important;
  font-size: 13.5px;
  color: var(--faint) !important;
}

/* One app in a list. */
.app {
  margin-top: 52px;
}

.app h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 0 !important;
}

.app h2 .num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sunk);
  color: var(--brand-text);
  font-size: 17px;
  transform: translateY(-3px);
}

.article .facts {
  padding: 0;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px;
  margin: 4px 0 18px;
  padding: 0;
  list-style: none;
}

.facts li {
  margin: 0 !important;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14.5px;
  line-height: 1.45;
}

.facts b {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
  margin: 8px 0 18px;
}

.pros-cons > div {
  padding: 14px 18px 4px;
  border-radius: 14px;
}

.pros-cons .pros {
  background: var(--good-bg);
}

.pros-cons .cons {
  background: var(--bad-bg);
}

.pros-cons h4 {
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pros-cons .pros h4 {
  color: var(--good);
}

.pros-cons .cons h4 {
  color: var(--bad);
}

.pros-cons ul {
  padding-left: 18px;
  font-size: 15.5px;
}

.pros-cons li {
  color: var(--text) !important;
}

/* Questions. */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--brand-text);
  font-size: 22px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  margin-top: 0;
}

.sources {
  font-size: 14.5px;
}

.sources li {
  color: var(--faint) !important;
}

.cta {
  margin: 56px 0 0;
  padding: 30px 28px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.cta h2 {
  margin: 0 0 8px !important;
  font-size: 27px;
}

.cta p {
  max-width: 520px;
  margin: 0 auto 18px !important;
}

.cta .btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.related {
  margin-top: 44px;
}

.related h2 {
  font-size: 22px !important;
  margin: 0 0 12px !important;
}

.related ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.related li {
  margin: 0 !important;
}

.related a {
  display: block;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.related a span {
  display: block;
  font-weight: 400;
  font-size: 14.5px;
  color: var(--soft);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0 !important;
}

.steps > li {
  position: relative;
  padding-left: 48px;
  margin-top: 22px !important;
}

.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--on-brand);
  font: 700 15px/1 var(--head);
}

.steps h3 {
  margin-top: 0 !important;
}

code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--sunk);
  color: var(--text);
}

blockquote {
  margin: 20px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--line-strong);
}

blockquote p {
  font-style: italic;
}

/* "What each app does": one column per app; the question column stays put while it scrolls. Wider than the
   text where the window allows, so all the apps fit on a desktop. */
.article .matrix,
.article .wide {
  --matrix-w: min(1060px, calc(100vw - 48px));
  width: var(--matrix-w);
  margin-left: calc(50% - var(--matrix-w) / 2);
}

/* A table whose first column holds sentences: they wrap instead of widening the table. */
.wrap-heads tbody th {
  white-space: normal;
  min-width: 200px;
}

.matrix table {
  font-size: 14px;
}

.matrix th,
.matrix td {
  padding: 9px 10px;
  text-align: center;
  white-space: nowrap;
  min-width: 0;
}

.matrix tbody th,
.matrix thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  background: var(--surface);
  box-shadow: 1px 0 0 var(--line);
}

.matrix thead th:first-child {
  background: var(--sunk);
}

.matrix thead th:nth-child(3),
.matrix tbody td:nth-child(3) {
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
}

.matrix .yes,
.matrix .no {
  font-size: 16px;
}
