/* Home landing — brand-adapted from betterbizz-landing.html */

.page--home .hero {
  padding: clamp(56px, 8vw, 88px) 0 clamp(48px, 6vw, 72px);
  background: #fff;
}

.home-hero__title em {
  font-style: normal;
  color: var(--bb-primary);
}

.home-trust {
  font-size: 13px;
  font-weight: 500;
  color: var(--bb-text-secondary);
  margin-top: 20px;
}

.home-trust strong {
  color: var(--bb-primary);
  font-weight: 600;
}

/* Live transcript demo card */
.home-demo {
  background: linear-gradient(145deg, #0241a3, #011d4a);
  border-radius: 28px;
  padding: 26px;
  color: #e8efff;
  box-shadow: 0 30px 60px -28px rgba(15, 23, 42, 0.22);
  transform: rotate(0.5deg);
}

.home-demo__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.home-demo__rec {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #b8c9ef;
  font-weight: 600;
}

.home-demo__live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  animation: home-pulse 1.6s infinite;
}

@keyframes home-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.home-demo__wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
}

.home-demo__wave span {
  width: 3px;
  background: linear-gradient(var(--bb-primary), #5b9cff);
  border-radius: 2px;
  animation: home-bar 1.1s ease-in-out infinite;
}

@keyframes home-bar {
  0%, 100% { height: 5px; }
  50% { height: 24px; }
}

.home-demo__lines {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.home-demo__line {
  display: flex;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  animation: home-rise 0.5s forwards;
}

.home-demo__ts {
  font-size: 11px;
  color: #8da8d9;
  min-width: 42px;
  padding-top: 2px;
}

.home-demo__who {
  font-weight: 700;
  font-size: 13px;
}

.home-demo__who--a { color: #7ee7c7; }
.home-demo__who--b { color: #93c5fd; }

.home-demo__said {
  font-size: 14px;
  color: #e7eeff;
}

@keyframes home-rise {
  to { opacity: 1; transform: none; }
}

.home-demo__summary {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
}

.home-demo__summary-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #93c5fd;
  text-transform: uppercase;
  font-weight: 600;
}

.home-demo__summary ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-demo__summary li {
  font-size: 14px;
  color: #efedff;
  display: flex;
  gap: 8px;
}

.home-demo__summary li::before {
  content: "✓";
  color: #4ade80;
  font-weight: 700;
}

/* Input strip */
.home-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.home-input {
  display: block;
  text-align: center;
  padding: 18px 10px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
}

.home-input:hover {
  background: #fff;
  border-color: var(--bb-border);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -18px rgba(2, 81, 199, 0.35);
}

.home-input__ic {
  font-size: 26px;
  display: block;
  margin-bottom: 8px;
}

.home-input__lbl {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--bb-text);
}

/* Stroke icons */
.home-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bb-primary-light);
  color: var(--bb-primary);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.home-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-icon--sm {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
}

.home-icon--sm svg {
  width: 22px;
  height: 22px;
}

.home-icon--on-dark {
  background: rgba(255, 255, 255, 0.12);
  color: #93c5fd;
}

.home-input .home-icon--sm {
  display: grid;
}

.home-pillar__icon {
  margin: 14px 0 18px;
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
  font-size: inherit;
}

.home-pillar__icon .home-icon {
  margin: 0;
}

/* Pillars */
.home-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-pillar {
  background: #fff;
  border: 1px solid var(--bb-border);
  border-radius: 24px;
  padding: 32px 28px;
  transition: transform 0.18s, box-shadow 0.18s;
}

.home-pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px -28px rgba(2, 81, 199, 0.28);
}

.home-pillar__num {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--bb-text-secondary);
  font-weight: 600;
}

.home-pillar h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.home-pillar p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--bb-text-secondary);
  margin: 0;
}

.home-pillar__bar {
  height: 4px;
  width: 46px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bb-primary), #5b9cff);
  margin-top: 20px;
}

