/* Best Grok Bot — inner pages
   Tokens, header wordmark and footer are copied from index.html. The homepage is not modified. */

:root {
  --ink: #0c0e0b;
  --ink-2: #131610;
  --panel: rgba(21, 24, 18, 0.86);
  --line: rgba(237, 230, 214, 0.14);
  --line-strong: rgba(237, 230, 214, 0.28);
  --bone: #ede6d6;
  --mute: #b1ac9b;
  --ember: #ff7a2f;
  --ember-deep: #e0563b;
  --brass: #e2bf7a;
  --moss: #a9bd8c;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --head-h: 72px;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 22px;
  --measure: 68ch;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 620px at 85% -8%, rgba(255, 122, 47, 0.11), transparent 62%),
    radial-gradient(760px 560px at -10% 38%, rgba(226, 191, 122, 0.06), transparent 60%);
}

h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ember); color: var(--ink); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--bone); color: var(--ink); padding: 12px 18px; border-radius: 10px; font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

main { position: relative; z-index: 2; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 14, 11, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.head-row { min-height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  font-family: var(--display); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
}
.wordmark svg { width: 26px; height: 26px; flex: none; }
.wordmark i { font-style: italic; color: var(--brass); font-weight: 400; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--mute); text-decoration: none; font-size: 1rem; border-radius: 8px;
}
.site-nav a:hover { color: var(--bone); }
.site-nav a[aria-current="page"] { color: var(--brass); }

/* ---------- article ---------- */
.article { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.article-inner { max-width: var(--measure); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass);
  text-decoration: none;
}
.eyebrow:hover { color: var(--ember); }

h1 {
  font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.06;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem); text-wrap: balance;
}

.byline {
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline;
  margin-top: 22px; padding-bottom: 26px; border-bottom: 1px solid var(--line);
  color: var(--mute); font-size: 0.95rem;
}
.byline strong { color: var(--bone); font-weight: 600; }

.lede-figure { margin: 32px 0 0; }
.lede-figure img { width: 100%; }
.lede-figure figcaption { margin-top: 10px; color: var(--mute); font-size: 0.85rem; }

.prose { margin-top: 34px; }
.prose > * + * { margin-top: 22px; }
.prose p { text-wrap: pretty; }
.prose h2 {
  font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.12;
  font-size: clamp(1.65rem, 3.6vw, 2.25rem); margin-top: 54px; text-wrap: balance;
  scroll-margin-top: calc(var(--head-h) + 16px);
}
.prose h3 {
  font-family: var(--sans); font-weight: 600; font-size: 1.1875rem; line-height: 1.35;
  margin-top: 34px; color: var(--bone);
  scroll-margin-top: calc(var(--head-h) + 16px);
}
.prose h2 + *, .prose h3 + * { margin-top: 14px; }
.prose strong { font-weight: 600; color: var(--bone); }
.prose ul, .prose ol { padding-left: 26px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 10px; }
.prose li::marker { color: var(--brass); }
.prose a {
  color: var(--bone); text-decoration: underline; text-decoration-color: var(--brass);
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--brass); }
.prose a[rel~="sponsored"] { text-decoration-color: var(--ember); }
.prose i, .prose em { font-style: italic; }

.prose blockquote {
  border-left: 2px solid var(--brass); padding-left: 20px; color: var(--mute);
}

/* TL;DR */
.tldr {
  margin-top: 32px; padding: 26px 28px; border: 1px solid var(--line);
  border-left: 3px solid var(--ember); border-radius: var(--radius);
  background: var(--panel);
}
.tldr-label {
  display: block; margin-bottom: 12px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember);
}
.tldr ul { list-style: none; padding: 0; }
.tldr li { position: relative; padding-left: 22px; }
.tldr li + li { margin-top: 10px; }
.tldr li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px;
  background: var(--brass); transform: rotate(45deg);
}

/* On this page */
.toc { margin-top: 34px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; }
.toc h2 {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mute); margin: 0 0 10px;
}
.toc ol { list-style: none; padding: 0; }
.toc li + li { margin-top: 8px; }
.toc a { color: var(--bone); text-decoration: none; border-bottom: 1px solid transparent; }
.toc a:hover { border-bottom-color: var(--brass); }

/* tables */
.table-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 600px; }
caption { caption-side: top; text-align: left; padding: 14px 18px 0; color: var(--mute); font-size: 0.85rem; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: rgba(237, 230, 214, 0.04); font-weight: 600; color: var(--bone); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--bone); width: 24%; }
td { color: var(--mute); }

/* a five-column table needs more room than the reading column */
@media (min-width: 980px) {
  .table-wrap { width: calc(100% + 220px); margin-left: -110px; }
}

/* note block (a quoted set of rules inside a post) */
.note {
  margin-top: 28px; padding: 24px 26px; border-radius: 18px;
  background: rgba(237, 230, 214, 0.05); border: 1px solid var(--line);
}
.note > * + * { margin-top: 12px; }
.note ol, .note ul { padding-left: 22px; list-style: decimal; }
.note li + li { margin-top: 8px; }

/* bridge callout */
.bridge {
  margin-top: 46px; padding: 26px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 122, 47, 0.10), rgba(226, 191, 122, 0.05));
  border: 1px solid rgba(255, 122, 47, 0.32);
  font-family: var(--display); font-size: 1.2rem; line-height: 1.45;
}
.bridge a { color: var(--brass); }

.lastchecked { display: block; margin-top: 30px; color: var(--mute); font-size: 0.85rem; line-height: 1.55; }

