/* ============================================================
   HOME — hero with a sample report, About, How it works (the one dotted trail),
   Learn more on navy, Good to know and a closing call to action
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ---------- HERO ---------- */
.hero-wrap {
  padding: clamp(3rem, 8vw, 6.5rem) var(--gutter) clamp(3.5rem, 8vw, 6rem);
}

.hero-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.hero-title {
  font-size: clamp(3.4rem, 10vw, 6.5rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 1.25rem 0 1rem;
}

.subtitle {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.4;
  color: var(--muted);
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-access {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
}

/* The sample report card */
.sample-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.75rem;
}

.sample-label {
  font-size: 0.875rem;
  color: var(--muted);
}

.sample-profile {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0.35rem 0 0.9rem;
}

.badge-compass {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--compass-soft);
  color: var(--compass-soft-ink);
  font-size: 0.875rem;
  font-weight: 700;
}

.sample-bars {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.sample-bars li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.sample-bars li.top {
  color: var(--ink);
  font-weight: 700;
}

.sample-bars i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(var(--trail), var(--trail)) no-repeat left / var(--len) 100%, var(--line);
}

/* The accent under the main area, and area names above their bars */
.sample-accent {
  margin: -0.5rem 0 0.9rem;
  font-weight: 700;
  color: var(--trail-soft-ink);
}

.sample-bars-areas li {
  grid-template-columns: 1fr;
  gap: 0.3rem;
}

/* Decorative sample lengths (no numbers are shown) */
.sample-bars li:nth-child(1) i { --len: 92%; }
.sample-bars li:nth-child(2) i { --len: 64%; }
.sample-bars li:nth-child(3) i { --len: 41%; }
.sample-bars li:nth-child(4) i { --len: 26%; }
/* The accent sits close behind the main area */
.sample-bars-areas li:nth-child(2) i { --len: 86%; }

/* The one orchestrated moment: the sample bars grow in on load */
@media (prefers-reduced-motion: no-preference) {
  .sample-bars i {
    animation: bar-grow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .sample-bars li:nth-child(2) i { animation-delay: 0.08s; }
  .sample-bars li:nth-child(3) i { animation-delay: 0.16s; }
  .sample-bars li:nth-child(4) i { animation-delay: 0.24s; }

  @keyframes bar-grow {
    from { background-size: 0 100%, auto; }
  }
}

/* ---------- SECTIONS ---------- */
.h-section {
  padding: clamp(4rem, 9vw, 6.5rem) var(--gutter);
  scroll-margin-top: var(--nav-height);
}

.h-white {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.h-container {
  max-width: 1120px;
  margin: 0 auto;
}

.h-eyebrow {
  font-size: 1rem;
  font-weight: 700;
  color: var(--trail);
  margin-bottom: 0.6rem;
}

h2.h-title {
  font-size: clamp(2rem, 4.6vw, 3rem);
  max-width: 22ch;
  margin-bottom: 1.25rem;
}

.h-lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--muted);
  line-height: 1.65;
  max-width: 62ch;
  margin-bottom: 2.75rem;
}

.h-lead strong {
  color: var(--ink);
}

/* ---------- CARDS ---------- */
.h-grid {
  display: grid;
  gap: 1rem;
}

.h-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.h-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.h-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem;
}

#good-to-know .h-card {
  background: var(--surface);
}

.h-card-title {
  font-size: 1.125rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.h-card-text {
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- HOW IT WORKS: the dotted trail ---------- */
.h-how {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.h-how-intro {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.h-steps {
  list-style: none;
  position: relative;
  display: grid;
  gap: 2.25rem;
}

.h-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1.25rem;
}

/* One trail from marker to marker, ending behind the star: 2px dots every 14px (a 2px
   dash with round caps and a 12px gap) */
.h-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 22px;
  height: calc(100% + 2.25rem);
  width: 2px;
  background: radial-gradient(circle, var(--trail) 0.95px, transparent 1.15px) center 8px / 2px 14px repeat-y;
}

.h-step-mark {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.h-step-star {
  border: none;
  background: var(--paper);
}

.h-step-star svg {
  width: 40px;
  height: 40px;
  fill: var(--trail);
}

.h-step-body {
  padding-top: 0.45rem;
}

.h-step-time {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--compass-soft);
  color: var(--compass-soft-ink);
  font-size: 0.875rem;
  font-weight: 700;
}

.h-step .h-card-text {
  max-width: 58ch;
}

/* ---------- LEARN MORE: navy ---------- */
.h-navy {
  background: var(--ink);
  color: #FFFFFF;
}

.h-navy h2.h-title,
.h-navy .h-lead strong {
  color: #FFFFFF;
}

.h-navy .h-eyebrow {
  color: var(--star);
}

.h-navy .h-lead {
  color: rgba(255, 255, 255, 0.82);
}

.h-model {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.h-model-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.h-model-text {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.1rem;
}

.h-model-times {
  align-self: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--star);
}

.h-chips {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.h-model-col:first-child .h-chips {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.h-chip {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.h-chip strong {
  color: #FFFFFF;
}

.h-chip span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.h-formula {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  border: 1px solid rgba(253, 186, 116, 0.45);
  border-radius: 20px;
  background: rgba(253, 186, 116, 0.08);
  text-align: center;
}

.h-formula-main {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.h-formula-main strong {
  color: var(--star);
}

.h-formula-text {
  color: rgba(255, 255, 255, 0.82);
  max-width: 62ch;
  margin: 0 auto;
}

/* ---------- CLOSING ---------- */
.h-closing .h-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.h-closing .logo-mark {
  width: 56px;
  height: 56px;
}

.h-closing-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .h-how {
    grid-template-columns: minmax(0, 1fr);
  }

  .sample-card {
    max-width: 520px;
  }

  .h-how-intro {
    position: static;
  }

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

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

  .h-model-times {
    justify-self: center;
  }
}

@media (max-width: 600px) {
  .h-grid-2,
  .h-model-col:first-child .h-chips {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions > a {
    flex: 1 1 100%;
  }

  .sample-card {
    padding: 1.4rem;
  }

  .h-card {
    padding: 1.35rem;
  }

  .h-formula {
    padding: 1.5rem 1.25rem;
  }
}
