@font-face {
  font-family: "Clash Display";
  src: url("/assets/fonts/clash-display-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Clash Display";
  src: url("/assets/fonts/clash-display-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/general-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/general-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/general-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/general-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --background: #f2f6f4;
  --foreground: #17221e;
  --primary: #1f6d5b;
  --primary-foreground: #f7fbf9;
  --accent: #e3ebe7;
  --accent-foreground: #17221e;
  --muted: #e3ebe7;
  --muted-foreground: #5b6a65;
  --border: rgba(23, 34, 30, 0.12);
  --input: rgba(23, 34, 30, 0.14);
  --ring: rgba(31, 109, 91, 0.34);
  --card: #f9fcfb;
  --popover: #f9fcfb;
  --bv-bg: #f2f6f4;
  --bv-bg-soft: #e5edea;
  --bv-ink: #17221e;
  --bv-ink-soft: #5b6a65;
  --bv-surface: rgba(249, 252, 251, 0.82);
  --bv-surface-strong: rgba(249, 252, 251, 0.95);
  --bv-shell: rgba(249, 252, 251, 0.6);
  --bv-line: rgba(23, 34, 30, 0.1);
  --bv-line-strong: rgba(23, 34, 30, 0.16);
  --bv-clay: #278d74;
  --bv-clay-strong: #1f6d5b;
  --bv-clay-soft: rgba(39, 141, 116, 0.12);
  --bv-shadow: 0 32px 90px rgba(20, 45, 38, 0.08);
  --bv-shadow-lift: 0 18px 42px rgba(20, 45, 38, 0.1);
  --bv-hairline: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  --bv-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --bv-spring-strong: cubic-bezier(0.34, 1.42, 0.54, 1);
  --bv-display: "Clash Display", "General Sans", "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --bv-text: "General Sans", "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

html {
  color-scheme: light;
}

html.dark {
  color-scheme: dark;
  --background: #0b100e;
  --foreground: #e9f1ed;
  --primary: #66d7b6;
  --primary-foreground: #08120f;
  --accent: #17211d;
  --accent-foreground: #e9f1ed;
  --muted: #17211d;
  --muted-foreground: #9fafaa;
  --border: rgba(233, 241, 237, 0.12);
  --input: rgba(233, 241, 237, 0.14);
  --ring: rgba(102, 215, 182, 0.34);
  --card: #121816;
  --popover: #121816;
  --bv-bg: #0b100e;
  --bv-bg-soft: #121816;
  --bv-ink: #e9f1ed;
  --bv-ink-soft: #9fafaa;
  --bv-surface: rgba(23, 31, 28, 0.88);
  --bv-surface-strong: rgba(28, 37, 34, 0.95);
  --bv-shell: rgba(38, 49, 45, 0.52);
  --bv-line: rgba(233, 241, 237, 0.1);
  --bv-line-strong: rgba(233, 241, 237, 0.16);
  --bv-clay: #66d7b6;
  --bv-clay-strong: #88e2c6;
  --bv-clay-soft: rgba(102, 215, 182, 0.14);
  --bv-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
  --bv-shadow-lift: 0 18px 42px rgba(0, 0, 0, 0.34);
  --bv-hairline: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.font-sans,
.bg-background {
  background-color: var(--bv-bg);
  color: var(--bv-ink);
  font-family: var(--bv-text);
  letter-spacing: -0.006em;
  text-rendering: optimizeLegibility;
}

body.font-sans::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

html.dark body.font-sans::after {
  mix-blend-mode: screen;
  opacity: 0.045;
}

main h1,
main h2,
main h3,
#footer h2,
#footer h3 {
  color: var(--bv-ink);
  font-family: var(--bv-display);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

main p,
#footer p {
  color: var(--bv-ink-soft);
  font-size: clamp(1rem, 1.02vw + 0.78rem, 1.16rem);
  line-height: 1.72;
  text-wrap: pretty;
}

.text-amber-700 {
  color: var(--bv-clay-strong) !important;
}

.bv-guide-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(39, 141, 116, 0.24);
  border-radius: 999px;
  background: var(--bv-clay-soft);
  color: var(--bv-clay-strong);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.bv-tool-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(39, 141, 116, 0.24);
  border-radius: 999px;
  background: var(--bv-clay-soft);
  color: var(--bv-clay-strong);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

body.bv-tools main img.theme-image {
  display: none !important;
}

body.bv-tools main .group {
  height: 100%;
}

body.bv-tools main .group > div:first-child {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px !important;
}

body.bv-tools main .group h2 {
  white-space: normal !important;
  font-size: 1.075rem;
  line-height: 1.38;
  text-wrap: balance;
}

body.bv-tools main .group p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 15px;
  line-height: 1.65;
}

body.bv-tools main .group > div:first-child > div:last-child {
  margin-top: auto;
  padding-top: 10px;
}

body.bv-guides main .relative.flex-1 {
  display: none !important;
}

body.bv-guides main input {
  display: none !important;
}

body.bv-guides main .group > div > div:first-child:has(img) {
  display: none !important;
}

body.bv-guides main .group > div > div:nth-child(2) {
  padding-top: 22px !important;
}

body.bv-guides main .grid {
  align-items: start;
}

body.bv-guides main h3 {
  font-size: 1.15rem;
  line-height: 1.35;
}

body.bv-guides main p {
  font-size: 15px;
  line-height: 1.65;
}

main section,
#footer {
  scroll-margin-top: 104px;
}

main > section:first-of-type {
  position: relative;
  isolation: isolate;
  padding-block: clamp(56px, 8vw, 108px);
}

main > section:first-of-type::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 58% at 12% 18%, rgba(39, 141, 116, 0.14), transparent 66%),
    radial-gradient(46% 48% at 86% 64%, rgba(31, 109, 91, 0.08), transparent 72%);
}

