/* Midwest Practical — name-test landing pages
   Palette: brick #8B2E1F, slate #2C3640, off-white #FBF8F3, blue #0B4FA8
   Body 18px+, contrast ~7:1 or better on these backgrounds. */

:root {
  --brick: #8B2E1F;
  --brick-dark: #6B2216;
  --slate: #2C3640;
  --ink: #1F2A33;
  --muted: #3E4A55;
  --offwhite: #FBF8F3;
  --cream: #F4EFE7;
  --line: #E3DCD1;
  --white: #ffffff;
  --blue: #0B4FA8;
  --footer-bg: #1F2A33;
  --footer-muted: #dce3e8;
  --shadow: #2C3640;
  --max: 1180px;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: "Bitter", Georgia, serif;
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
}

p {
  margin: 0;
}

a {
  color: var(--brick);
}

a:hover {
  color: var(--brick-dark);
}

img,
svg {
  display: block;
}

button,
input {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 8px 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

/* Top affiliation strip */
.affiliation {
  background: var(--slate);
  color: var(--white);
  font-size: 16px;
  line-height: 1.4;
  padding: 8px var(--gutter);
  text-align: center;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.wordmark {
  font-family: "Bitter", Georgia, serif;
  font-weight: 800;
  font-size: clamp(20px, 4.2vw, 26px);
  letter-spacing: -0.3px;
  line-height: 1.15;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  font-size: 18px;
  font-weight: 700;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brick);
}

/* Hero */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--gutter) 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}

.hero-copy {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brick);
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1px;
}

.lede {
  font-size: 22px;
  color: var(--muted);
  max-width: 580px;
}

.lede strong {
  color: var(--ink);
  font-weight: 700;
}

.price-line {
  font-size: 22px;
  color: var(--ink);
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 18px;
  color: var(--ink);
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check svg {
  flex: none;
}

/* Signup card */
.signup-card {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 520px;
  background: var(--cream);
  border: 2px solid var(--slate);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 8px 8px 0 var(--shadow);
}

@media (min-width: 900px) {
  .signup-card {
    margin-top: 48px;
  }
}

.signup-card h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.signup-card label {
  font-size: 18px;
  font-weight: 700;
}

.signup-card input[type="email"] {
  font-size: 20px;
  padding: 16px;
  border: 2px solid var(--slate);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}

.signup-card input[type="email"]::placeholder {
  color: #6a7680;
}

.signup-card input[aria-invalid="true"] {
  border-color: var(--brick);
}

.btn {
  display: inline-block;
  text-align: center;
  background: var(--brick);
  color: var(--white);
  font-weight: 700;
  font-size: 21px;
  padding: 18px;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
}

.btn:hover {
  background: var(--brick-dark);
  color: var(--white);
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.fine-print {
  font-size: 16px;
  color: var(--muted);
}

.signup-status {
  font-size: 17px;
  min-height: 1.4em;
}

.signup-status.success {
  color: #1a4d2e;
  font-weight: 700;
}

.signup-status.error {
  color: var(--brick);
  font-weight: 700;
}

.signup-status.pending {
  color: var(--muted);
}

/* 2027 banner */
.banner {
  background: var(--brick);
  color: var(--white);
}

.banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.banner p {
  font-size: 21px;
  flex: 1 1 20em;
  min-width: 0;
}

.btn-banner {
  background: var(--white);
  color: var(--brick);
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 19px;
  white-space: nowrap;
}

.btn-banner:hover {
  color: var(--brick-dark);
  background: var(--offwhite);
}

/* What we check */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 780px;
}

.section-kicker {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brick);
}

.section h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
}

.section-intro p {
  font-size: 21px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.watch-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  gap: 18px;
}

.watch-card svg {
  flex: none;
}

.watch-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.watch-card h3 {
  font-size: 22px;
}

.watch-card p {
  color: var(--muted);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-featured {
  border: 2px solid var(--brick);
  padding: 27px;
}

.step-num {
  font-family: "Bitter", Georgia, serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--brick);
  line-height: 1;
}

.step h3 {
  font-size: 23px;
}

.step p {
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-muted);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 17px;
}

.footer-wordmark {
  font-family: "Bitter", Georgia, serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--white);
}

.footer-inner p {
  max-width: 720px;
}

/* Phone */
@media (max-width: 720px) {
  body {
    font-size: 18px;
  }

  .hero-inner {
    padding: 40px var(--gutter) 48px;
    gap: 36px;
  }

  .signup-card {
    max-width: none;
    padding: 24px;
    box-shadow: 6px 6px 0 var(--shadow);
  }

  .section {
    padding: 56px var(--gutter);
    gap: 28px;
  }

  .banner p {
    font-size: 19px;
  }

  .lede,
  .price-line {
    font-size: 20px;
  }
}
