/* ============================================================
   Brainz home — SaaS-style redesign (dark-first)
   Scoped to body.v2 so the shared kit styles keep owning every
   other page. Light mode via html.light overrides the tokens.
   ============================================================ */

body.v2 {
  --bg:          #07070A;
  --bg-2:        #0C0C11;
  --card:        rgba(255, 255, 255, 0.025);
  --card-hi:     rgba(255, 255, 255, 0.05);
  --line:        rgba(255, 255, 255, 0.08);
  --line-hi:     rgba(255, 255, 255, 0.16);
  --fg:          #FAFAFA;
  --fg-2:        rgba(255, 255, 255, 0.70);
  --fg-3:        rgba(255, 255, 255, 0.52);
  --purple:      #7A1FFF;
  --cyan:        #2BA6FF;
  --grad:        linear-gradient(135deg, #8B3DFF 0%, #2BA6FF 100%);
  --glow-a:      rgba(122, 31, 255, 0.35);
  --glow-b:      rgba(43, 166, 255, 0.28);
  --ok:          #34D399;
  --shadow:      0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --wrap:        1160px;
  --radius:      16px;

  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: hidden turns body into a scroll container and breaks the sticky header */
  overflow-x: clip;
}
html.light body.v2 {
  --bg:      #FBFBFD;
  --bg-2:    #F2F3F7;
  --card:    #FFFFFF;
  --card-hi: #FFFFFF;
  --line:    rgba(10, 10, 20, 0.08);
  --line-hi: rgba(10, 10, 20, 0.16);
  --fg:      #0A0A0F;
  --fg-2:    rgba(10, 10, 15, 0.70);
  --fg-3:    rgba(10, 10, 15, 0.58);
  --glow-a:  rgba(122, 31, 255, 0.16);
  --glow-b:  rgba(43, 166, 255, 0.16);
  --shadow:  0 30px 70px -25px rgba(20, 20, 60, 0.25);
}

:where(body.v2) *, :where(body.v2) *::before, :where(body.v2) *::after { box-sizing: border-box; }
:where(body.v2) a { color: inherit; }
:where(body.v2) :where(p, h1, h2, h3) { margin: 0; }
.v2-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.v2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: 10px;
  font: 600 15px/1 "Inter", sans-serif;
  text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.v2-btn--primary {
  background: var(--grad); color: #fff !important;
  box-shadow: 0 8px 30px -8px var(--glow-a), inset 0 1px 0 rgba(255,255,255,.25);
}
.v2-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -8px var(--glow-a), inset 0 1px 0 rgba(255,255,255,.25); }
.v2-btn--ghost {
  border: 1px solid var(--line-hi); color: var(--fg) !important;
  background: var(--card);
}
.v2-btn--ghost:hover { border-color: var(--fg-3); background: var(--card-hi); }
.v2-btn--sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 8px; }
.v2-btn .arr { transition: transform .15s ease; }
.v2-btn:hover .arr { transform: translateX(2px); }