main > section:first-of-type > div {
  display: grid;
  justify-items: start;
}

main > section:first-of-type h1 {
  max-width: min(960px, 100%);
  margin-block: 0 22px;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  text-align: start;
}

main > section:first-of-type h1::after {
  content: "";
  display: block;
  width: 84px;
  height: 3px;
  margin-top: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bv-clay), rgba(39, 141, 116, 0.24));
}

main > section:first-of-type p {
  max-width: min(58ch, 100%);
  margin-inline: 0;
  text-align: start;
}

.body-visualizer-model-surface {
  border-color: var(--bv-line) !important;
  border-radius: 2.5rem !important;
  background: linear-gradient(155deg, var(--bv-surface-strong), color-mix(in srgb, var(--bv-bg-soft) 72%, transparent)) !important;
  box-shadow: var(--bv-shadow);
}

.body-visualizer-model-surface > div:first-child {
  background: color-mix(in srgb, var(--bv-surface) 82%, transparent) !important;
  border-bottom-color: var(--bv-line) !important;
}

.body-visualizer-model-surface [class*="rounded"],
.body-visualizer-model-surface input,
.body-visualizer-model-surface button,
.body-visualizer-model-surface select {
  font-variant-numeric: tabular-nums;
}

#clone-weight-bar {
  display: none !important;
  right: clamp(16px, 4vw, 24px) !important;
  bottom: clamp(18px, 4vw, 28px) !important;
  background: transparent !important;
  box-shadow: none !important;
}

#clone-weight-bar > div {
  background: var(--bv-surface-strong) !important;
  border: 1px solid var(--bv-line) !important;
  border-radius: 1.35rem !important;
  box-shadow: var(--bv-shadow-lift) !important;
  backdrop-filter: blur(12px);
}

#clone-weight-bar span {
  color: var(--bv-clay-strong) !important;
  font-family: var(--bv-text) !important;
  font-weight: 600 !important;
}

main > section.space-y-3 {
  margin-top: clamp(44px, 6vw, 78px);
}

main > section.space-y-3 h2 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 2.2vw + 0.9rem, 2.3rem);
}

main > section.space-y-3 > div {
  gap: clamp(14px, 1.4vw, 20px) !important;
}

main > section.space-y-3 > div > a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  min-height: 76px;
  padding: 18px 20px;
  border: 1px solid var(--bv-line) !important;
  border-radius: 1.6rem !important;
  background: var(--bv-surface) !important;
  color: var(--bv-ink) !important;
  box-shadow: var(--bv-hairline);
  transition: transform 680ms var(--bv-spring-strong), box-shadow 680ms var(--bv-spring), border-color 420ms var(--bv-spring);
}

main > section.space-y-3 > div > a:hover {
  transform: translateY(-5px) scale(1.012);
  border-color: rgba(39, 141, 116, 0.42) !important;
  box-shadow: var(--bv-shadow-lift);
}

main > section.space-y-3 > div > a:active {
  transform: translateY(-1px) scale(0.995);
  transition-duration: 180ms;
}

main > section.space-y-3 > div > a > span:first-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(39, 141, 116, 0.18);
  border-radius: 1rem;
  background: var(--bv-clay-soft);
  color: var(--bv-clay-strong) !important;
  transition: transform 680ms var(--bv-spring-strong), background-color 420ms var(--bv-spring);
}

