/* ---------------------------------------------------------------
   A&D Growth Foundry — section styles

   One block per page section, in the order they appear in index.html:
   header · hero · services · process · scorecard · results ·
   contact · footer

   Only the shipping layout variants are implemented here (hero:
   split, services: grid, process: timeline). The alternates live in
   reference/site/*.jsx if the client asks for a different treatment.
--------------------------------------------------------------- */

/* =============================================================
   HEADER — sticky, dark, wordmark + nav + CTA
   ============================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 48px;
  background: var(--surface-ink);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-standard);
}

/* .is-scrolled is toggled by js/site.js past 12px of scroll. */
.site-header.is-scrolled {
  border-bottom-color: var(--ink-700);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav__link {
  color: var(--slate-300);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: color var(--duration-fast) var(--ease-standard);
}

.site-nav__link:hover {
  color: var(--paper-000);
}

.site-nav__toggle {
  display: none;
}

@media (max-width: 900px) {
  .site-header {
    padding: 14px 24px;
  }

  .site-nav {
    gap: 22px;
  }

  .site-nav__link {
    display: none;
  }
}

@media (max-width: 560px) {
  .wordmark__text {
    font-size: 17px;
  }
}

/* =============================================================
   HERO — split: copy left, photo right with a leftward fade
   ============================================================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 116px 48px 132px;
  background: var(--surface-ink);
  color: var(--paper-000);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin-inline: auto;
}

.hero__copy {
  max-width: 660px;
}

.hero__eyebrow {
  margin-bottom: 22px;
  color: var(--copper-400);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 68px;
  font-weight: var(--weight-semibold);
  line-height: 1.03;
  letter-spacing: var(--tracking-tight);
}

.hero__lead {
  max-width: 540px;
  margin: 26px 0 0;
  color: var(--slate-300);
  font-size: 19px;
  line-height: 1.6;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* The photo is decorative and sits behind the copy. The mask fades it
   out to the left so the headline never competes with the facade. */
.hero__photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 480px;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  -webkit-mask-image: linear-gradient(to left, black 35%, transparent 96%);
  mask-image: linear-gradient(to left, black 35%, transparent 96%);
}

@media (max-width: 900px) {
  .hero {
    padding: 72px 24px 80px;
  }

  .hero__title {
    font-size: 44px;
  }

  .hero__lead {
    font-size: 17px;
  }

  /* Photo becomes a full-bleed wash behind the copy rather than a
     right-hand panel — at this width a 480px panel would crowd it out. */
  .hero__photo {
    width: 100%;
    opacity: 0.18;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 56px 20px 64px;
  }

  .hero__title {
    font-size: 35px;
  }

  .hero__ctas .btn {
    width: 100%;
  }
}

/* =============================================================
   SERVICES — 2x2 card grid + lead-source chip row
   ============================================================= */

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

.service-card {
  padding: 28px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) var(--ease-standard),
    transform var(--duration-base) var(--ease-standard);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-card__n {
  margin-bottom: 18px;
  color: var(--copper-500);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
}

.service-card__title {
  margin: 0 0 12px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-tight);
}

.service-card__body {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.62;
}

.lead-sources {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--surface-border);
}

.lead-sources__label {
  margin-bottom: 20px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.lead-sources__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lead-sources__chip {
  padding: 9px 15px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-800);
  font-family: var(--font-mono);
  font-size: 13px;
}

@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* =============================================================
   PROCESS — timeline: large numbered rows separated by rules
   ============================================================= */

.process__list {
  display: flex;
  flex-direction: column;
}

.process-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--ink-700);
}

.process-step:last-child {
  border-bottom: 1px solid var(--ink-700);
}

.process-step__n {
  color: var(--copper-500);
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}

.process-step__body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: baseline;
}

.process-step__title {
  margin: 0;
  color: var(--paper-000);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-tight);
}

.process-step__text {
  max-width: 560px;
  margin: 0;
  color: var(--slate-300);
  font-size: 16px;
  line-height: 1.62;
}

