/* ============================================================
   CHEEBA.IO — brand system (light)
   #F2E8D2 cream background · #1E3A2B forest type · acid accent
   Anton (display) · Space Grotesk (body) · Space Mono (labels)
   ============================================================ */

:root {
  --forest: #1E3A2B;
  --forest-dim: rgba(30, 58, 43, 0.66);
  --forest-faint: rgba(30, 58, 43, 0.16);
  --cream: #F2E8D2;
  --cream-deep: #EADDC0;
  --cream-lift: #F7EFDD;
  --cream-dim: rgba(242, 232, 210, 0.72);
  --cream-faint: rgba(242, 232, 210, 0.18);
  --acid: #C6F542;
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", monospace;
  --nav-h: 72px;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--forest);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.mono { font-family: var(--font-mono); }

/* Present for assistive tech, absent visually. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Acid works as a highlight on cream, not as text — forest type on an acid
   mark. The mark is a ::before layered at z-index -1 so it never paints over
   neighboring glyphs on tight line-heights; containers isolate so -1 stays
   above the section background. */
.acid {
  position: relative;
  color: var(--forest);
  padding: 0 0.14em;
}

.acid::before {
  content: "";
  position: absolute;
  inset: 0.06em 0 0.02em;
  background: var(--acid);
  z-index: -1;
}

.hero__headline,
.section-title { isolation: isolate; }

.dim { color: var(--forest-dim); }

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 20px;
}

.eyebrow--tick::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 3px;
  background: var(--acid);
  vertical-align: middle;
  margin-right: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 400;
  margin-bottom: 28px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 13px 28px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--acid {
  background: var(--forest);
  color: var(--acid);
}
.btn--acid:hover { box-shadow: 0 6px 28px rgba(30, 58, 43, 0.35); }

.btn--ghost {
  border-color: var(--forest-faint);
  color: var(--forest);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--forest); }

.btn--lg { padding: 16px 36px; font-size: 1.02rem; }
.btn--sm { padding: 10px 22px; font-size: 0.88rem; }
.btn--block { width: 100%; text-align: center; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(242, 232, 210, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--forest-faint);
}

.nav__inner {
  max-width: 1240px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  color: var(--forest);
}

.nav__tld {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--cream);
  background: var(--forest);
  border-radius: 6px;
  padding: 3px 7px;
  margin-left: 7px;
  transform: translateY(-2px);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 60% at 78% 18%, rgba(30, 58, 43, 0.10) 0%, transparent 70%),
    radial-gradient(45% 55% at 12% 82%, rgba(198, 245, 66, 0.28) 0%, transparent 65%),
    radial-gradient(60% 70% at 40% 45%, rgba(30, 58, 43, 0.05) 0%, transparent 75%),
    linear-gradient(160deg, var(--cream-lift) 0%, var(--cream) 55%, var(--cream-deep) 100%);
}

.hero__mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(30, 58, 43, 0.10) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(70% 70% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, black, transparent);
}

.hero__inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  width: 100%;
  text-align: center;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 400;
  /* Sized so each sentence holds one line on a desktop viewport. */
  font-size: clamp(2.6rem, 6.2vw, 5.5rem);
  line-height: 0.94;
  text-transform: uppercase;
  /* Anton is condensed; negative tracking at display size reads as set,
     not as default. */
  letter-spacing: -0.015em;
  margin-inline: auto;
  color: var(--forest);
  text-wrap: balance;
}

/* One sentence per line. Where a sentence must wrap — narrow viewports, or
   before Anton loads — it wraps as an even block instead of a ragged tail. */
.hero__line {
  display: block;
  text-wrap: balance;
}

.hero__sub {
  max-width: 46ch;
  margin: 28px auto 0;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--forest-dim);
}

/* Quick-start capture: one field and the action, as a single pill. */
.hero__start {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 36px auto 0;
  padding: 6px;
  background: var(--cream-lift);
  border: 1.5px solid var(--forest-faint);
  border-radius: 999px;
  transition: border-color 0.18s ease;
}

.hero__start:focus-within { border-color: var(--forest); }
.hero__start.is-invalid { border-color: #c2452f; }

.hero__start-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--forest);
  padding: 12px 20px;
  outline: none;
}

.hero__start-input::placeholder { color: rgba(30, 58, 43, 0.45); }
.hero__start .btn { flex: 0 0 auto; }

/* Space Mono carrying the proof, at a size where it reads as a voice
   rather than a footnote. */
.hero__stats {
  margin-top: 22px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-dim);
}

.hero__aside { margin-top: 26px; font-size: 0.92rem; }

.hero__aside a {
  color: var(--forest-dim);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}

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

/* ============================================================
   BRANDS
   ============================================================ */

.brands { padding: 96px 0 72px; }

/* Centered to match the hero above it. */
.brands .eyebrow,
.brands .section-title { text-align: center; }

.brands__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}

/* Forest tiles: three of the four brand logos are white artwork and would be
   invisible on the cream page. */
.brands__item {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 132px;
  padding: 24px 26px;
  border: 1px solid var(--forest);
  border-radius: var(--radius);
  background: var(--forest);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.brands__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(30, 58, 43, 0.22);
}

.brands__logo {
  max-width: min(100%, 172px);
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.18s ease;
}

.brands__item:hover .brands__logo { opacity: 1; }

/* ============================================================
   JOIN — email/SMS capture
   ============================================================ */

.join { position: relative; padding: 72px 0 110px; overflow: hidden; }

.join__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.join__proof {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 10px;
}

.join__proof li { display: flex; gap: 16px; align-items: flex-start; }

.join__proof-mark {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--acid);
  font-size: 0.85rem;
}

.join__proof strong { display: block; font-size: 1.05rem; }
.join__proof li div span { display: block; font-size: 0.9rem; color: var(--forest-dim); }

.join__form {
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 0 24px 60px rgba(30, 58, 43, 0.22);
}

.field { display: flex; flex-direction: column; gap: 8px; border: none; }

.field__label {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.field__label em { font-style: normal; text-transform: none; letter-spacing: 0.05em; }

.field input {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--forest);
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.15s ease;
}

.field input::placeholder { color: rgba(30, 58, 43, 0.42); }
.field input:focus { border-color: var(--acid); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  background: transparent;
  border: 1.5px solid var(--cream-faint);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover { border-color: var(--acid); color: var(--acid); }

.chip.active {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--forest);
  font-weight: 700;
}

.join__form .btn--acid {
  background: var(--acid);
  color: var(--forest);
}
.join__form .btn--acid:hover { box-shadow: 0 6px 28px rgba(198, 245, 66, 0.35); }

.join__fine {
  font-size: 0.66rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
}

.join__success {
  font-size: 0.8rem;
  color: var(--acid);
  letter-spacing: 0.06em;
}

.join__error {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #ffb4a8;
  letter-spacing: 0.06em;
}

.field input.field--invalid { border-color: #ff6b6b; }

/* Honeypot — off-screen rather than display:none, which some bots skip */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#joinSubmit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   FOOTER — stays forest, mirroring the logo badge
   ============================================================ */

.footer {
  background: var(--forest);
  color: var(--cream);
  border-top: 1px solid var(--forest-faint);
  padding: 70px 0 40px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__logo {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--cream);
}

.footer__tld {
  font-weight: 700;
  font-size: 1rem;
  color: var(--forest);
  background: var(--cream);
  border-radius: 7px;
  padding: 4px 9px;
  margin-left: 9px;
  transform: translateY(-3px);
}

.footer__tag {
  max-width: 44ch;
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--cream-dim);
}

.footer__nav { display: flex; flex-direction: column; gap: 14px; }

.footer__nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-dim);
  transition: color 0.15s ease;
}
.footer__nav a:hover { color: var(--acid); }

.footer__legal {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--cream-faint);
  font-size: 0.66rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: rgba(242, 232, 210, 0.7);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .brands__grid { grid-template-columns: repeat(2, 1fr); }
  .join__grid { grid-template-columns: 1fr; }
}

/* The pill has no room for a field and a button side by side. */
@media (max-width: 560px) {
  .hero__start {
    flex-direction: column;
    border-radius: var(--radius);
    padding: 10px;
    gap: 10px;
  }
  .hero__start-input { text-align: center; padding: 12px 14px; }
  .hero__start .btn { width: 100%; }
}

@media (max-width: 640px) {
  .brands { padding: 72px 0; }
  .brands__item { min-height: 104px; padding: 20px 14px; }
  .join { padding: 84px 0; }
}

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