/* Homepage. Colours, fonts and sizes come from tokens.css only. */

.home {
  --h-gap: clamp(1.25rem, 3vw, 2rem);
}

.h-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.h-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.h-btn {
  display: inline-flex;
  border: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.9rem;
  border-radius: var(--radius-button);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.h-btn--primary {
  background: var(--brand-gradient);
  color: var(--brand-on-primary);
  box-shadow: 0 8px 28px rgba(0, 254, 255, 0.28);
}

.h-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 254, 255, 0.38);
}

.h-btn--secondary {
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(224, 231, 255, 0.35);
}

.h-btn--secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-2px);
}

.h-actions--center {
  justify-content: center;
}

.h-btn:focus-visible,
.h-more a:focus-visible {
  outline: 3px solid var(--brand-secondary);
  outline-offset: 3px;
}

/* 1. Hero */
.h-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(calc(100svh - 70px), 860px);
  padding: clamp(3rem, 8vw, 6rem) 0;
  overflow: hidden;
  isolation: isolate;
}

.h-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--brand-bg) 0%, rgba(23, 27, 48, 0.92) 42%, rgba(23, 27, 48, 0.6) 100%),
    linear-gradient(0deg, var(--brand-bg) 0%, rgba(23, 27, 48, 0) 30%),
    url('../images/hero-bg/foreman-phone.jpg') 70% center / cover no-repeat;
}

.h-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  width: 100%;
}

/* Who it's for: one plain line in the signage face. */
.h-eyebrow {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--brand-primary);
}

.h-assure {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--brand-text-muted);
}

.h-hero-title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #fff;
}

.h-hero-title span {
  display: block;
  color: var(--brand-primary);
}

.h-hero-lede {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--brand-text);
}

.h-hero .hero-visual {
  display: flex;
  justify-content: flex-end;
}

/* Centred hero: short. Who it's for, headline, one line, one button. */
.h-hero--centred {
  z-index: 2;
  min-height: 0;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 0;
  overflow: visible;
  text-align: center;
}

/* The results card sits half in the hero, half over the next section */
.h-hero--centred {
  --h-overlap: 200px;
}

.h-hero--centred + .h-section {
  padding-top: calc(var(--h-overlap, 200px) + clamp(2.5rem, 5vw, 3.5rem));
}

.h-hero--centred .h-hero-bg {
  background:
    linear-gradient(180deg, rgba(23, 27, 48, 0.7) 0%, rgba(23, 27, 48, 0.78) 100%),
    url('../images/hero-bg/excavator.jpg') 65% center / cover no-repeat;
  background-color: var(--brand-bg);
}

.h-hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.h-hero-for {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-text-muted);
}

.h-hero--centred .h-hero-title {
  max-width: 24ch;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.h-hero--centred .h-hero-lede {
  max-width: 46rem;
  margin-top: 1.6rem;
}

.h-hero--centred .h-actions {
  margin-top: 4.25rem;
}

/* Hero button: bright cyan pill with a glow, arrow in a navy circle */
.h-btn--hero {
  gap: 0.85rem;
  min-height: 66px;
  padding: 0.75rem 2.5rem;
  border-radius: 999px;
  background: var(--brand-primary);
  color: var(--light-ink);
  font-size: 1.2rem;
  box-shadow: 0 0 0 6px rgba(0, 254, 255, 0.14), 0 14px 40px rgba(0, 254, 255, 0.45);
}

.h-btn--hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 8px rgba(0, 254, 255, 0.2), 0 18px 48px rgba(0, 254, 255, 0.55);
}

.h-btn-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(23, 27, 48, 0.12);
  color: var(--light-ink);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.h-btn--hero:hover .h-btn-arrow {
  transform: translateX(3px);
}

.h-hero-micro {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--brand-text-muted);
}

/* Sample results card under the hero button */
.h-result {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: calc(3rem + 20px) auto calc(-1 * var(--h-overlap));
  padding: 1.5rem 1.6rem 1.3rem;
  text-align: left;
  background: #fff;
  border: 1px solid var(--light-line);
  border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(23, 27, 48, 0.55);
  font-variant-numeric: tabular-nums;
}

.h-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--light-ink-2);
}

.h-result-sample {
  padding: 2px 8px;
  border: 1px solid var(--light-line);
  border-radius: 999px;
  font-size: 0.75rem;
}

.h-result {
  --red: #ef4444;
  --yellow: #e6a700;
  --green: #22c55e;
}

.h-result-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Score as a ring: --p is the percent of 20 */
.h-result-donut {
  display: grid;
  place-items: center;
  grid-template-columns: auto auto;
  align-content: center;
  justify-content: center;
  flex: none;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #fff 72%, transparent 73%),
    conic-gradient(var(--yellow) calc(var(--p) * 1%), var(--light-line) 0);
  line-height: 1;
  color: var(--light-ink);
}

.h-result-donut b {
  font-size: 1.7rem;
  font-weight: 800;
}

.h-result-donut span {
  align-self: end;
  padding-bottom: 0.2rem;
  font-size: 0.8rem;
  color: var(--light-ink-2);
}

.h-result-tier {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--light-ink);
}

.h-result-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--light-ink-2);
}

.h-result-key span::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--c);
}

