/* ==========================================================================
   Kickback — homepage (imported from the "Kickback Home" design)
   Self-contained styles layered on top of css/tokens.css. Owns the warm-dark
   theme, the ambient keyframes, the responsive breakpoints, and the small set
   of tokens the design references that the base token file doesn't define.
   ========================================================================== */

/* --- Tokens the design references beyond the base set --------------------- */
:root {
  --duration-fast: 100ms;
  --duration-base: 150ms;
  --bg-brand-active: var(--accent-700);
  /* homepage helper vars (light) */
  --kb-nav: rgba(255, 255, 255, 0.82);
  --kb-panel: var(--stone-900);
  --kb-shot-chrome: var(--stone-100);
  --kb-dot: 168, 150, 142;
}

/* --- Warm-dark theme ------------------------------------------------------ */
:root[data-theme="dark"] {
  --fg-1: #F5F3F0; --fg-2: #CFC8C1; --fg-3: #A79F96; --fg-4: #7C746B;
  --fg-brand: #DE4444; --fg-success: #9BBF6A; --fg-warning: #E0A268;
  --fg-danger: #E76B6B; --fg-info: #7FB2AF;
  --bg-page: #0F0C0B; --bg-surface: #191512; --bg-sunken: #0B0908;
  --bg-alt-sunken: #141110; --bg-raised: #221D1A;
  --bg-hover: #241F1B; --bg-active: #2A2320; --bg-muted: #241F1B;
  --bg-brand: var(--red-600); --bg-brand-hover: var(--red-500); --bg-brand-active: var(--red-700);
  --bg-brand-subtle: rgba(222, 68, 68, 0.14); --bg-success-subtle: rgba(107, 142, 61, 0.20);
  --bg-warning-subtle: rgba(201, 122, 60, 0.20); --bg-danger-subtle: rgba(222, 68, 68, 0.16);
  --bg-info-subtle: rgba(62, 122, 120, 0.20);
  --bg-inverse: var(--stone-0);
  --border-subtle: rgba(255, 255, 255, 0.07); --border-default: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.28);
  --shadow-xs: 0 1px 0 0 rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --shadow-md: 0 2px 6px -1px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 10px 20px -6px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-xl: 0 24px 48px -14px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.09);
  --kb-nav: rgba(15, 12, 11, 0.72); --kb-panel: #070606; --kb-shot-chrome: #221D1A; --kb-dot: 124, 116, 107;
}

/* Vendor logos read as light monochrome on the dark theme */
:root[data-theme="dark"] [data-vendor] {
  filter: grayscale(1) invert(1) contrast(1.05) !important;
  opacity: 0.62 !important;
}

/* --- Base page ------------------------------------------------------------ */
html { scroll-behavior: smooth; }

/* --- Top nav: fixed + transparent over hero until scroll ------------------ */
.kb-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  /* Let hero dot-grid receive pointer events through the empty nav chrome. */
  pointer-events: none;
  transition:
    background 180ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 180ms cubic-bezier(0.4, 0, 0.2, 1),
    backdrop-filter 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
