/* ============================================================
   SERP Agent — Blog + Post styles
   Builds on styles.css tokens; same dark field & violet accent.
   ============================================================ */

/* ---------- page header ---------- */
.blog-head { padding: 150px 0 24px; }
.blog-head .eyebrow { margin-bottom: 22px; }

/* Single post + legal pages start at the very top, so clear the fixed nav. */
.blog-post { padding-top: 116px; padding-bottom: 80px; }
.legal-page { padding-top: 116px; padding-bottom: 80px; }

/* ---------- breadcrumbs ---------- */
.page-crumbs { padding-top: 116px; }
.page-crumbs .crumbs { margin-bottom: 0; }
.first-sec { padding-top: 30px; }
.crumbs {
  display: flex; align-items: center; gap: 9px; margin-bottom: 26px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.01em;
}
.crumbs a { color: var(--muted); text-decoration: none; transition: color .15s; }
.crumbs a:hover { color: var(--ink); }
.crumbs .crumb-sep { color: var(--faint); opacity: 0.6; }
.crumbs .crumb-current { color: var(--accent-ink); }
.blog-head h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 6vw, 76px); letter-spacing: -0.04em; line-height: 0.98;
  max-width: 16ch;
}
.blog-head p.lead {
  margin-top: 24px; max-width: 56ch;
  font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.55; color: var(--muted);
}

/* ---------- category filter ---------- */
.blog-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 12px 0 56px; border-bottom: 1px solid var(--line);
}
.chip {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.01em;
  color: var(--muted); cursor: pointer;
  padding: 9px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: oklch(1 0 0 / 0.03);
  transition: color .18s, border-color .18s, background .18s;
}
.chip:hover { color: var(--ink-soft); border-color: oklch(1 0 0 / 0.28); }
.chip.active { color: #fff; border-color: transparent; background: var(--grad); }

/* ---------- featured post (scoped so it can't collide with .plan.featured) ---------- */
.featured-sec { padding: 64px 0 12px; }
.featured-sec .featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-m);
  text-decoration: none; color: inherit;
  transition: transform .2s ease, border-color .2s ease;
}
.featured-sec .featured:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.featured-sec .featured .thumb { position: relative; min-height: 360px; }
.featured-sec .featured .thumb image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.featured-sec .featured .fbody { padding: 48px; display: flex; flex-direction: column; gap: 18px; }
.featured-sec .featured .fbody h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.06;
}
.featured-sec .featured .fbody .excerpt { color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.featured-sec .featured .read { margin-top: auto; color: var(--accent-ink); font-weight: 600; font-size: 15px; }
@media (max-width: 880px) {
  .featured-sec .featured { grid-template-columns: 1fr; }
  .featured-sec .featured .thumb { min-height: 240px; }
  .featured-sec .featured .fbody { padding: 34px; }
}

/* ---------- post grid ---------- */
.posts-sec { padding: 64px 0 120px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.post-card .thumb { position: relative; aspect-ratio: 16 / 10; }
.post-card .thumb image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-card .pbody { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card h3 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em;
  font-size: 21px; line-height: 1.18;
}
.post-card .excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* category tag + meta shared */
.cat {
  align-self: flex-start;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-deep);
  padding: 5px 11px; border-radius: var(--radius-pill);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.featured-sec .featured .cat { background: oklch(1 0 0 / 0.06); border-color: oklch(1 0 0 / 0.16); color: var(--accent-deep); }

.pmeta {
  display: flex; align-items: center; gap: 10px; margin-top: auto;
  font-family: var(--mono); font-size: 12px; color: var(--faint);
}
.pmeta .av {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 11px;
  font-family: var(--sans); background: var(--grad);
}
.pmeta .sep { opacity: 0.5; }

/* ---------- single post ---------- */
.article { padding: 138px 0 40px; }
.post-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  text-decoration: none; margin-bottom: 34px;
  transition: color .18s;
}
.post-back:hover { color: var(--ink); }

.article-head { max-width: 820px; margin: 0 auto; text-align: center; }
.article-head .cat { display: inline-block; margin-bottom: 22px; }
.article-head h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.035em;
  font-size: clamp(34px, 5vw, 60px); line-height: 1.02;
}
.article-head .sub {
  margin-top: 22px; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.5; color: var(--muted);
}
.article-meta {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 30px; font-family: var(--mono); font-size: 13px; color: var(--faint);
}
.article-meta .av {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px;
  font-family: var(--sans); background: var(--grad);
}
.article-meta .who { color: var(--ink-soft); }
.article-meta .sep { opacity: 0.5; }