.h-result-key .is-red,
.h-result-bars .is-red { --c: var(--red); }
.h-result-key .is-yellow,
.h-result-bars .is-yellow { --c: var(--yellow); }
.h-result-key .is-green,
.h-result-bars .is-green { --c: var(--green); }

.h-result-bars {
  display: grid;
  gap: 0.8rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.h-result-bars li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 2.2rem;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--light-ink);
}

.h-result-bars small {
  margin-left: 0.3rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.h-result-bars i {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--light-tint);
  overflow: hidden;
}

.h-result-bars i::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 25%);
  border-radius: inherit;
  background: var(--c, var(--brand-primary));
}

.h-result-bars li {
  padding-left: 0.6rem;
  border-left: 3px solid var(--c, transparent);
}

.h-result-bars em {
  font-weight: 700;
  font-style: normal;
  text-align: right;
  color: var(--c, var(--light-ink-2));
}

.h-result-foot {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--light-line);
  font-size: 0.85rem;
  color: var(--light-ink-2);
}

@media (min-width: 600px) {
  .h-result-bars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .h-result-bars li {
    grid-template-columns: minmax(0, 1fr) 70px 2rem;
    font-size: 0.85rem;
  }
}

/* Proof: two quote cards on top, one wide card underneath. The quote leads;
   the attribution is one quiet row (small logo, name, title) under a rule. */
.h-quote-grid--3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 56rem;
  margin: 0 auto;
}

.h-quote-grid--3 .h-quote--wide {
  grid-column: 1 / -1;
}

.h-proof .h-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 1.75rem 1.4rem;
  background: #fff;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(23, 27, 48, 0.06), 0 12px 32px -18px rgba(23, 27, 48, 0.28);
}

/* One decorative quote mark per card */
.h-proof .h-quote::before {
  content: '\201C';
  position: absolute;
  top: 0.4rem;
  left: 1.6rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--light-ink);
}

.h-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.75rem;
  margin-left: 2.6rem;
}

.h-stars svg {
  width: 18px;
  height: 18px;
  fill: #f5b301;
}

.h-proof .h-quote blockquote p {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--light-ink-2);
}

.h-proof .h-quote blockquote strong {
  font-weight: 700;
  color: var(--light-ink);
}

.h-proof .h-quote figcaption {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--light-line);
}

.h-proof .h-quote blockquote {
  margin-bottom: 1.25rem;
}

.h-proof .h-quote-logo {
  flex: none;
  width: auto;
  height: 32px;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.h-proof .h-quote-logo img {
  display: block;
  width: auto;
  max-width: 88px;
  height: 32px;
  object-fit: contain;
}

.h-quote-who {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--light-line);
  line-height: 1.3;
}

.h-proof .h-quote-who b {
  font-size: 0.95rem;
  color: var(--light-ink);
}

.h-proof .h-quote-who > span {
  font-size: 0.85rem;
  color: var(--light-ink-2);
}

.h-proof .h-head {
  margin-bottom: 1.75rem;
}

@media (max-width: 760px) {
  .h-quote-grid--3 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 34rem;
  }

  .h-proof .h-quote {
    padding: 2rem 1.35rem 1.25rem;
  }

  .h-proof .h-quote::before {
    left: 1.2rem;
  }
}

.h-faq-title {
  margin: clamp(3.5rem, 7vw, 5rem) 0 1.25rem;
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--light-ink);
}

/* 3. Meet the founder: white section, cut-out photo beside the story */
.home .h-section.h-founder {
  background: var(--light-bg);
}

.h-founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.h-founder-photo {
  margin: 0;
  display: flex;
  justify-content: center;
}

.h-founder-photo img {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
}

.h-founder-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  color: var(--light-ink);
}

.h-founder-copy p {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--light-ink-2);
}

@media (max-width: 860px) {
  .h-founder-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .h-founder-photo img {
    max-width: 280px;
  }
}

/* 4. Multi-step form under the founder */
.home .h-section.h-talk {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: var(--light-tint);
}

.h-talk-card {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1.4rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(23, 27, 48, 0.06), 0 16px 40px -22px rgba(23, 27, 48, 0.35);
}

.h-talk-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.2;
  color: var(--light-ink);
}

.h-talk-intro {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: var(--light-ink-2);
}

.h-talk-progress {
  height: 4px;
  margin-top: 0.85rem;
  border-radius: 999px;
  background: var(--light-tint);
  overflow: hidden;
}

.h-talk-progress span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-primary);
  transition: width 0.3s ease;
}

.h-talk-step {
  margin: 0.3rem 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--light-ink-2);
}

.h-talk-form fieldset {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.h-talk-form fieldset[hidden] {
  display: none;
}

.h-talk-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--light-ink);
}

.h-talk-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

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

@media (max-width: 760px) {
  .h-talk-row,
  .h-talk-row--2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Tap-to-pick chips (crew size, trade): real radio buttons underneath */
.h-talk-group {
  display: grid;
  gap: 0.35rem;
}

.h-talk-group .h-talk-lbl {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--light-ink);
}

.h-talk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.h-talk-form .h-talk-chip {
  display: inline-flex;
  gap: 0;
  font-weight: 500;
  cursor: pointer;
}

.h-talk-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.h-talk-chip span {
  display: inline-block;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--light-line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--light-ink);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.h-talk-chip:hover span {
  border-color: var(--light-ink);
}

