/* ==========================================================================
   Bizkith · styles.css
   Brand tokens are copied from "Bizkith logo and brand guidelines" v1
   (September 2026). Everything below references them. No raw hex values
   outside the token blocks.
   ========================================================================== */

/* 1. Brand tokens ---------------------------------------------------------- */

:root {
  /* Brand purple scale */
  --bk-purple-50:  #F4F1FD;  /* Mist */
  --bk-purple-100: #E9E4FC;
  --bk-purple-200: #C9BFFA;  /* Lilac */
  --bk-purple-300: #AE9FF7;
  --bk-purple-400: #8F7EF2;  /* Soft purple: the logo mark */
  --bk-purple-500: #7C6AE6;
  --bk-purple-600: #6D5BD8;  /* Action purple: buttons, links */
  --bk-purple-700: #5646B8;  /* Hover */
  --bk-purple-800: #40358C;
  --bk-purple-900: #2B2452;  /* Deep ink: wordmark, headings */
  --bk-purple-950: #1D1836;  /* Night: dark sections */

  /* Roles: light mode */
  --bk-bg:           #FBFAFF;
  --bk-surface:      #FFFFFF;
  --bk-surface-alt:  var(--bk-purple-50);
  --bk-border:       #E7E3F8;
  --bk-text:         var(--bk-purple-900);
  --bk-text-2:       #4F4870;
  --bk-text-muted:   #6B6590;
  --bk-brand:        var(--bk-purple-400);
  --bk-action:       var(--bk-purple-600);
  --bk-action-hover: var(--bk-purple-700);
  --bk-on-action:    #FFFFFF;
  --bk-focus-ring:   var(--bk-purple-100);

  /* Status */
  --bk-success:    #127A51;
  --bk-success-bg: #E6F5EE;
  --bk-warning:    #A15C00;
  --bk-warning-bg: #FFF3DF;
  --bk-danger:     #C23450;
  --bk-danger-bg:  #FDECEF;
  --bk-info:       var(--bk-purple-700);
  --bk-info-bg:    #EEEAFD;

  /* Charts */
  --bk-chart-past:     var(--bk-purple-600);
  --bk-chart-forecast: var(--bk-purple-400);
  --bk-chart-range:    var(--bk-purple-200);
  --bk-chart-compare:  #E8915B;

  /* Type */
  --bk-font-display: "Fredoka", system-ui, sans-serif;
  --bk-font-body:    "Nunito", system-ui, sans-serif;

  /* Space (4px grid) */
  --bk-space-1: 4px;   --bk-space-2: 8px;
  --bk-space-3: 12px;  --bk-space-4: 16px;
  --bk-space-6: 24px;  --bk-space-8: 32px;
  --bk-space-12: 48px; --bk-space-16: 64px;

  /* Corners */
  --bk-radius-sm: 8px;  --bk-radius-md: 12px;
  --bk-radius-lg: 16px; --bk-radius-xl: 24px;
  --bk-radius-full: 999px;

  /* Shadows: tinted purple, never grey or black */
  --bk-shadow-sm: 0 1px 2px rgba(43, 36, 82, 0.06);
  --bk-shadow-md: 0 8px 24px rgba(43, 36, 82, 0.08);
  --bk-shadow-lg: 0 24px 60px rgba(76, 60, 170, 0.12);
}

[data-theme="dark"] {
  --bk-bg:           var(--bk-purple-950);
  --bk-surface:      #251F45;
  --bk-surface-alt:  #2E2757;
  --bk-border:       #3A3268;
  --bk-text:         #F4F1FD;
  --bk-text-2:       #C9C3E8;
  --bk-text-muted:   #A39CCB;
  --bk-brand:        #A99BFF;
  --bk-action:       #A99BFF;
  --bk-action-hover: var(--bk-purple-200);
  --bk-on-action:    var(--bk-purple-950);
}

/* 2. Site tokens (built on the brand tokens) ------------------------------- */

:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --header-h: 72px;
  --gutter: 24px;
  --section-y: clamp(64px, 8vw, 96px);
  --heading-gap: clamp(32px, 5vw, 56px);
}

@media (max-width: 879px) { :root { --header-h: 64px; } }
@media (max-width: 479px) { :root { --gutter: 16px; } }

/* 3. Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bk-bg);
  color: var(--bk-text-2);
  font-family: var(--bk-font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--bk-font-display);
  font-weight: 600;
  color: var(--bk-text);
  text-wrap: balance;
}
p, li, dd { text-wrap: pretty; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--bk-purple-200); color: var(--bk-purple-900); }

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* 4. Typography ------------------------------------------------------------ */

.display {
  font-size: clamp(2.5rem, 1.35rem + 3.6vw, 4rem);
  line-height: 1.0625;
  letter-spacing: -0.01em;
}
.h1 { font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem); line-height: 1.1667; }
.h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem); line-height: 1.2222; }
.h3 { font-size: clamp(1.3125rem, 1.15rem + 0.5vw, 1.5rem); line-height: 1.3333; }

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  line-height: 1.6111;
  max-width: 36em;
}