.kb-nav.is-scrolled {
  background: var(--kb-nav);
  border-bottom-color: var(--border-subtle);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  pointer-events: auto;
}
.kb-nav-brand,
.kb-nav-actions,
.kb-nav [data-menu-toggle],
.kb-nav [data-menu] {
  pointer-events: auto;
}
.kb-nav-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  height: var(--space-20);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.kb-nav.is-scrolled .kb-nav-inner { height: var(--space-18); }
.kb-nav-brand {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.kb-nav-brand img {
  height: 24px;
  display: block;
}
.kb-nav-mid {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 180ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
.kb-nav.is-scrolled .kb-nav-mid {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.kb-nav-mid a {
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 2px;
  border-radius: var(--radius-sm);
}
.kb-nav-mid a:hover { color: var(--fg-1); }
.kb-nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.kb-nav-signin {
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 4px;
  border-radius: var(--radius-sm);
}
.kb-nav-signin:hover { color: var(--fg-1); }
/* Reserve nav height on inner pages; home hero paints under the fixed nav. */
.kb-nav-spacer { height: 80px; }
body:has(.kb-hero) .kb-nav-spacer { height: 0; }
body {
  margin: 0;
  background: var(--bg-page);
  transition: background-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
a { color: var(--fg-brand); text-decoration: none; }
a:hover { color: var(--accent-700); }

/* --- Buttons (ports of the DS Button component) --------------------------- */
.kb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 500; line-height: 1; letter-spacing: -0.005em;
  border-radius: var(--radius-sm); border: 1px solid transparent; box-sizing: border-box;
  cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none;
  max-width: 100%;
  transition: background-color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}
.kb-btn:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
}
.kb-btn--sm { min-height: 44px; height: 44px; padding: 0 14px; font-size: 13px; }
.kb-btn--md { min-height: 44px; height: 44px; padding: 0 16px; font-size: 14px; }
.kb-btn--lg { min-height: 44px; height: 44px; padding: 0 20px; font-size: 16px; }
.kb-btn--primary { background: var(--bg-brand); color: var(--fg-on-brand); }
.kb-btn--primary:hover { background: var(--bg-brand-hover); color: var(--fg-on-brand); }
.kb-btn--primary:active { background: var(--bg-brand-active); }
.kb-btn--secondary { background: var(--bg-surface); color: var(--fg-1); border-color: var(--border-default); }
.kb-btn--secondary:hover { background: var(--bg-hover); color: var(--fg-1); border-color: var(--border-strong); }
.kb-btn--secondary:active { background: var(--bg-active); border-color: var(--border-strong); }
.kb-nav-mid a:focus-visible,
.kb-nav-signin:focus-visible,
.kb-footer a:focus-visible,
.kb-footer-link:focus-visible,
.kb-footer-legal:focus-visible,
.kb-social:focus-visible,
.how-arrow:focus-visible,
.kb-video-cta:focus-visible,
[data-faq]:focus-visible,
[data-menu-toggle]:focus-visible,
.kb-skip:focus {
  outline: none;
  box-shadow: var(--ring-focus);
  border-radius: var(--radius-sm);
}
.kb-skip {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  padding: 10px 14px;
  background: var(--bg-brand);
  color: var(--fg-on-brand);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}
.kb-skip:focus {
  transform: none;
}

/* Footer social icons */
.kb-socials {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.kb-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--fg-3);
  font-size: 18px;
  text-decoration: none;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.kb-social:hover {
  color: var(--fg-1);
  background: var(--bg-hover);
}
.kb-footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  font-size: 13.5px;
  color: var(--fg-2);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.kb-footer-link:hover { color: var(--fg-1); }
.kb-footer-legal {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 4px;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.kb-footer-legal:hover { color: var(--fg-1); }

/* "How it works" app switcher — prev/next arrows flanking the headline */
.how-panel[hidden] { display: none; }
.how-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 44px;
  padding: 0 clamp(16px, 4vw, 48px);
}
.how-headline { flex: 1; text-align: center; margin: 0; min-width: 0; }
.how-nav-side { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.how-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--bg-page);
  border: 1px solid var(--border-default);
  color: var(--fg-2);
  cursor: pointer;
  font-size: 19px;
  transition: color 150ms var(--ease-out), border-color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}
.how-arrow:hover { color: var(--fg-1); border-color: var(--border-strong); background: var(--bg-hover); }
.how-next-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
}
.how-side-spacer { width: 33px; height: 33px; flex: 0 0 auto; }
@media (max-width: 700px) {
  .how-side-spacer, .how-next-icon { display: none; }
  .how-head { gap: 12px; }
}

/* View transition: the preview icon morphs into the headline icon, then the
   rest of the heading words fade in behind it after a slight delay. */
.how-headline { view-transition-name: how-heading; }
::view-transition-group(how-hero-icon) {
  animation-duration: 520ms;
  animation-timing-function: cubic-bezier(0.34, 1.1, 0.64, 1);
}
::view-transition-old(how-heading) { animation: how-head-out 150ms ease both; }
::view-transition-new(how-heading) { animation: how-head-in 360ms ease 200ms both; }
@keyframes how-head-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes how-head-out { from { opacity: 1; } to { opacity: 0; } }