.h-talk-chip input:checked + span {
  border-color: var(--light-ink);
  background: var(--light-ink);
  color: #fff;
}

.h-talk-chip input:focus-visible + span {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

.h-talk-group.is-invalid .h-talk-chip span {
  border-color: #e5a3a3;
}

.h-talk-company {
  max-width: 22rem;
}

/* Field errors */
.h-talk-form label.is-invalid input,
.h-talk-form label.is-invalid select {
  border-color: #c62828;
  background-color: #fff7f7;
}

.h-talk-form label.is-invalid input:focus,
.h-talk-form label.is-invalid select:focus {
  outline-color: #c62828;
}

.h-talk-field-err {
  font-size: 0.76rem;
  font-weight: 500;
  color: #c62828;
}

.h-talk-req {
  color: #c62828;
}

/* Dropdowns: own chevron, same look as the text fields */
.h-talk-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171b30' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 16px;
  cursor: pointer;
}

.h-talk-form select:invalid {
  color: #8a91a5;
}

.h-talk-form select option {
  color: var(--light-ink);
}

.h-talk-form select:hover,
.h-talk-form input:not([type="checkbox"]):hover {
  border-color: #c5cbd8;
}

.h-talk-opt {
  font-weight: 400;
  color: var(--light-ink-2);
}

.h-talk-form input:not([type="checkbox"]),
.h-talk-form select {
  width: 100%;
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  font-size: 0.92rem;
  border: 1px solid var(--light-line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 400;
  color: var(--light-ink);
}

.h-talk-form input:focus,
.h-talk-form select:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 1px;
  border-color: transparent;
}

.h-talk-form .h-talk-sms {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--light-ink-2);
}

.h-talk-sms input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.h-talk-btn {
  justify-self: start;
  min-width: 11rem;
  min-height: 44px;
  margin-top: 0.15rem;
  padding: 0.6rem 1.5rem;
  font-size: 0.98rem;
}

.h-talk-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.h-talk-actions .h-talk-btn {
  flex: none;
  margin: 0;
}

.h-talk-back {
  padding: 0.5rem 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--light-ink-2);
  cursor: pointer;
}

.h-talk-hp {
  position: absolute;
  left: -9999px;
}

.h-talk-err {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #c62828;
}

.h-talk-done {
  text-align: center;
}

.h-talk-done h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--light-ink);
}

.h-talk-done p {
  margin: 0.6rem 0 1.5rem;
  color: var(--light-ink-2);
}

/* Accordion FAQs (native <details>, no script) */
.h-faq {
  max-width: 46rem;
  margin: 0 auto;
  border-top: 1px solid var(--light-line);
}

.h-faq-item {
  border-bottom: 1px solid var(--light-line);
}

.h-faq-item summary {
  position: relative;
  display: block;
  padding: 1.25rem 3rem 1.25rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--light-ink);
  cursor: pointer;
  list-style: none;
}

.h-faq-item summary::-webkit-details-marker {
  display: none;
}

/* Plus that turns into a minus when open */
.h-faq-item summary::before,
.h-faq-item summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0.5rem;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--light-ink);
  transition: transform 0.2s ease;
}

.h-faq-item summary::after {
  transform: rotate(90deg);
}

.h-faq-item[open] summary::after {
  transform: rotate(0deg);
}

.h-faq-item summary:focus-visible {
  outline: 3px solid var(--brand-secondary);
  outline-offset: 4px;
}

.h-faq-item p {
  margin: 0 0 1.25rem;
  padding-right: 3rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--light-ink-2);
}

@media (prefers-reduced-motion: reduce) {
  .h-faq-item summary::after {
    transition: none;
  }
}

.hcf-example {
  margin-left: 0.5rem;
  padding: 2px 8px;
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--brand-text-muted);
}

/* Shared section layout */
.h-section {
  padding: var(--section-pad) 0;
  background: var(--brand-bg);
}

.h-section--alt {
  background: var(--brand-bg-alt);
}

.h-head {
  max-width: 46rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.h-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.h-title {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 750;
  color: #fff;
}

.h-intro {
  margin: 1.25rem auto 0;
  max-width: 38rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--brand-text-muted);
}

/* 2. How it works */
.h-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--h-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.h-step {
  padding: 2rem 1.75rem;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
}

.h-step-num {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--brand-on-primary);
  font-weight: 800;
}

.h-step h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  color: #fff;
}

.h-step p {
  margin: 0;
  line-height: 1.6;
  color: var(--brand-text-muted);
}

/* 2b. Phone demo: reads as the second half of the Platform section */
.home .pfs {
  padding-top: 0;
  background: var(--brand-bg);
}

/* 3. What the office sees */
.h-shot {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.5rem;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.h-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.h-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--h-gap);
  max-width: 1000px;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  padding: 0;
  list-style: none;
}

.h-points li {
  position: relative;
  padding-left: 2rem;
  line-height: 1.55;
  color: var(--brand-text);
}

.h-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23171b30' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat,
    var(--brand-primary);
}

/* Capability groups under the dashboard */
.h-caps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--h-gap);
  max-width: 1000px;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding: 0;
  list-style: none;
}

.h-caps li {
  padding-top: 1.25rem;
  border-top: 2px solid var(--brand-primary);
}

.h-caps h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #fff;
}

.h-caps p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--brand-text-muted);
}