.label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bk-action);
}
.label--muted { color: var(--bk-text-muted); }

.caption {
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  color: var(--bk-text-muted);
}

/* 5. Layout ---------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

/* Single-column grids on small screens must be allowed to shrink below their content */
.hero__grid, .problem__grid, .how__grid, .brief__grid, .who__grid,
.pricing__grid, .faq__grid, .fc-card, .brief__stage, .scene--advise { grid-template-columns: minmax(0, 1fr); }

.section-head { max-width: 680px; margin-bottom: var(--heading-gap); }
.section-head .label { margin-bottom: 12px; }
.section-head .lead { margin-top: 16px; }

/* 6. Components ------------------------------------------------------------ */

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--bk-radius-md);
  background: var(--bk-action);
  color: var(--bk-on-action);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--bk-brand);
  outline-offset: 0;
  box-shadow: 0 0 0 5px var(--bk-focus-ring);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--bk-radius-md);
  font-family: var(--bk-font-body);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn--lg { min-height: 48px; padding: 0 24px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--bk-action); color: var(--bk-on-action); }
.btn--primary:hover { background: var(--bk-action-hover); }

.btn--secondary { background: var(--bk-surface); color: var(--bk-text); border-color: var(--bk-border); }
.btn--secondary:hover { border-color: var(--bk-purple-200); }
[data-theme="dark"] .btn--secondary { background: transparent; }
[data-theme="dark"] .btn--secondary:hover { border-color: var(--bk-brand); }

.text-link {
  color: var(--bk-action);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}
.text-link:hover { text-decoration-color: currentColor; }

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bk-action);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.text-button:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.text-button .icon { transition: transform 150ms var(--ease-out); }
.text-button:hover .icon { transform: translateX(2px); }

.icon { display: inline-block; flex: none; width: 20px; height: 20px; }
.icon--sm { width: 16px; height: 16px; }
.icon--xs { width: 13px; height: 13px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--bk-radius-full);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.badge .icon { width: 13px; height: 13px; stroke-width: 2.75; }
.badge__glyph { font-weight: 800; }
.badge--success { color: var(--bk-success); background: var(--bk-success-bg); }
.badge--warning { color: var(--bk-warning); background: var(--bk-warning-bg); }
.badge--danger  { color: var(--bk-danger);  background: var(--bk-danger-bg); }
.badge--info    { color: var(--bk-info);    background: var(--bk-info-bg); }
.badge--neutral { color: var(--bk-text-2);  background: var(--bk-surface-alt); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-sm);
  background: var(--bk-surface);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  color: var(--bk-text-2);
}

.card {
  background: var(--bk-surface);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-xl);
  box-shadow: var(--bk-shadow-md);
}

/* Chart legend and swatches */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  color: var(--bk-text-muted);
}
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 20px; height: 8px; overflow: visible; }
.sw-past { stroke: var(--bk-chart-past); stroke-width: 3; stroke-linecap: round; }
.sw-forecast { stroke: var(--bk-chart-forecast); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 7; }
.sw-range { fill: var(--bk-chart-range); fill-opacity: .45; }
.sw-last { stroke: var(--bk-chart-compare); stroke-width: 2; stroke-dasharray: 5 3; }

/* Shared chart marks (SVG) */
.c-grid { stroke: var(--bk-border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.c-past { fill: none; stroke: var(--bk-chart-past); stroke-linecap: round; stroke-linejoin: round; } /* width set per chart in JS */
.c-dot { fill: var(--bk-chart-forecast); transform-box: fill-box; transform-origin: center; }
.c-range { fill: var(--bk-chart-range); fill-opacity: .45; }
.c-last { fill: none; stroke: var(--bk-chart-compare); stroke-width: 2; stroke-dasharray: 6 5; }
.c-today { stroke: var(--bk-purple-200); stroke-width: 1.5; stroke-dasharray: 3 4; }

.chart-label {
  position: absolute;
  font-size: 12px;
  line-height: 12px;
  font-weight: 700;
  color: var(--bk-text-muted);
  white-space: nowrap;
  pointer-events: none;
}

.chart-flag {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--bk-radius-full);
  background: var(--bk-info-bg);
  color: var(--bk-info);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 8px));
  pointer-events: none;
}
.chart-flag::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 8px;
  background: var(--bk-purple-200);
}
.chart-flag__short { display: none; }

