/* ECOAI Agent waitlist. Tokens follow the ECO Certification page. Fonts: Noto Sans (OFL.txt). */
@font-face {
  font-family: "Noto Sans";
  src: url("NotoSans-Regular.woff2?v=508e94b81fc2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("NotoSans-SemiBold.woff2?v=bbdc9f9040d9") format("woff2");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}
:root {
  --canvas: #f5f5f7;
  --paper: #ffffff;
  --ink: #1d1d1f;
  --secondary: #6e6e73;
  --line: #d2d2d7;
  --field-line: #8e8e93; /* >= 3:1 on paper (non-text contrast) */
  --forest: #3a6b52;
  --forest-hover: #2c553f;
  --on-forest: #ffffff;
  --focus: #0071e3;
  --error: #b3261e;
  --shadow: 0 4px 20px #1d1d1f0a, 0 1px 2px #1d1d1f08;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
  font-family: "Noto Sans", system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--canvas);
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
::selection {
  background: #d3e9dc;
  color: #1d1d1f;
}
.wrap {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 16px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 3;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--paper);
}
.skip-link:focus {
  top: 12px;
}

/* header */
.top {
  display: flex;
  align-items: center;
  min-height: 52px;
}
.wordmark {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.6px;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* layout: phone = intro, form, proof; wide = copy left, form right */
main {
  flex: 1;
}
.layout {
  display: grid;
  gap: 16px;
  grid-template-areas: "intro" "form" "proof";
  padding-bottom: 20px;
}
.intro {
  grid-area: intro;
}
.panel {
  grid-area: form;
}
.proof {
  grid-area: proof;
}
h1 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 7.4vw, 56px);
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1.08;
  text-wrap: balance;
}
.lede {
  margin: 0;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.55;
  color: var(--secondary);
}

/* form panel: one paper surface, no inner cards */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.panel h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 10px;
}
.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.field-email,
.field-interest {
  grid-column: 1 / -1;
}
label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.hint {
  font-weight: 400;
  color: var(--secondary);
}
input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 16px; /* 16px stops iOS zoom-on-focus */
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input::placeholder {
  color: var(--secondary);
  opacity: 0.8;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  text-overflow: ellipsis;
}
input:hover,
select:hover {
  border-color: var(--secondary);
}
[aria-invalid="true"] {
  border-color: var(--error) !important;
}
.error,
.form-error {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
  color: var(--error);
}
.form-error {
  margin-bottom: 8px;
  font-weight: 600;
}
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  margin-top: 4px;
}
.consent input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--forest);
}
.consent label {
  font-size: 14px;
  font-weight: 400;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.consent .error,
.consent .note {
  grid-column: 1 / -1;
}
.note {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--secondary);
}
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.submit {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: var(--forest);
  color: var(--on-forest);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.submit:hover {
  background: var(--forest-hover);
}
.submit:active {
  transform: scale(0.98);
}

/* proof lines: plain list */
.proof {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--secondary);
}
.proof strong {
  color: var(--ink);
  font-weight: 600;
}

/* thank-you / message pages */
.single {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: min(12vh, 48px);
  padding-bottom: 24px;
}
.done {
  width: 100%;
  max-width: 460px;
  padding: 28px 24px;
}
.done h1 {
  font-size: clamp(26px, 6vw, 34px);
  letter-spacing: -1px;
}
.doc {
  max-width: 640px;
}
.doc dl {
  margin: 16px 0 0;
}
.doc dt {
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
}
.doc dd {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--secondary);
}
.owner {
  margin: 16px 0 0;
  font-size: 13px;
}
.draft {
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid var(--error);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--error);
}
.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--forest);
}

/* footer */
.foot {
  padding-block: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
  color: var(--secondary);
}
.foot p {
  margin: 0;
}
.copyright {
  margin-top: 4px !important;
}

@media (max-width: 859px) {
  /* After a failed submit, give the phone viewport to the form so submit stays in the fold. */
  .has-errors .lede {
    display: none;
  }
}
@media (min-width: 860px) {
  .wrap {
    padding-inline: 40px;
  }
  .top {
    min-height: 88px;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr) 420px;
    grid-template-areas: "intro form" "proof form";
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    row-gap: 28px;
    align-items: start;
    padding-top: 32px;
    padding-bottom: 48px;
  }
  h1 {
    letter-spacing: -2.4px;
    margin-bottom: 16px;
  }
  .lede {
    font-size: 16px;
    line-height: 1.7;
  }
  .proof {
    font-size: 14px;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .panel {
    padding: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  .submit:active {
    transform: none;
  }
}