@media (max-width: 900px) {
  .process-step {
    grid-template-columns: 64px 1fr;
    gap: 20px;
    padding: 24px 0;
  }

  .process-step__n {
    font-size: 32px;
  }

  .process-step__body {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .process-step__title {
    font-size: 22px;
  }

  .process-step__text {
    font-size: 15px;
  }
}

/* =============================================================
   SCORECARD — five criteria on the left, live readout on the right
   ============================================================= */

.scorecard__layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
  align-items: start;
}

.scorecard__criteria {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: none;
}

.criterion {
  padding: 20px 24px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.criterion__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}

.criterion__title {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-tight);
}

/* Reads out the selected option label; recolored to the current band. */
.criterion__value {
  color: var(--score-accent, var(--copper-500));
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
  transition: color var(--duration-fast) var(--ease-standard);
}

.segments {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

/* Radios styled as a segmented control. The input stays in the DOM
   (hidden) so the group is keyboard- and screen-reader-navigable. */
.segments__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segments__label {
  display: block;
  padding: 9px 0;
  background: var(--surface-card);
  border: 1px solid var(--surface-border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: var(--weight-medium);
  text-align: center;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}

.segments__label:hover {
  border-color: var(--copper-300);
}

.segments__input:checked + .segments__label {
  background: var(--copper-500);
  border-color: var(--copper-500);
  color: #fff;
}

.segments__input:focus-visible + .segments__label {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---- Readout panel ---- */

.readout {
  position: sticky;
  top: 88px;
  padding: 32px;
  background: var(--surface-ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.readout__label {
  margin-bottom: 20px;
  color: var(--slate-300);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.readout__score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.readout__total {
  color: var(--paper-000);
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}

.readout__max {
  color: var(--slate-500);
  font-family: var(--font-mono);
  font-size: 18px;
}

.readout__band {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 24px;
  padding: 5px 12px;
  background: var(--score-accent, var(--copper-500));
  border-radius: var(--radius-pill);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: background var(--duration-base) var(--ease-standard);
}

.readout__track {
  position: relative;
  height: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--ink-700);
  border-radius: var(--radius-pill);
}

.readout__fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--score-accent, var(--copper-500));
  border-radius: var(--radius-pill);
  transition: width var(--duration-base) var(--ease-standard),
    background var(--duration-base) var(--ease-standard);
}

.readout__bands {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.readout__band-name {
  color: var(--slate-500);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--duration-fast) var(--ease-standard);
}

.readout__band-name.is-active {
  color: var(--paper-000);
}

/* All four band notes share one grid cell, so this container is always as
   tall as the longest note and the panel never resizes as the score moves.
   `visibility: hidden` keeps the inactive notes occupying space while
   removing them from the accessibility tree — `display: none` would collapse
   the reservation and bring the layout shift back. */
.readout__notes {
  display: grid;
  margin-bottom: 26px;
}

.readout__note {
  grid-area: 1 / 1;
  margin: 0;
  color: var(--paper-100);
  font-size: 15px;
  line-height: 1.6;
  visibility: hidden;
}

.readout__note.is-active {
  visibility: visible;
}

.readout__fineprint {
  margin: 12px 0 0;
  color: var(--slate-500);
  font-size: 12.5px;
  text-align: center;
}

@media (max-width: 900px) {
  .scorecard__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .readout {
    position: static;
  }

  .criterion__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .criterion__value {
    text-align: left;
  }
}

/* =============================================================
   RESULTS — benchmark stat row + three testimonial videos
   ============================================================= */

.benchmarks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
}

.benchmark {
  padding: 36px 28px;
  border-right: 1px solid var(--surface-border);
}

.benchmark:last-child {
  border-right: none;
}

.benchmark__stat {
  margin-bottom: 16px;
  color: var(--copper-500);
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}

.benchmark__label {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.55;
}

.videos {
  margin-top: 72px;
}

.videos__eyebrow {
  margin-bottom: 12px;
  color: var(--copper-600);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.videos__title {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-tight);
}

.videos__sub {
  max-width: 640px;
  margin: 0 0 36px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.videos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video {
  display: flex;
  flex-direction: column;
}

.video__frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--surface-border-strong);
  border-radius: var(--radius-md);
}

.video__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

.video__title {
  margin: 22px 0 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--weight-medium);
  line-height: 1.25;
  letter-spacing: var(--tracking-tight);
}

