/* =============================================================================
   InsideHunt — The Founding 100
   Palette and type follow Brand Book v1.0. Light canvas only: the book's one
   hard rule is that no dark colour is ever used as a field.
   ========================================================================== */

:root {
  /* canvas */
  --paper:  #FAF8F4;
  --sand:   #F1EBE1;
  /* green — the voice */
  --forest: #123B31;
  --emerald:#2E6A54;
  --lit:    #4E9E7F;
  /* warm — the emphasis, kept under a fifth of the page */
  --amber:  #EFC757;
  --clay:   #C96F4A;

  --body:   #3A4A44;
  --muted:  #6E7B75;
  --rule:   #DCD6CA;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gap: clamp(3.5rem, 9vw, 6.5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--emerald); }
a:hover { color: var(--forest); }

.skip {
  position: absolute; left: -9999px;
  background: var(--forest); color: var(--paper);
  padding: .75rem 1.25rem; border-radius: 0 0 8px 0; z-index: 10;
}
.skip:focus { left: 0; top: 0; }

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 5vw, 2rem) 3rem;
}

/* ---- masthead ----------------------------------------------------------- */

.masthead { display: flex; justify-content: center; margin-bottom: var(--gap); }

.lockup {
  width: clamp(104px, 15vw, 132px);
  height: auto;
}

/* ---- hero --------------------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 1.25rem;
}

.headline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 6.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--forest);
  margin: 0 0 1.5rem;
  text-wrap: balance;
}

.subhead {
  font-size: clamp(1.02rem, 2.2vw, 1.16rem);
  max-width: 34em;
  margin: 0;
  color: var(--body);
}

/* ---- the counter -------------------------------------------------------- */

.counter { margin-top: 2.75rem; max-width: 30rem; }

.counter-bar {
  height: 6px;
  background: var(--sand);
  border-radius: 99px;
  overflow: hidden;
}

.counter-fill {
  display: block;
  height: 100%;
  min-width: 6px;
  background: var(--emerald);
  border-right: 3px solid var(--amber);
  border-radius: 99px;
}

.counter-text {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--muted);
  margin: .7rem 0 0;
}
.counter-text strong { color: var(--forest); font-weight: 500; }

/* ---- three cards -------------------------------------------------------- */

.cards {
  margin-top: var(--gap);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--sand);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.4rem 1.3rem 1.6rem;
}

.card-label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 .7rem;
}

.card-text {
  font-family: var(--display);
  font-size: 1.09rem;
  line-height: 1.35;
  color: var(--forest);
  margin: 0;
}

/* ---- what the seat holds ------------------------------------------------ */

.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.8vw, 2.1rem);
  line-height: 1.15;
  color: var(--forest);
  margin: 0 0 1.75rem;
  letter-spacing: -.01em;
}

.benefits { margin-top: var(--gap); }

.benefit-list { list-style: none; margin: 0; padding: 0; }

.benefit {
  display: flex;
  gap: 1.15rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--rule);
}
.benefit:last-child { border-bottom: 1px solid var(--rule); }

.benefit-num {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--clay);
  padding-top: .35rem;
  flex: 0 0 auto;
}

.benefit-head {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.14rem;
  color: var(--forest);
  margin: 0 0 .3rem;
}

.benefit-text { margin: 0; color: var(--body); }

/* ---- the form ----------------------------------------------------------- */

.signup {
  margin-top: var(--gap);
  background: var(--sand);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: clamp(1.6rem, 5vw, 2.6rem);
}

.form-note {
  margin: -1.15rem 0 1.75rem;
  color: var(--muted);
  font-size: .95rem;
  max-width: 32em;
}

.alert {
  background: #FBEDE6;
  border: 1px solid var(--clay);
  border-left: 4px solid var(--clay);
  border-radius: 8px;
  padding: .8rem 1rem;
  margin: 0 0 1.5rem;
  color: #8A4426;
  font-size: .95rem;
}

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

.row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1rem;
}

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

.field label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: .5rem;
}

.opt { color: var(--muted); text-transform: none; letter-spacing: .04em; }

.field input {
  font-family: var(--text);
  font-size: 1rem;
  color: var(--forest);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 9px;
  padding: .8rem .9rem;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}

.field input::placeholder { color: #A9B0AB; }

.field input:focus {
  outline: none;
  border-color: var(--lit);
  box-shadow: 0 0 0 3px rgba(78, 158, 127, .22);
}

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

.err {
  font-size: .82rem;
  color: #A8502C;
  margin: .4rem 0 0;
  min-height: 0;
}
.err:empty { display: none; }

.consent {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  margin: .6rem 0 1.75rem;
  font-size: .93rem;
  color: var(--body);
  cursor: pointer;
}

.consent input {
  margin: .28rem 0 0;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--emerald);
  flex: 0 0 auto;
}

.submit {
  font-family: var(--text);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  color: var(--paper);
  background: var(--forest);
  border: 0;
  border-radius: 10px;
  padding: .95rem 2rem;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.submit:hover { background: var(--emerald); }
.submit:active { transform: translateY(1px); }
.submit:focus-visible { outline: 3px solid var(--lit); outline-offset: 2px; }
.submit[disabled] { opacity: .6; cursor: progress; }

/* ---- confirmation ------------------------------------------------------- */

.done {
  border-left: 4px solid var(--emerald);
  padding-left: 1.35rem;
}

.done-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  color: var(--forest);
  margin: 0 0 .6rem;
}

.done-text { margin: 0; max-width: 34em; }

.disclosure {
  font-family: var(--mono);
  font-size: .74rem;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--muted);
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

/* ---- footer ------------------------------------------------------------- */

.foot {
  margin-top: var(--gap);
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.foot-mark { width: 26px; margin: 0 auto 1rem; opacity: .9; }

.foot-tagline {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--forest);
  margin: 0 0 .9rem;
}

.foot-legal {
  font-size: .82rem;
  color: var(--muted);
  margin: 0 auto .4rem;
  max-width: 40em;
}

/* ---- narrow screens ----------------------------------------------------- */

@media (max-width: 700px) {
  .cards { grid-template-columns: 1fr; }
  .row   { grid-template-columns: 1fr; }
  .submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