.inline-figure { margin-top: 34px; }
.inline-figure img { width: 100%; }
.inline-figure figcaption { margin-top: 10px; color: var(--mute); font-size: 0.85rem; }

/* ---------- blog index ---------- */
.index-head { padding-block: clamp(40px, 6vw, 72px) 8px; }
.index-head h1 { max-width: 22ch; }
.index-head p { margin-top: 16px; color: var(--mute); max-width: 56ch; }
.post-list { display: grid; gap: 26px; margin-top: 40px; padding-bottom: 24px; }
.card {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; align-items: center;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); text-decoration: none;
}
.card:hover { border-color: var(--line-strong); }
.card:hover h2 { color: var(--brass); }
.card img { border-radius: 14px; aspect-ratio: 1200 / 630; object-fit: cover; width: 100%; }
.card h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.18; letter-spacing: -0.01em; }
.card p { margin-top: 8px; color: var(--mute); font-size: 0.98rem; }
.card .card-meta { margin-top: 10px; color: var(--mute); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- footer ---------- */
footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding-block: 48px 56px; background: rgba(12, 14, 11, 0.9); }
.foot { display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 28px 64px; }
.foot p { color: var(--mute); font-size: 1rem; max-width: 62ch; }
.foot p + p { margin-top: 12px; }
.foot p strong { color: var(--bone); font-weight: 600; }
.foot nav { display: flex; gap: 6px 28px; flex-wrap: wrap; align-content: start; }
.tlink {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--bone);
  text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.tlink:hover { color: var(--brass); }

@media (max-width: 900px) {
  .foot { grid-template-columns: 1fr; }
  .card { grid-template-columns: 1fr; gap: 18px; }
  .card img { aspect-ratio: 1200 / 630; }
}
@media (max-width: 720px) {
  :root { --head-h: 80px; }
  .wordmark { font-size: 1.25rem; gap: 9px; }
  body { font-size: 1.0625rem; }
  .tldr, .toc, .bridge { padding: 20px 18px; }
  .byline { font-size: 0.9rem; }
}

/* ---------- bot one-pagers ---------- */
.bot-hero { padding: 64px 0 24px; }
.bot-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.bot-hero h1 { font-family: var(--display, "Fraunces", serif); font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.05; margin: 10px 0 14px; letter-spacing: -.01em; }
.bot-promise { font-size: 1.15rem; color: var(--bone); opacity: .9; max-width: 34ch; margin: 0 0 18px; }
.bot-hero-art img { width: 100%; height: auto; display: block; }
.bot-badge { display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; margin: 0 0 18px; border: 1px solid var(--line-strong, rgba(237,230,214,.28)); }
.bot-badge.is-free { color: #0c0e0b; background: var(--brass, #e2bf7a); border-color: transparent; }
.bot-badge.is-paid { color: var(--brass, #e2bf7a); }
.btn-main { display: inline-block; background: var(--ember, #ff7a2f); color: #140d07; font-weight: 600; padding: 13px 20px; border-radius: 10px; text-decoration: none; }
.btn-main:hover { filter: brightness(1.06); }
.bot-body { max-width: 860px; margin: 0 auto; padding-bottom: 40px; }
.bot-block { padding: 26px 0; border-top: 1px solid var(--line, rgba(237,230,214,.14)); }
.bot-block h2 { font-family: var(--display, "Fraunces", serif); font-size: 1.5rem; margin: 0 0 14px; }
.bot-list { margin: 0; padding-left: 20px; }
.bot-list li { margin: 10px 0; line-height: 1.6; }
.bot-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.bot-steps li { counter-increment: s; position: relative; padding-left: 46px; margin: 14px 0; line-height: 1.6; }
.bot-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--brass, #e2bf7a); color: var(--brass, #e2bf7a); display: grid; place-items: center; font-size: .85rem; }
.bot-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.bot-cases .case { border: 1px solid var(--line, rgba(237,230,214,.14)); border-radius: 12px; padding: 16px 18px; background: rgba(21,24,18,.5); }
.bot-cases .case h3 { font-size: 1rem; margin: 0 0 6px; }
.bot-cases .case p { margin: 0; font-size: .95rem; line-height: 1.55; opacity: .86; }
.bot-wins { margin: 0; padding-left: 20px; }
.bot-wins li { margin: 12px 0; line-height: 1.6; }
.bot-wins a { color: var(--brass, #e2bf7a); }
.bot-aside { font-size: .9rem; opacity: .7; margin: 10px 0 0; }
.bot-cta { padding: 34px 0 10px; border-top: 1px solid var(--line, rgba(237,230,214,.14)); }
.postlist { margin: 0; padding-left: 20px; }
.postlist li { margin: 10px 0; }
@media (max-width: 780px) {
  .bot-hero { padding-top: 32px; }
  .bot-hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .bot-hero-art { order: -1; max-width: 420px; }
}
.bot-list, .bot-wins { list-style: disc; }
.bot-list li::marker, .bot-wins li::marker { color: var(--brass, #e2bf7a); }
.badge-free { display: inline-block; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--brass, #e2bf7a); color: #0c0e0b; vertical-align: middle; margin-left: 6px; }

/* ---------- mobile nav: three links on one line ---------- */
.nav-short { display: none; }
@media (max-width: 560px) {
  .head-row { gap: 10px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 0 7px; font-size: .92rem; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
}
@media (max-width: 390px) {
  .site-nav a { padding: 0 5px; font-size: .88rem; }
  .wordmark span { font-size: .95rem; }
}
/* ---------- bot page: room under the closing button ---------- */
.bot-cta .bot-aside { margin-top: 18px; }
