/* Agentic commerce page — Figma node 6883:3829. */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.fl-ai-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  overflow-x: hidden;
  background: var(--fl-surface);
  color: var(--fl-ink);
  font-family: var(--fl-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.fl-ai-page h1,
body.fl-ai-page h2 {
  text-wrap: balance;
}

body.fl-ai-page p {
  text-wrap: pretty;
}

.fl-ai-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--fl-ai-section-gap, 200px);
  box-sizing: border-box;
  width: 100%;
  max-width: var(--fl-main-width);
  margin: 0 auto;
  padding-top: 200px;
  padding-right: var(--fl-page-gutter);
  --fl-ai-section-gap: 200px;
  padding-left: var(--fl-page-gutter);
}

.fl-ai-main > section {
  width: 100%;
  max-width: var(--fl-container);
  margin-inline: auto;
}

.fl-ai-main > [id] {
  scroll-margin-top: 112px;
}

.fl-ai-main > .fl-footer {
  flex: none;
  align-self: stretch;
  width: 100vw;
  margin-top: calc(
    var(--fl-footer-sep-gap, 100px) - var(--fl-ai-section-gap, 200px) +
      var(--fl-sep-pad-bottom, 76px)
  );
  margin-left: calc(50% - 50vw);
}

.fl-ai-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.fl-ai-section-head h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 60px;
  font-weight: 400;
  letter-spacing: -1.5px;
  line-height: 1.02;
  text-wrap: balance;
}

.fl-ai-section-head h2 em {
  color: var(--fl-green);
  font-family: var(--fl-font-script);
  font-style: normal;
  font-weight: 700;
}

.fl-ai-section-head--bind {
  gap: 12px;
}

.fl-ai-section-head--bind h2 {
  white-space: nowrap;
  text-wrap: nowrap;
}

.fl-ai-section-head--bind h2 em {
  white-space: nowrap;
}

.fl-ai-section-head p {
  max-width: 672px;
  margin: 0;
  color: var(--fl-text-muted);
  font-size: 20px;
  line-height: 28px;
}

.fl-ai-hero {
  display: grid;
  grid-template-columns: minmax(0, 522px) 479px;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
}

.fl-ai-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fl-ai-hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 64px;
  font-weight: 400;
  letter-spacing: -1.6px;
  line-height: 1.05;
}

.fl-ai-hero__copy > p {
  margin: 0;
  color: var(--fl-text-muted);
  font-size: 16px;
  line-height: 26px;
}

/* Shared hero CTA classes — keep in lockstep with redesign/hero.css. */
.fl-ai-hero .fl-hero__actions {
  padding-top: 8px;
}

.fl-ai-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

.fl-ai-button,
.fl-ai-route-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 2px solid var(--fl-ink);
  border-radius: 999px;
  background: var(--fl-white);
  box-shadow: var(--fl-shadow-md);
  color: var(--fl-ink);
  font-family: var(--fl-font-script);
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.fl-ai-button:hover,
.fl-ai-route-buttons button.is-active:hover {
  background: var(--fl-cta-hover);
}

.fl-ai-text-link {
  position: relative;
  padding-bottom: 6px;
  color: var(--fl-ink);
  font-family: var(--fl-font-script);
  font-size: 18px;
  line-height: 28px;
  text-decoration: none;
}

.fl-ai-text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: url("/redesign/assets/ai/hero-underline.svg") center / 100% 100% no-repeat;
}

.fl-ai-window {
  border: 2px solid var(--fl-ink);
  border-radius: 8px;
  background: var(--fl-surface);
  box-shadow: 6px 6px 0 var(--fl-ink);
}

.fl-ai-agent {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 443px;
  padding: 18px;
  box-shadow: var(--fl-shadow-lg);
}

.fl-ai-window__bar {
  display: flex;
  align-items: center;
  min-height: 25px;
  padding-bottom: 7px;
  border-bottom: 1px dashed rgba(21, 26, 38, 0.3);
}

.fl-ai-dots {
  display: flex;
  gap: 6px;
}

.fl-ai-dots i {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(21, 26, 38, 0.4);
  border-radius: 50%;
}

.fl-ai-dots i:first-child {
  border-color: #3f9b65;
  background: #3f9b65;
}

.fl-ai-window__label {
  margin-left: 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 14px;
}

.fl-ai-window__badge {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid rgba(21, 26, 38, 0.3);
  border-radius: 999px;
  color: #828690;
  font: 8px/12px "JetBrains Mono", monospace;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.fl-ai-agent__body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 32px;
}

