/* GoReachAgentic demand page. One page, one form. */

:root {
  --pine: #0f3b31;
  --pine-deep: #0a2a23;
  --paper: #ffffff;
  --mist: #edf3ee;
  --ink: #14211d;
  --muted: #55655f;
  --line: #cfdad3;
  --go: #ffb23e;
  --go-press: #f09a1a;
  --error: #a8261c;

  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

h1,
h2,
p,
ol {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

::selection {
  background: var(--go);
  color: var(--pine-deep);
}

input,
textarea {
  caret-color: var(--pine);
}

:focus-visible {
  outline: 3px solid var(--go);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero: the pitch and the form */

.hero {
  background: var(--pine);
  color: var(--paper);
  padding: 1.25rem 0 2.5rem;
}

/* On a phone the form sits directly under the pitch, and the limits line follows it,
   so the button stays on the first screen. */
.hero-grid {
  display: flex;
  flex-direction: column;
}

.pitch {
  display: contents;
}

.panel {
  order: 2;
  margin-top: 1.25rem;
  width: 100%;
  max-width: 34rem;
}

.limits {
  order: 3;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.25rem, 1.2rem + 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lede {
  margin-top: 1.25rem;
  font-size: 1.1875rem;
  line-height: 1.45;
  max-width: 34rem;
}

.limits {
  margin-top: 1.25rem;
  max-width: 34rem;
  color: #c4d6cd;
  font-size: 1rem;
}

.panel {
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  padding: 1.25rem;
  scroll-margin-top: 1rem;
}

.panel-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

/* Form */

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field {
  margin-bottom: 0.875rem;
}

.field label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

/* "optional" sits beside the label, not inside it, so Netlify's field names stay clean. */
.label-row {
  margin-bottom: 0.3rem;
}

.label-row label {
  display: inline;
  margin-bottom: 0;
}

.optional {
  font-size: 0.9375rem;
  color: var(--muted);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 2.875rem;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid #8a9a93;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.field textarea {
  resize: vertical;
  line-height: 1.4;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--go);
  outline-offset: 1px;
  border-color: var(--pine);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field-error,
.form-error {
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: 0.3rem;
}

.form-error {
  margin: 0 0 0.75rem;
}

button {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 8px;
  background: var(--go);
  color: var(--pine-deep);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: var(--go-press);
}

button:disabled {
  opacity: 0.65;
  cursor: progress;
}

.thanks {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.25;
  padding: 1.5rem 0;
}

/* The ranked list */

.sample {
  padding: 3rem 0;
}

.sample h2,
.about h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.note {
  color: var(--muted);
  margin-top: 0.35rem;
}

.ranked {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  counter-reset: rank;
  border-top: 2px solid var(--ink);
}

.ranked > li {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.75rem 0.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.ranked > li::before {
  content: counter(rank);
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 0.9;
  color: var(--pine);
}

.name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3125rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.role {
  color: var(--muted);
  font-size: 0.9375rem;
}

.why {
  margin-top: 0.5rem;
  max-width: 36rem;
}

.ask {
  grid-column: 2;
  background: var(--mist);
  border-radius: 14px 14px 14px 2px;
  padding: 0.75rem 1rem;
  font-weight: 500;
  align-self: start;
}

.ask-lead {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}

/* Story and steps */

.about {
  background: var(--mist);
  padding: 3rem 0;
}

.about-grid {
  display: grid;
  gap: 2.5rem;
}

.story p,
.steps ol {
  margin-top: 1rem;
  max-width: 36rem;
}

.signature {
  font-weight: 600;
}

.steps ol {
  padding-left: 1.4rem;
}

.steps li {
  padding-left: 0.25rem;
  margin-bottom: 0.6rem;
}

.steps li::marker {
  font-family: var(--display);
  font-weight: 800;
  color: var(--pine);
}

.jump {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.25rem;
  border-radius: 8px;
  background: var(--pine);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.jump:hover {
  background: var(--pine-deep);
}

footer {
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

footer p {
  max-width: 40rem;
}

@media (min-width: 56rem) {
  .hero {
    padding: 2rem 0 4.5rem;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
  }

  .pitch {
    display: block;
  }

  .limits {
    margin-top: 1rem;
  }

  .wordmark {
    margin-bottom: 3.5rem;
  }

  .panel {
    padding: 1.75rem;
    margin-top: 5.25rem;
    max-width: none;
  }

  .sample {
    padding: 4.5rem 0;
  }

  .ranked > li {
    grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    padding: 1.5rem 0;
  }

  .ranked > li::before {
    font-size: 3.25rem;
  }

  .ask {
    grid-column: auto;
  }

  .about {
    padding: 4.5rem 0;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