/* Dashboard view tabs */
.h-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 1.75rem;
}

.h-tab {
  min-height: 44px;
  padding: 0.55rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-text-muted);
  background: transparent;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.h-tab:hover {
  color: #fff;
  border-color: rgba(0, 254, 255, 0.4);
}

.h-tab[aria-selected='true'] {
  color: var(--brand-on-primary);
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.h-tab:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 3px;
}

.h-view-caption {
  max-width: 40rem;
  min-height: 3.2em;
  margin: 0 auto 1.5rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--brand-text);
}

.h-view.is-in .h-shot {
  animation: hViewIn 0.35s ease-out both;
}

@keyframes hViewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Job report: two pages of the PDF, fanned like paper on a desk */
.h-report {
  position: relative;
  max-width: 760px;
  height: clamp(420px, 62vw, 640px);
  margin: 0 auto;
}

.h-report-page {
  position: absolute;
  top: 0;
  width: 56%;
  height: auto;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.h-report-page--back {
  right: 2%;
  top: 6%;
  transform: rotate(3deg);
  opacity: 0.92;
}

.h-report-page--front {
  left: 2%;
  transform: rotate(-2deg);
}

.h-report-link {
  margin: 1.5rem 0 0;
  text-align: center;
}

.h-report-link a {
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
}

.h-report-link a:hover {
  text-decoration: underline;
}

.h-report-link a:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 3px;
}

/* Equipment: the register with one machine's detail card on top */
.h-shot--stack {
  position: relative;
  /* Room for the detail card, which hangs below the register */
  margin-bottom: clamp(4rem, 9vw, 7.5rem);
}

.h-shot-overlay {
  position: absolute;
  right: -2.5%;
  bottom: -14%;
  width: 34% !important;
  border: 1px solid var(--brand-border-accent);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.h-view-more {
  max-width: 40rem;
  margin: 2.5rem auto 0;
  text-align: center;
  color: var(--brand-text-muted);
}

/* 4. Proof */
.h-quote {
  margin: 0;
  padding: 2rem;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
}

.h-quote blockquote {
  margin: 0;
}

.h-quote blockquote p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--brand-text);
}

.h-quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 1.25rem;
}

.h-quote figcaption b {
  color: #fff;
}

.h-quote figcaption span {
  font-size: 0.9rem;
  color: var(--brand-text-muted);
}

.h-quote--lead {
  max-width: 52rem;
  margin: 0 auto var(--h-gap);
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
  border-color: var(--brand-border-accent);
}

.h-quote--lead blockquote p {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.45;
  font-weight: 500;
  color: #fff;
}

.h-quote--lead figcaption {
  align-items: center;
}

/* Client logos on the quotes: every tile the same size and shape. White by
   default (Sunly sets its own yellow inline); each links to its case study. */
.h-quote-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 64px;
  margin: 0 0 1.25rem;
  padding: 8px 12px;
  background: #fff;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.h-quote-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.h-quote-logo:hover {
  transform: translateY(-2px);
}

.h-quote-logo:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 3px;
}

/* The large quote is centred, so its logo is too */
.h-quote--lead .h-quote-logo {
  margin: 0 auto 1.5rem;
}

.h-quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--h-gap);
  max-width: 52rem;
  margin: 0 auto;
}

.h-metric {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--brand-text-muted);
}

.h-metric strong {
  display: block;
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--brand-primary);
}

.h-more {
  margin: 2.5rem 0 0;
  text-align: center;
}

.h-more a {
  font-weight: 600;
  color: var(--brand-secondary);
  text-decoration: none;
}

.h-more a:hover {
  text-decoration: underline;
}

.h-industries {
  max-width: 40rem;
  margin: 3.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--brand-border);
  text-align: center;
  line-height: 1.6;
  color: var(--brand-text-muted);
}

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

.h-industries span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

/* 5. Free assessment */
.h-assess-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: -1rem 0 0;
  padding: 0;
  list-style: none;
}

.h-assess-facts li {
  padding: 0.6rem 1.1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  background: var(--brand-surface);
}

.h-assess-facts b {
  font-weight: 600;
}

.h-assess-alt {
  margin: 1.5rem 0 0;
  text-align: center;
  color: var(--brand-text-muted);
}

.h-assess-alt a {
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
}

.h-assess-alt a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .h-hero {
    min-height: 0;
  }

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

  .h-hero .hero-visual {
    justify-content: flex-start;
  }

  .h-hero-bg {
    background:
      linear-gradient(180deg, rgba(23, 27, 48, 0.82) 0%, rgba(23, 27, 48, 0.94) 55%, var(--brand-bg) 100%),
      url('../images/hero-bg/foreman-phone.jpg') 75% top / cover no-repeat;
  }

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

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

  /* Phones: just page 1 of the report, flat and full width */
  .h-report {
    height: auto;
  }

  .h-report-page--back {
    display: none;
  }

  .h-report-page--front {
    position: static;
    width: 100%;
    transform: none;
  }

  /* Phones: show the equipment detail card below the register, not on top */
  .h-shot-overlay {
    position: static;
    width: 100% !important;
    margin-top: 0.75rem;
  }

  .h-shot--stack {
    margin-bottom: 0;
  }

  .h-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 0 1rem 0.25rem;
    scrollbar-width: none;
  }

  .h-tab {
    flex: none;
  }

  .h-points {
    max-width: 30rem;
  }
}