/* Sits exactly where the reply bubble starts, so it reads as the agent typing. */
.fl-ai-typing {
  position: absolute;
  top: 62px;
  left: 0;
  display: flex;
  gap: 4px;
  padding: 9px 11px;
  border: 1px solid var(--fl-ink);
  border-radius: 4px 16px 16px;
  background: var(--fl-white);
  box-shadow: var(--fl-shadow-sm);
}

.fl-ai-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fl-green);
}

.fl-ai-chat {
  margin: 0;
}

.fl-ai-chat--user {
  align-self: flex-end;
  padding: 7px 11px;
  border: 1px solid rgba(21, 26, 38, 0.4);
  border-radius: 16px 4px 16px 16px;
  background: #fbfcfd;
  font-size: 12px;
  line-height: 16px;
}

.fl-ai-chat--agent {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: flex-start;
  height: 219px;
  padding: 9px 11px;
  border: 1px solid var(--fl-ink);
  border-radius: 4px 16px 16px;
  background: var(--fl-white);
  box-shadow: var(--fl-shadow-sm);
}

.fl-ai-chat--agent > em {
  color: var(--fl-green);
  font-family: var(--fl-font-script);
  font-size: 14px;
  font-style: normal;
  line-height: 20px;
}

.fl-ai-mini-plan {
  position: relative;
  width: 204px;
  height: 128px;
  padding: 9px;
  border: 1px dashed var(--fl-green);
  border-radius: 6px;
  background: #dee7e4;
}

.fl-ai-mini-plan__tag {
  display: block;
  color: #828690;
  font-size: 9px;
  letter-spacing: 0.9px;
  line-height: 12px;
  text-transform: uppercase;
}

.fl-ai-mini-plan > strong {
  display: block;
  font: 400 32px/31px "Cormorant Garamond", Georgia, serif;
}

.fl-ai-mini-plan > strong small {
  margin-left: 1px;
  color: var(--fl-text-muted);
  font: 12px/12px "Cormorant Garamond", Georgia, serif;
}

.fl-ai-mini-plan > i {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--fl-green);
  color: var(--fl-surface);
  font: 9px/12px var(--fl-font-script);
}

.fl-ai-mini-plan ul {
  margin: 8px 0 0;
  padding: 0;
  color: var(--fl-text-muted);
  font-size: 10px;
  line-height: 13px;
  list-style: none;
}

.fl-ai-mini-actions {
  display: flex;
  gap: 4px;
}

.fl-ai-mini-actions > * {
  padding: 2px 9px;
  border: 1px solid rgba(21, 26, 38, 0.6);
  border-radius: 999px;
  font: 10px/13px var(--fl-font-script);
}

.fl-ai-mini-actions b {
  border-color: var(--fl-ink);
  background: var(--fl-green);
  color: var(--fl-surface);
  font-weight: 400;
}

.fl-ai-prompt {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin-top: auto;
  padding: 6px 9px 6px 11px;
  border: 1px solid rgba(21, 26, 38, 0.4);
  border-radius: 999px;
  background: #fbfcfd;
  color: #828690;
  font-size: 10px;
}

.fl-ai-prompt span {
  display: grid;
  width: 20px;
  height: 20px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--fl-ink);
  place-items: center;
}

.fl-ai-prompt img {
  width: 10px;
  height: 10px;
}

.fl-ai-benefits {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

@media (min-width: 1220px) {
  .fl-ai-benefits.fl-section-sep {
    /* Figma Rect 19 behind benefits (7184:15042): pad 73 / 93. */
    --fl-sep-pad-top: 73px;
    --fl-sep-pad-bottom: 93px;
  }
}

.fl-ai-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 260px);
  gap: 24px;
}

.fl-ai-benefit-card,
.fl-ai-feature-card,
.fl-ai-metrics article,
.fl-ai-analysis-card {
  border: 2px solid var(--fl-ink);
  border-radius: 8px;
  background: #fbfcfd;
  box-shadow: var(--fl-shadow-lg);
}

.fl-ai-benefit-card {
  display: flex;
  flex-direction: column;
  height: 340px;
  overflow: hidden;
}

.fl-ai-benefit-card__art {
  width: 100%;
  height: 162px;
  background-position: center;
  background-size: cover;
}

.fl-ai-benefit-card h3,
.fl-ai-feature-card h3,
.fl-ai-analysis-card h3 {
  margin: 16px 20px 0;
  font: 600 24px/30px "Cormorant Garamond", Georgia, serif;
}

.fl-ai-benefit-card p,
.fl-ai-feature-card p {
  margin: 8px 20px 0;
  color: var(--fl-text-muted);
  font-size: 16px;
  line-height: 26px;
  text-wrap: pretty;
}

/* "Your channel is shifting" benefit cards — lift on hover (matches feature cards). */
@media (hover: hover) {
  .fl-ai-benefits .fl-ai-benefit-card {
    transition: translate 0.2s ease;
  }

  .fl-ai-benefits .fl-ai-benefit-card:hover {
    translate: 0 -20px;
  }
}

.fl-ai-journeys {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.fl-ai-journey-row {
  display: grid;
  grid-template-columns: 526px 526px;
  align-items: center;
  gap: 48px;
}

.fl-ai-journey-row + .fl-ai-journey-row {
  margin-top: 36px;
}

.fl-ai-journey-window {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 322px;
  padding: 18px;
}

.fl-ai-journey-window .fl-ai-window__bar {
  padding-bottom: 9px;
}

.fl-ai-journey-window .fl-ai-dots i {
  width: 10px;
  height: 10px;
}

.fl-ai-window__inside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(21, 26, 38, 0.3);
  border-radius: 6px;
  background: rgba(251, 252, 253, 0.6);
}

.fl-ai-window__inside > p {
  margin: 0;
  color: var(--fl-text-muted);
  font-size: 12px;
  line-height: 16px;
}

.fl-ai-quote {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--fl-ink);
  border-radius: 6px;
  background: var(--fl-surface);
}

.fl-ai-quote__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fl-ai-quote__head > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fl-ai-quote__head small,
.fl-ai-bound dt {
  color: #828690;
  font-size: 10px;
  letter-spacing: 1px;
  line-height: 15px;
  text-transform: uppercase;
}

.fl-ai-quote__head strong {
  color: var(--fl-green);
  font: 400 16px/24px var(--fl-font-script);
}

.fl-ai-quote__price {
  padding: 8px 14px;
  border: 2px solid var(--fl-ink);
  border-radius: 6px;
  background: var(--fl-green);
  color: var(--fl-surface);
  font: 18px/18px "Cormorant Garamond", Georgia, serif;
}

.fl-ai-quote__price small {
  display: block;
  color: var(--fl-surface);
  font: 9px/13px var(--fl-font-sans);
}

.fl-ai-quote__rating {
  margin: 0;
  padding: 4px 8px;
  border-radius: 4px;
  background: #dee7e4;
  font-size: 11px;
  line-height: 17px;
}

.fl-ai-quote__facts,
.fl-ai-bound dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0;
}

.fl-ai-quote__facts div {
  display: flex;
  flex-direction: column;
}

.fl-ai-quote__facts dt {
  color: #828690;
  font-size: 11px;
  line-height: 16px;
}

.fl-ai-quote__facts dd {
  margin: 0;
  font-size: 11px;
  line-height: 16px;
}

.fl-ai-journey-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  text-align: left;
}

.fl-ai-journey-copy h3 {
  margin: 0;
  font: 500 36px/45px "Cormorant Garamond", Georgia, serif;
}

.fl-ai-journey-copy > p {
  max-width: 448px;
  margin: 0;
  color: var(--fl-text-muted);
  font-size: 18px;
  line-height: 29.25px;
}

.fl-ai-checks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  padding: 9px 0 0;
  list-style: none;
}

.fl-ai-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
}

.fl-ai-checks img {
  width: 20px;
  height: 20px;
}

.fl-ai-route-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 9px;
}

.fl-ai-route-buttons button {
  cursor: pointer;
  min-height: 44px;
  padding-block: 8px;
}

.fl-ai-route-buttons button:not(.is-active) {
  border-color: rgba(21, 26, 38, 0.5);
  border-style: dashed;
  background: rgba(251, 252, 253, 0.5);
  box-shadow: none;
  color: var(--fl-text-muted);
}

.fl-ai-route-buttons button:not(.is-active):hover {
  border-color: var(--fl-green);
  border-style: solid;
  background: var(--fl-cta-hover);
  color: var(--fl-green);
}

.fl-ai-route-buttons button:focus-visible {
  outline: 2px solid var(--fl-green);
  outline-offset: 3px;
}

.fl-ai-route-stage {
  display: grid;
  align-items: start;
}

.fl-ai-route-card {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.fl-ai-route-card.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fl-ai-bound-window {
  position: relative;
  min-height: 360px;
}

.fl-ai-align-right {
  text-align: right;
}

.fl-ai-bound {
  padding: 13px;
  border: 1px solid var(--fl-ink);
  border-radius: 6px;
  background: var(--fl-surface);
}

.fl-ai-bound h4,
.fl-ai-bound > p {
  margin: 0;
  text-align: center;
}

.fl-ai-bound h4 {
  color: var(--fl-green);
  font: 20px/28px var(--fl-font-script);
}

.fl-ai-bound > p {
  color: var(--fl-text-muted);
  font-size: 11px;
  line-height: 16px;
}

.fl-ai-bound dl {
  margin-top: 13px;
}

.fl-ai-bound dl div {
  padding: 5px 9px;
  border: 1px dashed rgba(21, 26, 38, 0.4);
  border-radius: 4px;
}

.fl-ai-bound dd {
  margin: 0;
  font-size: 10px;
  line-height: 15px;
}

.fl-ai-bound__note {
  display: flex;
  flex-direction: column;
  margin-top: 13px;
  padding: 10px;
  border: 2px solid var(--fl-green);
  border-radius: 6px;
  background: rgba(38, 123, 76, 0.1);
  font-size: 11px;
  line-height: 16px;
}

.fl-ai-bound__note strong {
  color: var(--fl-green);
  font-family: var(--fl-font-script);
  font-weight: 400;
}

.fl-ai-bound__note span {
  color: var(--fl-text-muted);
}

.fl-ai-bound-badge {
  position: absolute;
  right: -12px;
  bottom: -12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--fl-green);
  box-shadow: var(--fl-shadow-md);
  color: var(--fl-surface);
  font: 12px/16px var(--fl-font-script);
}

.fl-ai-bound-badge img {
  width: 12px;
  height: 12px;
}

.fl-ai-checkout-url {
  display: flex;
  padding: 6px;
  border: 1px dashed rgba(21, 26, 38, 0.35);
  border-radius: 6px;
  background: rgba(21, 26, 38, 0.05);
}

.fl-ai-checkout-url span {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--fl-ink);
  font-size: 11px;
  line-height: 16px;
}

.fl-ai-checkout-url i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fl-green);
}

.fl-ai-checkout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fl-ai-checkout__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fl-ai-checkout__head > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fl-ai-checkout__head small {
  color: #828690;
  font-size: 10px;
  letter-spacing: 1px;
  line-height: 15px;
  text-transform: uppercase;
}

.fl-ai-checkout__head strong {
  color: var(--fl-green);
  font: 400 16px/24px var(--fl-font-script);
}

.fl-ai-checkout dl {
  margin-top: 0;
}

.fl-ai-bound > .fl-ai-checkout__note,
.fl-ai-bound > .fl-ai-handoff__status {
  margin: 0;
  padding: 10px;
  border: 2px solid var(--fl-green);
  border-radius: 6px;
  background: rgba(38, 123, 76, 0.1);
  color: var(--fl-green);
  font-size: 12px;
  font-style: italic;
  line-height: 18px;
  text-align: left;
}

.fl-ai-checkout__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  border-radius: 6px;
  background: var(--fl-green);
  color: var(--fl-surface);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.fl-ai-handoff {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.fl-ai-handoff__agent {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fl-ai-handoff__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--fl-green);
  border-radius: 50%;
  color: var(--fl-green);
  font: 700 13px/1 var(--fl-font-sans);
}

.fl-ai-handoff__agent strong {
  display: block;
  color: var(--fl-green);
  font: 400 18px/24px var(--fl-font-script);
}

.fl-ai-handoff__agent small {
  display: block;
  color: var(--fl-ink);
  font-size: 11px;
  line-height: 16px;
}

.fl-ai-handoff dl {
  margin-top: 0;
}

.fl-ai-features {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

@media (min-width: 1220px) {
  .fl-ai-features.fl-section-sep {
    /* Figma Rect 20 behind features (7184:15043): pad 59 / 86. */
    --fl-sep-pad-top: 59px;
    --fl-sep-pad-bottom: 86px;
  }
}

.fl-ai-features .fl-ai-section-head h2 {
  max-width: 1020px;
}

.fl-ai-features .fl-ai-section-head h2 em {
  white-space: nowrap;
}

.fl-ai-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 32px;
  column-gap: 24px;
}

.fl-ai-feature-card {
  display: flex;
  flex-direction: column;
  height: 323px;
  padding: 24px;
}

.fl-ai-feature-card__art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 159px;
}

