/* ══════════════════════════════════════════════════════════════════
   CUSTOM KATANA — Builder landing / overview page
   Ported from the polished UI (CustomBuilderPage assembly):
     1. Hero — dark, video slot, bottom-left eyebrow + title
     2. Features — grey card, 3 promises
     3. Brands — 4 tier cards + "More about" → brand modal
     4. Blade Archive — full-bleed horizontal scroll of past builds
     5. Video Testimonials — Swiper stories rail (shared vt-modal)
     6. Reviews — filterable grid (four builder brands)
   Reuses css/reviews.css (.review-card / .rv-*) for section 6 and the
   shared story-thumb component for section 5.
   ══════════════════════════════════════════════════════════════════ */

/* ═══════════ 1 · HERO ═══════════ */
.cb-hero {
  position: relative; background: #0b1310; color: #fff; overflow: hidden;
  min-height: 682px; display: flex; align-items: flex-end;
}
.cb-hero-video {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(168, 50, 69, .22), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(217, 119, 87, .18), transparent 60%),
    linear-gradient(135deg, #0a0f0d 0%, #1a2620 50%, #0a0f0d 100%);
}
.cb-hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-hero-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.04) 40%, rgba(255,255,255,.10) 50%, rgba(255,255,255,.04) 60%, transparent 100%);
  animation: cbHeroSheen 6s linear infinite;
}
.cb-hero-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, transparent 0 124px, rgba(255,255,255,.05) 124px 125px);
}
@keyframes cbHeroSheen { 0% { transform: translateX(-30%); } 100% { transform: translateX(30%); } }
.cb-hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,19,16,.15) 0%, rgba(11,19,16,0) 35%, rgba(11,19,16,.55) 75%, rgba(11,19,16,.85) 100%),
    radial-gradient(ellipse at 20% 95%, rgba(11,19,16,.7) 0%, rgba(11,19,16,0) 55%);
}
.cb-hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: 1280px;
  margin: 0 auto; padding: 0 40px 56px;
}
.cb-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.65); font-weight: 600; margin-bottom: 14px;
}
.cb-hero-dot { width: 6px; height: 6px; border-radius: 99px; background: var(--accent-500); box-shadow: 0 0 8px rgba(217,119,87,.8); }
.cb-hero-title {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: 44px; line-height: 1.05; letter-spacing: -.018em; color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
}

/* ═══════════ 2 · FEATURES ═══════════ */
.cb-feat { position: relative; padding: 80px 0 88px; background: #fff; overflow: hidden; }
.cb-feat-card {
  position: relative; background: #f4f5f6; border: 1px solid rgba(11,19,16,.06);
  border-radius: 14px; padding: 56px 24px; overflow: hidden;
}
.cb-feat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 90px;
  background: linear-gradient(180deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 100%); pointer-events: none;
}
.cb-eyebrow-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg-tertiary); font-weight: 600; padding: 6px 14px;
  border-radius: 999px; border: 1px solid rgba(11,19,16,.10); background: #fff;
}
.cb-eyebrow-chip .cb-hero-dot { box-shadow: 0 0 6px rgba(217,119,87,.55); }
.cb-feat-eyebrow-row { position: relative; display: flex; justify-content: center; margin-bottom: 44px; }
.cb-feat-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.cb-feat-cell { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 8px 36px; }
.cb-feat-divider {
  position: absolute; top: 12px; bottom: 12px; right: 0; width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(11,19,16,.12) 18%, rgba(11,19,16,.12) 82%, transparent 100%);
}
.cb-feat-glyph {
  width: 44px; height: 44px; border-radius: 50%; background: #fff;
  border: 1px solid rgba(217,119,87,.35); color: var(--accent-500);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(217,119,87,.10); flex-shrink: 0;
}
.cb-feat-cell h3 {
  margin: 4px 0 0; font-family: var(--font-display); font-weight: 500;
  font-size: 24px; line-height: 1.2; letter-spacing: -.012em; color: var(--ink-900);
}
.cb-feat-cell p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fg-secondary); max-width: 320px; }

