/* Dictation for Gmail — Blog.
   Tokens mirror the design book (Claude Design export: db-foundations.jsx) and
   the landing (dictation-for-gmail/styles.css). Light by default, dark follows
   the OS setting with the design book's dark surfaces. */

:root {
  --purple: #7C3AED;
  --purple-dark: #6D28D9;
  --purple-deep: #5B21B6;
  --purple-light: #A78BFA;
  --purple-900: #4C1D95;
  --purple-50: #F5F3FF;
  --purple-100: #EDE9FE;
  --red: #EF4444;

  --bg: #FFFFFF;
  --bg-tint: #FBFAFE;
  --surface: #FFFFFF;
  --surface-2: #F7F5FC;
  --ink: #1B1726;
  --ink-body: #332D44;
  --ink-soft: #6B6577;
  --line: #ECEAEF;
  --line-strong: #DDD8E8;
  --accent: #6D28D9;
  --accent-hover: #5B21B6;
  --accent-soft: #F5F3FF;
  --accent-line: #E4DCFB;
  --header-bg: rgba(255, 255, 255, .86);
  --title-grad: linear-gradient(135deg, #7C3AED 0%, #4C1D95 100%);

  --shadow-sm: 0 1px 2px rgba(20, 16, 40, .06);
  --shadow-md: 0 6px 20px rgba(20, 16, 40, .08);
  --shadow-lg: 0 24px 60px rgba(20, 16, 40, .14);
  --glow: 0 8px 24px rgba(124, 58, 237, .30);
  --glow-hover: 0 0 0 8px rgba(124, 58, 237, .16), 0 16px 44px rgba(124, 58, 237, .45);
  --focus: 0 0 0 3px rgba(124, 58, 237, .40);

  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --pill: 999px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
  --measure: 700px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1726;
    --bg-tint: #1F1A2D;
    --surface: #241F33;
    --surface-2: #2C2640;
    --ink: #F4F2FA;
    --ink-body: #D9D5E6;
    --ink-soft: #A29DB5;
    --line: rgba(255, 255, 255, .10);
    --line-strong: rgba(255, 255, 255, .16);
    --accent: #B9A2FC;
    --accent-hover: #D4C7FE;
    --accent-soft: rgba(124, 58, 237, .14);
    --accent-line: rgba(167, 139, 250, .26);
    --header-bg: rgba(27, 23, 38, .82);
    --title-grad: linear-gradient(135deg, #C4B5FD 0%, #8B5CF6 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
::selection { background: rgba(124, 58, 237, .22); }

.wrap { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { width: 100%; max-width: 1168px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 300;
  background: var(--purple); color: #fff; padding: 10px 16px; border-radius: var(--r-md);
  font-weight: 600; text-decoration: none; transition: top .15s ease;
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--r-md); border: 1px solid transparent;
  font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: box-shadow .2s ease, background-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--purple); color: #fff; box-shadow: var(--glow); }
.btn--primary:hover { box-shadow: var(--glow-hover); }
.btn--light { background: #fff; color: var(--purple); box-shadow: 0 10px 28px rgba(0, 0, 0, .22); }
.btn--light:hover { box-shadow: 0 0 0 8px rgba(255, 255, 255, .22), 0 16px 44px rgba(0, 0, 0, .3); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 18px 36px; font-size: 18px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn:focus-visible { box-shadow: var(--focus); }
.chrome-logo { flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
}
.nav { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.nav__brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand__mic {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: radial-gradient(120% 120% at 30% 25%, var(--purple-light) 0%, var(--purple) 46%, var(--purple-dark) 100%);
  box-shadow: 0 2px 8px rgba(124, 58, 237, .4);
}
.nav__sep { color: var(--line-strong); font-size: 20px; font-weight: 300; }
.nav__section { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; padding: 6px 2px; }
.nav__section:hover { color: var(--accent); }
.nav__links { display: flex; gap: 24px; }
.nav__links a { color: var(--ink-soft); font-size: 14px; font-weight: 500; text-decoration: none; }
.nav__links a:hover { color: var(--accent); }

/* ---------- reading progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; pointer-events: none; }
.progress > span {
  display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--purple-light), var(--purple) 60%, var(--purple-dark));
}

/* ---------- post header ---------- */
.post-head { padding-top: 56px; padding-bottom: 36px; }
.crumbs ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-soft); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .55; margin-right: 4px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] {
  color: var(--purple-dark); background: var(--purple-100); font-weight: 600; font-size: 12.5px;
  padding: 3px 10px; border-radius: var(--pill); letter-spacing: .01em;
}
@media (prefers-color-scheme: dark) { .crumbs [aria-current] { color: #DDD6FE; background: rgba(124, 58, 237, .28); } }

.post-head__title {
  margin: 0; color: var(--ink);
  font-size: clamp(34px, 5.2vw, 54px); line-height: 1.08; font-weight: 800; letter-spacing: -.028em;
  text-wrap: balance;
}
.post-head__dek { margin: 20px 0 0; font-size: clamp(18px, 2.1vw, 21px); line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; max-width: 62ch; }

.byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.byline__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 30% 25%, var(--purple-light) 0%, var(--purple) 46%, var(--purple-dark) 100%);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.byline__text { display: flex; flex-direction: column; line-height: 1.35; }
.byline__name { font-weight: 650; font-size: 15px; color: var(--ink); }
.byline__meta { font-size: 14px; color: var(--ink-soft); }

.post-cover { margin: 0 auto; }
.post-cover img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--r-2xl); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); background: var(--surface-2);
}

/* ---------- layout ---------- */
.post-layout { display: grid; grid-template-columns: minmax(0, var(--measure)); justify-content: center; padding-top: 56px; padding-bottom: 24px; }
.post-layout__toc, .post-layout__rail { display: none; }
@media (min-width: 1180px) {
  .post-layout { grid-template-columns: 208px minmax(0, var(--measure)) 208px; gap: 0 56px; }
  .post-layout__toc, .post-layout__rail { display: block; }
  .toc--mobile { display: none; }
}
.post-layout__toc > *, .post-layout__rail { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.post-layout__rail { max-height: calc(100vh - var(--header-h) - 48px); }

/* ---------- table of contents ---------- */
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc__title { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.toc--desktop ol { border-left: 1px solid var(--line); }
.toc--desktop a {
  display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent;
  color: var(--ink-soft); font-size: 13.5px; line-height: 1.4; text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}
.toc--desktop a:hover { color: var(--ink); }
.toc--desktop a[aria-current] { color: var(--accent); border-left-color: var(--purple); font-weight: 600; }

.toc--mobile {
  margin: 0 0 36px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg-tint);
}
.toc--mobile summary {
  list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 650; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between;
}
.toc--mobile summary::-webkit-details-marker { display: none; }
.toc--mobile summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.toc--mobile[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.toc--mobile nav { padding: 0 18px 12px; }
.toc--mobile ol { counter-reset: t; }
.toc--mobile li { counter-increment: t; border-top: 1px solid var(--line); }
.toc--mobile a { display: flex; gap: 12px; padding: 11px 0; color: var(--ink-body); text-decoration: none; font-size: 15px; line-height: 1.4; }
.toc--mobile a::before { content: counter(t, decimal-leading-zero); color: var(--accent); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 1px; }

/* ---------- prose ---------- */
.prose { font-size: 18.5px; line-height: 1.75; color: var(--ink-body); overflow-wrap: break-word; }
.prose > * { margin-top: 0; margin-bottom: 1.15em; }
.prose p { text-wrap: pretty; }
.prose .lede { font-size: 1.16em; line-height: 1.62; color: var(--ink); margin-bottom: 1.3em; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); transition: text-decoration-color .15s ease, color .15s ease; }
.prose a:hover { color: var(--accent-hover); text-decoration-color: currentColor; text-decoration-thickness: 2px; }

.prose h2, .prose h3 { position: relative; color: var(--ink); text-wrap: balance; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2 { font-size: 1.62em; line-height: 1.22; font-weight: 750; letter-spacing: -.022em; margin: 2.3em 0 .65em; }
.prose h3 { font-size: 1.2em; line-height: 1.35; font-weight: 700; letter-spacing: -.012em; margin: 1.9em 0 .5em; }
.prose > h2:first-child { margin-top: 0; }
.anchor {
  position: absolute; left: -32px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); opacity: 0; border-radius: 6px; text-decoration: none !important;
  transition: opacity .15s ease, color .15s ease;
}
.prose h2 .anchor { top: .62em; }
.prose h3 .anchor { top: .68em; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.anchor:hover { color: var(--accent); }
@media (hover: none), (max-width: 860px) { .anchor { display: none; } }

.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose li { position: relative; margin: 0 0 .6em; }
.prose ul > li { padding-left: 1.5em; }
.prose ul > li::before {
  content: ""; position: absolute; left: .25em; top: .68em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--purple);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; padding-left: 2.6em; min-height: 1.75em; }
.prose ol > li::before {
  content: counter(n); position: absolute; left: 0; top: .12em;
  width: 1.65em; height: 1.65em; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--purple); color: #fff; font-size: .78em; font-weight: 700; font-variant-numeric: tabular-nums;
}

.prose blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--purple); color: var(--ink); font-size: 1.08em; font-style: normal; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: var(--surface-2); border: 1px solid var(--line); padding: .12em .4em; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9em; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 650; }