.article-cover {
  position: relative; max-width: 1100px; margin: 56px auto 0;
  aspect-ratio: 16 / 8; border-radius: var(--radius-l);
  border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-l);
}
.article-cover image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }

/* prose */
.prose { max-width: 720px; margin: 0 auto; padding: 12px 0 0; }
.prose > * + * { margin-top: 26px; }
.prose p { font-size: 18px; line-height: 1.75; color: var(--ink-soft); }
.prose h2 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.025em;
  font-size: clamp(25px, 3vw, 33px); line-height: 1.15; margin-top: 52px; color: var(--ink);
}
.prose h3 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em;
  font-size: 21px; margin-top: 38px; color: var(--ink);
}
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { font-size: 18px; line-height: 1.7; color: var(--ink-soft); margin-top: 10px; }
.prose li::marker { color: var(--accent-ink); }

.prose blockquote {
  margin: 44px 0; padding: 8px 0 8px 28px;
  border-left: 3px solid var(--accent-line);
  font-family: var(--display); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; color: var(--ink);
}

.prose figure { margin: 44px 0; }
.prose figure .shot {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
}
.prose figure image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.prose figcaption {
  margin-top: 12px; text-align: center;
  font-family: var(--mono); font-size: 12.5px; color: var(--faint);
}

.prose hr { border: 0; border-top: 1px solid var(--line); margin: 52px 0; }

/* author bio */
.author-bio {
  max-width: 720px; margin: 64px auto 0; display: flex; gap: 18px; align-items: center;
  padding: 28px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l);
}
.author-bio .av {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 22px;
  font-family: var(--sans); background: var(--grad);
}
.author-bio .name { font-family: var(--display); font-weight: 700; font-size: 18px; }
.author-bio .role { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.author-bio p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin-top: 8px; }

/* related */
.related-sec { padding: 96px 0 120px; }
.related-sec .rh {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.025em;
  font-size: clamp(24px, 3vw, 32px); margin-bottom: 36px;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 980px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .related-grid { grid-template-columns: 1fr; } }

/* inline newsletter / cta inside article flow */
.post-cta {
  max-width: 720px; margin: 64px auto 0; text-align: center;
  background: linear-gradient(150deg, oklch(0.245 0.075 292), oklch(0.215 0.07 20));
  border: 1px solid var(--accent-line); border-radius: var(--radius-l);
  padding: 44px 36px;
}
.post-cta h3 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.025em;
  font-size: clamp(24px, 3vw, 32px); color: var(--ink);
}
.post-cta p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.post-cta .actions { margin-top: 26px; display: flex; justify-content: center; }

/* ============================================================
   Legal pages (privacy / terms / refund)
   ============================================================ */
.legal { padding: 132px 0 40px; }
.legal-head { max-width: 760px; margin: 0 auto; }
.legal-head h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.035em;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.02;
}
.legal-head .updated {
  margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--faint);
}
.legal-head .mor-note {
  margin-top: 24px; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14.5px; line-height: 1.55; color: var(--muted);
}
.legal-head .mor-note strong { color: var(--ink-soft); }

.legal-body { padding-top: 8px; }
.legal-body.prose { max-width: 760px; }
.legal-body.prose h2 { margin-top: 48px; font-size: clamp(22px, 2.6vw, 28px); }
.legal-body.prose h2:first-child { margin-top: 24px; }
.legal-body.prose p,
.legal-body.prose li { font-size: 16.5px; line-height: 1.7; }
.legal-body .lead-p { color: var(--muted); }

/* contact strip shared by legal pages */
.legal-contact {
  max-width: 760px; margin: 56px auto 0; padding: 28px 30px;
  background: linear-gradient(150deg, oklch(0.245 0.075 292), oklch(0.215 0.07 20));
  border: 1px solid var(--accent-line); border-radius: var(--radius-l);
}
.legal-contact h3 { font-family: var(--display); font-weight: 700; font-size: 20px; }
.legal-contact p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.legal-contact a { color: var(--accent-deep); text-decoration: none; font-weight: 600; }
.legal-contact a:hover { text-decoration: underline; }

/* ============================================================
   404
   ============================================================ */