/* 7. Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: color-mix(in srgb, var(--bk-bg) 90%, transparent);
  border-bottom-color: var(--bk-border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.site-header.menu-open { background: var(--bk-bg); }

.site-header__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.site-header__logo { display: inline-flex; flex: none; border-radius: var(--bk-radius-sm); }
.site-header__logo img { width: auto; height: 32px; }

.site-nav { margin-inline: auto; }
.site-nav__list { display: flex; gap: 2px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--bk-radius-md);
  color: var(--bk-text-2);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}
.site-nav a:hover { color: var(--bk-text); background: var(--bk-surface-alt); }
.site-nav a.is-current { color: var(--bk-text); }

.site-header__actions { display: flex; align-items: center; gap: 8px; }
.site-header__login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--bk-text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--bk-radius-md);
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-md);
  background: var(--bk-surface);
  color: var(--bk-text);
  cursor: pointer;
}
.menu-button .icon--close { display: none; }
.menu-button[aria-expanded="true"] .icon--open { display: none; }
.menu-button[aria-expanded="true"] .icon--close { display: inline-block; }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 4px 0 24px;
  background: var(--bk-bg);
  border-bottom: 1px solid var(--bk-border);
  box-shadow: var(--bk-shadow-lg);
}
.mobile-menu__list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--bk-border);
  color: var(--bk-text);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}
.mobile-menu .btn { margin-top: 20px; }

@media (max-width: 879px) {
  .site-nav, .site-header__login { display: none; }
  .site-header__actions { margin-left: auto; }
  .menu-button { display: inline-flex; }
}
@media (max-width: 519px) {
  .site-header__cta { display: none; }
}
@media (min-width: 880px) {
  .mobile-menu { display: none !important; }
}

/* 8. Hero ------------------------------------------------------------------ */

.hero { position: relative; padding-block: 32px 56px; }

.hero__grid { position: relative; display: grid; gap: 40px; }
.hero__copy { max-width: 600px; }
.hero__copy .label { margin-bottom: 16px; }
.hero__copy .lead { margin-top: 20px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
  color: var(--bk-text-muted);
}

.works-with {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--bk-border);
}
.works-with__label { font-size: 14px; font-weight: 700; color: var(--bk-text-muted); }
.works-with__ask { font-size: 14px; }

.pos-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pos-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-full);
  background: var(--bk-surface);
}
.pos-chip:has(.pos-logo) { padding-left: 10px; }
.pos-chip__name { font-size: 14px; font-weight: 800; color: var(--bk-text-2); }
.pos-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .75;
  transition: filter 200ms ease, opacity 200ms ease;
}
.pos-chip:hover .pos-logo,
.pos-chip:focus-within .pos-logo { filter: none; opacity: 1; }

.hero__visual {
  position: relative;
  padding: 20px 14px 16px;
  border-radius: var(--bk-radius-xl);
  background: var(--bk-surface-alt);
}
.hero__caption { margin-top: 12px; text-align: center; }

@media (max-width: 479px) {
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 100%; }
}

@media (min-width: 960px) {
  .hero { padding-block: 40px 72px; }
  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 16px);
    right: 0;
    border-radius: var(--bk-radius-xl) 0 0 var(--bk-radius-xl);
    background: var(--bk-surface-alt);
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
  }
  .hero__visual { padding: 48px 0 40px 32px; background: none; border-radius: 0; }
  .hero__caption { text-align: left; padding-left: 4px; }
}

/* Hero entrance (pure CSS so it runs even before the script) */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.js .hero-seq { animation: rise 600ms var(--ease-out) both; animation-delay: var(--d, 0ms); }

/* Morning brief card */
.brief-card {
  padding: 20px;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-xl);
  background: var(--bk-surface);
  box-shadow: var(--bk-shadow-lg);
}
.brief-card__head { display: flex; align-items: center; gap: 10px; }
.brief-card__head img { width: 24px; height: 24px; }
.brief-card__title {
  font-family: var(--bk-font-display);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: var(--bk-text);
}
.brief-card__time {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--bk-text-muted);
  font-variant-numeric: tabular-nums;
}
.brief-card__msg {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--bk-radius-lg);
  background: var(--bk-surface-alt);
  color: var(--bk-text);
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
}

.mini-chart { margin-top: 20px; }
.mini-chart__title { font-size: 13px; line-height: 20px; font-weight: 700; color: var(--bk-text-muted); }
.mini-chart__plot {
  position: relative;
  margin-top: 6px;
  aspect-ratio: 480 / 200;
  container-type: inline-size;
}
.mini-chart__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mini-chart .legend { margin-top: 10px; }

@container (max-width: 400px) {
  .chart-flag__long { display: none; }
  .chart-flag__short { display: inline; }
}

@media (min-width: 480px) {
  .brief-card { padding: 24px; }
}

/* 9. The daily guess ------------------------------------------------------- */

.problem__grid { display: grid; gap: 40px; }
.problem__copy .label { margin-bottom: 12px; }
.problem__copy .lead { margin-top: 16px; }

.guess-list { margin-top: 28px; border-top: 1px solid var(--bk-border); }
.guess {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--bk-border);
}
.guess .badge { justify-self: start; }

.problem__closing {
  text-wrap: balance;
  font-family: var(--bk-font-display);
  font-size: clamp(1.3125rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.35;
  font-weight: 600;
  color: var(--bk-text-muted);
  max-width: 30em;
}
.problem__closing span { color: var(--bk-text); }

@media (min-width: 640px) {
  .guess { grid-template-columns: 116px 1fr; gap: 16px; align-items: start; }
  .guess .badge { margin-top: 0; }
}
@media (min-width: 1024px) {
  .problem__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 56px 72px;
    align-items: center;
  }
  .problem__closing { grid-column: 1 / -1; padding-top: 8px; }
}