.fl-ai-feature-card__art img {
  display: block;
  max-width: 275px;
  max-height: 159px;
}

.fl-ai-feature-card h3 {
  margin: 8px 0 0;
  padding-top: 16px;
}

.fl-ai-feature-card p {
  margin: 8px 0 0;
}

/* "You need to win." feature cards only — lift on hover (matches platform.css). */
@media (hover: hover) {
  .fl-ai-features .fl-ai-feature-card {
    transition: translate 0.2s ease;
  }

  .fl-ai-features .fl-ai-feature-card:hover {
    translate: 0 -20px;
  }
}

.fl-ai-analytics {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.fl-ai-analytics .fl-ai-section-head {
  gap: 8px;
}

.fl-ai-analytics .fl-ai-section-head p {
  padding-top: 12px;
}

.fl-ai-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.fl-ai-metrics article {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 130px;
  padding: 20px 22px;
  background: var(--fl-white);
}

.fl-ai-metrics span {
  color: var(--fl-text-muted);
  font-size: 14px;
  line-height: 20px;
}

.fl-ai-metrics strong {
  font-size: 36px;
  line-height: 40px;
}

.fl-ai-metrics b {
  color: var(--fl-green);
  font-size: 14px;
  line-height: 20px;
}

.fl-ai-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.fl-ai-analysis-card {
  min-height: 269px;
  padding: 24px;
  background: var(--fl-white);
}

.fl-ai-analysis-card h3 {
  margin: 0;
  font-weight: 600;
  line-height: 32px;
}

.fl-ai-analysis-card:has(.fl-ai-donut-wrap) {
  container-type: inline-size;
  container-name: fl-ai-sentiment;
}

.fl-ai-donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 8vw, 48px);
  width: 100%;
  min-height: clamp(9rem, 42cqi, 11.2rem);
}

.fl-ai-donut {
  position: relative;
  flex: 0 0 auto;
  width: clamp(7.25rem, 36vw, 10.125rem);
  height: clamp(7.25rem, 36vw, 10.125rem);
}

.fl-ai-donut svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.fl-ai-donut circle {
  fill: none;
  stroke-dasharray: var(--len) 999;
  stroke-dashoffset: var(--len);
}

.fl-ai-donut g {
  cursor: pointer;
  transition: opacity 180ms ease;
}

.fl-ai-donut[data-active] g:not(.is-active) {
  opacity: 0.3;
}

.fl-ai-donut b {
  transition: color 180ms ease;
}

.fl-ai-donut > span {
  position: absolute;
  inset: 19%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--fl-white);
}

.fl-ai-donut b {
  font: 700 24px/24px "Cormorant Garamond", Georgia, serif;
}

.fl-ai-donut small {
  color: #828690;
  font-size: 10px;
  letter-spacing: 1px;
  line-height: 15px;
  text-transform: uppercase;
}

.fl-ai-legend,
.fl-ai-top-journeys,
.fl-ai-conversion ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fl-ai-legend {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  gap: clamp(4px, 1.5cqi, 8px);
  min-width: 0;
  max-width: min(100%, 52cqi);
}

.fl-ai-legend li {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2.5cqi, 12px);
  cursor: pointer;
  font-size: clamp(11px, 3.4cqi, 14px);
  line-height: 1.35;
}

.fl-ai-legend li.is-active span {
  color: var(--fl-ink);
}

.fl-ai-legend li.is-active b {
  font-weight: 700;
}

.fl-ai-legend i {
  flex: 0 0 auto;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
}

.fl-ai-legend span {
  flex: 0 1 auto;
  min-width: 4.8em;
  color: var(--fl-text-muted);
}

.fl-ai-legend b {
  flex: 0 0 auto;
  min-width: 2.4em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

@container fl-ai-sentiment (min-width: 0) {
  .fl-ai-donut-wrap {
    gap: clamp(12px, 8cqi, 48px);
  }

  .fl-ai-donut {
    width: clamp(7.25rem, 34cqi, 10.125rem);
    height: clamp(7.25rem, 34cqi, 10.125rem);
  }

  .fl-ai-donut b {
    font-size: clamp(1.125rem, 5.5cqi, 1.5rem);
    line-height: 1;
  }

  .fl-ai-donut small {
    font-size: clamp(8px, 2.2cqi, 10px);
  }
}

.fl-ai-top-journeys {
  margin-top: 16px;
}

.fl-ai-top-journeys li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(21, 26, 38, 0.2);
  font-size: 14px;
  line-height: 20px;
}