main > section.space-y-3 > div > a:hover > span:first-child {
  transform: rotate(-5deg) scale(1.06);
  background: color-mix(in srgb, var(--bv-clay-soft) 78%, white 22%);
}

main > section.space-y-3 > div > a > span:last-child {
  color: var(--bv-ink) !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

#usage {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bv-bg-soft) 78%, transparent) 44%, transparent) !important;
  padding-block: clamp(64px, 8vw, 120px) !important;
}

#usage > div > div:first-child {
  max-width: min(880px, 100%);
  margin: 0 0 clamp(44px, 5vw, 76px) !important;
  text-align: start;
}

#usage > div > div:first-child h2 {
  margin-bottom: 18px !important;
  font-size: clamp(2rem, 3vw + 0.8rem, 3.1rem);
}

#usage > div > div:first-child p {
  max-width: 66ch;
}

#usage {
  counter-reset: bv-step;
}

#usage h3 {
  counter-increment: bv-step;
  position: relative;
  padding-top: 52px;
  font-size: clamp(1.55rem, 1.5vw + 1rem, 2.1rem);
}

#usage h3::before {
  content: counter(bv-step, decimal-leading-zero);
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  display: inline-flex;
  align-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(39, 141, 116, 0.24);
  border-radius: 999px;
  background: var(--bv-surface-strong);
  color: var(--bv-clay-strong);
  font-family: var(--bv-text);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

#usage [class*="bg-muted/25"] {
  border: 1px solid var(--bv-line);
  border-radius: 2.2rem !important;
  background: linear-gradient(150deg, var(--bv-surface), var(--bv-clay-soft)) !important;
  box-shadow: var(--bv-shadow-lift);
}

#usage [class*="bg-muted/25"] [class*="rounded"] {
  border-radius: 1.7rem !important;
}

#features {
  background: transparent !important;
  padding-block: clamp(64px, 8vw, 120px) !important;
}

#features h2 {
  font-size: clamp(2rem, 3vw + 0.8rem, 3.1rem);
}

#features article {
  border: 1px solid var(--bv-line) !important;
  border-radius: 2.1rem !important;
  background: var(--bv-surface) !important;
  box-shadow: var(--bv-hairline);
  transition: transform 680ms var(--bv-spring-strong), box-shadow 680ms var(--bv-spring), border-color 420ms var(--bv-spring);
}

#features article:hover {
  transform: translateY(-6px) scale(1.008);
  border-color: rgba(39, 141, 116, 0.34) !important;
  box-shadow: var(--bv-shadow);
}

@media (min-width: 1024px) {
  #features > div > div:last-child {
    gap: clamp(18px, 2vw, 26px) !important;
    grid-template-columns: 1.3fr 0.85fr 0.85fr !important;
  }

  #features article:first-child {
    padding: clamp(28px, 3vw, 42px) !important;
  }
}

#faq {
  background: transparent !important;
  padding-block: clamp(64px, 8vw, 120px) !important;
}

#faq > div > div:first-child {
  margin-bottom: 0 !important;
}

#faq h2 {
  font-size: clamp(2rem, 3vw + 0.8rem, 3.1rem);
}

#faq [data-slot="accordion-item"] {
  border-color: var(--bv-line) !important;
}

#faq [data-slot="accordion-trigger"] {
  padding: 22px 12px !important;
  color: var(--bv-ink) !important;
  font-family: var(--bv-text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

#faq [data-slot="accordion-trigger"]::before {
  content: "";
  position: absolute;
  inset: 10px -10px;
  z-index: -1;
  border-radius: 1.25rem;
  background: transparent;
  transition: opacity 420ms var(--bv-spring);
  opacity: 0;
}

#faq [data-slot="accordion-trigger"]:hover::before {
  background: var(--bv-clay-soft);
  opacity: 1;
}

#faq [data-slot="accordion-trigger"][aria-expanded="true"] {
  color: var(--bv-clay-strong) !important;
}

@media (min-width: 1024px) {
  #faq > div {
    display: grid;
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
    gap: clamp(44px, 5vw, 72px);
    align-items: start;
  }

  #faq > div > div:first-child {
    display: block !important;
    text-align: start;
  }

  #faq > div > div:first-child p {
    max-width: 38ch;
    margin-inline: 0;
  }

  #faq > div > div:last-child {
    max-width: 100%;
    margin: 0;
    padding: clamp(18px, 2vw, 28px);
    border: 1px solid var(--bv-line);
    border-radius: 2.2rem;
    background: var(--bv-surface);
    box-shadow: var(--bv-hairline);
  }
}

#cta {
  background: transparent !important;
  padding-block: clamp(64px, 8vw, 120px) !important;
}

