/* Free Scorecard start landing — page sections + final CTA (from marketing home.css) */

.text-brand {
  color: var(--color-brand);
}

/* Neutralize legacy layout chrome when marketing shell is active */
body.free-scorecard-start-standalone {
  min-height: 100vh;
}

body.free-scorecard-start-standalone .fade-layer,
body.free-scorecard-start-standalone .page-buffer {
  display: none !important;
}

body.free-scorecard-start-standalone .page-wrapper {
  display: contents;
}

body.free-scorecard-start-standalone main.fsc-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  width: 100%;
  min-width: 0;
}

/* Final CTA */

.final-cta {
  padding: 0;
}

.final-cta__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.5rem;
  border-radius: 1.5rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--color-brand);
  color: var(--color-white);
  text-align: center;
}

.final-cta__panel .section-badge {
  margin-bottom: 1rem;
}

.final-cta__panel h2 {
  max-width: 668px;
  margin: 0 auto 1rem;
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.111;
  letter-spacing: -0.06em;
  color: var(--color-white);
}

.final-cta__lead {
  max-width: 732px;
  margin: 0 auto 1.5rem;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.7);
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

@media (max-width: 39.99rem) {
  .final-cta__panel {
    gap: 0;
    padding: 2rem 1.25rem 1.5rem;
    background:
      linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
      linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
      var(--color-brand);
  }

  .final-cta__panel .section-badge {
    margin-bottom: 1.25rem;
  }

  .final-cta__panel h2 {
    max-width: 16.5rem;
    margin-bottom: 0.85rem;
    font-size: 1.75rem;
    line-height: 1.15;
  }

  .final-cta__lead {
    max-width: 22rem;
    margin-bottom: 1.75rem;
    font-size: 14px;
    line-height: 1.45;
  }

  .final-cta__actions {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }

  .final-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .final-cta__actions .btn--white {
    white-space: normal;
    height: auto;
    min-height: 48px;
  }

  .final-cta__actions .btn--white .btn__icon {
    display: none;
  }
}

@media (min-width: 48rem) {
  .final-cta__panel {
    padding: 3rem 2rem;
  }
}

/* Hero */

.fsc-hero {
  padding: 0;
}

.fsc-hero__panel {
  display: grid;
  gap: 2rem;
  padding: 2rem;
  background: #fff;
  border-radius: 1.5rem;
}

.fsc-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.25rem;
  min-width: 0;
}

.fsc-hero__title {
  margin: 0;
  max-width: 676px;
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 60px);
  font-weight: 600;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: -0.06em;
  color: var(--color-text-title);
}

.fsc-hero__title .text-brand {
  color: var(--color-brand);
}

.fsc-hero__lead {
  margin: 0;
  max-width: 676px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--color-body-text);
}

.fsc-hero__lead strong {
  font-weight: 600;
  color: inherit;
}

.fsc-hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.fsc-hero__feature {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 10px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-title);
}

.fsc-hero__feature-icon {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 4px;
  background: rgba(6, 147, 82, 0.08);
  color: #069352;
  flex-shrink: 0;
}

.fsc-hero__feature-icon svg {
  display: block;
}

.fsc-hero__cta {
  margin-top: 0.25rem;
}

/* Hero CTA — same tokens as icfo-marketing .btn--primary.btn--lg */
.fsc-hero__cta .btn--primary.btn--lg {
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--color-brand);
  color: var(--color-white);
  font-family: var(--btn-font-family);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: var(--btn-shadow-primary);
}

.fsc-hero__cta .btn--primary.btn--lg:hover {
  background: var(--color-brand-dark);
  color: var(--color-white);
}

.fsc-hero__cta .btn--primary.btn--lg .btn__icon {
  width: 15px;
  height: 12px;
  flex-shrink: 0;
}

.fsc-hero__media {
  min-width: 0;
  display: flex;
  align-items: stretch;
}

/* Preview mock — MARKET POSITION chrome + full hero-mock panels from icfo-marketing */

.fsc-preview.hero-mock {
  --fsc-preview-green: rgba(6, 147, 82, 1);
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 644px;
  aspect-ratio: 644 / 453;
  min-height: 0;
  margin-inline: auto;
  padding: 32px;
  border-radius: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, rgba(2, 30, 19, 1) 0%, rgba(3, 17, 13, 1) 100%);
  color: #fff;
}

.fsc-preview__top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  min-height: 17px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.fsc-preview__label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--fsc-preview-green);
}

.fsc-preview__step {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-family: "Inter", var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fsc-preview__step-current {
  color: #fff;
}

.fsc-preview__step-total {
  color: rgba(255, 255, 255, 0.45);
}

/* Stage fills space between header and dots */
.fsc-preview .hero-mock__stage {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.fsc-preview .hero-mock__panel {
  position: absolute;
  inset: 0;
}

.fsc-preview .hero-mock__panel:has(.fsc-valuation) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.fsc-preview .hero-mock__panel[hidden] {
  display: none;
}

.fsc-preview .hero-mock__flags {
  position: absolute;
  top: 4%;
  right: 0;
  display: grid;
  gap: 0.5rem;
  width: min(100%, 27.75rem);
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.fsc-preview .hero-mock__badge,
.fsc-preview .hero-mock__liquidity,
.fsc-preview .hero-mock__efficiency {
  display: block;
  width: 100%;
  height: auto;
}

.fsc-preview .hero-mock__gauges {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  width: min(100%, 28.5rem);
  max-width: 100%;
  padding: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: scale(0.9);
  transform-origin: left bottom;
}

.fsc-preview .hero-mock__gauges::-webkit-scrollbar {
  display: none;
}

.fsc-preview .hero-mock__gauge-img {
  flex: 0 0 calc((100% - 12px) / 2);
  width: calc((100% - 12px) / 2);
  height: auto;
  border-radius: 0.625rem;
  scroll-snap-align: start;
}

.fsc-preview .hero-mock__shot {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: contain;
  object-position: center top;
  border-radius: 12px;
  background: #fff;
}

/* Slide 1 — Valuation Techniques form (Figma metrics fbs) */
.fsc-valuation {
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  /* Figma: 470 inside ~580 content → ~81% keeps dark margins */
  width: min(470px, 81%);
  max-width: 100%;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  flex: 0 0 auto;
  align-self: center;
}

.fsc-valuation__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #fff;
}

.fsc-valuation__metric {
  display: block;
  width: 100%;
  height: auto;
  flex-shrink: 0;
  border-radius: 999px;
}

.fsc-valuation__card {
  display: block;
  width: 100%;
  height: auto;
  flex-shrink: 0;
  border-radius: 12px;
}

/* Slide 4 — assistant shots keep natural aspect ratio */
.fsc-assistant .fsc-valuation__card {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
}

.fsc-preview .hero-mock__assistant {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 16rem;
  padding: 0.5rem;
}

.fsc-preview .hero-mock__assistant-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 15.24px;
  box-sizing: border-box;
  width: 100%;
  max-width: 470px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.fsc-preview .hero-mock__assistant-img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  border-radius: 12px;
  object-fit: fill;
}

.fsc-preview__dots {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.fsc-preview__dot {
  box-sizing: content-box;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 0;
  /* 8px visual + 20px pad each side = 48px tap; negative margin keeps dots close */
  padding: 20px;
  margin: -20px;
  background: rgba(255, 255, 255, 0.22);
  background-clip: content-box;
  cursor: pointer;
}

.fsc-preview__dot.is-active {
  background: var(--fsc-preview-green);
  background-clip: content-box;
}

@media (min-width: 64rem) and (max-width: 79.99rem) {
  .fsc-preview .hero-mock__gauges {
    width: min(100%, 22rem);
    padding: 10px;
    gap: 8px;
    transform: scale(0.82);
  }

  .fsc-preview .hero-mock__flags {
    width: min(100%, 90%);
    padding: 0.5rem;
  }
}

@media (min-width: 80rem) {
  .fsc-preview .hero-mock__gauges {
    width: 28.5rem;
  }

  .fsc-preview .hero-mock__flags {
    width: min(100%, 27.75rem);
  }
}

@media (max-width: 39.99rem) {
  .fsc-hero__panel {
    padding: 1.5rem 1.25rem 2rem;
    gap: 2.75rem;
  }

  .fsc-hero__copy {
    gap: 1.75rem;
  }

  /*
   * Mobile feature chips: equal columns so longer labels (“Any industry”)
   * stay inside the panel instead of overflowing the right edge.
   */
  .fsc-hero__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .fsc-hero__feature {
    box-sizing: border-box;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    gap: 0.35rem;
    padding: 8px 6px;
    font-size: clamp(0.6875rem, 2.9vw, 0.8125rem);
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .fsc-hero__feature > span:not(.fsc-hero__feature-icon) {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .fsc-hero__feature-icon {
    width: 22px;
    height: 22px;
    padding: 4px;
  }

  .fsc-hero__cta {
    width: 100%;
    margin-top: 0.5rem;
  }

  .fsc-hero__cta .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    height: auto;
    min-height: 48px;
  }

  .fsc-hero__media {
    padding-inline: 0.75rem;
  }

  /*
   * Mobile: hug content (Figma) — no tall min-height, no aspect squeeze.
   * Active panel is in normal flow so height = chrome + card + dots.
   */
  .fsc-preview.hero-mock {
    aspect-ratio: auto;
    max-width: none;
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 20px;
    gap: 14px;
    border-radius: 20px;
    justify-content: flex-start;
  }

  .fsc-preview__top {
    padding: 0 0 12px;
  }

  .fsc-preview .hero-mock__stage {
    position: relative;
    flex: 0 0 auto;
    min-height: 0;
    width: 100%;
  }

  .fsc-preview .hero-mock__panel {
    position: relative;
    inset: auto;
  }

  .fsc-preview .hero-mock__panel:has(.fsc-valuation) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: 0;
  }

  .fsc-preview .hero-mock__panel[hidden] {
    display: none;
  }

  .fsc-preview__dots {
    padding-top: 12px;
    margin-top: 0;
  }

  .fsc-valuation {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    gap: 8px;
    transform: none;
  }

  .fsc-assistant .fsc-valuation__card {
    height: auto;
  }

  .fsc-preview .hero-mock__flags {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    gap: 0.35rem;
  }

  .fsc-preview .hero-mock__gauges {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    padding: 10px;
    gap: 8px;
    transform: none;
  }

  .fsc-preview .hero-mock__shot {
    min-height: 0;
    height: auto;
  }

  .fsc-preview .hero-mock__assistant {
    min-height: 0;
    height: auto;
  }
}

/* Testimonials */

.fsc-testimonials {
  padding: 0;
}

.fsc-testimonials__panel {
  padding: 2.5rem 1.5rem;
  background: #fff;
  border-radius: 1.5rem;
}

.fsc-testimonials__intro {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.fsc-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.fsc-quote {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  padding: 1.5rem;
  border: 1px solid #e8e8e8;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.fsc-quote__stars {
  display: flex;
  gap: 0.25rem;
}

.fsc-quote__stars svg {
  width: 1.125rem;
  height: 1.125rem;
}

.fsc-quote__text {
  margin: 0;
  flex: 1;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--color-body-text); /* #6B6A6A */
}

.fsc-quote__author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1rem;
  border-top: 1px solid #e8e8e8;
}

.fsc-quote__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  background: #cde9db;
  flex-shrink: 0;
}

.fsc-quote__name {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  font-style: normal;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--color-text-title); /* #131313 */
}

.fsc-quote__role {
  margin: 0.15rem 0 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  line-height: 18px;
  letter-spacing: 0;
  color: var(--color-body-text); /* #6B6A6A */
}

.fsc-testimonials__dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.fsc-testimonials__dot {
  box-sizing: content-box;
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 0;
  padding: 20px;
  margin: -20px;
  background: #e8e8e8;
  background-clip: content-box;
  cursor: pointer;
}

.fsc-testimonials__dot.is-active {
  background: var(--color-brand);
  background-clip: content-box;
}

@media (min-width: 64rem) {
  .fsc-hero__panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
    gap: 2rem 1.5rem;
    padding: 2.5rem;
  }
}

@media (max-width: 63.99rem) {
  body.free-scorecard-start-standalone {
    gap: 0;
  }

  body.free-scorecard-start-standalone .site-footer {
    margin-top: 12px;
  }

  body.free-scorecard-start-standalone .site-header__bar {
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: none;
  }

  .fsc-hero__panel {
    border-radius: 0 0 1.5rem 1.5rem;
  }

  body.free-scorecard-start-standalone main.fsc-main {
    gap: 12px;
  }
}

@media (max-width: 48rem) {
  .fsc-testimonials__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 39.99rem) {
  .fsc-testimonials__panel {
    padding: 1.75rem 1.25rem;
  }

  .fsc-testimonials__grid {
    display: block;
    position: relative;
    overflow: hidden;
  }

  .fsc-quote {
    display: none;
  }

  .fsc-quote.is-active {
    display: flex;
  }

  .fsc-testimonials__dots {
    display: flex;
  }
}