/* SuiteCard / FeatureCard link hover */
a.kb-suite.is-clickable {
  cursor: pointer;
  transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
a.kb-suite.is-clickable:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: inherit;
}
.kb-suite-link:hover, .kb-feature-link:hover { color: var(--accent-700); }
:root[data-theme="dark"] .kb-suite-link:hover,
:root[data-theme="dark"] .kb-feature-link:hover { color: #F0A0A0; }

/* --- Ambient keyframes ---------------------------------------------------- */
@keyframes kbMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes kbPulse {
  0% { box-shadow: 0 0 0 0 rgba(107, 142, 61, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(107, 142, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(107, 142, 61, 0); }
}
@keyframes kbRowClear {
  0%, 11% { opacity: 1; transform: translateX(0); }
  17%, 92% { opacity: 0.32; transform: translateX(10px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes kbCheckIn {
  0%, 11% { opacity: 0; transform: scale(0.6); }
  17%, 92% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.6); }
}
@keyframes kbSweep {
  0% { opacity: 0; transform: translateY(6px); }
  12% { opacity: 1; transform: translateY(0); }
  88% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes kbType {
  0%, 60%, 100% { opacity: 0.42; transform: scale(0.86); }
  30% { opacity: 1; transform: scale(1.18); }
}
@keyframes kbWrench {
  0%, 100% { transform: rotate(-9deg); }
  50% { transform: rotate(7deg); }
}
@keyframes kbCursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* --- Hero H1 -------------------------------------------------------------- */
.kb-hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 86px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0 auto;
  max-width: 1000px;
  text-wrap: balance;
  color: var(--fg-1);
}
.kb-h1-br-mobile { display: none; }
.kb-h1-line1 {
  display: inline-block;
  font-size: 0.8em;
  letter-spacing: -0.035em;
  line-height: 1.15;
  white-space: nowrap;
}
.kb-h1-accent {
  color: var(--fg-brand);
  white-space: nowrap;
}
.kb-h1-typing { white-space: nowrap; }
.kb-h1-cursor {
  display: inline-block;
  width: 0.11em;
  height: 0.82em;
  margin-left: 0.06em;
  background: currentColor;
  vertical-align: -0.04em;
  animation: kbCursor 1.05s step-end infinite;
}
.kb-h1-chat-pill {
  /* No in-flow content → baseline is the bottom margin edge */
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  width: 1.35em;
  height: 0.72em;
  margin-right: 0.14em;
  border-radius: 999px;
  background: var(--stone-200);
  color: var(--fg-1);
}
:root[data-theme="dark"] .kb-h1-chat-pill {
  background: rgba(255, 255, 255, 0.16);
}
.kb-h1-chat-dots {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
}
.kb-h1-chat-dots span {
  width: 0.14em;
  height: 0.14em;
  border-radius: 999px;
  background: var(--fg-1);
  animation: kbType 1.4s ease-in-out infinite;
}
.kb-h1-chat-dots span:nth-child(2) { animation-delay: 0.18s; }
.kb-h1-chat-dots span:nth-child(3) { animation-delay: 0.36s; }
.kb-h1-brand-line {
  display: inline-flex;
  align-items: center;
  gap: 0.18em;
  color: var(--fg-1);
  white-space: nowrap;
}
.kb-h1-mark-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.75em;
  height: 0.75em;
  flex: 0 0 auto;
  border-radius: 0.14em;
  background: var(--fg-brand);
}
.kb-h1-mark {
  display: block;
  width: auto;
  height: 0.44em;
}
@media (max-width: 640px) {
  .kb-h1-br-mobile { display: block; }
  .kb-h1-line1 { white-space: normal; }
  .kb-h1-brand-line { white-space: normal; }
}

/* --- Layout primitives (tokenized section rhythm) ------------------------- */
.kb-container {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.kb-container--narrow {
  max-width: 840px;
}
.kb-container--copy {
  max-width: 760px;
}
.kb-section {
  padding-block: var(--section-y);
}
.kb-section--compact {
  padding-block: var(--section-y-compact);
}
.kb-section-head {
  margin: 0 auto var(--section-head-gap);
  text-align: center;
}
.kb-section-head--start {
  text-align: start;
  margin-left: 0;
  margin-right: 0;
}
.kb-hero {
  position: relative;
  padding: var(--hero-pad-top) 0 0;
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-page) 42%, var(--bg-surface) 100%);
}
.kb-hero-copy {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  text-align: center;
}
.kb-hero-shot {
  position: relative;
  z-index: 3;
  max-width: 1120px;
  margin: var(--hero-shot-gap) auto calc(var(--hero-shot-pull) * -1);
  padding: 0 var(--page-gutter);
}
.kb-vendors {
  padding: calc(var(--section-y) + var(--hero-shot-pull)) 0 var(--space-10);
  background: var(--bg-surface);
  overflow: hidden;
}
.kb-stack-gap {
  display: grid;
  gap: var(--space-4);
}
.kb-stack-gap--lg {
  gap: var(--space-8);
}

/* --- Hero phone: Follow-Up outbox deck ------------------------------------ */
/* Port of the iOS OutboxDeckView: back cards scale −2.8% and step 18px down;
   the top card holds at ~88px/5° with the SEND stamp inked, then flies out.
   One 14s cycle (3 cards) matches the desktop invoice loop's beat. */
.kb-phone {
  position: absolute;
  right: 8px;
  bottom: -44px;
  width: 236px;
  z-index: 4;
}
.kb-phone-body {
  border-radius: 40px;
  background: #1A1614;
  padding: 9px;
  box-shadow: var(--shadow-xl);
}
:root[data-theme="dark"] .kb-phone-body { background: #221D1A; }
.kb-phone-screen {
  display: flex;
  flex-direction: column;
  border-radius: 31px;
  background: var(--bg-page);
  overflow: hidden;
  padding: 6px 12px 8px;
}
.kb-phone-island {
  width: 62px;
  height: 16px;
  border-radius: 999px;
  background: #100D0C;
  margin: 2px auto 0;
  flex: 0 0 auto;
}
.kb-phone-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 14px 2px 10px;
}
.kb-phone-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg-1);
}
.kb-phone-due {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.kb-phone-due-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--tide-500);
}
.kb-deck {
  position: relative;
  height: 258px;
  margin: 0 2px 46px;
}
.kb-deck-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 11px 12px 10px;
  background: var(--bg-surface);
  border-radius: 4px;
  box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--border-subtle);
  overflow: hidden;
  will-change: transform, opacity;
  animation: kbDeckCycle 14s ease-in-out infinite;
}
.kb-deck-card:nth-of-type(1) { z-index: 3; }
.kb-deck-card:nth-of-type(2) {
  z-index: 2;
  transform: translate3d(0, 18px, 0) scale(0.972);
  opacity: 0.93;
  animation-delay: -9.3333s;
}
.kb-deck-card:nth-of-type(3) {
  z-index: 1;
  transform: translate3d(0, 36px, 0) scale(0.944);
  opacity: 0.85;
  animation-delay: -4.6667s;
}
.kb-deck-chips { display: flex; gap: 4px; }
.kb-deck-chips span {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 18px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-3);
  box-shadow: inset 0 0 0 1px var(--border-default);
}
.kb-deck-chips .is-active {
  color: var(--tide-600);
  background: rgba(65, 119, 141, 0.14);
  box-shadow: none;
}
.kb-deck-chips .is-done {
  color: var(--fg-success);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
}
:root[data-theme="dark"] .kb-deck-chips .is-active { color: var(--tide-300); }
.kb-deck-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.kb-deck-who strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg-1);
}
.kb-deck-who { min-width: 0; }
.kb-deck-who span,
.kb-deck-amt span {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  white-space: nowrap;
}
.kb-deck-amt { text-align: right; }
.kb-deck-amt strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-1);
}
.kb-deck-rule { height: 1px; background: var(--border-subtle); margin: 10px 0 8px; }
.kb-deck-eyebrow {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 4px;
}
.kb-deck-eyebrow--call { color: var(--tide-600); }
:root[data-theme="dark"] .kb-deck-eyebrow--call { color: var(--tide-300); }
.kb-deck-subject {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-1);
  margin-bottom: 5px;
}
.kb-deck-body {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--fg-2);
}
.kb-deck-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--fg-success);
}
.kb-deck-stamp {
  position: absolute;
  top: 92px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  padding: 6px 10px 6px 14px;
  border-radius: 2px;
  background: var(--red-500);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: rotate(-8deg);
  animation: kbDeckStamp 14s ease-in-out infinite;
}
.kb-deck-card:nth-of-type(2) .kb-deck-stamp { animation-delay: -9.3333s; }
.kb-deck-card:nth-of-type(3) .kb-deck-stamp { animation-delay: -4.6667s; }
.kb-deck-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 12px;
}
.kb-deck-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  flex: 0 0 auto;
}
.kb-deck-act--skip {
  width: 36px;
  height: 36px;
  background: var(--bg-surface);
  color: var(--fg-3);
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.kb-deck-act--details {
  width: 32px;
  height: 32px;
  background: rgba(65, 119, 141, 0.14);
  color: var(--tide-600);
  font-size: 12px;
}
:root[data-theme="dark"] .kb-deck-act--details { color: var(--tide-300); }
.kb-deck-act--rework {
  width: 32px;
  height: 32px;
  background: var(--bg-warning-subtle);
  color: var(--fg-warning);
  font-size: 12px;
}
.kb-deck-act--send {
  width: 44px;
  height: 44px;
  background: var(--red-500);
  color: #fff;
  font-size: 17px;
  box-shadow: 0 2px 5px rgba(163, 33, 33, 0.35);
  animation: kbSendPress 4.6667s ease-in-out infinite;
}
.kb-phone-homebar {
  width: 74px;
  height: 4px;
  border-radius: 999px;
  background: var(--fg-1);
  opacity: 0.22;
  margin: 0 auto;
  flex: 0 0 auto;
}
@keyframes kbDeckCycle {
  0%, 24% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 1; z-index: 3; }
  28%, 30.5% { transform: translate3d(88px, -4px, 0) rotate(5deg) scale(1); opacity: 1; z-index: 3; }
  33.2% { transform: translate3d(270px, -12px, 0) rotate(12deg) scale(1); opacity: 0; z-index: 3; }
  33.4% { transform: translate3d(0, 38px, 0) rotate(0deg) scale(0.944); opacity: 0; z-index: 1; }
  38%, 64% { transform: translate3d(0, 36px, 0) rotate(0deg) scale(0.944); opacity: 0.85; z-index: 1; }
  67.5%, 97% { transform: translate3d(0, 18px, 0) rotate(0deg) scale(0.972); opacity: 0.93; z-index: 2; }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 1; z-index: 3; }
}
@keyframes kbDeckStamp {
  0%, 24.5% { opacity: 0; transform: rotate(-8deg) scale(1.4); }
  28%, 31% { opacity: 1; transform: rotate(-8deg) scale(1); }
  33.2%, 100% { opacity: 0; transform: rotate(-8deg) scale(1); }
}
@keyframes kbSendPress {
  0%, 82% { transform: scale(1); background: var(--red-500); }
  86%, 91.5% { transform: scale(0.86); background: var(--red-600); }
  96%, 100% { transform: scale(1); background: var(--red-500); }
}

