/* ── Custom properties ─────────────────────────────────────────────── */

:root {
  color-scheme: light;
  --page-bg: #f7f4ef;
  --text: #141414;
  --muted: #5e5b55;
  --line: rgba(20, 20, 20, 0.12);
  --accent: #121212;
  --accent-text: #f7f4ef;
  --max-width: 76rem;
  --gutter: clamp(1.2rem, 3vw, 2.6rem);
}

/* ── Reset ─────────────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
}

@media (min-width: 64rem) {
  html,
  body {
    height: 100dvh;
    overflow: hidden;
  }
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--page-bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

main {
  flex: 1;
  display: grid;
}

@media (min-width: 64rem) {
  main {
    grid-template-rows: 1fr auto;
  }
}

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

button,
input {
  font: inherit;
}

/* ── Typography ────────────────────────────────────────────────────── */

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 9vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

h1 span {
  display: block;
}

@media (min-width: 64rem) {
  h1 {
    font-size: clamp(3rem, 5.5vw, 5rem);
    line-height: 0.92;
  }
}

h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.06em;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.02;
}

@media (min-width: 64rem) {
  h2 {
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  }
}

/* ── Layout ────────────────────────────────────────────────────────── */

.content-wrap {
  width: min(100% - (var(--gutter) * 2), var(--max-width));
  margin: 0 auto;
}

/* ── Header ────────────────────────────────────────────────────────── */

.site-header {
  padding: 1.25rem 0;
}

.wordmark {
  width: min(100% - (var(--gutter) * 2), var(--max-width));
  margin: 0 auto;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.site-tagline {
  width: min(100% - (var(--gutter) * 2), var(--max-width));
  margin: 0.35rem auto 0;
  font-size: 0.73rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
}

.site-tagline span {
  display: block;
}

/* ── Value statement ───────────────────────────────────────────────── */

.value-statement {
  padding: 4rem 0;
}

@media (min-width: 64rem) {
  .value-statement {
    display: flex;
    align-items: center;
    padding: 0;
  }
}

.lede {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (min-width: 64rem) {
  .lede {
    margin-top: 0.85rem;
    font-size: 1.05rem;
    line-height: 1.5;
  }
}

.value-copy {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.value-copy span {
  display: block;
}

.value-copy span + span {
  margin-top: 0.14em;
}

/* ── Final CTA ─────────────────────────────────────────────────────── */

.final-cta {
  padding: 2rem 0;
  background: #fff;
}

@media (min-width: 64rem) {
  .final-cta {
    padding-top: 2rem;
  }
}

.final-cta-inner {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 48rem) {
  .final-cta-inner {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 31rem);
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: end;
  }
}

@media (min-width: 64rem) {
  .final-cta-inner {
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 28rem);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.final-cta-note {
  max-width: 24rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

@media (min-width: 64rem) {
  .final-cta-note {
    max-width: none;
    margin-top: 0.4rem;
    font-size: 0.9rem;
  }
}

.final-cta-form {
  max-width: 31rem;
}

@media (min-width: 64rem) {
  .final-cta-form {
    width: 100%;
    max-width: none;
    justify-self: end;
  }
}

.signup-form {
  display: grid;
  gap: 0;
  max-width: 31rem;
}

@media (min-width: 48rem) {
  .signup-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 64rem) {
  .signup-form {
    max-width: none;
  }
}

.signup-form input[type="email"] {
  width: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  background: #fff;
}

.signup-form button {
  padding: 1rem 1.4rem;
  border: 0;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
  cursor: pointer;
}

.signup-form button:disabled {
  cursor: wait;
  opacity: 0.8;
}

.final-cta .signup-form {
  margin: 0;
}

.final-cta .signup-form button {
  text-transform: none;
  letter-spacing: 0;
}

.microcopy {
  margin: 0.8rem 0 0;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.final-cta .microcopy {
  letter-spacing: 0.04em;
  text-transform: none;
}

@media (min-width: 64rem) {
  .final-cta .microcopy {
    margin-top: 0.5rem;
  }
}

.status-copy {
  min-height: 1.2rem;
  margin: 0.7rem 0 0;
  font-size: 0.73rem;
  color: var(--muted);
}

/* ── Footer ────────────────────────────────────────────────────────── */

.site-footer {
  padding: 1.25rem 0;
}

.footer-inner {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 64rem) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    align-items: start;
  }

  .footer-inner small:last-child {
    max-width: 25rem;
    justify-self: end;
  }
}

.site-footer small {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ── Utilities ─────────────────────────────────────────────────────── */

.honeypot,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 320ms ease, transform 320ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