.video__rule {
  width: 36px;
  height: 2px;
  margin: 16px 0;
  background: var(--copper-500);
}

.video__move {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.62;
}

@media (max-width: 900px) {
  .benchmarks {
    grid-template-columns: repeat(2, 1fr);
  }

  .benchmark {
    border-bottom: 1px solid var(--surface-border);
  }

  .benchmark:nth-child(2n) {
    border-right: none;
  }

  .benchmark:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .benchmark__stat {
    font-size: 38px;
  }

  .videos {
    margin-top: 48px;
  }

  .videos__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .benchmarks {
    grid-template-columns: 1fr;
  }

  .benchmark {
    border-right: none;
  }

  .benchmark:last-child {
    border-bottom: none;
  }
}

/* =============================================================
   CONTACT — pitch column + form card
   ============================================================= */

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
}

.contact__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--copper-400);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.contact__title {
  margin: 0 0 20px;
  color: var(--paper-000);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: var(--weight-semibold);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
}

.contact__lead {
  max-width: 420px;
  margin: 0 0 36px;
  color: var(--slate-300);
  font-size: 17px;
  line-height: 1.62;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact__email {
  color: var(--copper-400);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: var(--tracking-wide);
}

.contact__email:hover {
  color: var(--copper-300);
}

.contact__phone {
  color: var(--slate-300);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: var(--tracking-wide);
}

.contact__phone:hover {
  color: var(--paper-000);
}

.contact__city {
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 13px;
}

/* ---- Form ---- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field__label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.field__input {
  width: 100%;
  padding: 11px 13px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-standard);
}

.field__input:focus {
  border-color: var(--copper-500);
}

textarea.field__input {
  resize: vertical;
  line-height: 1.5;
}

.contact-form__submit {
  margin-top: 6px;
}

/* Honeypot — off-canvas rather than display:none, because some bots skip
   fields that are outright hidden. Never shown to a real visitor. */
.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Success panel — swapped in for the fields on submit. */
.contact-form__sent {
  padding: 40px 0;
  text-align: center;
}

.contact-form__sent-title {
  margin-bottom: 12px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: var(--weight-medium);
}

.contact-form__sent-body {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.contact-form__error {
  margin: 0;
  color: var(--state-danger);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .contact__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   FOOTER
   ============================================================= */

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px 48px;
  background: var(--surface-ink);
  border-top: 1px solid var(--ink-800);
}

.site-footer .wordmark {
  cursor: default;
}

.site-footer .wordmark__text {
  font-size: 17px;
}

.site-footer__copy {
  color: var(--slate-500);
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}

/* Credit link. #made-by-tomato is a documented hook — the designer
   plans an interaction on it later. Do not rename it. */
#made-by-tomato {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-500);
  font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  white-space: nowrap;
}

#made-by-tomato:hover {
  color: var(--slate-500);
}

#made-by-tomato img {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: 18px;
}

.tt-brand {
  color: #e64a2e;
  transition: color var(--duration-fast) var(--ease-standard);
}

#made-by-tomato:hover .tt-brand {
  color: #3a7a2a;
}

.tt-caret {
  display: inline-block;
  width: 8px;
  height: 1.5px;
  margin-left: 2px;
  background: #e64a2e;
  transform: translateY(4px);
  animation: tt-blink 1.1s steps(2, start) infinite;
}

@keyframes tt-blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    padding: 24px;
    text-align: center;
  }

  .site-footer__copy {
    white-space: normal;
  }

  #made-by-tomato {
    justify-self: center;
  }
}