/* --- Responsive ----------------------------------------------------------- */
@media (min-width: 901px) {
  /* Clear the phone's landing zone on the desktop window */
  .kb-shot-window { margin-right: 190px; }
  .kb-shot-panel { padding-right: 40px !important; }
}
@media (max-width: 900px) {
  [data-desk] { display: none !important; }
  [data-shot-list] { display: none !important; }
  [data-two-col] { grid-template-columns: minmax(0, 1fr) !important; }
  /* Mobile hero: phone only — hide the desktop Costing window */
  .kb-shot-window { display: none !important; }
  .kb-hero-shot {
    display: flex;
    justify-content: center;
    margin-bottom: calc(var(--hero-shot-pull) * -0.35);
  }
  .kb-phone {
    position: relative;
    right: auto;
    bottom: auto;
    width: 236px;
    margin: 0 auto;
  }
  /* Narrower cards wrap one more line; keep the tag inside the card */
  .kb-deck { height: 284px; }
  .kb-section,
  .kb-section--compact,
  [data-pad] {
    padding-block: var(--section-y-mobile);
  }
  .kb-vendors {
    padding-top: calc(var(--section-y-mobile) + var(--hero-shot-pull));
  }
  [data-cta-band] { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (min-width: 901px) { [data-mobile-only] { display: none !important; } }

/* Decorative motion only — keep short state transitions for FAQ/menu/focus. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal],
  .kb-h1-cursor,
  .kb-h1-chat-dots span,
  [data-grid],
  .kb-deck-card,
  .kb-deck-stamp,
  .kb-deck-act--send {
    animation: none !important;
  }
  [data-parallax] { transform: none !important; }
  @keyframes kbPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(107, 142, 61, 0); }
  }
}