/* ═══════════ 3 · BRANDS ═══════════ */
.cb-brands { padding: 40px 0 56px; background: #fff; }
.cb-brands-header { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 28px; }
.cb-brands-header .cb-eyebrow-chip { margin-bottom: 14px; }
.cb-brands-title {
  margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 42px;
  line-height: 1.15; letter-spacing: -.02em; color: var(--ink-900); text-wrap: balance; max-width: 720px;
}
.cb-brands-sub { margin: 14px 0 0; max-width: 620px; font-size: 15px; line-height: 1.6; color: var(--fg-secondary); text-wrap: pretty; }
.cb-brands-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.cb-bcard { background: #fff; border: 1px solid rgba(11,19,16,.10); border-radius: 10px; display: flex; flex-direction: column; overflow: hidden; }
.cb-tier-band {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; min-height: 36px; box-sizing: border-box;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
}
.cb-tier-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-tier-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 9px; letter-spacing: .1em;
  padding: 3px 9px 3px 8px; border-radius: 999px; background: #fff; font-weight: 700; white-space: nowrap;
}
.cb-tier-pill-dot { width: 6px; height: 6px; border-radius: 99px; flex: 0 0 6px; }
.cb-bcard-head { padding: 22px 20px 12px; }
.cb-bcard-id { display: flex; align-items: center; gap: 12px; }
.cb-bcard-disc { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 48px; }
.cb-bcard-disc img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 50%; }
.cb-bcard-disc.is-inset { background: #fafaf9; border: 1px solid rgba(11,19,16,.10); }
.cb-bcard-disc.is-inset img { width: 72%; height: 72%; border-radius: 0; }
.cb-bcard-name { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: -.01em; color: var(--ink-900); line-height: 1.15; }
.cb-bcard-stars { margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; }
.cb-bcard-stars .stars { display: inline-flex; gap: 1px; }
.cb-bcard-stars .stars .ic { width: 12px; height: 12px; color: var(--accent-500); }
.cb-bcard-rating { font-size: 11.5px; color: var(--fg-tertiary); font-variant-numeric: tabular-nums; }
.cb-bcard-rating b { color: var(--ink-900); font-weight: 700; }
.cb-bcard-tier { margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(11,19,16,.16); }
.cb-bcard-tier-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.cb-bcard-hero { margin: 0; font-size: 14px; line-height: 20px; font-family: var(--font-display); font-weight: 500; letter-spacing: -.005em; color: var(--ink-900); text-wrap: balance; }
.cb-bcard-blurb { margin: 10px 0 0; font-size: 12.5px; line-height: 19px; color: var(--fg-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cb-bcard-specs { padding: 14px 20px 0; }
.cb-bcard-specs-grid { border-top: 1px solid rgba(11,19,16,.08); padding-top: 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cb-bcard-spec { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cb-bcard-spec-k { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-tertiary); font-weight: 600; }
.cb-bcard-spec-v { font-size: 12.5px; line-height: 1.3; color: var(--ink-900); font-weight: 500; }
.cb-bcard-cta { padding: 16px 20px 18px; margin-top: auto; }
/* "10% OFF with coupon code" above the build button - the brand card's coupon (swordis_builder_coupon(), builder-products.php) */
/* PRICE with the coupon: the card's price struck through, the coupon price in red under it (swordis_front_coupon_price_html()) */
.cb-price { display: flex; flex-direction: column; gap: 2px; }
.cb-price del { color: var(--fg-tertiary); font-weight: 500; text-decoration: line-through; }
.cb-price ins { color: var(--sale-500); font-weight: 700; text-decoration: none; }
.cb-bcard-coupon { margin: 0 0 10px; text-align: center; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-900); }
/* "Max 10% off with Tamahagane steel or Sashikomi A++ polish" under it (builder-discount-cap.php) */
.cb-bcard-coupon-note { margin: -6px 0 10px; text-align: center; font-size: 12px; line-height: 16px; color: var(--fg-secondary); text-wrap: balance; }
.cb-bcard-build {
  width: 100%; padding: 11px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #0b1310; color: #fff; border: 1px solid #0b1310; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; cursor: pointer; font-family: inherit;
  transition: background .18s, color .18s;
}
.cb-bcard-build:hover { background: #17433d; }
.cb-bcard-more {
  display: block; width: 100%; text-align: center; margin-top: 10px; background: transparent; border: 0; padding: 0;
  cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--fg-secondary);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(11,19,16,.25);
  transition: color .15s, text-decoration-color .15s;
}
.cb-bcard-more:hover { color: var(--ink-900); text-decoration-color: var(--ink-900); }
/* Dragon's Breath Forge: bespoke commission card (no reviews, no builder) */
a.cb-bcard-build, a.cb-bcard-more { text-decoration-line: none; box-sizing: border-box; }
a.cb-bcard-more { text-decoration-line: underline; }
.cb-bcard-disc.is-photo img { object-fit: cover; object-position: 40% center; }
.cb-bcard-sub { margin-top: 4px; font-size: 11.5px; color: var(--fg-tertiary); }
.cb-bcard-points { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.cb-bcard-points li { position: relative; padding-left: 20px; font-size: 12.5px; line-height: 18px; color: var(--fg-secondary); }
.cb-bcard-points li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 9px; height: 5px; border-left: 1.6px solid #1f3a5f; border-bottom: 1.6px solid #1f3a5f; transform: rotate(-45deg); }

/* ═══════════ 4 · BLADE ARCHIVE ═══════════ */
.cb-archive { padding: 72px 0 96px; background: #fff; overflow: hidden; border-top: 1px solid var(--border); }
.cb-archive > .container { max-width: none; margin: 0; padding-left: max(40px, calc((100vw - 1440px) / 2 + 40px)); padding-right: max(40px, calc((100vw - 1440px) / 2 + 40px)); }
.cb-archive-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.cb-archive-eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-tertiary); font-weight: 600; margin-bottom: 6px; }
.cb-archive-title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 36px; line-height: 1.1; letter-spacing: -.015em; color: var(--ink-900); }
.cb-archive-nav { display: flex; gap: 8px; flex-shrink: 0; }
.cb-archive-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: #fff;
  color: var(--ink-900); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.cb-archive-arrow:hover { background: var(--ink-100); }
.cb-archive-arrow[disabled] { opacity: .4; cursor: default; }
.cb-archive-bleed { margin-top: 8px; }
.cb-archive-scroll {
  display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; padding-bottom: 8px;
  padding-left: max(40px, calc((100vw - 1440px) / 2 + 40px));
  scrollbar-width: none;
}
.cb-archive-scroll::-webkit-scrollbar { display: none; }
.cb-archive-item { flex: 0 0 auto; width: min(594px, 75vw); }
.cb-arch-card, .cb-arch-card:hover { color: #fff; }
.cb-arch-card { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 628 / 420; background: #1c2a26; text-decoration: none; display: block; }
.cb-arch-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.cb-arch-card:hover img { transform: scale(1.04); }
.cb-arch-scrim {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.78) 100%);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.cb-arch-info { min-width: 0; max-width: calc(100% - 80px); }
.cb-arch-brand { font-family: var(--font-ui); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.78); margin-bottom: 6px; }
.cb-arch-name { font-family: var(--font-display); font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-arch-price { font-family: var(--font-display); font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -.01em; flex-shrink: 0; }
.cb-archive-foot { text-align: center; margin-top: 32px; }
.cb-archive-foot a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-900); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--ink-900); }