/* Feature cards */
.home-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.home-feat {
  background: #fff;
  border: 1px solid var(--bb-border);
  border-radius: 20px;
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-feat:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px -26px rgba(2, 81, 199, 0.38);
}

.home-feat .home-icon {
  margin-bottom: 14px;
}

.home-feat h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}

.home-feat p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--bb-text-secondary);
  margin: 0;
}

.home-feat p strong {
  color: var(--bb-text);
  font-weight: 600;
}

/* Use cases — horizontal scroll tabs */
.home-uc-tabs-wrap {
  position: relative;
  margin-bottom: 28px;
}

.home-uc-tabs-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 8px;
  right: 0;
  width: 40px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(270deg, #fff 15%, transparent);
}

.section--muted .home-uc-tabs-wrap::after {
  background: linear-gradient(270deg, #f6f9ff 15%, transparent);
}

.home-uc-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(2, 81, 199, 0.18) transparent;
  padding-bottom: 6px;
  margin-bottom: 0;
}

.home-uc-tabs::-webkit-scrollbar {
  height: 3px;
}

.home-uc-tabs::-webkit-scrollbar-thumb {
  background: rgba(2, 81, 199, 0.22);
  border-radius: 999px;
}

.home-uc-tab {
  flex-shrink: 0;
  scroll-snap-align: start;
  white-space: nowrap;
}

.home-uc-tab {
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--bb-border);
  background: #fff;
  cursor: pointer;
  color: var(--bb-text-secondary);
  transition: all 0.15s;
}

.home-uc-tab[aria-selected="true"] {
  background: var(--bb-primary);
  color: #fff;
  border-color: var(--bb-primary);
}

.home-uc-panel {
  display: none;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--bb-border);
  border-radius: 24px;
  padding: 36px;
  transition: box-shadow 0.2s ease;
}

.home-uc-panel.is-active {
  display: grid;
  box-shadow: 0 20px 48px -32px rgba(2, 81, 199, 0.2);
}

.home-uc-panel h3 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.home-uc-panel > div > p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--bb-text-secondary);
  margin: 0 0 18px;
}

.home-uc-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-uc-panel li {
  font-size: 15px;
  display: flex;
  gap: 8px;
}

.home-uc-panel li::before {
  content: "→";
  color: var(--bb-primary);
  font-weight: 700;
}

.home-uc-visual {
  min-height: 280px;
}

.home-media-placeholder {
  width: 100%;
  min-height: 240px;
  border-radius: 18px;
  border: 1px dashed var(--bb-border);
  background: linear-gradient(145deg, var(--bb-primary-light), #fff);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  font-size: 14px;
  color: var(--bb-text-secondary);
  line-height: 1.5;
}

.home-media-placeholder--dark {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #b3c9ef;
  min-height: 220px;
  margin-top: 20px;
}

/* How it works — curved flow */
.home-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 0 8px;
  min-height: 280px;
}

.home-flow__curve {
  position: absolute;
  top: 28px;
  left: 0;
  width: 100%;
  height: 120px;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.home-flow__track {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 3;
  stroke-linecap: round;
}

.home-flow__flow {
  fill: none;
  stroke: var(--bb-primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 14 10;
  opacity: 0.55;
  animation: home-flow-dash 14s linear infinite;
}

@keyframes home-flow-dash {
  to { stroke-dashoffset: -120; }
}

.home-flow__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding-top: 8px;
}

.home-flow__node {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--bb-primary);
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--bb-primary);
  box-shadow:
    0 0 0 8px rgba(2, 81, 199, 0.08),
    0 14px 32px -10px rgba(2, 81, 199, 0.3);
}

.home-flow__step--accent .home-flow__node {
  background: var(--bb-primary);
  color: #fff;
  box-shadow:
    0 0 0 8px rgba(2, 81, 199, 0.14),
    0 18px 40px -12px rgba(2, 81, 199, 0.55);
}