.fl-ai-top-journeys li:last-child {
  border-bottom: 0;
}

.fl-ai-top-journeys b {
  color: var(--fl-text-muted);
  font-weight: 400;
}

.fl-ai-conversion {
  grid-column: 1 / -1;
  min-height: 280px;
}

.fl-ai-conversion ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.fl-ai-conversion li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: center;
  gap: 12px;
}

.fl-ai-conversion li > div {
  height: 36px;
  overflow: hidden;
  border: 2px solid var(--fl-ink);
  border-radius: 999px;
  background: rgba(251, 252, 253, 0.5);
}

.fl-ai-conversion li span {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: var(--w);
  min-width: 56px;
  height: 100%;
  padding-left: 12px;
  border-right: 2px solid var(--fl-ink);
  border-radius: 999px 0 0 999px;
  background: #74c365;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.fl-ai-conversion li small {
  color: var(--fl-ink);
  font-size: 14px;
  line-height: 20px;
}

/* Section and card entrance motions. Play only after the block is on screen. */
.fl-ai-reveal {
  opacity: 0;
  transform: translateY(22px);
}

.fl-ai-reveal--in {
  animation: fl-ai-rise 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fl-ai-reveal .fl-ai-benefit-card,
.fl-ai-reveal .fl-ai-feature-card {
  opacity: 0;
}

.fl-ai-reveal--in .fl-ai-benefit-card,
.fl-ai-reveal--in .fl-ai-feature-card {
  animation: fl-ai-card-smooth 200ms cubic-bezier(0.33, 0, 0.2, 1) both;
  animation-delay: calc(var(--i) * 200ms);
}

.fl-ai-reveal--in .fl-ai-metrics article {
  animation: fl-ai-card-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(120ms + var(--i) * 80ms);
}

/* Segments draw one after another, clockwise from the dark green wedge. */
.fl-ai-reveal--in .fl-ai-donut circle {
  animation: fl-ai-arc-draw var(--dur) cubic-bezier(0.22, 1, 0.36, 1) var(--delay) both;
}

@keyframes fl-ai-arc-draw {
  from { stroke-dashoffset: var(--len); }
  to { stroke-dashoffset: 0; }
}

/* Hero agent card plays as a conversation: question, typing, then the reply. */
.fl-ai-hero .fl-ai-chat,
.fl-ai-hero .fl-ai-typing,
.fl-ai-hero .fl-ai-prompt {
  opacity: 0;
}

.fl-ai-reveal--in .fl-ai-chat--user {
  animation: fl-ai-msg-right 480ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
}

.fl-ai-reveal--in .fl-ai-typing {
  animation: fl-ai-typing-cycle 1000ms ease 560ms both;
}

.fl-ai-reveal--in .fl-ai-typing i {
  animation: fl-ai-typing-dot 800ms ease-in-out 560ms infinite;
}

.fl-ai-reveal--in .fl-ai-typing i:nth-child(2) {
  animation-delay: 680ms;
}

.fl-ai-reveal--in .fl-ai-typing i:nth-child(3) {
  animation-delay: 800ms;
}

.fl-ai-reveal--in .fl-ai-chat--agent {
  animation: fl-ai-msg-left 500ms cubic-bezier(0.22, 1, 0.36, 1) 1400ms both;
}

.fl-ai-reveal--in .fl-ai-mini-plan {
  animation: fl-ai-card-rise 420ms cubic-bezier(0.22, 1, 0.36, 1) 1680ms both;
}

.fl-ai-reveal--in .fl-ai-mini-actions > * {
  animation: fl-ai-card-rise 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fl-ai-reveal--in .fl-ai-mini-actions > :nth-child(1) { animation-delay: 1880ms; }
.fl-ai-reveal--in .fl-ai-mini-actions > :nth-child(2) { animation-delay: 1980ms; }
.fl-ai-reveal--in .fl-ai-mini-actions > :nth-child(3) { animation-delay: 2080ms; }

.fl-ai-reveal--in .fl-ai-prompt {
  animation: fl-ai-card-rise 400ms cubic-bezier(0.22, 1, 0.36, 1) 2180ms both;
}

@keyframes fl-ai-msg-right {
  from { opacity: 0; transform: translate(14px, 4px) scale(0.98); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes fl-ai-msg-left {
  from { opacity: 0; transform: translate(-14px, 4px) scale(0.98); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes fl-ai-typing-cycle {
  0% { opacity: 0; transform: translateX(-10px) scale(0.96); }
  22% { opacity: 1; transform: translateX(0) scale(1); }
  78% { opacity: 1; transform: translateX(0) scale(1); }
  100% { opacity: 0; transform: translateX(0) scale(0.96); }
}

@keyframes fl-ai-typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-3px); opacity: 1; }
}

@keyframes fl-ai-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fl-ai-card-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fl-ai-card-smooth {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Journeys: cards slide left → right. Copy fades in while moving right → left.
   Opacity 0 only on the row's direct children so nested route cards stay visible. */
.fl-ai-journey-row.fl-ai-reveal {
  opacity: 0;
  transform: none;
}

.fl-ai-journey-row.fl-ai-reveal--in {
  opacity: 1;
  animation: none;
}

.fl-ai-journey-row > .fl-ai-journey-window,
.fl-ai-journey-row > .fl-ai-route-stage,
.fl-ai-journey-row > .fl-ai-journey-copy {
  opacity: 0;
}

.fl-ai-reveal--in > .fl-ai-journey-window,
.fl-ai-reveal--in > .fl-ai-route-stage {
  animation: fl-ai-from-left 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fl-ai-reveal--in > .fl-ai-journey-copy {
  animation: fl-ai-from-right 900ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}

@keyframes fl-ai-from-left {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fl-ai-from-right {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1219px) {
  .fl-ai-features .fl-ai-section-head h2 em {
    white-space: normal;
  }

  .fl-ai-main {
    padding-right: var(--fl-page-gutter);
    padding-left: var(--fl-page-gutter);
  }

  .fl-ai-hero {
    grid-template-columns: minmax(0, 522px);
    justify-items: center;
    gap: 56px;
  }

  .fl-ai-hero__copy {
    text-align: center;
    align-items: center;
  }

  .fl-ai-agent {
    width: min(100%, 479px);
    justify-self: center;
  }

  .fl-ai-benefit-grid {
    grid-template-columns: repeat(2, 260px);
    justify-content: center;
  }

  .fl-ai-journey-row {
    grid-template-columns: minmax(0, 526px);
    justify-content: center;
    gap: 40px;
  }

  .fl-ai-journey-row--reverse .fl-ai-journey-copy {
    order: 2;
  }

  .fl-ai-journey-copy {
    text-align: center;
    align-items: center;
  }

  .fl-ai-route-buttons {
    justify-content: center;
  }

  .fl-ai-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 350px));
    justify-content: center;
  }
}

@media (max-width: 800px) {
  .fl-ai-main {
    --fl-ai-section-gap: 120px;
    gap: var(--fl-ai-section-gap);
    padding-top: 176px;
  }

  .fl-ai-benefit-grid,
  .fl-ai-feature-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .fl-ai-benefit-card,
  .fl-ai-feature-card {
    width: 100%;
    height: auto;
    padding-bottom: 20px;
  }

  .fl-ai-benefits.fl-section-sep .fl-ai-benefit-grid,
  .fl-ai-features.fl-section-sep .fl-ai-feature-grid {
    width: var(--fl-sep-card-width, min(312px, 84%));
    margin-inline: auto;
  }

  .fl-ai-features.fl-section-sep .fl-ai-feature-card {
    text-align: center;
    align-items: center;
  }

  .fl-ai-features.fl-section-sep .fl-ai-feature-card__art img {
    margin-inline: auto;
  }

  .fl-ai-section-head h2,
  .fl-ai-features .fl-ai-section-head h2 {
    font-size: clamp(40px, 8vw, 60px);
  }

  .fl-ai-section-head p {
    font-size: 18px;
    line-height: 26px;
  }

  .fl-ai-section-head--bind h2,
  .fl-ai-section-head--bind h2 em {
    white-space: normal;
    text-wrap: balance;
  }

  .fl-ai-hero h1 {
    font-size: clamp(46px, 10vw, 64px);
  }

  .fl-ai-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .fl-ai-analysis-grid {
    grid-template-columns: 1fr;
  }

  .fl-ai-conversion {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .fl-ai-main {
    --fl-ai-section-gap: 88px;
    gap: var(--fl-ai-section-gap);
    padding: 168px var(--fl-page-gutter) 0;
  }

  .fl-ai-hero {
    display: flex;
    flex-direction: column;
  }

  .fl-ai-agent,
  .fl-ai-journey-window {
    width: 100%;
  }

  .fl-ai-agent {
    height: auto;
    min-height: 443px;
  }

  .fl-ai-chat--agent {
    height: auto;
  }

  .fl-ai-benefit-grid,
  .fl-ai-feature-grid {
    grid-template-columns: minmax(0, 1fr);
    width: var(--fl-sep-card-width, min(312px, 84%));
    margin-inline: auto;
  }

  .fl-ai-benefit-card {
    width: 100%;
    height: auto;
    padding-bottom: 20px;
  }

  .fl-ai-benefits .fl-ai-section-head h2 {
    line-height: 1.14;
  }

  .fl-ai-benefits .fl-ai-section-head h2 em {
    display: block;
    margin-top: 4px;
  }

  .fl-ai-section-head--bind h2 em {
    display: block;
  }

  .fl-ai-features.fl-section-sep .fl-ai-feature-card {
    text-align: center;
    align-items: center;
  }

  .fl-ai-features.fl-section-sep .fl-ai-feature-card__art img {
    margin-inline: auto;
  }

  .fl-ai-journey-row {
    display: flex;
    flex-direction: column;
  }

  .fl-ai-journey-row--reverse .fl-ai-journey-copy {
    order: initial;
  }

  .fl-ai-journey-copy > p {
    font-size: 16px;
    line-height: 26px;
  }

  .fl-ai-route-buttons {
    flex-direction: column;
    width: min(100%, 280px);
  }

  .fl-ai-bound dl,
  .fl-ai-checkout dl,
  .fl-ai-handoff dl,
  .fl-ai-quote__facts {
    grid-template-columns: 1fr;
  }

  .fl-ai-donut-wrap {
    min-height: 0;
  }

  .fl-ai-analysis-card {
    min-height: 0;
    padding: 16px;
  }

  .fl-ai-analysis-card h3 {
    margin-bottom: 12px;
    line-height: 24px;
  }

  .fl-ai-top-journeys li {
    flex-direction: column;
    gap: 4px;
  }

  .fl-ai-conversion li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .fl-ai-mini-plan {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fl-ai-reveal,
  .fl-ai-reveal--in,
  .fl-ai-reveal--in .fl-ai-benefit-card,
  .fl-ai-reveal--in .fl-ai-feature-card,
  .fl-ai-reveal--in .fl-ai-metrics article,
  .fl-ai-reveal--in .fl-ai-conversion li span,
  .fl-ai-hero .fl-ai-chat,
  .fl-ai-hero .fl-ai-prompt,
  .fl-ai-reveal--in .fl-ai-chat--user,
  .fl-ai-reveal--in .fl-ai-chat--agent,
  .fl-ai-reveal--in .fl-ai-mini-plan,
  .fl-ai-reveal--in .fl-ai-mini-actions > *,
  .fl-ai-reveal--in .fl-ai-prompt,
  .fl-ai-journey-row.fl-ai-reveal,
  .fl-ai-journey-row.fl-ai-reveal--in,
  .fl-ai-journey-row > .fl-ai-journey-window,
  .fl-ai-journey-row > .fl-ai-route-stage,
  .fl-ai-journey-row > .fl-ai-journey-copy,
  .fl-ai-reveal--in > .fl-ai-journey-window,
  .fl-ai-reveal--in > .fl-ai-route-stage,
  .fl-ai-reveal--in > .fl-ai-journey-copy {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .fl-ai-typing {
    display: none;
  }

  .fl-ai-donut circle {
    stroke-dashoffset: 0;
    animation: none;
  }

  .fl-ai-route-card {
    transition: none;
  }

  .fl-ai-features .fl-ai-feature-card:hover {
    translate: none;
  }
}
/* Only initialized enhancements may hide semantic content for a reveal. */
.fl-ai-main:not([data-fl-ai-mounted]) .fl-ai-reveal,
.fl-ai-main:not([data-fl-ai-mounted]) .fl-ai-benefit-card,
.fl-ai-main:not([data-fl-ai-mounted]) .fl-ai-feature-card,
.fl-ai-main:not([data-fl-ai-mounted]) .fl-ai-journey-copy,
.fl-ai-main:not([data-fl-ai-mounted]) .fl-ai-journey-window,
.fl-ai-main:not([data-fl-ai-mounted]) .fl-ai-route-stage,
.fl-ai-main:not([data-fl-ai-mounted]) .fl-ai-chat,
.fl-ai-main:not([data-fl-ai-mounted]) .fl-ai-mini-plan,
.fl-ai-main:not([data-fl-ai-mounted]) .fl-ai-mini-actions > *,
.fl-ai-main:not([data-fl-ai-mounted]) .fl-ai-prompt {
  opacity: 1;
  transform: none;
  animation: none;
}