#cta > div > div {
  max-width: 100%;
  padding: clamp(36px, 7vw, 84px);
  border: 1px solid var(--bv-line);
  border-radius: clamp(1.8rem, 4vw, 3rem);
  background:
    radial-gradient(72% 112% at 12% 12%, rgba(39, 141, 116, 0.18), transparent 58%),
    radial-gradient(48% 72% at 88% 88%, rgba(31, 109, 91, 0.1), transparent 64%),
    var(--bv-surface);
  box-shadow: var(--bv-shadow);
}

#cta h2 {
  font-size: clamp(2.2rem, 4vw + 0.6rem, 3.6rem);
}

#cta a.bg-primary {
  border-radius: 1.2rem !important;
  background: var(--bv-clay-strong) !important;
  box-shadow: 0 18px 38px rgba(31, 109, 91, 0.2);
  transition: transform 620ms var(--bv-spring-strong), box-shadow 620ms var(--bv-spring), filter 420ms var(--bv-spring);
}

#cta a.bg-primary:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.04);
  box-shadow: 0 24px 52px rgba(31, 109, 91, 0.26);
}

#cta a.bg-primary:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 160ms;
}

#cta a[href="/blog"] {
  border-color: var(--bv-line-strong) !important;
  border-radius: 1.2rem !important;
  background: var(--bv-surface) !important;
  transition: transform 620ms var(--bv-spring-strong), border-color 420ms var(--bv-spring), background-color 420ms var(--bv-spring);
}

#cta a[href="/blog"]:hover {
  transform: translateY(-2px);
  background: var(--bv-surface-strong) !important;
}

#footer {
  padding-block: clamp(48px, 6vw, 84px);
}

#footer p {
  max-width: 48ch;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--bv-clay) 68%, transparent);
  outline-offset: 4px;
}

.bv-skip-link {
  position: fixed;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2147484000;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--bv-clay-strong);
  color: #fff;
  font-family: var(--bv-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(31, 109, 91, 0.22);
  transform: translateY(-260%);
  transition: transform 420ms var(--bv-spring-strong);
}

.bv-skip-link:focus {
  transform: translateY(0);
}

article.container > div > a[href$="/blog"] {
  display: none !important;
}

#cta {
  display: none !important;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main section h2,
    main section h3,
    main section p,
    main > section.space-y-3 > div > a,
    #features article {
      animation: bv-rise both;
      animation-timeline: view();
      animation-range: entry 0% cover 38%;
    }
  }
}

@keyframes bv-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 767px) {
  main > section:first-of-type {
    padding-block: 48px;
  }

  main > section:first-of-type h1 {
    margin-block: 0 18px;
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  main > section:first-of-type h1::after {
    margin-top: 20px;
  }

  main > section.space-y-3 > div > a {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 66px;
    padding: 15px 16px;
  }

  main > section.space-y-3 > div > a > span:first-child {
    width: 32px;
    height: 32px;
  }

  #usage h3 {
    padding-top: 48px;
  }

  #faq > div > div:first-child {
    border-radius: 1.6rem;
  }

  #cta > div > div {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ===== Layout Rework v5 — differentiate from origin layout ===== */

/* 1. Sticky frosted navigation (origin header is static) */
section.py-3.font-sans {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--bv-line);
  background: color-mix(in srgb, var(--bv-bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
}

/* 2. Section rhythm: soft band behind features (origin is fully flat) */
#features {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--bv-bg-soft) 85%, transparent) 18%, color-mix(in srgb, var(--bv-bg-soft) 85%, transparent) 82%, transparent) !important;
}

/* 3. Usage: strip the card shells, editorial split with oversized ghost numbers */
#usage [class*="bg-muted/25"] {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#usage [class*="bg-muted/25"] + [class*="bg-muted/25"],
#usage [class*="bg-muted/25"]:first-of-type {
  border-top: 1px solid var(--bv-line);
}

#usage [class*="bg-muted/25"] > div:last-child {
  position: relative;
  padding-block: clamp(26px, 3vw, 44px) !important;
}

#usage [class*="bg-muted/25"] h3 {
  padding-top: 0 !important;
  font-size: clamp(1.7rem, 2.4vw, 2.5rem) !important;
}

#usage [class*="bg-muted/25"] h3::before {
  top: auto;
  inset-inline-start: auto;
  inset-inline-end: 0;
  min-width: 74px;
  height: 58px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--bv-clay) 24%, transparent);
  font-family: var(--bv-display);
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

#usage [class*="bg-muted/25"] [class*="rounded"] {
  border-radius: 1.9rem 0.7rem 1.9rem 0.7rem !important;
}