/* Croissant card */
.croissant { padding: 24px; }
.croissant__readout { display: flex; align-items: baseline; gap: 10px; margin-top: 20px; }
.croissant__value {
  min-width: 2.2ch;
  font-family: var(--bk-font-display);
  font-size: 64px;
  line-height: 1;
  font-weight: 600;
  color: var(--bk-text);
  font-variant-numeric: tabular-nums;
}
.croissant__unit { font-weight: 700; color: var(--bk-text-muted); }

.croissant__result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-height: 56px;
  margin-top: 12px;
  color: var(--bk-text);
  font-weight: 700;
}
.croissant__note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
  color: var(--bk-text-muted);
}
.croissant .text-button { margin-top: 8px; }

@media (min-width: 640px) {
  .croissant { padding: 36px; }
}

/* Range slider: native input on top of a drawn track (no gradients) */
.range {
  --thumb: 26px;
  position: relative;
  height: 44px;
  margin-top: 16px;
  margin-bottom: 30px;
}
.range__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 18px;
  height: 8px;
  border-radius: var(--bk-radius-full);
  background: var(--bk-purple-100);
}
.range__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--p));
  border-radius: inherit;
  background: var(--bk-action);
}
.range__tick {
  position: absolute;
  top: 50%;
  left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--tick));
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bk-brand);
  box-shadow: 0 0 0 3px var(--bk-surface);
  transform: translate(-50%, -50%);
}
.range__tick-label,
.range__end {
  position: absolute;
  top: 46px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
  white-space: nowrap;
}
.range__tick-label {
  left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--tick));
  transform: translateX(-50%);
  color: var(--bk-info);
}
.range__end { color: var(--bk-text-muted); font-weight: 700; }
.range__end--min { left: 0; }
.range__end--max { right: 0; }

.range__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  touch-action: pan-y;
}
.range__input::-webkit-slider-runnable-track { height: 44px; background: transparent; }
.range__input::-moz-range-track { height: 44px; background: transparent; }
.range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  box-sizing: border-box;
  width: var(--thumb);
  height: var(--thumb);
  margin-top: calc((44px - var(--thumb)) / 2);
  border: 2px solid var(--bk-action);
  border-radius: 50%;
  background: var(--bk-surface);
  box-shadow: var(--bk-shadow-sm);
  transition: transform 150ms var(--ease-out);
}
.range__input::-moz-range-thumb {
  box-sizing: border-box;
  width: var(--thumb);
  height: var(--thumb);
  border: 2px solid var(--bk-action);
  border-radius: 50%;
  background: var(--bk-surface);
  box-shadow: var(--bk-shadow-sm);
}
.range__input:active::-webkit-slider-thumb { transform: scale(1.08); }
.range__input:focus-visible { outline: none; box-shadow: none; }
.range__input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--bk-brand), 0 0 0 6px var(--bk-focus-ring); }
.range__input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--bk-brand), 0 0 0 6px var(--bk-focus-ring); }

/* 10. How it works --------------------------------------------------------- */

.how__grid { position: relative; display: grid; gap: 48px; }
.steps { display: grid; gap: 56px; }

.step__num {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border: 1.5px solid var(--bk-purple-200);
  border-radius: 50%;
  background: var(--bk-surface);
  color: var(--bk-text-muted);
  font-family: var(--bk-font-display);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
}
.step.is-done .step__num,
.step.is-active .step__num {
  background: var(--bk-action);
  border-color: var(--bk-action);
  color: var(--bk-on-action);
}
.step.is-active .step__num { box-shadow: 0 0 0 4px var(--bk-focus-ring); }
.step__title { margin-bottom: 6px; }
.step__text p { max-width: 34em; }

.scene { margin-top: 20px; }
.how__panel { display: none; }
.rail { display: none; }

@media (min-width: 1024px) {
  .js .how__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
    align-items: start;
  }
  .js .steps { grid-column: 1; grid-row: 1; gap: 0; padding-left: 56px; }
  .js .step { display: flex; align-items: center; min-height: 46vh; }
  .js .step__text { position: relative; }
  .js .step__num { position: absolute; left: -56px; top: -2px; margin: 0; }
  .js .step__title { color: var(--bk-text-muted); transition: color 300ms ease; }
  .js .step__text p { color: var(--bk-text-muted); transition: color 300ms ease; }
  .js .step.is-active .step__title { color: var(--bk-text); }
  .js .step.is-active .step__text p { color: var(--bk-text-2); }

  .js .how__panel {
    display: block;
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: calc(var(--header-h) + 32px);
    height: min(540px, calc(100vh - var(--header-h) - 64px));
    border-radius: var(--bk-radius-xl);
    background: var(--bk-surface-alt);
  }
  .js .how__panel .scene {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms var(--ease-out), visibility 0s linear 300ms;
  }
  .js .how__panel .scene.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 300ms var(--ease-out), visibility 0s;
  }

  .js .rail {
    display: block;
    position: absolute;
    left: 14.5px;
    width: 3px;
    pointer-events: none;
  }
}