.nf {
  min-height: calc(100vh - 80px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
}
.nf .code {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 0.9;
  font-size: clamp(110px, 22vw, 240px);
  background: linear-gradient(120deg, var(--accent-deep), oklch(0.82 0.12 22));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nf h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(26px, 4vw, 40px); margin-top: 6px;
}
.nf p { margin-top: 18px; max-width: 46ch; color: var(--muted); font-size: 17px; line-height: 1.6; }
.nf .actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   Product page
   ============================================================ */
.prod-head .actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Product hero: copy left, interactive 3D robot right */
.prod-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center; gap: 32px;
}
.prod-hero-copy h1 { max-width: 14ch; }
.prod-hero-copy p.lead { max-width: 48ch; }
.prod-hero-robot { position: relative; min-width: 0; }
.robot-stage {
  position: relative; width: 100%; height: 520px;
  border-radius: 28px; overflow: hidden;
}
.robot-stage spline-viewer {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1;
  opacity: 0; transition: opacity .8s ease;
}
.robot-stage.spline-ready spline-viewer { opacity: 1; }

/* loading spinner shown until the 3D scene draws */
.robot-loading {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  transition: opacity .5s ease; pointer-events: none;
}
.rl-spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid oklch(0.7 0.14 292 / 0.25);
  border-top-color: oklch(0.75 0.16 292);
  animation: rlSpin 0.9s linear infinite;
}
@keyframes rlSpin { to { transform: rotate(360deg); } }

/* fade the bottom so the scene's ground shadow blends into the page */
.robot-mask {
  position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 3;
  pointer-events: none;
  background: linear-gradient(to top, var(--bg), transparent);
}