/* ---------- Header ---------- */
.v2-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, backdrop-filter .2s ease;
}
.v2-header.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.v2-header__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.v2-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; flex-shrink: 0; }
.v2-logo img { width: auto; height: 28px; }
.v2-nav { display: flex; gap: 4px; margin-right: auto; }
.v2-nav a {
  padding: 8px 12px; border-radius: 8px;
  font-size: 14px; color: var(--fg-2); text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.v2-nav a:hover { color: var(--fg); background: var(--card-hi); }
.v2-header__tools { display: flex; align-items: center; gap: 10px; }
body.v2 .lang-switcher { border-color: var(--line); }
body.v2 .theme-toggle { color: var(--fg-2); border-color: var(--line); background: transparent; }

/* ---------- Hero ---------- */
.v2-hero { position: relative; padding: 88px 0 40px; text-align: center; isolation: isolate; }
.v2-hero::before {
  content: ""; position: absolute; z-index: -1;
  inset: -120px 0 auto; height: 760px;
  background:
    radial-gradient(40% 50% at 35% 30%, var(--glow-a), transparent 70%),
    radial-gradient(40% 50% at 65% 35%, var(--glow-b), transparent 70%);
  pointer-events: none;
}
.v2-hero::after {
  /* faint grid, fades out downward */
  content: ""; position: absolute; z-index: -1; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 55% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 55% at 50% 20%, #000 20%, transparent 75%);
  opacity: .55;
  pointer-events: none;
}
.v2-pill {
  max-width: 100%; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line-hi); border-radius: 999px;
  background: var(--card);
  font-size: 13px; color: var(--fg-2); text-decoration: none;
}
.v2-pill__tag {
  padding: 3px 9px; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 600; font-size: 11.5px; letter-spacing: .02em;
}
.v2-hero h1 {
  margin: 28px auto 0;
  max-width: 15ch;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 650;
  text-wrap: balance;
}
.v2-hero h1 .accent, .v2-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.v2-hero__sub {
  margin: 24px auto 0; max-width: 40rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55;
  color: var(--fg-2);
  text-wrap: pretty;
}
.v2-hero__ctas { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.v2-hero__note { margin-top: 16px; font-size: 13px; color: var(--fg-3); }

/* ---------- Product mock ---------- */
.v2-mock-wrap { position: relative; margin: 72px auto 0; max-width: 1040px; perspective: 1600px; }
.v2-mock-wrap::before {
  /* soft glow from gradients alone — a big filter: blur() is costly on phones */
  content: ""; position: absolute; inset: -10% -10% -20%; z-index: -1;
  background:
    radial-gradient(45% 45% at 35% 55%, var(--glow-a), transparent 70%),
    radial-gradient(45% 45% at 65% 55%, var(--glow-b), transparent 70%);
  pointer-events: none;
}
.v2-mock {
  text-align: left;
  border: 1px solid var(--line-hi);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  transform: rotateX(8deg);
  transform-origin: 50% 0;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.v2-mock-wrap:hover .v2-mock { transform: rotateX(0deg); }
.v2-mock__bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--fg-3);
}
.v2-mock__dots { display: flex; gap: 6px; margin-right: 8px; }
.v2-mock__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-hi); display: block; }
.v2-mock__title { color: var(--fg-2); font-weight: 500; }
.v2-mock__tag { margin-left: auto; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; }
.v2-mock__body { display: grid; grid-template-columns: 1.6fr 1fr; }
.v2-mock__main { padding: 20px; border-right: 1px solid var(--line); }
.v2-mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.v2-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--card); }
.v2-kpi__label { font-size: 12px; color: var(--fg-3); }
.v2-kpi__value { margin-top: 6px; font-size: 24px; font-weight: 650; letter-spacing: -0.03em; }
.v2-kpi__delta { margin-top: 2px; font-size: 12px; color: var(--ok); font-weight: 500; }
.v2-chart { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 8px; background: var(--card); }
.v2-chart__head { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-3); }
.v2-chart svg { display: block; width: 100%; height: 150px; margin-top: 8px; }
.v2-mock__side { padding: 20px; }
.v2-mock__side h4 { margin: 0 0 12px; font-size: 12px; font-weight: 600; color: var(--fg-3); text-transform: uppercase; letter-spacing: .08em; }
.v2-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.v2-feed li {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start;
  padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  font-size: 13px; line-height: 1.45; color: var(--fg-2);
}
.v2-feed__ico {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
}
.v2-feed__t { display: block; margin-top: 4px; font-size: 11.5px; color: var(--fg-3); }

/* ---------- Logo / proof strip ---------- */
.v2-proof { padding: 48px 0 0; }
.v2-proof__label { text-align: center; font-size: 13px; color: var(--fg-3); }
.v2-stats {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.v2-stat { padding: 28px 24px; border-right: 1px solid var(--line); }
.v2-stat:last-child { border-right: 0; }
.v2-stat__v { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.v2-stat__l { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--fg-2); }

/* ---------- Section scaffolding ---------- */
.v2-section { padding: 120px 0 0; }
.v2-head { max-width: 46rem; }
.v2-head--center { margin: 0 auto; text-align: center; }
.v2-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.v2-h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.06; letter-spacing: -0.04em; font-weight: 650;
  text-wrap: balance;
}
.v2-h2 em { font-style: normal; color: var(--fg-3); }
.v2-lead { margin-top: 18px; font-size: 1.125rem; line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }

/* ---------- 12-week timeline ---------- */
.v2-timeline { margin-top: 56px; }
.v2-phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.v2-phase__track { position: relative; height: 4px; border-radius: 999px; background: var(--line); margin-bottom: 20px; }
.v2-phase__track span { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--grad); }
.v2-phase {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  transition: border-color .2s ease, background .2s ease;
}
.v2-phase:hover { border-color: var(--line-hi); background: var(--card-hi); }
.v2-phase__wk { font-size: 12px; font-weight: 600; color: var(--fg-3); letter-spacing: .04em; text-transform: uppercase; }
.v2-phase__name { margin-top: 10px; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.v2-phase__moves { margin-top: 4px; font-size: 13px; color: var(--cyan); }
.v2-phase__body { margin-top: 12px; font-size: 14.5px; line-height: 1.55; color: var(--fg-2); }

/* ---------- Feature grid ---------- */
.v2-features { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.v2-feature {
  position: relative;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  overflow: hidden;
}
.v2-feature::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-hi), transparent);
}
.v2-feature__ico {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line-hi); background: var(--card-hi); color: var(--fg);
}
.v2-feature__ico svg { width: 20px; height: 20px; }
.v2-feature h3 { margin-top: 20px; font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.v2-feature p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--fg-2); }

/* ---------- Bento: two engines ---------- */
.v2-bento { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.v2-card {
  position: relative; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--card);
  overflow: hidden; display: flex; flex-direction: column;
}
.v2-card--glow::after {
  content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -140px;
  background: radial-gradient(circle, var(--glow-a), transparent 65%); pointer-events: none;
}
.v2-card--glow-b::after { background: radial-gradient(circle, var(--glow-b), transparent 65%); }
.v2-card__k { font-size: 13px; font-weight: 600; color: var(--fg-3); }
.v2-card h3 { margin-top: 12px; font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 650; max-width: 22ch; }
.v2-card p { margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: var(--fg-2); }
.v2-card p a, .v2-card__link {
  color: var(--fg); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-hi);
}
.v2-card p a:hover { border-bottom-color: var(--fg); }
.v2-quote { grid-column: 1 / -1; text-align: center; padding: 48px 32px; }
.v2-quote blockquote {
  margin: 0 auto; max-width: 44rem;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.4; letter-spacing: -0.02em; font-weight: 550;
  text-wrap: balance;
}
.v2-quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 13px; color: var(--fg-3); }
.v2-quote cite strong { color: var(--fg-2); font-weight: 600; }

/* ---------- Portfolio grid ---------- */
.v2-products { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.v2-product {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
a.v2-product:hover { transform: translateY(-2px); border-color: var(--line-hi); background: var(--card-hi); }
.v2-product__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.v2-product__mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 15px;
}
.v2-product__name { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; margin-right: auto; }
.v2-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--fg-2);
}
.v2-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fg-3); }
.v2-status--live::before { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.v2-status--beta::before { background: #FBBF24; }
.v2-product__body { font-size: 14.5px; line-height: 1.55; color: var(--fg-2); }
.v2-product__more { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--fg); }

/* ---------- Founder ---------- */
.v2-founder {
  margin-top: 20px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center;
  padding: 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--card);
}
.v2-founder__media { position: relative; margin: 0; }
.v2-founder__stage {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--line);
}
.v2-founder__portrait {
  position: absolute; left: -14px; bottom: 34px;
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--bg-2);
  box-shadow: 0 0 0 1px var(--line-hi), 0 14px 34px -10px rgba(0,0,0,.6);
}
.v2-founder__media figcaption { margin-top: 10px; padding-left: 92px; font-size: 12.5px; line-height: 1.45; color: var(--fg-3); }
.v2-founder h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -0.03em; font-weight: 650; }
.v2-founder h3 em { font-style: normal; color: var(--fg-3); }
.v2-founder p { margin-top: 14px; font-size: 15.5px; line-height: 1.65; color: var(--fg-2); }
.v2-founder p a { color: var(--fg); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-hi); }