.home-flow__step h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.home-flow__step p {
  font-size: 14px;
  color: var(--bb-text-secondary);
  line-height: 1.55;
  margin: 0;
  max-width: 220px;
}

/* Privacy band */
.home-privacy {
  background: linear-gradient(135deg, #0241a3, #0251c7 55%, #033080);
  color: #e8efff;
}

.home-privacy .section-label {
  color: #93c5fd;
}

.home-privacy h2 {
  color: #fff;
  font-size: clamp(28px, 3.5vw, 36px);
  margin: 0 0 18px;
}

.home-privacy__lead {
  font-size: 17px;
  line-height: 1.65;
  color: #c9d9f5;
  margin: 0 0 22px;
  max-width: 540px;
}

.home-privacy__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}

.home-privacy__side {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-priv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-priv-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.home-priv-list .home-icon {
  margin-top: 2px;
}

.home-priv-list b {
  display: block;
  color: #fff;
  font-size: 16px;
  margin-bottom: 4px;
}

.home-priv-list span {
  font-size: 14px;
  color: #b3c9ef;
  line-height: 1.5;
}

.home-priv-note {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 22px 24px;
}

.home-priv-note__tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93c5fd;
  font-weight: 700;
}

.home-priv-note p {
  font-size: 14px;
  line-height: 1.6;
  color: #dce8ff;
  margin: 10px 0 0;
}

.page--home #pricing .plan-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .page--home #pricing .plan-grid {
    grid-template-columns: 1fr;
  }
}

.home-price-foot {
  text-align: center;
  font-size: 13px;
  color: var(--bb-text-secondary);
  margin-top: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* Final CTA */
.home-final {
  padding-bottom: clamp(48px, 8vw, 80px);
}

.home-final__card {
  background: linear-gradient(135deg, #0251c7, #0241a3 55%, #033080);
  border-radius: 32px;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 48px);
  text-align: center;
  color: #fff;
}

.home-final__card h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: #fff;
  margin: 0 0 16px;
}

.home-final__card > p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  margin: 0 auto 28px;
}

.home-final__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.home-final__stat {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 22px;
}

.home-faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-faq .bb-faq {
  background: #fff;
  border: 1px solid var(--bb-border);
  border-radius: 16px;
  padding: 4px 22px;
}

.home-faq .bb-faq > summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.home-faq .bb-faq > summary::-webkit-details-marker {
  display: none;
}

.home-faq .bb-faq__icon {
  color: var(--bb-primary);
  font-size: 20px;
  flex: none;
  line-height: 1;
}

.home-faq .bb-faq__inner > p {
  font-size: 14.5px;
  color: var(--bb-text-secondary);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 1024px) {
  .home-inputs {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-pillars,
  .home-features,
  .home-flow,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .home-flow {
    padding-left: 52px;
    min-height: 0;
    gap: 0;
  }

  .home-flow__curve {
    display: none;
  }

  .home-flow::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 32px;
    bottom: 32px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(to bottom, #e5e7eb 0%, var(--bb-primary) 50%, #e5e7eb 100%);
    opacity: 0.85;
  }

  .home-flow__step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 18px;
    margin-bottom: 32px;
    padding-top: 0;
  }

  .home-flow__step:last-child {
    margin-bottom: 0;
  }

  .home-flow__node {
    width: 52px;
    height: 52px;
    font-size: 17px;
    margin-left: -52px;
    flex-shrink: 0;
  }

  .home-flow__step p {
    max-width: none;
  }

  .home-features {
    border-radius: 20px;
  }

  .home-uc-panel.is-active,
  .home-privacy__grid {
    grid-template-columns: 1fr;
  }

  .home-demo {
    transform: none;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .home-inputs {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-uc-panel.is-active {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-demo__live,
  .home-demo__wave span,
  .home-demo__line,
  .home-flow__flow {
    animation: none;
  }

  .home-demo__line {
    opacity: 1;
    transform: none;
  }
}