.figure { margin: 2.1em 0 2.3em; }
.figure img {
  width: 100%; border-radius: var(--r-xl); border: 1px solid var(--line);
  background: var(--surface-2); box-shadow: var(--shadow-md);
}
.figure figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-soft); text-align: center; }

/* FAQ */
.faq { margin-top: 2.6em; }
.faq h2 { margin-top: 0; }
.faq__item {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-tint);
  padding: 20px 22px 4px; margin-bottom: 14px;
}
.faq__item h3 { margin: 0 0 .45em; font-size: 1.06em; }
.faq__item p { font-size: .95em; line-height: 1.7; margin-bottom: 1em; }

/* Inline product card */
.cta-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 20px;
  margin: 2.6em 0; padding: 22px 24px; border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface);
  border: 1px solid var(--accent-line); box-shadow: var(--shadow-md);
}
.cta-card__badge, .rail-card__badge, .cta-band__badge {
  position: relative; border-radius: 50%; color: #fff; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 30% 25%, var(--purple-light) 0%, var(--purple) 46%, var(--purple-dark) 100%);
  box-shadow: 0 0 0 6px rgba(124, 58, 237, .14), 0 8px 20px rgba(91, 33, 182, .4);
}
.cta-card__badge { width: 56px; height: 56px; }
.rec { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); border: 2.5px solid var(--surface); }
.cta-card__title { margin: 0; font-weight: 750; font-size: 17px; color: var(--ink); letter-spacing: -.01em; }
.cta-card__text { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.prose .cta-card__btn { color: #fff; text-decoration: none; }
@media (max-width: 640px) {
  .cta-card { grid-template-columns: auto 1fr; padding: 20px; }
  .cta-card__btn { grid-column: 1 / -1; }
}

/* ---------- post footer & share ---------- */
.post-foot { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.post-foot__label { margin: 0; font-weight: 650; color: var(--ink); }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px;
  border-radius: var(--pill); border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font: 600 14px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.share__btn--icon { width: 40px; padding: 0; }
.share__btn:hover { border-color: var(--purple-light); color: var(--accent); background: var(--accent-soft); }

/* ---------- right rail ---------- */
.rail-card {
  padding: 22px 18px 16px; border-radius: var(--r-xl); text-align: center;
  background: linear-gradient(180deg, var(--accent-soft), transparent 75%), var(--surface);
  border: 1px solid var(--accent-line); box-shadow: var(--shadow-md);
}
.rail-card__badge { width: 52px; height: 52px; margin: 0 auto 14px; }
.rail-card__title { margin: 0; font-weight: 750; font-size: 16px; color: var(--ink); }
.rail-card__text { margin: 6px 0 16px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.rail-card .btn { font-size: 14px; padding: 11px 12px; }
.rail-card__micro { margin: 10px 0 0; font-size: 12px; color: var(--ink-soft); }
.share--rail { justify-content: center; margin-top: 16px; }
.share--rail .share__btn:first-child { width: 40px; padding: 0; }
.share--rail .share__btn:first-child .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- related ---------- */
.section-title { margin: 0 0 24px; font-size: 26px; font-weight: 750; letter-spacing: -.02em; color: var(--ink); }
.related { padding-top: 56px; padding-bottom: 80px; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.mini-card {
  display: flex; flex-direction: column; gap: 8px; padding: 24px; min-height: 100%;
  border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface);
  box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, box-shadow .2s ease, transform .2s ease;
}
.mini-card:hover { border-color: var(--purple-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.mini-card__kind { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.mini-card__title { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.mini-card__text { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); flex: 1; }
.mini-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* ---------- post cards (index) ---------- */
.post-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface);
  box-shadow: var(--shadow-sm); transition: border-color .15s ease, box-shadow .2s ease, transform .2s ease;
}
.post-card:hover { border-color: var(--purple-light); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.post-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 26px; flex: 1; }
.post-card__meta { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-soft); }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: var(--pill); background: var(--purple-100); color: var(--purple-dark); font-weight: 650; font-size: 12.5px; }
@media (prefers-color-scheme: dark) { .pill { background: rgba(124, 58, 237, .28); color: #DDD6FE; } }
.post-card__title { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 750; letter-spacing: -.018em; text-wrap: balance; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card__title a:focus-visible { box-shadow: none; }
.post-card:focus-within { box-shadow: var(--focus); }
.post-card__excerpt { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); flex: 1; }
.post-card__foot { margin: 6px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-soft); }
.post-card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; }
.post-card:hover .post-card__more svg { transform: translateX(3px); }
.post-card__more svg { transition: transform .2s ease; }

.post-card--featured { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .post-card--featured { grid-template-columns: 1.12fr 1fr; }
  .post-card--featured .post-card__media { aspect-ratio: auto; min-height: 100%; }
  .post-card--featured .post-card__body { padding: 44px 44px 40px; justify-content: center; }
  .post-card--featured .post-card__title { font-size: 32px; line-height: 1.16; }
  .post-card--featured .post-card__excerpt { font-size: 17px; flex: none; }
}
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

/* ---------- index hero ---------- */
.blog-hero { text-align: center; padding-top: 80px; padding-bottom: 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; height: 32px; padding: 0 14px;
  border-radius: var(--pill); background: var(--purple-100); color: var(--purple-dark);
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
@media (prefers-color-scheme: dark) { .eyebrow { background: rgba(124, 58, 237, .26); color: #DDD6FE; } }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); }
.blog-hero__title {
  margin: 0; font-size: clamp(38px, 6.4vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em;
  background: var(--title-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-wrap: balance; padding-bottom: .06em;
}
.blog-hero__dek { margin: 22px auto 0; max-width: 620px; font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.blog-hero__links { margin: 22px 0 0; }
.rss { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.rss svg { color: #F97316; }
.rss:hover { color: var(--accent); }
.index-featured { padding-bottom: 72px; }
.index-list { padding-bottom: 80px; }
.empty { text-align: center; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff; text-align: center; padding: 80px 0 84px;
  background:
    radial-gradient(60% 90% at 50% -10%, rgba(167, 139, 250, .55), transparent 70%),
    linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 55%, var(--purple-900) 100%);
}
.cta-band__inner { display: flex; flex-direction: column; align-items: center; }
.cta-band__badge { width: 76px; height: 76px; margin-bottom: 26px; box-shadow: 0 0 0 8px rgba(255, 255, 255, .14), 0 16px 36px rgba(30, 10, 70, .45); }
.cta-band__badge .rec { border-color: var(--purple-dark); width: 17px; height: 17px; right: 3px; bottom: 3px; }
.cta-band h2 { margin: 0; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.028em; }
.cta-band p { margin: 14px auto 30px; max-width: 520px; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.cta-band .cta-band__micro { margin: 16px 0 0; font-size: 14px; color: rgba(255, 255, 255, .72); }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-tint); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer__brand p { margin: 14px 0 0; color: var(--ink-soft); font-size: 15px; }
.site-footer h2 { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--ink); text-decoration: none; font-size: 15px; }
.site-footer ul a:hover { color: var(--accent); }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-soft); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
}
@media (max-width: 640px) {
  .wrap, .wrap-wide { padding: 0 18px; }
  .nav { gap: 12px; }
  .brand__name { display: none; }
  .post-head { padding-top: 36px; padding-bottom: 28px; }
  .crumbs ol { margin-bottom: 20px; font-size: 13px; }
  .post-cover { padding: 0; }
  .post-cover img { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .post-layout { padding-top: 36px; }
  .prose { font-size: 17.5px; line-height: 1.72; }
  .prose h2 { font-size: 1.45em; }
  .figure { margin-left: -18px; margin-right: -18px; }
  .figure img { border-radius: 0; border-left: 0; border-right: 0; }
  .faq__item { padding: 18px 18px 2px; }
  .post-foot { flex-direction: column; align-items: flex-start; }
  .blog-hero { padding-top: 52px; padding-bottom: 40px; }
  .post-card__body { padding: 20px 20px 22px; }
  .post-card__title { font-size: 20px; }
  .cta-band { padding: 64px 0 68px; }
  .btn--lg { padding: 16px 26px; font-size: 17px; }
}
@media (max-width: 380px) { .nav .btn--sm { padding: 8px 12px; font-size: 13px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .post-card:hover, .mini-card:hover { transform: none; }
  .post-card:hover .post-card__media img { transform: none; }
}

@media print {
  .site-header, .progress, .post-layout__toc, .post-layout__rail, .toc--mobile, .post-foot, .related, .cta-band, .site-footer, .cta-card { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { font-size: 12pt; color: #000; }
  .prose a::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
  .post-cover img, .figure img { box-shadow: none; }
}