/* ═══════════ 5 · VIDEO TESTIMONIALS (dark, full-bleed arrow scroll) ═══════════ */
.cb-stories { padding: 72px 0 56px; background: #0b1310; color: #fff; overflow: hidden; }
.cb-stories-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.cb-stories-eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 600; margin-bottom: 8px; }
.cb-stories-title { margin: 0; font-family: var(--font-display); font-size: 34px; font-weight: 500; line-height: 40px; letter-spacing: -.01em; color: #fff; }
.cb-stories-nav { display: flex; gap: 8px; flex-shrink: 0; }
.cb-stories-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.cb-stories-arrow:hover { background: rgba(255,255,255,.16); }
.cb-stories-arrow[disabled] { opacity: .35; cursor: default; }
.cb-stories-bleed { }
.cb-stories-scroll {
  display: flex; align-items: flex-start; gap: 16px; overflow-x: auto; overflow-y: hidden; padding-bottom: 8px;
  padding-left: max(40px, calc((100vw - 1440px) / 2 + 40px));
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.cb-stories-scroll::-webkit-scrollbar { display: none; }
/* 12.5% over the handoff's 240 x 427, like the home rail's tiles */
.cb-stories-scroll .cb-story { flex: 0 0 auto; width: 270px; height: 480px; scroll-snap-align: start; }
/* Story-thumb component base (this page doesn't load styles.css / product.css) */
.story-thumb { position: relative; border-radius: 8px; overflow: hidden; background: linear-gradient(165deg, #17433d 0%, #01231f 100%); color: #fff; text-align: left; display: block; }
.story-thumb-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.story-thumb-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.story-thumb.is-playing .story-thumb-video { opacity: 1; }
.story-thumb-vignette { position: absolute; inset: 0; background: radial-gradient(circle at 30% 40%, rgba(0,0,0,.12), transparent 60%); pointer-events: none; }
.story-thumb-play { position: absolute; top: 50%; left: 50%; margin: -28px 0 0 -28px; width: 56px; height: 56px; border-radius: 50%; background: rgba(8,88,78,.85); color: #fff; border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: opacity .2s ease; }
.story-thumb.is-playing .story-thumb-play { opacity: 0; }
.story-thumb-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 14px 14px; background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.75) 100%); transition: opacity .2s ease; display: block; }
.story-thumb.is-playing .story-thumb-caption { opacity: 0; }
.story-thumb-author { display: block; font-size: 14px; font-weight: 500; line-height: 18px; }
.story-thumb-role { display: block; font-size: 12px; opacity: .7; margin-top: 2px; }
.story-thumb-progress { position: absolute; left: 12px; right: 12px; top: 10px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; opacity: 0; transition: opacity .2s; }
.story-thumb.is-playing .story-thumb-progress { opacity: 1; }
.story-thumb-progress-fill { display: block; width: 0; height: 100%; background: #fff; border-radius: 2px; }
.cb-story { aspect-ratio: 9 / 16; }
.cb-story .story-thumb-play {
  width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(8,88,78,.85);
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.cb-story .story-thumb-play .ic { width: 21px; height: 21px; }
.cb-story .story-thumb-progress { top: 10px; bottom: auto; }

/* ═══════════ BRAND MODAL (ported from PfdBrandModalMount) ═══════════ */
@keyframes ckpFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ckpRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ckpSheetUp { from { transform: translateY(100%); } to { transform: none; } }
.ckp-bmodal-overlay { position: fixed; inset: 0; z-index: 9998; background: rgba(12,14,18,.45); display: flex; align-items: center; justify-content: center; padding: 40px 24px; animation: ckpFade 160ms ease; }
.ckp-bmodal-overlay[hidden] { display: none; }
.ckp-bmodal { background: #fff; border-radius: 16px; width: 100%; max-width: 860px; max-height: 86vh; overflow: auto; box-shadow: 0 24px 80px rgba(0,0,0,.28); animation: ckpRise 220ms ease; }
.ckp-bmodal-head { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 3; background: #fff; }
.ckp-bmodal-head img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); background: #fff; flex-shrink: 0; }
.ckp-bmodal-name { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.15; letter-spacing: -.01em; color: var(--ink-900); }
.ckp-bmodal-where { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-tertiary); font-weight: 600; margin-top: 4px; }
.ckp-bmodal-close { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border-strong); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink-900); flex-shrink: 0; }
.ckp-bmodal-body { padding: 24px; }
.ckp-bmodal-body p { font-size: 15px; line-height: 1.65; color: var(--ink-800); margin: 0 0 4px; }
.ckp-bmodal-body p:first-child { margin-bottom: 14px; }
.ckp-bmodal-body p strong { color: var(--ink-900); font-weight: 600; }
.ckp-cmp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; margin-bottom: 12px; flex-wrap: wrap; }
.ckp-cmp-title { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-tertiary); font-weight: 600; }
.ckp-cmp-seg { display: inline-flex; background: #f5f5f4; border-radius: 10px; padding: 4px; }
.ckp-cmp-seg button { padding: 6px 12px; border-radius: 8px; border: none; background: transparent; font-family: var(--font-ui); font-size: 12px; font-weight: 600; cursor: pointer; color: var(--ink-700); }
.ckp-cmp-seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); color: var(--ink-900); }
.ckp-cmp-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ckp-cmp-row { display: grid; gap: 10px; align-items: center; padding: 14px 16px; font-size: 13px; color: var(--ink-800); border-top: 1px solid var(--border); position: relative; }
.ckp-cmp-row.is-head { padding: 12px 16px; background: #f5f5f4; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-tertiary); font-weight: 600; border-top: none; }
.ckp-cmp-row.is-active { background: #fdf4ef; }
.ckp-cmp-row.is-active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent-500, #c85a3b); }
.ckp-cmp-row .cmp-brand { font-weight: 500; color: var(--ink-900); }
.ckp-cmp-row.is-active .cmp-brand { font-weight: 600; }
.ckp-cmp-row.is-active span:not(.cmp-brand) { font-weight: 500; color: var(--ink-900); }
.ckp-cmp-cell-label { display: none; }

/* ── Tablet (≤960) ── */
@media (max-width: 960px) {
  .cb-brands-grid { grid-template-columns: repeat(2, 1fr); }
  .cb-stories-title, .cb-archive-title { font-size: 30px; }
  .ckp-bmodal-name { font-size: 24px; }
}
/* ── Small tablet / large phone (≤760) ── */
@media (max-width: 760px) {
  .cb-hero { min-height: 520px; }
  .cb-hero-inner { padding: 0 20px 40px; }
  .cb-hero-title { font-size: 31px; }
  .cb-feat { padding: 40px 0 48px; }
  .cb-feat-card { padding: 28px 16px 12px; border-radius: 12px; }
  .cb-feat-eyebrow-row { margin-bottom: 24px; }
  .cb-feat-grid { grid-template-columns: 1fr; }
  .cb-feat-cell { padding: 18px 4px; gap: 10px; }
  .cb-feat-cell h3 { font-size: 20px; line-height: 1.25; }
  .cb-feat-cell p { font-size: 14px; line-height: 1.55; max-width: none; }
  .cb-feat-divider { top: auto; bottom: 0; left: 4px; right: 4px; width: auto; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(11,19,16,.12) 18%, rgba(11,19,16,.12) 82%, transparent 100%); }
  .cb-brands { padding: 32px 0 40px; }
  .cb-brands-title { font-size: 28px; line-height: 1.15; }
  .cb-brands-grid { grid-template-columns: 1fr; gap: 12px; }
  .cb-archive-title, .cb-stories-title { font-size: 26px; }
  /* Mobile: align archive + stories rails to the same 14px container grid
     as their headers (desktop uses the wider bleed offset). */
  .cb-archive > .container { padding-left: 14px; }
  .cb-archive-scroll, .cb-stories-scroll { padding-left: 14px; }
  /* Mobile: shorten the testimonials heading to just "Testimonials" */
  .cb-stories-title-pre { display: none; }
}
/* Stories: mobile bleed to the frame's right edge */
@media (max-width: 520px) {
  .cb-hero-title { font-size: 31px; }
  .cb-stories-scroll .cb-story { width: 67.5vw; max-width: 337.5px; }
  .ckp-bmodal-overlay { align-items: flex-end; justify-content: stretch; padding: 0; }
  .ckp-bmodal { max-width: none; width: 100%; max-height: 90vh; border-radius: 20px 20px 0 0; animation: ckpSheetUp 260ms cubic-bezier(.22,.61,.36,1); }
  .ckp-bmodal-head { padding: 20px 18px 14px; }
  .ckp-bmodal-head::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 36px; height: 4px; border-radius: 2px; background: var(--border-strong); }
  .ckp-cmp-seg { width: 100%; }
  .ckp-cmp-seg button { flex: 1; }
  .ckp-cmp-table { border: 0; border-radius: 0; overflow: visible; display: flex; flex-direction: column; gap: 10px; background: transparent; }
  .ckp-cmp-row.is-head { display: none; }
  .ckp-cmp-row { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; gap: 6px 16px; }
  .ckp-cmp-row::before { display: none; }
  .ckp-cmp-row.is-active { background: #fdf4ef; border-color: var(--accent-500, #c85a3b); }
  .ckp-cmp-row .cmp-brand { grid-column: 1 / -1; font-family: var(--font-display); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
  .ckp-cmp-cell { color: var(--ink-800); font-size: 14px; }
  .ckp-cmp-cell-label { display: block !important; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-tertiary) !important; font-weight: 600 !important; margin-bottom: 3px; }
  .ckp-cmp-row--price { grid-template-columns: 1fr 1fr !important; }
  .ckp-cmp-row--features { grid-template-columns: 1fr !important; gap: 10px; }
  .ckp-cmp-row--features .ckp-cmp-cell { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; }
  .ckp-cmp-row--features .ckp-cmp-cell-label { margin-bottom: 0; }
}

/* ─── WordPress integration (not in the handoff) ───────────── */
/* testimonials rail is the home [stories] Swiper (main.js) - it owns the layout + left offset */
.cb-stories-scroll.swiper { display: block; overflow: hidden; padding-left: 0; scroll-snap-type: none; }
.cb-stories-arrow.swiper-button-disabled { opacity: .35; cursor: default; }
/* head lines up with the rail offset (same as the archive head) */
.cb-stories > .container { max-width: none; margin: 0; padding-left: max(40px, calc((100vw - 1440px) / 2 + 40px)); padding-right: max(40px, calc((100vw - 1440px) / 2 + 40px)); }
@media (max-width: 720px) {
  .cb-stories > .container { padding-left: 14px; padding-right: 14px; }
}
/* build cta is a link to the brand's builder product */
a.cb-bcard-build { box-sizing: border-box; text-decoration: none; }
a.cb-bcard-build:hover { color: #fff; }
.cb-bcard-stars .stars .ic.is-off { color: var(--ink-300, #c8cdd1); }
/* brand modal - one server-rendered dialog per brand, price / features tables toggled */
.ckp-bmodal[hidden], .ckp-cmp-table[hidden] { display: none !important; }