@media (max-width: 480px) {
  .h-caps {
    grid-template-columns: minmax(0, 1fr);
  }

  .h-container {
    padding: 0 1rem;
  }

  .h-btn {
    width: 100%;
  }

  .h-btn--hero {
    padding: 0.7rem 1.25rem;
    font-size: 1.05rem;
  }

  .h-btn-arrow {
    width: 38px;
    height: 38px;
  }


  .h-quote {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .h-btn,
  .h-quote-logo,
  .h-tab {
    transition: none;
  }

  .h-view.is-in .h-shot {
    animation: none;
  }
}

/* Phone demo on the homepage: flat navy (no glow seam), and navy text on the
   crew's cyan chat bubbles so it stays readable. */
.home .pfs-glow {
  display: none;
}

.home .pfs-msg--out,
.home .pfs-msg--out * {
  color: var(--brand-on-primary);
}

.home .pfs-msg--out .pfs-time {
  color: rgba(23, 27, 48, 0.65);
}

.home .pfs-msg--out .pfs-wave span {
  background: var(--brand-on-primary);
}

/* 2b. Demo video (replaces the phone mockup on the homepage) */
.h-video-frame {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.5rem;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.h-video-player {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #000;
}

/* Our play button over the thumbnail (the thumbnail carries the title) */
.h-video-wrap {
  position: relative;
}

.h-video-player {
  cursor: pointer;
}

.h-video-play {
  position: absolute;
  top: 42%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  padding: 0;
  color: var(--brand-on-primary);
  background: var(--brand-primary);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 40px rgba(0, 254, 255, 0.45), 0 0 0 10px rgba(0, 254, 255, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.h-video-play svg {
  width: 34px;
  height: 34px;
  margin-left: 4px;
  fill: currentColor;
}

.h-video-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 12px 48px rgba(0, 254, 255, 0.6), 0 0 0 14px rgba(0, 254, 255, 0.18);
}

.h-video-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.h-video-wrap.is-playing .h-video-play {
  display: none;
}

/* Vertical video on phones only */
.h-video-wrap--tall {
  display: none;
}

/* The usual section gap above, so it doesn't crowd How it works; the
   platform row's tighter spacing below, so the navy band isn't taller than
   the content needs */
.h-section.h-video {
  padding: var(--section-pad) 0 clamp(3.5rem, 8vw, 5.5rem);
}

.h-video .h-head {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.h-video .h-actions {
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

@media (max-width: 768px) {
  .h-video-wrap--wide {
    display: none;
  }

  .h-video-wrap--tall {
    display: block;
  }

  .h-video-play {
    top: 38%;
    width: 72px;
    height: 72px;
  }

  .h-video-frame {
    max-width: 380px;
  }
}

/* 3a. The platform: a light row of three linked cards (copy in platform_data.py) */
.h-pillars-section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.h-pillars-section .h-head {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

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

.h-pillar {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem;
  text-decoration: none;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.h-pillar:hover {
  border-color: var(--brand-border-accent);
  transform: translateY(-3px);
}

.h-pillar:focus-visible {
  outline: 3px solid var(--brand-secondary);
  outline-offset: 3px;
}

.h-pillar-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  color: var(--brand-primary);
  background: rgba(0, 254, 255, 0.08);
  border: 1px solid var(--brand-border-accent);
}

.h-pillar-icon .pillar-icon {
  width: 1.4rem;
  height: 1.4rem;
}

.h-pillar h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}

.h-pillar-promise {
  margin: 0.45rem 0 1.25rem;
  line-height: 1.5;
  color: var(--brand-text-muted);
}

.h-pillar-link {
  margin-top: auto;
  font-weight: 650;
  color: var(--brand-primary);
}

.h-pillar-link span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.h-pillar:hover .h-pillar-link span {
  transform: translateX(4px);
}

/* Muted tag for features that aren't live yet (never a plain bullet) */
.h-soon {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  vertical-align: 0.1em;
  color: var(--brand-text-muted);
  border: 1px solid var(--brand-border);
  border-radius: 999px;
}

@media (max-width: 900px) {
  .h-pillars {
    grid-template-columns: minmax(0, 1fr);
    max-width: 34rem;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .h-pillar,
  .h-pillar-link span {
    transition: none;
  }

  .h-pillar:hover {
    transform: none;
  }
}

/* ── Light hero (grey, navy text, navy button) ─────────────────────────── */
.h-hero.h-hero--centred .h-hero-bg {
  background: var(--light-tint);
}

.h-hero--centred .h-hero-title {
  color: var(--light-ink);
}

.h-hero--centred .h-hero-lede {
  color: var(--light-ink-2);
}

.h-btn.h-btn--hero {
  border: 2px solid var(--light-ink);
  background: var(--light-ink);
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(23, 27, 48, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.h-btn.h-btn--hero:hover {
  background: #fff;
  color: var(--light-ink);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -16px rgba(23, 27, 48, 0.45);
}

.h-btn.h-btn--hero:focus-visible {
  outline: 3px solid var(--brand-secondary);
  outline-offset: 3px;
}

/* The sample results card now hangs from a grey hero onto white */
.h-result {
  border-color: var(--light-line);
  box-shadow: 0 1px 2px rgba(23, 27, 48, 0.06), 0 30px 60px -28px rgba(23, 27, 48, 0.45);
}

/* Quote cards on the white section: a thin border so they still read as cards */
.h-proof .h-quote {
  border: 1px solid var(--light-line);
}

/* Before you start: its own grey section */
.home .h-section.h-faq-section {
  background: var(--light-tint);
}

.h-faq-section .h-faq-title {
  margin-top: 0;
}

.h-hero--centred .h-hero-title {
  font-weight: 800;
}

/* ── Main buttons: safety orange (tokens.css --cta) ─────────────────────── */
.h-btn--primary,
.h-btn.h-btn--hero {
  border: 0;
  background: var(--cta);
  color: var(--cta-ink);
  box-shadow: var(--cta-shadow);
}

.h-btn--primary:hover,
.h-btn.h-btn--hero:hover {
  background: var(--cta-hover);
  color: var(--cta-ink);
  box-shadow: 0 16px 34px -12px rgba(0, 200, 210, 0.6);
}

/* Hero button on hover: fades to white with a cyan border (drawn as an
   inset shadow, so the button doesn't change size). It stays in place. */
.h-btn.h-btn--hero {
  box-shadow: 0 10px 26px -8px rgba(0, 200, 210, 0.55); /* soft glow, no ring */
  transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.h-btn.h-btn--hero:hover {
  background: #fff;
  color: var(--light-ink);
  transform: none;
  box-shadow: inset 0 0 0 3px var(--cta), 0 16px 34px -12px rgba(0, 200, 210, 0.6);
}

/* Second line of the hero headline: same weight, its own line */
.h-hero--centred .h-hero-title .h-hero-title-2 {
  display: block;
  color: var(--light-ink);
}

/* "Months after it finished." in the softer grey: line 1 leads, line 2 stings */
.h-hero--centred .h-hero-title .h-hero-title-2 {
  color: #6b7591;
}

/* "Months after it finished." in a deep teal: the logo cyan, dark enough to
   read on light grey (bright cyan text on light backgrounds is unreadable) */
.h-hero--centred .h-hero-title .h-hero-title-2 {
  color: #0a8f9c;
}

/* "Months after it finished." in the button cyan (Mark's call) */
.h-hero--centred .h-hero-title .h-hero-title-2 {
  color: var(--cta);
}

/* Headline: both lines navy */
.h-hero--centred .h-hero-title .h-hero-title-2 {
  color: var(--light-ink);
}

/* Wide enough that "Stop finding out you lost money on a job." sits on one line */
.h-hero--centred .h-hero-title {
  max-width: 30ch;
}

.h-hero--centred .h-hero-title {
  max-width: none;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
}

/* Bottom form: wider, roomier */
.h-talk-card {
  max-width: 56rem;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 3rem);
}

.h-talk-title {
  font-size: clamp(1.45rem, 2.6vw, 1.8rem);
}

.h-talk-form fieldset,
.h-talk-row {
  gap: 0.9rem;
}

.h-talk-form label {
  font-size: 0.88rem;
}

.h-talk-form input:not([type="checkbox"]) {
  min-height: 48px;
  padding: 0.6rem 0.9rem;
  font-size: 1rem;
}

.h-talk-btn {
  min-height: 50px;
  min-width: 13rem;
}

.home .h-section.h-talk {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

/* Form buttons match the other pills */
.h-talk-btn {
  gap: 0.4rem;
  border-radius: 999px;
}

/* Bolder headline; each sentence on its own line on wider screens */
.h-hero--centred .h-hero-title {
  font-weight: 900;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}

.h-hero--centred .h-hero-title .h-hero-title-1 {
  display: block;
  color: var(--light-ink);
}

@media (min-width: 900px) {
  .h-hero--centred .h-hero-title .h-hero-title-1 {
    white-space: nowrap;
  }
}

/* Headline a touch larger (still two lines on desktop) */
.h-hero--centred .h-hero-title {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}

/* ── Platform overview (/platform) ─────────────────────────────────────── */
/* Its hero has no overlapping card, so normal padding top and bottom */
.h-hero.h-hero--page {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.h-hero--page + .h-section {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}

.h-hero--page .h-hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
}

/* Alternating backgrounds */
.home .h-section.h-band-grey {
  background: var(--light-tint);
}

.home .h-section.h-band-white {
  background: var(--light-bg);
}

/* Closing quote + button */
.h-close .h-container {
  text-align: center;
}

.h-close-quote {
  max-width: 46rem;
  margin: 0 auto;
}

.h-close-quote blockquote {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.55;
  color: var(--light-ink);
}

.h-close-quote figcaption {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--light-ink-2);
}

.h-close-quote figcaption b {
  display: block;
  color: var(--light-ink);
}

.h-close-title {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
}

/* Platform page: the video sits on white (the phone demo above is the navy band) */
.home--platform .h-section.h-video {
  background: var(--light-bg);
}

.home--platform .h-video .h-title {
  color: var(--light-ink);
}

.home--platform .h-video .h-intro {
  color: var(--light-ink-2);
}

.home--platform .h-video .h-video-frame {
  border-color: var(--light-line);
  box-shadow: 0 30px 60px -28px rgba(23, 27, 48, 0.45);
}

/* More room above the phone demo's heading */
.home--platform .pfs {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}

/* ── Platform page: same look as the homepage (white cards, navy text) ──── */
.home--platform .h-pillar {
  background: #fff;
  border: 1px solid var(--light-line);
  box-shadow: 0 1px 2px rgba(23, 27, 48, 0.06), 0 12px 32px -18px rgba(23, 27, 48, 0.28);
}

.home--platform .h-pillar:hover {
  border-color: var(--light-ink);
}

.home--platform .h-pillar h3 {
  color: var(--light-ink);
}

.home--platform .h-pillar-promise {
  color: var(--light-ink-2);
}

.home--platform .h-pillar-icon {
  color: var(--light-ink);
  background: var(--light-tint);
  border-color: var(--light-line);
}

.home--platform .h-pillar-link {
  color: var(--light-ink);
}

/* Phone demo on light grey instead of navy (the phone itself stays dark) */
.home--platform .pfs {
  background: var(--light-tint);
  color: var(--light-ink);
}

.home--platform .pfs-glow {
  display: none;
}

.home--platform .pfs-title {
  color: var(--light-ink);
}

.home--platform .pfs-lede {
  color: var(--light-ink-2);
}

.home--platform .pfs-btn,
.home--platform .pfs-chip {
  background: #fff;
  border-color: var(--light-line);
  color: var(--light-ink);
  box-shadow: 0 1px 2px rgba(23, 27, 48, 0.05);
}

.home--platform .pfs-btn:hover,
.home--platform .pfs-chip:hover {
  border-color: var(--light-ink);
}

.home--platform .pfs-btn[aria-pressed="true"],
.home--platform .pfs-chip[aria-pressed="true"] {
  border-color: var(--light-ink);
  background: #fff;
  color: var(--light-ink);
  box-shadow: 0 12px 28px -14px rgba(23, 27, 48, 0.4);
}

.home--platform .pfs-label {
  color: var(--light-ink);
}

.home--platform .pfs-desc {
  color: var(--light-ink-2);
}

.home--platform .pfs-num {
  color: var(--light-ink);
}

.home--platform .pfs-playall {
  border-color: var(--light-ink);
  color: var(--light-ink);
}

.home--platform .pfs-playall:hover {
  background: var(--light-ink);
  color: #fff;
}

.home--platform .pfs-btn[aria-pressed="true"] .pfs-label,
.home--platform .pfs-btn .pfs-label,
.home--platform .pfs-chip[aria-pressed="true"] {
  color: var(--light-ink);
}

.home--platform .pfs-btn[aria-pressed="true"] .pfs-desc {
  color: var(--light-ink-2);
}

.home--platform .pfs-btn[aria-pressed="true"] .pfs-num {
  color: var(--light-ink);
}

/* Mary Ann's "easy to use" quote under the demo video */
.h-demo-quote {
  max-width: 46rem;
  margin: clamp(2.25rem, 5vw, 3rem) auto 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--light-line);
  border-left: 5px solid var(--light-ink);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 27, 48, 0.06), 0 12px 32px -18px rgba(23, 27, 48, 0.28);
}

.h-demo-quote blockquote {
  margin: 0;
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  line-height: 1.6;
  color: var(--light-ink-2);
}

.h-demo-quote blockquote strong {
  color: var(--light-ink);
}

.h-demo-quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--light-line);
  font-size: 0.85rem;
  color: var(--light-ink-2);
}

.h-demo-quote figcaption img {
  width: auto;
  height: 34px;
}

.h-demo-quote figcaption b {
  display: block;
  font-size: 0.95rem;
  color: var(--light-ink);
}

/* Platform cards that aren't links yet: no hover lift or pointer */
.h-pillar--static,
.h-pillar--static:hover {
  cursor: default;
  transform: none;
  border-color: var(--light-line);
}

/* Hero in dark navy with light text (homepage and /platform), like the
   pricing and case studies pages. */
.home .h-hero.h-hero--centred .h-hero-bg {
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(0, 254, 255, 0.1), transparent 70%),
    var(--brand-bg);
}

.home .h-hero--centred .h-hero-title,
.home .h-hero--centred .h-hero-title .h-hero-title-1,
.home .h-hero--centred .h-hero-title .h-hero-title-2 {
  color: #fff;
}

.home .h-hero--centred .h-hero-lede {
  color: var(--brand-text);
}


/* Platform headline: same size as the homepage */
.h-hero--page .h-hero-title {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}

/* Percentages on the sample card need a bit more room */
.h-result-bars li {
  grid-template-columns: minmax(0, 1fr) 90px 2.6rem;
}

.h-result-donut span {
  align-self: start;
  padding: 0.35rem 0 0 0.05rem;
}

/* Hockey photo slides in from the left when the founder section scrolls into view */
.js-reveal [data-reveal-slide]:not(.is-revealed) {
  opacity: 0;
  transform: translateX(-80px) rotate(-3deg);
}

.js-reveal [data-reveal-slide] {
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal-slide],
  .js-reveal [data-reveal-slide]:not(.is-revealed) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 1b. What you get: two report pages, overlapping like paper on a desk.
   Kept small: the pages are about 300px wide, the stack under 600px. */
.h-sample-report {
  --red: #ef4444;
  --yellow: #e6a700;
  --green: #22c55e;
}

.h-sample-report .h-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

.h-sample-stack {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto;
  padding: 0 0 1.5rem;
}

.h-rp {
  position: relative;
  flex: none;
  width: 310px;
  padding: 1.1rem 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid var(--light-line);
  border-radius: 6px;
  box-shadow: 0 24px 50px -22px rgba(23, 27, 48, 0.45);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--light-ink-2);
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.h-rp p { margin: 0; }

.h-rp--back {
  order: 2;
  width: 350px;
  margin: 2.5rem 0 0 -3.5rem;
  transform: rotate(2.5deg);
  background: #fbfcfe;
}

.h-rp--front {
  order: 1;
  transform: rotate(-1.5deg);
  z-index: 1;
}

/* The back page's text starts past the front page's edge */
.h-rp--back > * { margin-left: 2.6rem !important; }

.h-rp-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--light-ink);
}

.h-rp-sample {
  margin-left: auto;
  padding: 1px 7px;
  border: 1px solid var(--light-line);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--light-ink-2);
}