@media (max-width: 980px) {
  .prod-hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .prod-hero-robot { order: -1; margin: 0 auto; max-width: 460px; width: 100%; }
  .robot-stage { height: 360px; }
}

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-card {
  padding: 30px 28px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); transition: transform .18s ease, border-color .2s ease;
}
.feat-card:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.feat-ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  color: var(--accent-deep); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.feat-ic svg { width: 22px; height: 22px; }
.feat-card h3 { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; margin: 18px 0 8px; }
.feat-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bcard {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px 26px 28px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); box-shadow: var(--shadow-m);
  transition: transform .18s ease, border-color .2s ease;
}
.bcard:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.bcard h3 { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.bcard > p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.bcard.wide { grid-column: span 3; }
.bcard.wide .fb-badge { align-self: flex-start; margin-top: 0; }
.bgrow { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.bgrow h3 { font-size: clamp(20px, 2vw, 26px); margin-bottom: 8px; }
.bgrow p { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 56ch; }

/* mini visualizations */
.bviz {
  min-height: 96px; display: flex; align-items: center; gap: 16px;
  padding: 14px; margin-bottom: 6px;
  background: oklch(0.16 0.04 287); border: 1px solid var(--panel-line); border-radius: 14px;
}
.bcard.wide .bviz { background: transparent; border: none; padding: 0; min-height: 0; justify-content: center; }

.bv-ring {
  --p: 90; flex: none; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(oklch(0.72 0.17 292) calc(var(--p) * 1%), oklch(1 0 0 / 0.10) 0);
}
.bv-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: oklch(0.16 0.04 287); }
.bv-ring b, .bv-ring i { position: relative; font-style: normal; }
.bv-ring b { font-size: 18px; font-weight: 700; color: var(--ink); }
.bv-ring i { font-size: 9px; color: var(--faint); position: absolute; bottom: 12px; }
.bv-lines { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.bv-line { font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding-left: 18px; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-line::before { content: "✓"; position: absolute; left: 0; color: oklch(0.75 0.15 155); }
.bv-line.warn::before { content: "→"; color: var(--accent-deep); }

.bv-ranks { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.bv-rank { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11.5px; }
.bv-rank em { font-style: normal; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-rank b { color: oklch(0.78 0.14 155); font-weight: 600; flex: none; }
.bv-rank b.up { color: oklch(0.78 0.14 155); }

.bv-article { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.bv-atitle { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.bv-gates { display: flex; gap: 8px; flex-wrap: wrap; }
.bv-gate {
  font-family: var(--mono); font-size: 10.5px; padding: 4px 10px; border-radius: 999px;
  color: oklch(0.78 0.14 155); background: oklch(0.75 0.15 155 / 0.10); border: 1px solid oklch(0.75 0.15 155 / 0.25);
}

.bv-cms { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bv-chip {
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  color: var(--ink); background: oklch(1 0 0 / 0.06); border: 1px solid var(--line);
}
.bv-chip.mono { font-family: var(--mono); font-weight: 400; color: var(--accent-deep); border-color: var(--accent-line); background: var(--accent-soft); }

.bv-heat { display: grid; grid-template-columns: repeat(5, 16px); gap: 5px; }
.bv-heat i { width: 16px; height: 16px; border-radius: 5px; }
.bv-heat i.g { background: oklch(0.72 0.15 155 / 0.75); }
.bv-heat i.y { background: oklch(0.8 0.14 85 / 0.75); }
.bv-heat i.r { background: oklch(0.65 0.19 25 / 0.8); }

.bv-decay { width: 100%; max-width: 260px; height: auto; }

@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bcard.wide { grid-column: span 2; }
  .bgrow { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bcard.wide { grid-column: span 1; }
}

/* feature blocks (Features page) */
.fb-block {
  display: grid; grid-template-columns: 0.9fr 1.5fr; gap: 44px;
  padding: 48px 0; border-top: 1px solid var(--line);
}
.fb-head .fb-num { font-family: var(--mono); font-size: 12px; color: var(--faint); display: block; margin-bottom: 12px; }
.fb-head h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; text-wrap: balance; }
.fb-head .fb-result { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin-top: 12px; max-width: 38ch; }
.fb-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--accent-deep); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.fb-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 26px; align-content: start; }
.fb-item { display: flex; gap: 11px; align-items: flex-start; }
.fb-item .fb-check {
  flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 7px;
  display: grid; place-items: center;
  color: var(--accent-deep); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.fb-item .fb-check svg { width: 11px; height: 11px; }
.fb-item p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.fb-item p b { color: var(--ink); font-weight: 600; }
@media (max-width: 880px) {
  .fb-block { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .fb-list { grid-template-columns: 1fr; }
}

.prod-sec { padding: 40px 0; }
.prod-sec.tight { padding: 24px 0 40px; }
.prod-sec .section-head { margin-bottom: 40px; }


/* ============================================================
   Cases — listing
   ============================================================ */
.cases-sec { padding: 56px 0 120px; }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } }

.case-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .2s ease, border-color .2s ease;
}
.case-card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.case-card .thumb { position: relative; aspect-ratio: 16 / 9; }
.case-card .thumb image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.case-card .cbody { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.case-niche {
  align-self: flex-start;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-deep); padding: 5px 11px; border-radius: var(--radius-pill);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.case-result {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.025em;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.1;
}
.case-result .hl {
  background: linear-gradient(100deg, var(--accent-deep), oklch(0.82 0.12 22));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.case-desc { color: var(--muted); font-size: 15px; line-height: 1.55; }
.case-mini {
  display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 2px;
}
.case-mini span {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  padding: 5px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: oklch(1 0 0 / 0.03);
}
.case-read { margin-top: auto; color: var(--accent-ink); font-weight: 600; font-size: 14.5px; }

/* ============================================================
   Case — single study
   ============================================================ */
.case { padding: 132px 0 40px; }
.case-head { max-width: 820px; margin: 0 auto; }
.case-head .niche {
  display: inline-block; margin-bottom: 22px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-deep); padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.case-head h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.035em;
  font-size: clamp(32px, 4.6vw, 54px); line-height: 1.04;
}
.case-head .sub { margin-top: 20px; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.5; color: var(--muted); }

/* metric tiles */
.case-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 1040px; margin: 48px auto 0;
}
@media (max-width: 760px) { .case-metrics { grid-template-columns: repeat(2, 1fr); } }
.cmetric {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 28px 24px;
}
.cmetric .n {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(28px, 3.4vw, 40px);
}
.cmetric .n .hl {
  background: linear-gradient(100deg, var(--accent-deep), oklch(0.82 0.12 22));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cmetric .l { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.45; }

.case-cover {
  position: relative; max-width: 1040px; margin: 48px auto 0;
  aspect-ratio: 16 / 8; border-radius: var(--radius-l);
  border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-l);
}
.case-cover image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }

/* pull metric inside prose results */
.case-shot {
  position: relative; aspect-ratio: 16 / 8; margin: 36px 0;
  border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
}
.case-shot image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.case-shot-cap { margin-top: 12px; text-align: center; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }


