/*
 * Application styles are layered on top of Bootstrap loaded via CDN.
 * Keep this file CSS-only to avoid a build step.
 */

/* Place any tiny overrides here. Keep imports in the layout so Propshaft fingerprints work. */

/* -------------------------------------------------------------------------- */
/*                              Landing page hero                             */
/* -------------------------------------------------------------------------- */

.hero-title {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 34rem;
  margin-bottom: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.text-xl-start .hero-lead {
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero-btn {
  padding-block: 0.6rem;
  font-size: 1rem;
}

/* The stat row doubles as the divider between the copy and the dashboard shot. */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgb(255 255 255 / 15%);
}

.hero-stat-value {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.hero-stat-label {
  color: rgb(255 255 255 / 65%);
  font-size: 0.8125rem;
}

@media (min-width: 1200px) {
  .hero-actions,
  .hero-stats {
    justify-content: flex-start;
  }

  .text-xl-start .hero-lead {
    margin-inline: 0;
  }
}

/* The theme pulls the dashboard shot up by a fixed 28rem, which on a phone is
   taller than the image itself and leaves only a sliver showing. */
@media (max-width: 991.98px) {
  .img-landing-banner {
    transform: translateY(-1.5rem);
    margin-bottom: -5rem;
  }

  .img-landing-banner:hover,
  .img-landing-banner:focus {
    transform: translateY(-1.5rem);
  }
}

/* -------------------------------------------------------------------------- */
/*                                 Logo strip                                 */
/* -------------------------------------------------------------------------- */

.logo-strip {
  padding-block: 1.5rem;
}

.logo-strip .landing-cta-img {
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.logo-strip a:hover .landing-cta-img,
.logo-strip a:focus .landing-cta-img {
  opacity: 1;
}

/* The theme stretches these logos to the column width on phones, which throws
   the row out of scale. Cap the height and let the width follow instead. */
@media (max-width: 575.98px) {
  .logo-strip .row {
    row-gap: 1.5rem;
  }

  .logo-strip .landing-cta-img {
    width: auto;
    max-width: 100%;
    max-height: 1.75rem;
  }
}

/* -------------------------------------------------------------------------- */
/*                             Landing page sections                          */
/* -------------------------------------------------------------------------- */

/* The theme ships 7.5rem of section padding, which leaves the landing page
   mostly empty. These sections set their own. */
.section-tight {
  padding-block: clamp(3.5rem, 6vw, 4.75rem);
}

.section-eyebrow {
  margin-bottom: 0.75rem;
  color: #8e3ea0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 0.75rem;
  color: #2b2730;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-lead {
  max-width: 36rem;
  margin: 0 auto;
  color: #6c6572;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/*                              How it works cards                            */
/* -------------------------------------------------------------------------- */

/* No overflow clipping here: the icon circle is meant to sit above the card. */
.step-card {
  border: 1px solid #ece7ee;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgb(67 44 72 / 6%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover,
.step-card:focus-within {
  transform: translateY(-0.25rem);
  box-shadow: 0 1rem 2.25rem rgb(67 44 72 / 12%);
}

.step-number {
  margin-bottom: 0.5rem;
  color: #b09ab6;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.step-title {
  margin-bottom: 0.5rem;
  color: #2b2730;
  font-weight: 600;
}

.step-copy {
  margin-bottom: 0;
  color: #6c6572;
  line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/*                            Inside a report grid                            */
/* -------------------------------------------------------------------------- */

.feature-item {
  padding: 1.75rem;
  border: 1px solid #ece7ee;
  border-radius: 0.75rem;
  background-color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 1rem 2.25rem rgb(67 44 72 / 10%);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.125rem;
  border-radius: 0.625rem;
  font-size: 1.25rem;
}

.feature-title {
  margin-bottom: 0.5rem;
  color: #2b2730;
  font-weight: 600;
}

.feature-copy {
  margin-bottom: 0;
  color: #6c6572;
  line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/*                                   Footer                                   */
/* -------------------------------------------------------------------------- */

/* Short pages (the interest form, error pages) otherwise leave a band of body
   background below the footer. Push it to the bottom instead. */
.main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main > .site-footer {
  margin-top: auto;
}

/* The theme's default section padding is far too tall here, and the back-to-top
   notch is positioned against this box. */
.site-footer {
  position: relative;
  padding-block: clamp(2.75rem, 5vw, 4rem);
}

/* The theme floats this notch entirely above the footer, so it reads as a stray
   diamond on the section above. Center it on the seam instead. */
.site-footer .btn-back-to-top {
  top: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-brand-name {
  color: rgb(255 255 255 / 70%);
  font-size: 1.25rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-brand:hover .footer-brand-name,
.footer-brand:focus .footer-brand-name {
  color: rgb(255 255 255 / 90%);
}

.footer-blurb {
  max-width: 26rem;
  margin-bottom: 1.25rem;
  color: rgb(255 255 255 / 55%);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: rgb(255 255 255 / 10%);
  color: rgb(255 255 255 / 75%);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-social:hover,
.footer-social:focus {
  background-color: #fff;
  color: #1da1f2;
}

.footer-heading {
  margin-top: 0;
  margin-bottom: 1rem;
  color: rgb(255 255 255 / 90%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links li + li {
  margin-top: 0.625rem;
}

.footer-links a {
  font-size: 0.9375rem;
}

/* -------------------------------------------------------------------------- */
/*                              Report layout                                 */
/* -------------------------------------------------------------------------- */

/* Categorical slots are assigned in fixed order and never cycled. These three
   clear the all-pairs CVD and normal-vision floors on a white surface; aqua
   sits under 3:1, which the direct labels on every segment relieve. */
.alt-report {
  --alt-ink: #2b2730;
  --alt-ink-soft: #6c6572;
  --alt-ink-faint: #9b93a3;
  --alt-line: #ece7ee;
  --alt-surface: #fff;
  --alt-accent: #8e3ea0;
  --alt-seg-1: #2a78d6;
  --alt-seg-2: #eb6834;
  --alt-seg-3: #1baf7a;
  --alt-seg-4: #eda100;
  --alt-seg-5: #e87ba4;
  --alt-seg-other: #b6aebc;
  --alt-up: #1f8a5c;
  --alt-down: #c2473f;

  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: var(--alt-ink);
}

.alt-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--alt-line);
}

.alt-eyebrow {
  margin-bottom: 0.35rem;
  color: var(--alt-accent);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.alt-title {
  margin-bottom: 0.25rem;
  color: var(--alt-ink);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.alt-subtitle {
  margin-bottom: 0;
  color: var(--alt-ink-soft);
  font-size: 0.9375rem;
}

.alt-head-actions {
  display: flex;
  gap: 0.5rem;
}

.alt-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--alt-line);
  border-radius: 0.5rem;
  color: var(--alt-ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.alt-icon-btn:hover,
.alt-icon-btn:focus {
  border-color: var(--alt-accent);
  color: var(--alt-accent);
}

/* KPI row: one value each, so a tile rather than a one-bar chart. */
.alt-kpis {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.alt-kpi {
  padding: 1.25rem 1.375rem;
  border: 1px solid var(--alt-line);
  border-radius: 0.75rem;
  background-color: var(--alt-surface);
}

.alt-kpi-value {
  color: var(--alt-ink);
  font-size: 2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.alt-kpi-label {
  margin-top: 0.35rem;
  color: var(--alt-ink-soft);
  font-size: 0.8125rem;
}

.alt-delta {
  margin-left: 0.4rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.alt-delta.is-up {
  color: var(--alt-up);
}

.alt-delta.is-down {
  color: var(--alt-down);
}

.alt-card {
  padding: 1.5rem;
  border: 1px solid var(--alt-line);
  border-radius: 0.75rem;
  background-color: var(--alt-surface);
}

.alt-card-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.alt-card-title {
  margin-bottom: 0.25rem;
  color: var(--alt-ink);
  font-size: 1.0625rem;
  font-weight: 600;
}

.alt-card-note {
  margin-bottom: 1.25rem;
  color: var(--alt-ink-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

.alt-card-meta {
  color: var(--alt-ink-faint);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.alt-split {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

/* ---- stacked share bar ---- */

.alt-share-bar {
  display: flex;
  gap: 2px;
  height: 1.25rem;
  margin-bottom: 1.25rem;
}

.alt-share-seg {
  border-radius: 3px;
}

.alt-share-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0;
}

.alt-share-item {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.875rem;
}

.alt-share-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  transform: translateY(1px);
}

.alt-share-name {
  color: var(--alt-ink);
  font-weight: 500;
}

.alt-share-pct {
  color: var(--alt-ink);
  font-variant-numeric: tabular-nums;
}

.alt-share-count {
  color: var(--alt-ink-faint);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.alt-seg-1 { background-color: var(--alt-seg-1); }
.alt-seg-2 { background-color: var(--alt-seg-2); }
.alt-seg-3 { background-color: var(--alt-seg-3); }
.alt-seg-4 { background-color: var(--alt-seg-4); }
.alt-seg-5 { background-color: var(--alt-seg-5); }
.alt-seg-other { background-color: var(--alt-seg-other); }

/* ---- magnitude bars ---- */

.alt-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0;
}

.alt-bar-row {
  display: grid;
  gap: 0.875rem;
  align-items: center;
  grid-template-columns: minmax(6rem, 9rem) 1fr 3rem;
}

.alt-bar-name {
  color: var(--alt-ink);
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alt-bar-track {
  height: 0.625rem;
  border-radius: 4px;
  background-color: #f4f0f6;
}

.alt-bar-fill {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: 4px;
  background-color: var(--alt-accent);
}

.alt-bar-value {
  color: var(--alt-ink-soft);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ---- full list ---- */

.alt-details {
  margin-top: 1.25rem;
  border-top: 1px solid var(--alt-line);
  padding-top: 1rem;
}

.alt-summary {
  color: var(--alt-accent);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}

.alt-table-wrap {
  max-height: 22rem;
  margin-top: 1rem;
  overflow: auto;
}

.alt-table {
  width: 100%;
  font-size: 0.875rem;
}

.alt-table th {
  position: sticky;
  top: 0;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--alt-line);
  background-color: var(--alt-surface);
  color: var(--alt-ink-faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alt-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f5f2f6;
  font-variant-numeric: tabular-nums;
}

/* ---- job lists ---- */

.alt-pill {
  padding: 0.15rem 0.6rem;
  border-radius: 50rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.alt-pill.is-up {
  background-color: #e4f4ec;
  color: var(--alt-up);
}

.alt-pill.is-down {
  background-color: #fceceb;
  color: var(--alt-down);
}

.alt-jobs {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.alt-jobs li {
  padding: 0.625rem 0;
  border-top: 1px solid var(--alt-line);
  font-size: 0.875rem;
  line-height: 1.5;
}

.alt-jobs li:first-child {
  border-top: 0;
}

.alt-jobs a {
  color: var(--alt-ink);
}

.alt-jobs a:hover {
  color: var(--alt-accent);
}

.alt-jobs mark {
  padding: 0 0.15rem;
  border-radius: 2px;
  background-color: #f7e9fa;
  color: var(--alt-accent);
  font-weight: 600;
}

.alt-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--alt-accent);
  font-size: 0.875rem;
  font-weight: 500;
}

.alt-prose {
  color: var(--alt-ink-soft);
  font-size: 0.9375rem;
  line-height: 1.65;
}

@media (max-width: 575.98px) {
  .alt-bar-row {
    grid-template-columns: minmax(5rem, 7rem) 1fr 2.5rem;
  }

  .alt-card {
    padding: 1.25rem;
  }
}

/* -------------------------------------------------------------------------- */
/*                        Locked archive notice and rows                      */
/* -------------------------------------------------------------------------- */

.locked-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e6dcea;
  border-radius: 0.625rem;
  background-color: #fbf7fc;
}

.locked-notice-body {
  flex: 1 1 20rem;
}

.locked-notice-title {
  margin-bottom: 0.25rem;
  color: #2b2730;
  font-size: 1rem;
  font-weight: 600;
}

.locked-notice-copy {
  margin-bottom: 0;
  color: #6c6572;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.locked-notice-btn {
  white-space: nowrap;
}

/* Quiet on purpose: it reports state, it is not a call to action. */
.report-locked {
  color: #c3b9c8;
  font-size: 0.9375rem;
}

.company-archive-link {
  color: #9b93a3;
  font-size: 0.875rem;
  white-space: nowrap;
}

.company-archive-link:hover,
.company-archive-link:focus {
  color: #8e3ea0;
}

/* -------------------------------------------------------------------------- */
/*                          Public sample report banner                       */
/* -------------------------------------------------------------------------- */

.sample-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 1.75rem 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(120deg, #4a1f5c 0%, #8e3ea0 100%);
  color: #fff;
}

.sample-banner-body {
  flex: 1 1 22rem;
}

.sample-banner-eyebrow {
  margin-bottom: 0.5rem;
  color: rgb(255 255 255 / 70%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sample-banner-title {
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

.sample-banner-copy {
  max-width: 40rem;
  margin-bottom: 0;
  color: rgb(255 255 255 / 78%);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.sample-banner-btn {
  white-space: nowrap;
  background-color: #fff;
  color: #8e3ea0;
}

.sample-banner-btn:hover,
.sample-banner-btn:focus {
  background-color: #fef1ff;
  color: #7d3681;
}

/* Sits directly under another tinted section on the landing page, so it needs
   its own ground and a rule to separate the two. */
.interest-signup-section {
  padding-block: clamp(3.5rem, 6vw, 4.75rem);
  border-top: 1px solid #ece7ee;
  background-color: #fff;
}

.interest-signup-card {
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid #ece7ee;
  border-radius: 0.75rem;
  background-color: #fff;
  box-shadow: 0 0.75rem 2rem rgb(67 44 72 / 8%);
}

.interest-signup-title {
  color: #2b2730;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.interest-signup-copy {
  max-width: 38rem;
  margin-inline: auto;
  color: #6c6572;
  line-height: 1.6;
}

.interest-signup-status {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

.interest-signup-status .jumbotron {
  margin-bottom: 0;
}

.interest-signup-status ul {
  padding: 0;
  list-style: none;
}

.interest-signup-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  max-width: 34rem;
  margin-inline: auto;
}

/* Keep the grid intact when Rails wraps the field after a failed submit. */
.interest-signup-fields .field_with_errors {
  display: contents;
}

.interest-signup-fields .field_with_errors .interest-signup-input {
  border-color: #d05a72;
}

/* The pill radius eats into the ends, so both fields carry roomier inline padding. */
.interest-signup-input,
.interest-signup-submit {
  min-height: 3.5rem;
  border-radius: 50rem;
  line-height: 1.4;
}

.interest-signup-input {
  padding-inline: 1.5rem;
  border-color: #d9cedc;
}

.interest-signup-input:focus {
  border-color: #8e3ea0;
  box-shadow: 0 0 0 0.2rem rgb(142 62 160 / 18%);
}

.interest-signup-submit {
  padding-inline: 2.25rem;
  white-space: nowrap;
}

/* Stack before the button starts crowding the email field. */
@media (max-width: 767.98px) {
  .interest-signup-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .interest-signup-card {
    padding-inline: 1.5rem;
  }
}