/* 4. Features: single-column horizontal feature rows with two inner columns */
@media (min-width: 1024px) {
  #features > div > div:last-child {
    grid-template-columns: 1fr !important;
    max-width: 64rem;
    margin-inline: auto;
  }

  #features article {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    column-gap: clamp(28px, 3.4vw, 56px);
    align-items: center;
    padding: clamp(26px, 2.6vw, 38px) clamp(26px, 2.6vw, 40px) !important;
  }

  #features article > div:first-child {
    margin-bottom: 0 !important;
    padding-inline-end: clamp(20px, 2.4vw, 36px);
    border-inline-end: 1px solid var(--bv-line);
  }

  #features article > div:first-child h3 {
    font-size: clamp(1.35rem, 1.4vw + 0.7rem, 1.8rem);
  }

  #features article > p {
    margin-block: 0;
    max-width: none;
  }

  #features article:nth-child(2) {
    transform: translateX(clamp(-28px, -2vw, -12px));
  }

  #features article:nth-child(3) {
    transform: translateX(clamp(-56px, -4vw, -24px));
  }
}

/* 5. Body-tools list: two wide cards instead of four slim columns */
@media (min-width: 1024px) {
  body.bv-tools main .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(18px, 2vw, 26px) !important;
  }

  body.bv-tools main .group h2 {
    font-size: 1.3rem !important;
  }
}

/* 6. Hero: vertical measuring-tick ornament on the right (desktop only) */
@media (min-width: 1100px) {
  main > section:first-of-type::after {
    content: "";
    position: absolute;
    top: clamp(48px, 7vw, 96px);
    inset-inline-end: clamp(18px, 3vw, 44px);
    width: 22px;
    height: min(46vh, 380px);
    pointer-events: none;
    background: repeating-linear-gradient(
      to bottom,
      var(--bv-line-strong) 0 2px,
      transparent 2px 18px
    );
    -webkit-mask-image: linear-gradient(to bottom, #000 0 58%, transparent 96%);
    mask-image: linear-gradient(to bottom, #000 0 58%, transparent 96%);
  }

  main > section:first-of-type > div {
    padding-inline-end: clamp(64px, 7vw, 130px);
  }
}

/* 7. FAQ panel loses its box; questions sit on the band directly */
@media (min-width: 1024px) {
  #faq > div > div:last-child {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  #faq [data-slot="accordion-item"] {
    border-top: 1px solid var(--bv-line-strong) !important;
  }

  #faq [data-slot="accordion-item"]:last-child {
    border-bottom: 1px solid var(--bv-line-strong) !important;
  }
}

/* 8. Guides page grid: two columns instead of four */
@media (min-width: 1024px) {
  body.bv-guides main .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ===== v5.1 — deeper skeleton differentiation ===== */

/* 9. Navigation shrinks as the page scrolls (scroll-driven, Chrome) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    section.py-3.font-sans {
      animation: bv-nav-shrink linear both;
      animation-timeline: scroll(root);
      animation-range: 0 180px;
    }
  }
}

@keyframes bv-nav-shrink {
  to {
    padding-block: 4px;
    box-shadow: 0 12px 32px rgba(20, 45, 38, 0.09);
  }
}

/* 10. Alternating section bands across the whole page */
#faq {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--bv-bg-soft) 42%, transparent) 16%, color-mix(in srgb, var(--bv-bg-soft) 42%, transparent) 84%, transparent) !important;
}

main > section.space-y-3,
section.space-y-3 {
  position: relative;
  isolation: isolate;
  padding-block: clamp(48px, 6vw, 88px) !important;
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--bv-bg-soft) 60%, transparent) 14%, color-mix(in srgb, var(--bv-bg-soft) 60%, transparent) 86%, transparent);
}

/* full-width hairlines between the banded sections */
main > section.space-y-3::after,
section.space-y-3::after,
#features::after,
#faq::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--bv-line);
  pointer-events: none;
}

/* 11. Four-column link grids (homepage related tools / guides): two wide columns */
@media (min-width: 1024px) {
  section.space-y-3 div.grid[class*="lg:grid-cols-4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(14px, 1.6vw, 20px) !important;
  }

  section.space-y-3 div.grid[class*="lg:grid-cols-4"] > a {
    margin-top: 0 !important;
    min-height: 66px;
    padding: 14px 18px;
  }
}

/* 12. Featured card of the tools row gets an accent edge (hero of the strip) */
section.space-y-3 div.grid[class*="lg:grid-cols-4"] > a:first-child {
  border-inline-start: 3px solid var(--bv-clay) !important;
}
