.index-main {
  background: var(--fte-canvas-bg);
}

.index-main h1,
.index-main h2,
.index-main h3,
.index-main p {
  text-wrap: pretty;
}

.index-section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.index-section h2,
.cta-final h2 {
  max-width: 18ch;
  margin: 0.65rem 0 1.25rem;
  color: var(--bs-emphasis-color);
  font-size: clamp(2.15rem, 4.2vw, 3.85rem);
  font-family: var(--bs-font-sans-serif);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

.index-section p {
  max-width: 42rem;
  color: var(--bs-secondary-color);
  font-size: 1.05rem;
  line-height: 1.7;
}

.index-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--fte-accent-emphasis);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-transform: uppercase;
}

.index-eyebrow::before {
  width: 1.5rem;
  height: 0.125rem;
  content: "";
  background: currentColor;
  border-radius: 999px;
}

.index-section-heading {
  max-width: 52rem;
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

.index-section-heading p {
  margin-bottom: 0;
}

/* Hero */
.index-hero {
  position: relative;
  overflow: hidden;
  color: var(--bs-body-color);
  background: var(--fte-public-hero-bg);
  border-bottom: 1px solid var(--fte-public-hero-border);
}

.index-hero::after {
  position: absolute;
  inset: auto -10% -18rem 32%;
  height: 26rem;
  content: "";
  background: rgba(var(--fte-accent-rgb), 0.06);
  border-radius: 50%;
  filter: blur(4rem);
  pointer-events: none;
}

.index-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(3.25rem, 5.5vw, 5rem);
}

.index-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(32rem, 1.08fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 6.5rem);
}

.index-hero__content {
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

.index-hero .index-eyebrow {
  color: var(--fte-public-hero-kicker);
}

.index-hero-title {
  max-width: 12.5ch;
  margin: 0.85rem 0 1.25rem;
  color: var(--fte-public-hero-title);
  font-size: clamp(2.9rem, 5.2vw, 5rem);
  font-family: var(--bs-font-sans-serif);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
}

.index-hero-copy {
  max-width: 39rem;
  margin-bottom: 1.5rem;
  color: var(--fte-public-hero-copy);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

.index-hero__actions .btn {
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
}

.index-hero__actions .btn-outline-primary {
  --bs-btn-color: var(--fte-public-hero-outline-color);
  --bs-btn-bg: var(--fte-public-hero-outline-bg);
  --bs-btn-border-color: var(--fte-public-hero-outline-border);
  --bs-btn-hover-color: var(--fte-public-hero-outline-hover-color);
  --bs-btn-hover-bg: var(--fte-public-hero-outline-hover-bg);
  --bs-btn-hover-border-color: var(--fte-public-hero-outline-hover-bg);
}

.index-hero__note {
  margin: 1rem 0 0;
  color: var(--bs-tertiary-color);
  font-size: 0.85rem;
}

.index-hero__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--fte-border-color);
}

.index-hero__proof > div {
  min-width: 0;
  padding: 1.1rem 1.35rem 1.2rem;
}

.index-hero__proof > div:first-child {
  padding-left: 0;
}

.index-hero__proof > div + div {
  border-left: 1px solid var(--fte-border-color);
}

.index-hero__proof strong,
.index-hero__proof span {
  display: block;
}

.index-hero__proof strong {
  margin-bottom: 0.2rem;
  color: var(--bs-emphasis-color);
  font-size: 0.9rem;
}

.index-hero__proof span {
  color: var(--bs-secondary-color);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* Product workspace */
.product-workspace {
  min-width: 0;
  overflow: hidden;
  color: var(--bs-body-color);
  background: var(--fte-surface-bg);
  border: 1px solid var(--fte-border-strong);
  border-radius: var(--fte-surface-radius);
  box-shadow: var(--fte-surface-shadow);
}

.hero-product-header {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--fte-card-header-bg, var(--fte-surface-bg));
  border-bottom: 1px solid var(--fte-border-color);
}

[data-bs-theme="dark"] .hero-product-header {
  background: var(--fte-card-header-bg, var(--fte-surface-bg));
}

.product-workspace__brand,
.product-workspace__plan {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.product-workspace__brand i {
  color: var(--fte-accent);
}

.product-workspace__plan {
  padding: 0.3rem 0.55rem;
  color: var(--fte-accent-emphasis);
  background: var(--fte-accent-subtle);
  border: 1px solid var(--fte-accent-border);
  border-radius: 999px;
}

.product-workspace__nav {
  display: flex;
  gap: 1.2rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--fte-border-color);
}

.product-workspace__nav span {
  position: relative;
  padding: 0.75rem 0;
  color: var(--bs-secondary-color);
  font-size: 0.72rem;
  font-weight: 650;
}

.product-workspace__nav span.active {
  color: var(--bs-emphasis-color);
}