.h-rp-title {
  margin-top: 0.7rem !important;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--light-ink);
}

.h-rp-score {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.7rem;
  background: var(--light-tint);
  border-radius: 6px;
}

.h-rp-ring {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex: none;
  width: 62px;
  height: 62px;
  padding-top: 19px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--light-tint) 74%, transparent 75%),
    conic-gradient(var(--yellow) calc(var(--p) * 1%), var(--light-line) 0);
  line-height: 1;
  color: var(--light-ink);
}

.h-rp-ring b { font-size: 1.2rem; font-weight: 800; }
.h-rp-ring span { font-size: 0.65rem; }

.h-rp-tier {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--light-ink);
}

.h-rp-desc { margin-top: 0.15rem !important; font-size: 0.72rem; }

.h-rp-gap {
  margin-top: 0.8rem;
  padding: 0.55rem 0.65rem;
  border-left: 3px solid var(--red);
  background: rgba(239, 68, 68, 0.06);
  border-radius: 0 6px 6px 0;
}

.h-rp-gap p { margin-top: 0.3rem; }
.h-rp-gap b { color: var(--light-ink); }

.h-rp-pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  color: #fff;
  background: var(--c, var(--light-ink));
}

.h-rp-pill.is-red,
.h-rp-meter.is-red { --c: var(--red); }