/* ---------- Closing CTA ---------- */
.v2-cta {
  position: relative; margin-top: 120px;
  padding: 72px 40px; text-align: center;
  border-radius: 28px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-hi);
  background: var(--bg-2);
}
.v2-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 80% at 20% 0%, var(--glow-a), transparent 70%),
    radial-gradient(50% 80% at 80% 100%, var(--glow-b), transparent 70%);
}
.v2-cta h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.045em; font-weight: 650; text-wrap: balance; }
.v2-cta h2 em { font-style: normal; }
.v2-cta__sub { margin: 18px auto 0; max-width: 36rem; font-size: 1.0625rem; line-height: 1.6; color: var(--fg-2); }
.v2-steps {
  list-style: none; padding: 0; margin: 40px auto 0; max-width: 52rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left;
}
.v2-steps li {
  padding: 18px; border: 1px solid var(--line); border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  font-size: 14.5px; line-height: 1.5; color: var(--fg-2);
}
.v2-steps b {
  display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 10px;
  border-radius: 8px; background: var(--grad); color: #fff; font-size: 12.5px;
}
.v2-cta .v2-hero__ctas { margin-top: 36px; }

/* ---------- Footer ---------- */
.v2-footer { margin-top: 120px; border-top: 1px solid var(--line); padding: 40px 0 48px; }
.v2-footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px 32px; font-size: 13.5px; color: var(--fg-3); }
.v2-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.v2-footer a { color: var(--fg-3); text-decoration: none; }
.v2-footer a:hover { color: var(--fg); }

