/*
 * 2026-09 completed-work hero follow-up.
 * Loaded after styles.css so the first-screen change can be reviewed or
 * reverted as one isolated visual layer.
 */

.hero-inner {
  gap: clamp(26px, 3.8vh, 42px);
  padding-block: clamp(34px, 4.8vh, 48px) 22px;
}

.hero-mast {
  grid-template-columns: minmax(0, 1.25fr) minmax(450px, 0.82fr);
  align-items: center;
  gap: clamp(36px, 4.2vw, 62px);
}

.hero h1 {
  max-width: 760px;
  margin-top: 20px;
  font-size: clamp(58px, 5.25vw, 80px);
  letter-spacing: -0.061em;
  line-height: 0.93;
  text-wrap: balance;
}

.hero-commercial {
  display: grid;
  grid-template-columns: minmax(220px, 290px) auto;
  align-items: center;
  gap: 24px;
  max-width: 690px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.hero-commercial .hero-promise {
  max-width: 290px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.45;
}

.hero-commercial .hero-promise strong {
  display: block;
  color: var(--green);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.hero-commercial .button {
  min-height: 48px;
  gap: 18px;
  padding: 11px 16px;
  white-space: nowrap;
  transition:
    background 380ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 380ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-commercial .button:hover {
  box-shadow: 0 10px 24px rgba(15, 91, 71, 0.14);
}

.hero-commercial .button:active {
  transform: translateY(0) scale(0.985);
}

.hero-run {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
}

.hero-run-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 14px;
  padding: 8px 15px;
  border-bottom: 1px solid var(--line);
  background: #ebe9e2;
}

.hero-run-head p {
  margin: 0;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-run-head > p:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
}

.hero-run-head > p:first-child span {
  color: var(--ink-muted);
  font-weight: 400;
}

.hero-run-state {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  color: var(--green-dark);
}

.hero-run-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(15, 91, 71, 0.28);
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
}

.hero-run-check svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero-run-prompt {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 13px 16px 14px;
  border-bottom: 1px solid var(--line);
}

.hero-run-prompt > span,
.hero-run-handoff span,
.hero-run-handoff strong,
.hero-run-output-head > span,
.hero-run-receipt p > span {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-run-prompt > span {
  padding-top: 3px;
  color: var(--green);
}

.hero-run-prompt p {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16.5px;
  letter-spacing: -0.02em;
  line-height: 1.32;
}

.hero-run-handoff {
  display: flex;
  align-items: center;
  min-height: 29px;
  gap: 9px;
  padding: 6px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--green-dark);
}

.hero-run-handoff i {
  position: relative;
  flex: 1;
  height: 1px;
  background: rgba(15, 91, 71, 0.36);
}

.hero-run-handoff i::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--green);
  border-right: 1px solid var(--green);
  transform: rotate(45deg);
}

.hero-run-handoff span {
  color: var(--ink-muted);
}

.hero-run-handoff strong {
  flex: 0 0 auto;
}

.hero-run-output-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  min-height: 46px;
  padding: 11px 16px 10px;
  border-bottom: 1px solid var(--line-strong);
}