.product-workspace__nav span.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 0.125rem;
  content: "";
  background: var(--fte-accent);
}

.product-workspace__body {
  padding: 1rem;
}

.product-workspace__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-workspace__heading strong,
.product-workspace__heading span {
  display: block;
}

.product-workspace__heading strong {
  color: var(--bs-emphasis-color);
  font-size: 1rem;
}

.product-workspace__label {
  margin-bottom: 0.15rem;
  color: var(--bs-secondary-color);
  font-size: 0.68rem;
}

.product-workspace__status {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.5rem;
  color: var(--fte-accent-emphasis);
  background: var(--fte-accent-subtle);
  border: 1px solid var(--fte-accent-border);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.product-workspace__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.product-workspace__metrics > div {
  padding: 0.8rem;
  background: var(--fte-surface-muted-bg);
  border: 1px solid var(--fte-border-color);
  border-radius: var(--fte-table-radius);
}

.product-workspace__metrics span,
.product-workspace__metrics strong {
  display: block;
}

.product-workspace__metrics span {
  margin-bottom: 0.3rem;
  color: var(--bs-secondary-color);
  font-size: 0.66rem;
}

.product-workspace__metrics strong {
  color: var(--bs-emphasis-color);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.product-workspace__metrics > div:first-child strong {
  color: var(--fte-accent-emphasis);
}

.product-workspace__table {
  overflow: hidden;
  border: 1px solid var(--fte-border-color);
  border-radius: var(--fte-table-radius);
}

.product-workspace__row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(3.5rem, 0.55fr) minmax(4.5rem, 0.65fr) minmax(5.5rem, 0.8fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  color: var(--bs-secondary-color);
  font-size: 0.72rem;
}

.product-workspace__row + .product-workspace__row {
  border-top: 1px solid var(--fte-border-color);
}

.product-workspace__row strong {
  color: var(--bs-emphasis-color);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.product-workspace__row--header {
  color: var(--bs-secondary-color);
  background: var(--fte-card-header-bg);
  font-size: 0.65rem;
  font-weight: 700;
}

.product-workspace .text-success {
  color: var(--fte-accent-emphasis) !important;
}

/* Connected record */
.index-story {
  background: var(--fte-surface-bg);
}

.index-story__grid,
.index-proof__grid,
.index-decision__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(34rem, 1.18fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.system-map {
  overflow: hidden;
  background: var(--fte-surface-bg);
  border: 1px solid var(--fte-border-color);
  border-radius: var(--fte-surface-radius);
  box-shadow: var(--fte-shell-shadow);
}

.system-map__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--fte-card-header-bg);
  border-bottom: 1px solid var(--fte-border-color);
}

.system-map__header span,
.system-map__header strong {
  display: block;
}

.system-map__header > div > span,
.system-map__stream div span,
.system-map__result span {
  margin-bottom: 0.15rem;
  color: var(--bs-secondary-color);
  font-size: 0.7rem;
  font-weight: 650;
}

.system-map__header strong {
  color: var(--bs-emphasis-color);
  font-size: 0.95rem;
}

.system-map__badge {
  padding: 0.3rem 0.55rem;
  color: var(--fte-accent-hover) !important;
  background: var(--fte-accent-subtle);
  border: 1px solid var(--fte-accent-border);
  border-radius: 999px;
  font-size: 0.68rem !important;
}

.system-map__streams {
  padding: 0.5rem 1.25rem;
}

.system-map__stream {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 4.3rem;
  padding: 0.75rem 0;
}

.system-map__stream + .system-map__stream {
  border-top: 1px solid var(--fte-border-color);
}

.system-map__icon {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fte-accent-emphasis);
  background: var(--fte-accent-subtle);
  border-radius: var(--fte-table-radius);
}

.system-map__stream div span,
.system-map__stream div strong {
  display: block;
}

.system-map__stream div strong {
  color: var(--bs-emphasis-color);
  font-size: 0.9rem;
}

.system-map__stream > i {
  color: var(--fte-accent);
  font-size: 0.8rem;
}

.system-map__result {
  padding: 1rem 1.25rem;
  color: var(--fte-accent-hover);
  background: var(--fte-accent-subtle);
  border-top: 1px solid var(--fte-accent-border);
}

.system-map__result span,
.system-map__result strong {
  display: block;
}

.system-map__result strong {
  font-size: 1rem;
}

/* Workflow */
.index-workflow {
  background: var(--fte-surface-muted-bg);
  border-top: 1px solid var(--fte-border-color);
  border-bottom: 1px solid var(--fte-border-color);
}

.index-workflow__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(22rem, 0.8fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 7rem);
}

.workflow-list {
  counter-reset: workflow;
  list-style: none;
  margin: 0;
  padding: 0;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0 0 1.4rem;
}