/* ---------- Focus ---------- */
body.v2 a:focus-visible, body.v2 button:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .v2-nav a { padding: 8px 9px; font-size: 13.5px; }
}
@media (max-width: 960px) {
  .v2-nav, .v2-header__tools .lang-switcher, .v2-header__tools .theme-toggle { display: none; }
  .v2-header__tools { margin-left: auto; }
  body.v2 .mininav-burger { display: inline-flex; position: static; }
  .v2-mock__body { grid-template-columns: 1fr; }
  .v2-mock__main { border-right: 0; border-bottom: 1px solid var(--line); }
  .v2-stats { grid-template-columns: repeat(2, 1fr); }
  .v2-stat:nth-child(2) { border-right: 0; }
  .v2-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .v2-phases { grid-template-columns: 1fr 1fr; }
  .v2-products { grid-template-columns: 1fr 1fr; }
  .v2-features { gap: 12px; }
  .v2-feature { padding: 22px; }
  /* the 3D tilt widens the mock past the gutters at tablet widths */
  .v2-mock, .v2-mock-wrap:hover .v2-mock { transform: none; }
  .v2-founder { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  .v2-header__tools .v2-btn { display: none; }
  .v2-hero { padding-top: 56px; }
  .v2-pill { font-size: 12px; }
  .v2-hero__ctas .v2-btn { flex: 1 1 100%; }
  .v2-mock { transform: none; }
  .v2-mock__kpis { grid-template-columns: 1fr 1fr; }
  .v2-mock__kpis .v2-kpi:nth-child(3) { display: none; }
  .v2-section { padding-top: 88px; }
  .v2-phases, .v2-features, .v2-products, .v2-bento, .v2-steps { grid-template-columns: 1fr; }
  .v2-stat { padding: 22px 18px; }
  .v2-founder { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .v2-founder__portrait { left: 12px; top: 12px; bottom: auto; width: 64px; height: 64px; }
  .v2-founder__media figcaption { padding-left: 0; }
  .v2-card, .v2-cta { padding-left: 22px; padding-right: 22px; }
  .v2-cta { padding-top: 52px; padding-bottom: 52px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-mock, .v2-btn, .v2-product { transition: none; }
  .v2-mock { transform: none; }
}

/* Shared language switcher, re-tinted for the home tokens */
body.v2 .lang-switcher { background: var(--card); }
body.v2 .lang-link { color: var(--fg-3); }
body.v2 .lang-link:hover { color: var(--fg); }
body.v2 .lang-link.is-active { color: #fff; background: #5B3FE0; }
body.v2 .mininav-burger { background: var(--card); border: 1px solid var(--line-hi); }
body.v2 .mininav-burger span { background: var(--fg); }
.v2-mock__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-mock__tag { flex-shrink: 0; }

/* ---------- Pricing tiers ---------- */
.v2-section--tight { padding-top: 40px; }
.v2-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.v2-tier {
  position: relative; display: flex; flex-direction: column;
  padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--card);
}
.v2-tier--featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 80px -30px var(--glow-a);
}
.v2-tier__badge {
  position: absolute; top: -12px; left: 32px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 600;
}
.v2-tier__name { font-size: 22px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.25; }
.v2-tier__name em { font-style: normal; color: var(--fg-3); display: block; font-weight: 500; font-size: 15.5px; letter-spacing: -0.01em; margin-top: 4px; }
.v2-tier__price { margin-top: 24px; font-size: 14px; color: var(--fg-3); }
.v2-tier__price span { font-size: 52px; font-weight: 700; letter-spacing: -0.05em; color: var(--fg); margin-right: 4px; line-height: 1; }
.v2-tier__intro { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.v2-tier__cta { margin-top: 24px; width: 100%; }
.v2-tier__list { list-style: none; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.v2-tier__list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--fg-2); }
.v2-tier__list svg { width: 20px; height: 20px; color: var(--cyan); margin-top: 1px; }
.v2-tiers__note { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--fg-3); }
@media (max-width: 860px) {
  .v2-tiers { grid-template-columns: 1fr; gap: 28px; }
  .v2-tier { padding: 26px 22px; }
}

/* ---------- Case cards ---------- */
.v2-cases { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.v2-case {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--card);
  text-decoration: none; color: inherit;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.v2-case:hover { transform: translateY(-3px); border-color: var(--line-hi); background: var(--card-hi); }
.v2-case__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.v2-case__logo {
  height: 44px; min-width: 44px; padding: 8px 12px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; box-shadow: 0 0 0 1px var(--line);
}
.v2-case__logo img { height: 26px; width: auto; max-width: 120px; object-fit: contain; }
.v2-case__logo b { font-size: 18px; color: #0A0A0F; }
.v2-case__metric { font-size: 40px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.v2-case__label { font-size: 13px; color: var(--fg-3); }
.v2-case__title { font-size: 22px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.25; }
.v2-case__title em { font-style: normal; color: var(--fg-3); }
.v2-case__body { font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.v2-case__outcome { font-size: 14px; line-height: 1.55; color: var(--fg-2); padding: 12px 14px; border-radius: 12px; background: var(--card-hi); border: 1px solid var(--line); }
.v2-case__more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--fg); }
@media (max-width: 860px) { .v2-cases { grid-template-columns: 1fr; } .v2-case { padding: 22px; } }
.v2-case__logo--dark { background: #0A0A0F; box-shadow: 0 0 0 1px var(--line-hi); }

/* ---------- Captioned photo ---------- */
.v2-photo { margin: 0; }
.v2-photo img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 20px; border: 1px solid var(--line); }
.v2-photo figcaption { margin-top: 12px; font-size: 13px; color: var(--fg-3); text-align: center; }

/* ---------- Talks: video cards + press list ---------- */
.v2-videos { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.v2-video {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 18px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--card);
  text-decoration: none; color: inherit;
  transition: transform .2s ease, border-color .2s ease;
}
.v2-video:hover { transform: translateY(-3px); border-color: var(--line-hi); }
.v2-video__thumb { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 10px; background: var(--bg-2); }
.v2-video__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.v2-video:hover .v2-video__thumb img { transform: scale(1.04); }
.v2-video__play {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: var(--grad); box-shadow: 0 10px 30px -6px var(--glow-a);
}
.v2-video__play svg { width: 24px; height: 24px; margin-left: 3px; }
.v2-video__kicker { padding: 0 6px; font-size: 12.5px; color: var(--fg-3); }
.v2-video__title { padding: 0 6px; font-size: 17px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; }
.v2-video__cta { padding: 4px 6px 0; font-size: 13.5px; font-weight: 600; color: var(--fg-2); }
.v2-press { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.v2-press li > a, .v2-press li > b:first-child { text-decoration: none; }
.v2-press li > a, .v2-press li:not(:has(a)) {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  font-size: 13.5px; color: var(--fg-2);
}
.v2-press li > a:hover { border-color: var(--line-hi); color: var(--fg); }
.v2-press b { color: var(--fg); font-weight: 650; }
@media (max-width: 860px) { .v2-videos { grid-template-columns: 1fr; } }

/* Mobile menu button: the v2 header shows it from 960px down, but kit.css only
   sizes it inside its own ≤700px query — size it here for every width. */
body.v2 .mininav-burger {
  width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  border-radius: 10px; cursor: pointer; padding: 0;
}
body.v2 .mininav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; }
@media (max-width: 680px) {
  .v2-btn { white-space: normal; text-align: center; height: auto; min-height: 46px; padding-top: 12px; padding-bottom: 12px; line-height: 1.3; }
}
.v2-logo { min-height: 40px; }