.rail__dots { position: absolute; inset: 0; width: 3px; height: 100%; overflow: visible; }
.rail__dots line { stroke: var(--bk-brand); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 9; }
.rail__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  border-radius: var(--bk-radius-full);
  background: var(--bk-action);
  transform-origin: top;
  transform: scaleY(var(--fill, 0));
  transition: transform 400ms var(--ease-out);
}

/* App-style cards used inside the steps */
.app-card {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 18px;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-xl);
  background: var(--bk-surface);
  box-shadow: var(--bk-shadow-md);
}
.app-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 16px;
}
.app-card__title {
  font-family: var(--bk-font-display);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: var(--bk-text);
}
.app-card__meta { font-size: 13px; line-height: 20px; font-weight: 600; color: var(--bk-text-muted); }
.app-card__foot { margin-top: 12px; font-size: 12.5px; line-height: 18px; font-weight: 600; color: var(--bk-text-muted); }

@media (min-width: 640px) {
  .app-card { padding: 24px; }
}

/* Step 1: connect */
.connect-list { display: grid; gap: 10px; }
.connect-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 12px 8px 14px;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-lg);
}
.connect-row .pos-logo { width: 24px; height: 24px; }
.connect-row__name { font-weight: 800; color: var(--bk-text); }
.connect-row__status { margin-left: auto; display: inline-grid; justify-items: end; }
.connect-row__status > * { grid-area: 1 / 1; }
.connect-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-md);
  background: var(--bk-surface);
  color: var(--bk-text);
  font-size: 13px;
  font-weight: 800;
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}
.connect-ok { transition: opacity 200ms ease, transform 200ms var(--ease-out); }
.connect-row.is-connected .connect-btn { opacity: 0; transform: scale(.96); }
.connect-row:not(.is-connected) .connect-ok { opacity: 0; transform: scale(.96); }
.connect-row.is-pressing .connect-btn { background: var(--bk-surface-alt); border-color: var(--bk-purple-200); }

.import { margin-top: 18px; }
.import__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  color: var(--bk-text-2);
}
.import__pct { font-variant-numeric: tabular-nums; color: var(--bk-text); }
.import__bar {
  margin-top: 8px;
  height: 8px;
  overflow: hidden;
  border-radius: var(--bk-radius-full);
  background: var(--bk-purple-100);
}
.import__fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--bk-action);
  transform-origin: left;
  transform: scaleX(var(--import, 1));
}
.import__done {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 800;
  color: var(--bk-success);
  transition: opacity 250ms ease;
}
.import__done.is-pending { opacity: 0; }
.import__done .icon { stroke-width: 2.75; }

/* Step 2: KPI tiles */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-lg);
}
.kpi__label { font-size: 13px; line-height: 18px; font-weight: 700; color: var(--bk-text-muted); }
.kpi__value {
  font-family: var(--bk-font-display);
  font-size: 24px;
  line-height: 30px;
  font-weight: 600;
  color: var(--bk-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kpi__value--text { font-size: 20px; }
.kpi__sub { font-size: 13px; line-height: 26px; font-weight: 700; color: var(--bk-text-2); font-variant-numeric: tabular-nums; }
.kpi .badge { justify-self: start; }
.spark { width: 100%; height: 26px; margin-top: 6px; overflow: visible; }
.spark path {
  fill: none;
  stroke: var(--bk-chart-past);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.spark--muted path { stroke: var(--bk-purple-200); }

@media (min-width: 640px) {
  .kpi { padding: 14px 16px; }
  .kpi__value { font-size: 28px; line-height: 34px; }
  .kpi__value--text { font-size: 22px; }
}

/* Step 3: busiest-hours heatmap */
.heatmap {
  display: grid;
  grid-template-columns: 30px repeat(13, minmax(0, 1fr));
  gap: 3px;
  align-items: center;
}
.heatmap__day { font-size: 11.5px; line-height: 14px; font-weight: 700; color: var(--bk-text-muted); }
.heatmap__cell { aspect-ratio: 1; border-radius: 4px; background: var(--bk-purple-50); }
.heatmap__cell[data-v="1"], .heatmap__cell[data-v="2"] { background: var(--bk-purple-100); }
.heatmap__cell[data-v="3"], .heatmap__cell[data-v="4"] { background: var(--bk-purple-200); }
.heatmap__cell[data-v="5"] { background: var(--bk-purple-300); }
.heatmap__cell[data-v="6"] { background: var(--bk-purple-400); }
.heatmap__cell[data-v="7"], .heatmap__cell[data-v="8"] { background: var(--bk-purple-500); }
.heatmap__cell[data-v="9"] { background: var(--bk-purple-600); }
.heatmap__hour {
  justify-self: center;
  width: max-content;
  margin-top: 4px;
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  color: var(--bk-text-muted);
  font-variant-numeric: tabular-nums;
}
.heat-chip {
  position: relative;
  z-index: 1;
  width: max-content;
  padding: 3px 9px;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-sm);
  background: var(--bk-surface);
  box-shadow: var(--bk-shadow-sm);
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
  color: var(--bk-text);
}
.heat-chip--col { justify-self: center; margin-bottom: 6px; }
.heat-chip--col::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 7px;
  background: var(--bk-purple-300);
}
.heat-chip--row { justify-self: end; margin-right: 2px; }
.chips--learn { margin-top: 16px; }

.heatmap.is-playing .heatmap__cell { animation: cell-in 360ms var(--ease-out) both; animation-delay: calc(var(--c) * 28ms); }
.heatmap.is-playing .heat-chip { animation: pop-in 260ms var(--ease-out) both; animation-delay: 480ms; }
.heatmap.is-playing .heat-chip--row { animation-delay: 620ms; }
@keyframes cell-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* Forecast chart (full and mini) */
.fc { position: relative; }
.fc__stage { position: relative; padding-bottom: 72px; }
.fc__plot { position: relative; aspect-ratio: 720 / 220; }
.fc--mini .fc__stage { padding-bottom: 30px; }
.fc--mini .fc__plot { aspect-ratio: 720 / 200; }
.fc__plot svg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.fc__ylabel {
  position: absolute;
  left: 0;
  width: 5.6%;
  text-align: right;
  transform: translateY(-50%);
  font-size: 12px;
  line-height: 12px;
  font-weight: 700;
  color: var(--bk-text-muted);
  font-variant-numeric: tabular-nums;
}
.fc__highlight {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 0;
  border-radius: var(--bk-radius-md);
  background: var(--bk-surface-alt);
  transform: translateX(calc(100% * var(--i, 2)));
  transition: transform 250ms var(--ease-out);
}
.fc__marker { transition: transform 250ms var(--ease-out); }
.fc__marker .ring { fill: var(--bk-purple-100); }
.fc__marker .dot { fill: var(--bk-action); stroke: var(--bk-surface); } /* stroke width set in JS */

.fc__cols {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
}
.fc-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  padding: 0 0 8px;
  border: 0;
  border-radius: var(--bk-radius-md);
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fc-day__name { font-size: 12.5px; line-height: 16px; font-weight: 800; color: var(--bk-text-2); }
.fc-day__short { display: none; }
.fc-day__temp { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--bk-text-muted); font-variant-numeric: tabular-nums; }
.fc-day .icon { width: 18px; height: 18px; color: var(--bk-text-muted); }
.fc-day[aria-checked="true"] .fc-day__name { color: var(--bk-text); }
.fc-day[aria-checked="true"] .icon { color: var(--bk-action); }
.fc-day:focus-visible { outline-offset: -2px; box-shadow: none; }

