* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--white);
  color: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.lead-container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.lead-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 239, 0.96);
}

.lead-header-inner,
.footer-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lead-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.lead-wordmark img {
  display: block;
  width: 218px;
  max-width: 58vw;
  height: auto;
}

.lead-wordmark span {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-link {
  color: var(--teal-dark);
  font-weight: 700;
  text-underline-offset: 4px;
}

.lead-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--navy);
  background-size: 64px 64px;
  color: var(--white);
}

.lead-hero::before,
.lead-hero::after {
  position: absolute;
  content: "";
  width: 220px;
  height: 18px;
  background: var(--teal);
  opacity: 0.55;
}

.lead-hero::before {
  left: 3vw;
  top: 58px;
}

.lead-hero::after {
  right: 5vw;
  bottom: 42px;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

.eyebrow,
.card-label {
  margin: 0 0 16px;
  color: #8dd8ce;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.03;
}

h1 {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: clamp(3.2rem, 7vw, 6rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  letter-spacing: -0.035em;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 40px;
  color: #e1e8ea;
  font-size: clamp(1.12rem, 2vw, 1.34rem);
}

.workbook-proof {
  max-width: 680px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 18, 34, 0.45);
}

.workbook-tabs {
  display: flex;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.workbook-tabs span {
  padding: 10px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: #b9c8cf;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
}

.workbook-tabs span:nth-child(2) {
  background: var(--teal);
  color: var(--white);
}

.workbook-proof blockquote {
  margin: 0;
  padding: 26px 28px 14px;
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.93rem;
  line-height: 1.7;
}

.workbook-proof > p {
  margin: 0;
  padding: 0 28px 28px;
  color: #b9c8cf;
  font-size: 0.92rem;
}

.signup-card {
  padding: clamp(28px, 4vw, 42px);
  border-top: 7px solid var(--red);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.signup-card .card-label,
.thanks-card .eyebrow,
.thanks-next .card-label,
.problems-section .eyebrow,
.use-section .eyebrow {
  color: var(--teal-dark);
}

.signup-card h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.signup-card > p:not(.card-label):not(.privacy-note) {
  margin-bottom: 28px;
  color: var(--body);
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #aab2b4;
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.form-field input:focus,
.consent-row input:focus-visible,
.submit-button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.consent-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  margin: 22px 0;
  color: var(--body);
  cursor: pointer;
  font-size: 0.88rem;
}

.consent-row input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-widget {
  min-height: 68px;
  margin-bottom: 18px;
}

.submit-button {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 2px;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  font: 700 1rem var(--sans);
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.submit-button:hover:not(:disabled) {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.submit-button:disabled {
  background: #8b9498;
  cursor: wait;
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.form-status[data-type="error"] {
  color: var(--red-dark);
  font-weight: 700;
}

.form-status[data-type="ready"] {
  color: var(--teal-dark);
}

.privacy-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.privacy-note a {
  color: var(--teal-dark);
}

.problems-section,
.use-section {
  padding: 96px 0;
}

.problems-section h2,
.use-section h2 {
  max-width: 760px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 46px 0 0;
  padding: 1px;
  background: var(--line);
  list-style: none;
}

.problem-grid li {
  display: grid;
  min-height: 112px;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  align-items: start;
  padding: 26px;
  background: var(--white);
}

.problem-grid li:last-child {
  grid-column: 1 / -1;
}

.problem-grid span {
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.problem-grid strong {
  font-size: 1.06rem;
}

.use-section {
  background: var(--mint);
}

.use-layout {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(40px, 8vw, 110px);
}

.use-copy {
  padding-top: 36px;
  color: var(--body);
  font-size: 1.08rem;
}

.lead-footer {
  padding: 24px 0;
  background: var(--navy);
  color: var(--white);
}

.lead-footer .lead-wordmark img {
  width: 220px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
  color: #c5d0d5;
  font-size: 0.84rem;
}

.footer-links a {
  text-underline-offset: 4px;
}

.thanks-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--navy);
  background-size: 64px 64px;
}

.thanks-main {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 40px 20px;
}

.thanks-card {
  width: min(720px, 100%);
  padding: clamp(30px, 6vw, 64px);
  border-top: 7px solid var(--red);
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.thanks-card .lead-wordmark {
  margin-bottom: 58px;
}

.thanks-card h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 5rem);
}

.thanks-card > p:not(.eyebrow) {
  max-width: 580px;
  color: var(--body);
  font-size: 1.08rem;
}

.thanks-next {
  margin-top: 42px;
  padding: 30px;
  background: var(--mint);
}

.thanks-next h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.thanks-next p:not(.card-label) {
  color: var(--body);
}

.link-button {
  width: auto;
  margin-top: 8px;
  padding-inline: 24px;
}

@media (max-width: 820px) {
  .hero-layout,
  .use-layout {
    grid-template-columns: 1fr;
  }

  .lead-hero {
    padding-top: 64px;
  }

  .signup-card {
    max-width: 580px;
  }

  .use-copy {
    padding-top: 0;
  }
}

@media (max-width: 620px) {
  .lead-container {
    width: min(100% - 28px, 1160px);
  }

  .lead-header-inner {
    min-height: 72px;
  }

  .lead-wordmark img {
    width: 184px;
  }

  .lead-wordmark span,
  .header-link {
    display: none;
  }

  .lead-hero {
    padding: 52px 0 64px;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.35rem);
  }

  .workbook-tabs span {
    padding-inline: 9px;
    font-size: 0.53rem;
  }

  .signup-card {
    padding: 28px 20px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .problem-grid li:last-child {
    grid-column: auto;
  }

  .problems-section,
  .use-section {
    padding: 70px 0;
  }

  .footer-inner,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
  }

  .thanks-card .lead-wordmark {
    margin-bottom: 46px;
  }

  .thanks-next {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .submit-button {
    transition: none;
  }
}