.workflow-list li + li {
  padding-top: 1.4rem;
  border-top: 1px solid var(--fte-border-color);
}

.workflow-list li:last-child {
  padding-bottom: 0;
}

.workflow-number {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fte-on-success);
  background: var(--fte-accent);
  border-radius: 999px;
  box-shadow: 0 0 0 0.22rem rgba(var(--fte-accent-rgb), 0.12);
  font-weight: 750;
}

.workflow-list h3 {
  margin: 0 0 0.35rem;
  color: var(--bs-emphasis-color);
  font-size: 1.05rem;
  font-weight: 700;
}

.workflow-list p {
  margin: 0;
  color: var(--bs-secondary-color);
  font-size: 0.95rem;
  line-height: 1.55;
}

.workflow-board {
  position: sticky;
  top: 5.5rem;
  overflow: hidden;
  background: var(--fte-surface-bg);
  border: 1px solid var(--fte-border-color);
  border-radius: var(--fte-surface-radius);
  box-shadow: var(--fte-panel-shadow);
}

.workflow-board__header {
  padding: 1rem 1.1rem;
  background: var(--fte-card-header-bg);
  border-bottom: 1px solid var(--fte-border-color);
}

.workflow-board__header span,
.workflow-board__header strong {
  display: block;
}

.workflow-board__header span {
  margin-bottom: 0.15rem;
  color: var(--bs-secondary-color);
  font-size: 0.7rem;
}

.workflow-board__header strong {
  color: var(--bs-emphasis-color);
}

.workflow-board__row {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
}

.workflow-board__row + .workflow-board__row {
  border-top: 1px solid var(--fte-border-color);
}

.workflow-board__row > i {
  margin-top: 0.15rem;
  color: var(--fte-accent);
}

.workflow-board__row strong,
.workflow-board__row span {
  display: block;
}

.workflow-board__row strong {
  color: var(--bs-emphasis-color);
  font-size: 0.88rem;
}

.workflow-board__row span {
  margin-top: 0.1rem;
  color: var(--bs-secondary-color);
  font-size: 0.78rem;
}

.index-text-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  color: var(--fte-accent-hover);
  background: var(--fte-accent-subtle);
  border-top: 1px solid var(--fte-accent-border);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.index-text-action:hover,
.index-text-action:focus-visible {
  color: var(--fte-accent-active);
  background: color-mix(in srgb, var(--fte-accent-subtle) 78%, var(--fte-surface-hover-bg));
  text-decoration: none;
}

/* Calculation proof */
.index-proof {
  background: var(--fte-surface-bg);
}

.index-proof__grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(31rem, 1.1fr);
}

.index-check-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.index-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--bs-body-color);
  font-size: 0.92rem;
}

.index-check-list i {
  margin-top: 0.18rem;
  color: var(--fte-accent);
}

.calculation-panel {
  overflow: hidden;
  background: var(--fte-surface-bg);
  border: 1px solid var(--fte-border-color);
  border-radius: var(--fte-surface-radius);
  box-shadow: var(--fte-shell-shadow);
}

.calculation-panel-header,
.calculation-row,
.calculation-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
}

.calculation-panel-header {
  color: var(--bs-secondary-text-emphasis);
  background: var(--fte-card-header-bg, var(--fte-surface-bg));
  border-bottom: 1px solid var(--fte-border-color);
  font-size: 0.8rem;
  font-weight: 700;
}

.calculation-row {
  color: var(--bs-secondary-color);
  font-size: 0.9rem;
}

.calculation-row + .calculation-row {
  border-top: 1px solid var(--fte-border-color);
}

.calculation-row strong,
.calculation-total strong {
  color: var(--bs-emphasis-color);
  font-variant-numeric: tabular-nums;
}

.calculation-total {
  color: var(--fte-accent-hover);
  background: var(--fte-accent-subtle);
  border-top: 1px solid var(--fte-accent-border);
  font-weight: 650;
}

.calculation-total strong {
  color: var(--fte-accent-hover);
  font-size: 1.08rem;
}

.audience-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--fte-border-color);
  border-bottom: 1px solid var(--fte-border-color);
}

.audience-rail > div {
  min-width: 0;
  padding: 1.5rem;
}

.audience-rail > div:first-child {
  padding-left: 0;
}

.audience-rail > div + div {
  border-left: 1px solid var(--fte-border-color);
}

.audience-rail span,
.audience-rail strong {
  display: block;
}

.audience-rail span {
  margin-bottom: 0.45rem;
  color: var(--fte-accent-emphasis);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.audience-rail strong {
  color: var(--bs-emphasis-color);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

/* Pricing and trust */
.index-decision {
  background: var(--fte-surface-muted-bg);
  border-top: 1px solid var(--fte-border-color);
}

.index-decision__grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(30rem, 1.05fr);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--fte-surface-bg);
  border: 1px solid var(--fte-border-color);
  border-radius: var(--fte-surface-radius);
  box-shadow: var(--fte-panel-shadow);
}