.fc__labels {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
}
.fc__labels span { display: grid; place-items: center; }
.fc__labels .icon { width: 16px; height: 16px; color: var(--bk-text-muted); }

@media (max-width: 639px) {
  .fc--full .fc__stage { padding-bottom: 56px; }
  .fc-day__temp { display: none; }
  .fc-day .icon { width: 15px; height: 15px; }
  .fc-day__name { font-size: 12px; }
  .fc-day__long { display: none; }
  .fc-day__short { display: inline; }
  .fc__ylabel { font-size: 10.5px; }
  .fc--full .chart-flag__long { display: none; }
  .fc--full .chart-flag__short { display: inline; }
  .fc__labels .icon { width: 13px; height: 13px; }
}

/* Phone */
.phone {
  width: 300px;
  max-width: 100%;
  padding: 10px;
  border: 1px solid var(--bk-border);
  border-radius: 40px;
  background: var(--bk-surface);
  box-shadow: var(--bk-shadow-lg);
}
.phone__screen {
  min-height: 560px;
  padding: 36px 12px 16px;
  border-radius: 31px;
  background: var(--bk-surface-alt);
}
.phone__clock {
  position: relative;
  height: 60px;
  overflow: hidden;
  text-align: center;
  font-family: var(--bk-font-display);
  font-size: 56px;
  line-height: 60px;
  font-weight: 600;
  color: var(--bk-text);
  font-variant-numeric: tabular-nums;
}
.phone__time { position: absolute; inset: 0; transition: transform 500ms var(--ease-out), opacity 400ms ease; }
.phone__time--before { opacity: 0; transform: translateY(-70%); }
.phone.is-waiting .phone__time--before { opacity: 1; transform: none; }
.phone.is-waiting .phone__time--after { opacity: 0; transform: translateY(70%); }
.phone__day { margin-top: 4px; text-align: center; font-size: 15px; font-weight: 700; color: var(--bk-text-2); }
.phone__stack { display: grid; gap: 8px; margin-top: 28px; }
.notif {
  padding: 12px 14px;
  border-radius: var(--bk-radius-lg);
  background: var(--bk-surface);
  box-shadow: var(--bk-shadow-sm);
  transition: transform 500ms var(--ease-out), opacity 500ms var(--ease-out);
}
.phone.is-waiting .notif { opacity: 0; transform: translateY(-12px); }
.phone.is-resetting .notif,
.phone.is-resetting .phone__time { transition: none; }
.notif__head { display: flex; align-items: center; gap: 8px; }
.notif__head img { width: 20px; height: 20px; }
.notif__app { font-size: 13px; line-height: 18px; font-weight: 800; color: var(--bk-text); }
.notif__when { margin-left: auto; font-size: 12px; line-height: 18px; font-weight: 600; color: var(--bk-text-muted); }
.notif__text { margin-top: 6px; font-size: 14px; line-height: 21px; font-weight: 600; color: var(--bk-text); }