.hero-run-output-head h2 {
  margin: 0;
  color: var(--green-dark);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.hero-run-output-head > span {
  flex: 0 0 auto;
  color: var(--ink-muted);
}

.hero-run-results {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-run-results li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 43px;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}

.hero-run-results strong {
  min-width: 0;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero-run-results small {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.025em;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-run-receipt {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  min-height: 60px;
  gap: 12px;
  padding: 10px 16px;
  background: var(--green);
  color: var(--white);
}

.hero-run-receipt-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
}

.hero-run-receipt-mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero-run-receipt p,
.hero-run-receipt p > strong,
.hero-run-receipt p > span {
  display: block;
}

.hero-run-receipt p {
  margin: 0;
}

.hero-run-receipt p > strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.hero-run-receipt p > span {
  margin-top: 4px;
  color: #c8ddd4;
  font-size: 7.5px;
}

@keyframes hero-completed-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js .hero-copy,
.js .hero-run,
.js .hero-connectors {
  animation: hero-completed-enter 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.js .hero-run {
  animation-delay: 80ms;
}

.js .hero-connectors {
  animation-delay: 140ms;
}

@media (max-width: 1120px) and (min-width: 961px) {
  .hero-mast {
    grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.85fr);
    gap: 34px;
  }

  .hero h1 {
    max-width: 570px;
    font-size: 55px;
  }

  .hero-commercial {
    grid-template-columns: minmax(205px, 250px) auto;
    gap: 16px;
  }

  .hero-commercial .hero-promise strong {
    font-size: 19px;
  }

  .hero-commercial .button {
    gap: 12px;
    padding-inline: 13px;
    font-size: 12px;
  }
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    gap: 30px;
    padding-block: 38px 22px;
  }

  .hero-mast {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero h1 {
    max-width: 820px;
    font-size: clamp(54px, 9vw, 72px);
  }

  .hero-commercial {
    max-width: 650px;
  }

  .hero-run {
    width: min(100%, 680px);
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  .hero-inner {
    gap: 16px;
    padding-block: 20px 12px;
  }

  .hero-mast {
    gap: 14px;
  }

  .hero h1 {
    max-width: none;
    margin-top: 12px;
    font-size: clamp(36px, 10.8vw, 46px);
    letter-spacing: -0.058em;
    line-height: 0.92;
  }

  .hero h1 em {
    margin-top: 0.08em;
  }

  .hero-commercial {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 12px;
    padding-top: 11px;
  }

  .hero-commercial .hero-promise {
    max-width: 175px;
    font-size: 11.5px;
    line-height: 1.25;
  }

  .hero-commercial .hero-promise strong {
    font-size: 16px;
    line-height: 1.15;
  }

  .hero-commercial .button {
    min-height: 44px;
    gap: 9px;
    padding: 9px 11px;
    font-size: 11px;
  }

  .hero-run {
    width: 100%;
  }

  .hero-run-head {
    min-height: 28px;
    gap: 8px;
    padding: 5px 9px;
  }

  .hero-run-head p {
    font-size: 7px;
    letter-spacing: 0.055em;
  }

  .hero-run-head > p:first-child {
    gap: 6px;
  }

  .hero-run-check {
    width: 17px;
    height: 17px;
  }

  .hero-run-check svg {
    width: 10px;
    height: 10px;
  }

  .hero-run-prompt {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 9px 8px;
  }

  .hero-run-prompt > span,
  .hero-run-handoff span,
  .hero-run-handoff strong,
  .hero-run-output-head > span,
  .hero-run-receipt p > span {
    font-size: 6.8px;
    letter-spacing: 0.065em;
  }

  .hero-run-prompt p {
    font-size: 11px;
    line-height: 1.25;
  }

  .hero-run-handoff {
    min-height: 21px;
    gap: 6px;
    padding: 4px 9px;
  }

  .hero-run-output-head {
    min-height: 31px;
    gap: 8px;
    padding: 6px 9px 5px;
  }

  .hero-run-output-head h2 {
    font-size: 14px;
  }

  .hero-run-results li {
    grid-template-columns: 17px minmax(0, 1fr) auto;
    min-height: 30px;
    gap: 7px;
    padding: 5px 9px;
  }

  .hero-run-results strong {
    font-size: 10.5px;
    line-height: 1.15;
  }

  .hero-run-results small {
    font-size: 6.8px;
  }

  .hero-run-receipt {
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: 46px;
    gap: 9px;
    padding: 7px 10px;
  }

  .hero-run-receipt-mark {
    width: 30px;
    height: 30px;
  }

  .hero-run-receipt-mark svg {
    width: 17px;
    height: 17px;
  }

  .hero-run-receipt p > strong {
    font-size: 15px;
  }

  .hero-connectors {
    margin-top: 0;
  }

  .connector-intro {
    gap: 5px;
    padding-bottom: 8px;
  }

  .connector-intro > p:last-child {
    font-size: 11px;
    line-height: 1.25;
  }

  .connector-kicker {
    font-size: 8px;
  }

  .connector-logo {
    gap: 4px;
    padding-block: 7px 4px;
  }

  .connector-logo svg {
    width: 19px;
    height: 19px;
  }

  .connector-logo strong {
    font-size: 7.5px;
    line-height: 1.08;
  }
}

@media (max-width: 350px) {
  .hero-inner {
    padding-top: 16px;
  }

  .hero h1 {
    font-size: 35px;
  }

  .hero-commercial {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .hero-commercial .hero-promise {
    max-width: none;
  }

  .hero-commercial .hero-promise strong {
    display: inline;
    margin-right: 4px;
  }

  .hero-commercial .button {
    width: 100%;
  }

  .hero-run-head > p:first-child span,
  .hero-run-output-head > span {
    display: none;
  }

  .hero-run-results li:nth-child(4) {
    display: none;
  }

  .hero-run-prompt {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .hero-run-prompt p {
    font-size: 10.5px;
  }

  .hero-run-results strong {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero-copy,
  .js .hero-run,
  .js .hero-connectors {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