.trust-list > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.7rem;
  padding: 1.2rem;
}

.trust-list > div:nth-child(even) {
  border-left: 1px solid var(--fte-border-color);
}

.trust-list > div:nth-child(n + 3) {
  border-top: 1px solid var(--fte-border-color);
}

.trust-list i {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fte-accent-emphasis);
  background: var(--fte-accent-subtle);
  border-radius: var(--fte-table-radius);
}

.trust-list strong,
.trust-list span {
  display: block;
}

.trust-list strong {
  margin-bottom: 0.2rem;
  color: var(--bs-emphasis-color);
  font-size: 0.88rem;
}

.trust-list span {
  color: var(--bs-secondary-color);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* Final CTA */
.cta-final {
  padding: clamp(4rem, 7vw, 6rem) 0;
  color: var(--fte-color-white);
  background: var(--fte-public-cta-bg);
}

.cta-final__inner {
  max-width: 58rem;
  margin: 0 auto;
  text-align: center;
}

.cta-final .index-eyebrow {
  color: rgba(var(--fte-color-white-rgb), 0.72);
}

.cta-final h2 {
  max-width: 19ch;
  margin-right: auto;
  margin-left: auto;
  color: var(--fte-color-white);
}

.cta-final p {
  max-width: 42rem;
  margin: 0 auto 2rem;
  color: rgba(var(--fte-color-white-rgb), 0.72);
  font-size: 1.05rem;
  line-height: 1.65;
}

.cta-final .btn-outline-light {
  --bs-btn-color: var(--fte-color-white);
  --bs-btn-border-color: rgba(var(--fte-color-white-rgb), 0.46);
  --bs-btn-hover-color: var(--fte-color-on-bright);
  --bs-btn-hover-bg: var(--fte-color-white);
  --bs-btn-hover-border-color: var(--fte-color-white);
}

@media (max-width: 1199.98px) {
  .index-hero__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(28rem, 1.1fr);
    gap: 3rem;
  }

  .index-hero-title {
    font-size: clamp(3rem, 5vw, 4.6rem);
  }

  .index-story__grid,
  .index-proof__grid,
  .index-decision__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(28rem, 1.1fr);
    gap: 4rem;
  }
}

@media (max-width: 991.98px) {
  .index-hero__grid,
  .index-story__grid,
  .index-workflow__grid,
  .index-proof__grid,
  .index-decision__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-hero__content {
    max-width: 44rem;
    padding-bottom: 0;
  }

  .index-hero-title {
    max-width: 12ch;
  }

  .product-workspace {
    max-width: 46rem;
    transform: none;
  }

  .index-hero__proof {
    margin-top: 3rem;
  }

  .workflow-board {
    position: static;
  }

  .system-map,
  .calculation-panel,
  .trust-list {
    max-width: 46rem;
  }
}

@media (max-width: 767.98px) {
  .index-section {
    padding: 4rem 0;
  }

  .index-section h2,
  .cta-final h2 {
    font-size: clamp(2rem, 9vw, 2.85rem);
  }

  .index-hero__inner {
    padding-top: 2.75rem;
  }

  .index-hero-title {
    font-size: clamp(2.75rem, 11.5vw, 4rem);
  }

  .index-hero__actions {
    align-items: stretch;
  }

  .index-hero__proof {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-hero__proof > div,
  .index-hero__proof > div:first-child {
    padding: 1rem 0;
  }

  .index-hero__proof > div + div {
    border-top: 1px solid var(--fte-border-color);
    border-left: 0;
  }

  .product-workspace__nav {
    gap: 0.85rem;
    overflow-x: auto;
  }

  .product-workspace__metrics {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .audience-rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .audience-rail > div,
  .audience-rail > div:first-child {
    padding: 1.2rem 0;
  }

  .audience-rail > div + div {
    border-top: 1px solid var(--fte-border-color);
    border-left: 0;
  }

  .trust-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust-list > div:nth-child(even) {
    border-left: 0;
  }

  .trust-list > div + div {
    border-top: 1px solid var(--fte-border-color);
  }
}

@media (max-width: 575.98px) {
  .index-hero-title {
    font-size: clamp(2.55rem, 12.5vw, 3.5rem);
  }

  .product-workspace__row {
    grid-template-columns: minmax(0, 1.3fr) minmax(3rem, 0.55fr) minmax(4.5rem, 0.8fr);
  }

  .product-workspace__row > :nth-child(4) {
    display: none;
  }

  .product-workspace__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .workflow-list li {
    grid-template-columns: 2.65rem minmax(0, 1fr);
  }

  .calculation-panel-header,
  .calculation-row,
  .calculation-total {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-workspace {
    transform: none;
  }
}