.phone--compact { width: 272px; }
.phone--compact .phone__screen { min-height: 0; padding: 26px 12px 14px; }
.phone--compact .phone__clock { height: 48px; font-size: 44px; line-height: 48px; }
.phone--compact .phone__stack { margin-top: 20px; }
.scene--advise { display: grid; place-items: center; }

/* 11. The morning brief ---------------------------------------------------- */

.brief__grid { display: grid; gap: 48px; }
.brief__caption {
  margin-bottom: 16px;
  font-family: var(--bk-font-display);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: var(--bk-text-muted);
}
.brief__caption--strong { color: var(--bk-text); }

.dash {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-xl);
  background: var(--bk-surface);
}
.dash__tile {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr);
  align-items: end;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-lg);
}
.dash__label { font-size: 13px; line-height: 18px; font-weight: 700; color: var(--bk-text-muted); }
.dash__value {
  font-family: var(--bk-font-display);
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  color: var(--bk-text-muted);
  font-variant-numeric: tabular-nums;
}
.brief__sowhat {
  margin-top: 14px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
  color: var(--bk-text-muted);
}

.brief__stage {
  display: grid;
  place-items: center;
  padding: 28px 14px;
  border-radius: var(--bk-radius-xl);
  background: var(--bk-surface-alt);
}
.brief__stage .phone { border-color: transparent; }
.brief__sample { margin-top: 12px; text-align: center; }

.brief__facts { display: grid; gap: 12px; margin-top: 48px; }
.brief__facts li {
  padding-top: 14px;
  border-top: 2px solid var(--bk-border);
  font-size: 15px;
  line-height: 22px;
  font-weight: 800;
  color: var(--bk-text);
}

@media (min-width: 768px) {
  .brief__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
}
@media (min-width: 1024px) {
  .brief__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto auto auto;
    column-gap: 56px;
    row-gap: 0;
  }
  .brief__before, .brief__after { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
  .brief__before .dash { align-self: center; }
  .brief__stage { padding: 48px 32px; }
}

/* 12. Forecast section ----------------------------------------------------- */

.forecast { background: var(--bk-surface-alt); }
.forecast .card { box-shadow: var(--bk-shadow-md); }

.fc-card { display: grid; overflow: hidden; }
.fc-card__main { padding: 20px 16px 18px; min-width: 0; }
.fc-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 28px;
}
.fc-card__title {
  font-family: var(--bk-font-display);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: var(--bk-text);
}
.fc-card__main > .caption { margin-top: 12px; }

.fc-detail {
  padding: 24px 20px;
  border-top: 1px solid var(--bk-border);
}
.fc-detail__when { font-size: 13px; line-height: 20px; font-weight: 700; color: var(--bk-text-muted); }
.fc-detail__day { margin-top: 2px; }
.fc-detail__event { margin-top: 10px; }
.fc-detail__label { margin-top: 18px; font-size: 13px; line-height: 20px; font-weight: 700; color: var(--bk-text-muted); }
.fc-detail__big {
  font-family: var(--bk-font-display);
  font-size: 40px;
  line-height: 48px;
  font-weight: 600;
  color: var(--bk-text);
  font-variant-numeric: tabular-nums;
}
.fc-detail__list { margin-top: 12px; border-top: 1px solid var(--bk-border); }
.fc-detail__list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid var(--bk-border);
}
.fc-detail__list dt { font-size: 14px; font-weight: 600; color: var(--bk-text-muted); }
.fc-detail__list dd {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--bk-text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.fc-detail__list dd .fc-detail__wx { width: 18px; height: 18px; color: var(--bk-action); }
.fc-detail__tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--bk-radius-lg);
  background: var(--bk-surface-alt);
  color: var(--bk-text);
  font-size: 15px;
  line-height: 23px;
  font-weight: 700;
}
.fc-detail__tip img { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.fc-detail__tip.is-quiet { color: var(--bk-text-2); font-weight: 600; }

@media (min-width: 640px) {
  .fc-card__main { padding: 28px 28px 22px; }
  .fc-detail { padding: 28px; }
}
@media (min-width: 1024px) {
  .fc-card { grid-template-columns: minmax(0, 1fr) 300px; }
  .fc-detail { border-top: 0; border-left: 1px solid var(--bk-border); }
}

/* 13. Who it's for --------------------------------------------------------- */

.who__grid { display: grid; gap: 32px; }
.who__copy .lead { margin-top: 16px; }

.tabs {
  display: inline-flex;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-full);
  background: var(--bk-surface-alt);
}
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--bk-radius-full);
  background: transparent;
  color: var(--bk-text-2);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.tab:hover { color: var(--bk-text); }
.tab[aria-selected="true"] { background: var(--bk-surface); color: var(--bk-text); box-shadow: var(--bk-shadow-sm); }
.tab[aria-selected="true"] .icon { color: var(--bk-brand); }