.h-rp-h {
  margin-top: 0.85rem !important;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--light-ink);
}

.h-rp-fix {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: var(--light-ink);
}

.h-rp-fix li + li { margin-top: 0.2rem; }

.h-rp-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.h-rp-area {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.h-rp-area-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--light-ink);
}

.h-rp-area-score {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.h-rp-area-score b { font-size: 1.1rem; color: var(--light-ink); }

.h-rp-meter {
  display: block;
  height: 6px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: var(--light-line);
  overflow: hidden;
}

.h-rp-meter i {
  display: block;
  height: 100%;
  background: var(--c);
}

.h-rp-diag {
  margin-top: 0.6rem !important;
  font-weight: 600;
  color: var(--light-ink);
}

.h-rp-told {
  margin-top: 0.4rem;
  padding: 0 0.7rem 0.7rem;
  border: 1px solid var(--light-line);
  border-radius: 6px;
}

.h-rp-told .h-rp-h { margin-top: 0.6rem !important; }
.h-rp-q { margin-top: 0.5rem !important; }

.h-rp-a {
  margin-top: 0.15rem !important;
  font-weight: 700;
  color: var(--light-ink);
}

.h-sample-report .h-actions { margin-top: clamp(2rem, 4vw, 2.75rem); }

/* Phone: the back page peeks out to the right, the front page stays readable */
@media (max-width: 600px) {
  .h-sample-stack { position: relative; }
  .h-rp { width: min(285px, 82vw); }
  .h-rp--front { margin-right: 1.25rem; }
  /* Behind the front page, peeking out to the right as a second sheet */
  .h-rp--back {
    position: absolute;
    top: 1.25rem;
    bottom: 2.25rem;
    left: 50%;
    width: min(285px, 82vw);
    margin: 0;
    overflow: hidden;
    transform: translateX(-38%) rotate(3deg);
  }
  .h-rp--back > * { visibility: hidden; }
}

/* ── Hero on the darkened dusk excavator (2026-11-30, Mark's call) ────────
   Homepage only (/platform keeps plain navy). Same photo and darkening as
   /contact. Must out-rank the ".home .h-hero..." navy rule above; the white
   text comes from that rule. */
.home:not(.home--platform) .h-hero.h-hero--centred .h-hero-bg {
  background:
    linear-gradient(180deg, rgba(23, 27, 48, 0.87) 0%, rgba(23, 27, 48, 0.91) 60%, rgba(23, 27, 48, 0.97) 100%),
    url('../images/hero-bg/excavator-dusk.jpg') 22% 60% / cover no-repeat;
  background-color: var(--brand-bg);
}

/* Wide screens: the photo already fills the width, so enlarge it a little and
   pin it left, which puts the excavator (just right of the photo's centre)
   toward the right of the hero */
@media (min-width: 900px) {
  .home:not(.home--platform) .h-hero.h-hero--centred .h-hero-bg {
    background-position: 0 0, 0 60%;
    background-size: auto, max(140%, 1400px) auto;
  }
}

/* On the photo the results card needs a deeper shadow, not a grey border */
.home .h-hero--centred .h-result {
  border-color: transparent;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}
