:root {
  color-scheme: light;
  --ink: #20251f;
  --muted: #7d827b;
  --paper: #f8f8f6;
  --green: #b7e65b;
  --green-dark: #719735;
  --line: #e7e9e3;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; }
button, input { font: inherit; }

.page-shell {
  display: flex;
  flex-direction: column;
  width: min(100%, 1440px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 clamp(24px, 7.1vw, 104px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.045em;
  text-decoration: none;
}

.wordmark-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px 10px 10px 3px;
  background: var(--green);
  font-size: 18px;
}

.wordmark-light { color: #777d74; font-weight: 500; }
.header-link { font-size: 13px; font-weight: 600; text-decoration: none; }
.header-link span { padding-left: 5px; color: var(--green-dark); }

.hero {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  align-items: center;
  gap: clamp(54px, 11vw, 160px);
  padding: 72px 0 80px;
}

.hero-copy { max-width: 535px; padding-bottom: 12px; }
.eyebrow, .card-kicker { color: var(--green-dark); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 27px; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-dark); box-shadow: 0 0 0 4px #e8f4d4; }
h1, h2, h3, p { margin-top: 0; }
h1, .signup-card h2 { font-family: "Space Grotesk", sans-serif; }
h1 { margin-bottom: 22px; font-size: clamp(52px, 6.5vw, 86px); font-weight: 500; letter-spacing: -.075em; line-height: .99; }
h1 span { color: var(--green-dark); }
.hero-description { max-width: 405px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-note { display: flex; align-items: center; gap: 14px; margin-top: 47px; }
.note-icon { display: grid; width: 43px; height: 43px; flex: none; place-items: center; border: 1px solid #e3e7dd; border-radius: 14px; color: var(--green-dark); font-size: 21px; }
.hero-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.hero-note strong { color: var(--ink); font-size: 13px; }

.signup-card { position: relative; padding: 43px 38px 32px; border: 1px solid #eceee9; border-radius: 20px; background: #fff; box-shadow: 0 22px 70px rgb(35 43 26 / 7%); }
.card-mark { position: absolute; top: 36px; right: 36px; color: var(--green-dark); font-size: 21px; }
.card-kicker { margin: 0 0 12px; font-size: 10px; }
.signup-card h2 { margin: 0 0 9px; font-size: 28px; font-weight: 500; letter-spacing: -.055em; }
.card-description { margin: 0 0 31px; color: var(--muted); font-size: 13px; }
.field { margin-bottom: 19px; }
.field label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.field input { display: block; width: 100%; height: 48px; padding: 0 15px; border: 1px solid #e2e5df; border-radius: 10px; outline: none; color: var(--ink); background: #fff; font-size: 13px; transition: border-color .18s, box-shadow .18s; }
.field input::placeholder { color: #a8ada5; }
.field input:hover { border-color: #cbd0c6; }
.field input:focus-visible { border-color: #8dae54; box-shadow: 0 0 0 3px rgb(183 230 91 / 25%); }
#signup-form button { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 49px; margin-top: 27px; padding: 0 17px; border: 0; border-radius: 10px; color: #253019; background: var(--green); font-size: 13px; font-weight: 700; cursor: pointer; transition: background .18s, transform .18s, opacity .18s; }
#signup-form button span { font-size: 18px; }
#signup-form button:hover:not(:disabled) { background: #a9dc49; transform: translateY(-1px); }
#signup-form button:focus-visible { outline: 3px solid rgb(113 151 53 / 35%); outline-offset: 3px; }
#signup-form button:disabled { cursor: not-allowed; opacity: .55; }
.form-footnote { margin: 17px 0 0; color: #969b93; font-size: 10px; line-height: 1.7; text-align: center; }
.form-footnote a { color: #62695e; text-underline-offset: 2px; }
.success-message { padding: 22px 0 18px; text-align: center; }
.success-message[hidden] { display: none; }
.success-icon { display: grid; width: 50px; height: 50px; margin: 0 auto 16px; place-items: center; border-radius: 50%; color: #496720; background: #edf7dc; font-size: 23px; }
.success-message h3 { margin-bottom: 8px; font-family: "Space Grotesk", sans-serif; font-size: 24px; font-weight: 500; letter-spacing: -.04em; }
.success-message p { margin: 0; color: var(--muted); font-size: 13px; }
.challenge-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 13px 17px; border-radius: 10px; color: #253019; background: var(--green); font-size: 13px; font-weight: 700; text-decoration: none; transition: background .18s, transform .18s; }
.challenge-link:hover { background: #a9dc49; transform: translateY(-1px); }
.challenge-link:focus-visible { outline: 3px solid rgb(113 151 53 / 35%); outline-offset: 3px; }

.challenge-page { display: grid; flex: 1; place-items: center; padding: 72px 0 80px; }
.challenge-card { width: min(100%, 760px); padding: clamp(30px, 7vw, 72px); border: 1px solid #eceee9; border-radius: 20px; background: #fff; box-shadow: 0 22px 70px rgb(35 43 26 / 7%); }
.challenge-card .eyebrow { margin-bottom: 34px; }
.challenge-card .card-kicker { margin-bottom: 16px; }
.challenge-card h1 { max-width: 590px; margin-bottom: 20px; }
.challenge-copy { max-width: 560px; margin: 0; font-size: clamp(18px, 2.5vw, 23px); line-height: 1.65; }
.challenge-record { display: inline-flex; align-items: center; gap: 13px; margin-top: 25px; padding: 13px 17px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcf9; }
.challenge-record-number { color: var(--green-dark); font-family: "Space Grotesk", sans-serif; font-size: 25px; font-weight: 700; letter-spacing: -.05em; }
.challenge-record-label { color: var(--muted); font-size: 12px; }
.challenge-note { margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.challenge-card .challenge-link { margin-top: 30px; }

.site-footer { display: flex; align-items: center; justify-content: space-between; min-height: 66px; border-top: 1px solid var(--line); color: #898e86; font-size: 11px; }
.site-footer span span { padding-left: 5px; color: var(--green-dark); }

@media (max-width: 760px) {
  .page-shell { padding: 0 25px; }
  .site-header { min-height: 76px; }
  .hero { grid-template-columns: 1fr; gap: 42px; padding: 68px 0 58px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(56px, 12vw, 78px); }
  .hero-note { margin-top: 29px; }
  .signup-card { width: min(100%, 500px); justify-self: center; }
}

@media (max-width: 440px) {
  .page-shell { padding: 0 19px; }
  .wordmark { font-size: 13px; }
  .wordmark-icon { width: 29px; height: 29px; }
  .header-link { font-size: 12px; }
  .hero { padding-top: 54px; }
  .eyebrow { margin-bottom: 20px; }
  h1 { font-size: 54px; }
  .hero-description { font-size: 14px; }
  .signup-card { padding: 34px 23px 25px; border-radius: 16px; }
  .card-mark { top: 27px; right: 24px; }
  .signup-card h2 { font-size: 25px; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; min-height: 70px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