.tab-panel { margin-top: 16px; padding: 22px; }
.tab-panel.is-entering { animation: panel-in 200ms ease-out both; }
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }
.tab-panel .label { margin-bottom: 10px; }
.bubble {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--bk-radius-lg);
  background: var(--bk-surface-alt);
}
.bubble img { flex: none; width: 24px; height: 24px; margin-top: 1px; }
.bubble p { color: var(--bk-text); font-size: 16px; line-height: 26px; font-weight: 600; }
.tab-panel__sub { margin-top: 20px; margin-bottom: 10px; font-size: 13px; line-height: 20px; font-weight: 700; color: var(--bk-text-muted); }

@media (max-width: 479px) {
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; padding: 0 6px; font-size: 14px; }
  .tab .icon { display: none; }
}
@media (min-width: 640px) {
  .tab-panel { padding: 28px; }
}
@media (min-width: 1024px) {
  .who__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
}

/* 14. Pricing -------------------------------------------------------------- */

.pricing__grid { display: grid; gap: 32px; }
.pricing__copy .label { margin-bottom: 12px; }
.pricing__copy .lead { margin-top: 16px; }
.pricing__note { margin-top: 20px; font-weight: 600; }

.plan { padding: 26px; }
.plan__name { font-family: var(--bk-font-display); font-size: 20px; line-height: 28px; font-weight: 600; color: var(--bk-text); }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 14px; }
.plan__amount {
  font-family: var(--bk-font-display);
  font-size: 64px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bk-text);
  font-variant-numeric: tabular-nums;
}
.plan__per { font-weight: 700; color: var(--bk-text-muted); }
.plan__trial { margin-top: 12px; font-size: 14px; line-height: 21px; font-weight: 800; color: var(--bk-success); }
.plan__list { display: grid; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--bk-border); }
.plan__list li { display: flex; align-items: flex-start; gap: 12px; color: var(--bk-text); font-weight: 600; }
.plan__list .icon { margin-top: 3px; color: var(--bk-brand); stroke-width: 2.5; }
.plan .btn { margin-top: 28px; }

@media (min-width: 640px) {
  .plan { padding: 36px; }
}
@media (min-width: 960px) {
  .pricing__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 72px; align-items: center; }
}

/* 15. FAQ ------------------------------------------------------------------ */

.faq__grid { display: grid; gap: 28px; }
.faq__more { margin-top: 14px; font-weight: 600; }
.faq__list { border-top: 1px solid var(--bk-border); }
.faq-item { border-bottom: 1px solid var(--bk-border); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 4px;
  border-radius: var(--bk-radius-md);
  color: var(--bk-text);
  font-size: 17px;
  line-height: 26px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--bk-action); }
.faq-item__chev { color: var(--bk-text-muted); transition: transform 200ms var(--ease-out); }
.faq-item[open] .faq-item__chev { transform: rotate(180deg); }
.faq-item__answer { max-width: 60ch; padding: 0 4px 22px; }
.faq-item[open] .faq-item__answer { animation: answer-in 200ms var(--ease-out) both; }
@keyframes answer-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (min-width: 960px) {
  .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* 16. Final call to action and footer (dark) ------------------------------ */

.cta {
  position: relative;
  padding-top: clamp(72px, 10vw, 120px);
  overflow: hidden;
  background: var(--bk-bg);
  color: var(--bk-text-2);
}
.cta__inner { max-width: 720px; }
.cta .lead { margin-top: 16px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta__line { margin-top: clamp(40px, 6vw, 72px); }
.cta__line svg { width: 100%; height: clamp(84px, 9.75vw, 140px); overflow: visible; }
.cta-solid { fill: none; stroke: var(--bk-purple-800); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cta-dots { fill: none; stroke: var(--bk-purple-400); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0 15; }
.cta-dot { fill: var(--bk-purple-400); transform-box: fill-box; transform-origin: center; }
.cta-end { fill: var(--bk-purple-400); transform-box: fill-box; transform-origin: center; }

.site-footer { background: var(--bk-bg); color: var(--bk-text-2); }
.site-footer__inner {
  display: grid;
  gap: 28px;
  padding-block: 40px 28px;
  border-top: 1px solid var(--bk-border);
}
.site-footer__brand img { width: auto; height: 32px; }
.site-footer__brand p { margin-top: 16px; max-width: 32ch; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -10px; }
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--bk-radius-md);
  color: var(--bk-text-2);
  font-weight: 700;
  text-decoration: none;
  transition: color 150ms ease;
}
.site-footer__nav a:hover { color: var(--bk-text); }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 24px;
  padding-block: 16px 32px;
  color: var(--bk-text-muted);
  font-size: 14px;
  line-height: 21px;
}
.site-footer__base a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.site-footer__base a:hover { color: var(--bk-text); }

@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: start; }
  .site-footer__nav ul { margin-left: 0; margin-right: -10px; }
}

/* 17. Scroll reveals ------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.js [data-reveal].is-visible,
.reveal-all [data-reveal] { opacity: 1; transform: none; }

/* 18. Reduced motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero-seq { animation: none; }
}
