:root {
  --navy: #002053;
  --blue: #004AA1;
  --blue-mid: #005DA9;
  --orange: #FF5006;
  --light: #E6EEF8;
  --white: #ffffff;
  --cream: #f7f4ee;
  --text: #002053;
  --muted: #3a4d6e;
  --line: #c9d7ea;
  --error: #9b1c1c;
  --radius: 1.25rem;
  --shadow: 0 10px 30px rgba(0, 32, 83, 0.08);
  --font-display: "DM Sans", "Segoe UI", sans-serif;
  --font-body: "Open Sans", "Segoe UI", sans-serif;
  --wrap: 70rem;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  color: var(--text);
  background: var(--light);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--navy);
}

h1 {
  font-size: clamp(2rem, 6vw, 3.35rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

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

a:hover {
  color: var(--navy);
}

.wrap {
  width: min(100% - 1.75rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding-block: 0.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.header-logo {
  width: min(11.5rem, 48vw);
  height: auto;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  min-height: 2.75rem;
  white-space: nowrap;
}

.header-cta:hover,
.header-cta:focus-visible {
  color: var(--navy);
  filter: brightness(1.05);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  min-height: 3.25rem;
  cursor: pointer;
  box-shadow: 0 6px 0 #c73e00;
}

.btn:hover,
.btn:focus-visible {
  color: var(--navy);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #c73e00;
}

.btn:focus-visible,
.header-cta:focus-visible,
input:focus-visible,
.choice:focus-within {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* Hero */
.hero {
  padding: 2.5rem 0 3.25rem;
  text-align: center;
}

.hero-logo {
  width: min(22rem, 86vw);
  margin: 0 auto 1.5rem;
}

.lede,
.section-intro {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--muted);
  max-width: 40rem;
}

.hero .lede {
  margin: 0 auto 1.75rem;
}

/* Situation / cartoon strip */
.situation {
  padding: 1rem 0 3.5rem;
}

.situation .section-intro,
.benefits .section-intro,
.waitlist .section-intro,
.how + .patent-note {
  margin-inline: auto;
  text-align: center;
}

.situation .section-intro {
  margin-bottom: 2rem;
}

.story-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.story-panel figure {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.story-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f0eadf;
}

.story-panel figcaption {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  padding: 1rem 1rem 1.15rem;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.panel-num,
.step-num {
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}

/* Benefits */
.benefits {
  padding: 3rem 0;
  background: var(--white);
}

.benefit-grid {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.benefit-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.5rem;
  text-align: center;
}

.benefit-card img {
  width: min(14rem, 70%);
  margin: 0 auto 1rem;
  border-radius: 1rem;
}

.benefit-card p {
  margin-bottom: 0;
  color: var(--muted);
}

/* How it works */
.how {
  padding: 3.25rem 0 3.5rem;
}

.steps {
  list-style: none;
  margin: 2rem 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.steps h3 {
  margin-bottom: 0.35rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.steps .step-num {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

.patent-note {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

/* Waitlist */
.waitlist {
  padding: 3.25rem 0 4rem;
  background: var(--white);
}

.waitlist-inner {
  max-width: 34rem;
  text-align: center;
}

#waitlist-form {
  margin-top: 1.5rem;
  text-align: left;
  background: var(--light);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 1.35rem 1.2rem 1.5rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label,
.role-fieldset legend {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.optional {
  font-weight: 500;
  color: var(--muted);
}

input[type="text"],
input[type="email"] {
  width: 100%;
  font: inherit;
  font-size: 1.125rem;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.85rem 0.95rem;
  min-height: 3.15rem;
}

input[type="text"]:hover,
input[type="email"]:hover {
  border-color: var(--blue-mid);
}

.role-fieldset {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.8rem 0.95rem;
  margin-top: 0.55rem;
  cursor: pointer;
  min-height: 3.15rem;
}

.choice:hover {
  border-color: var(--blue-mid);
}

.choice input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--blue);
}

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

.form-error {
  color: var(--error);
  font-weight: 600;
  margin: 0 0 0.85rem;
}

#waitlist-form .btn {
  width: 100%;
}

.privacy {
  margin: 1rem 0 0;
  font-size: 0.98rem;
  color: var(--muted);
  text-align: center;
}

.thanks {
  margin-top: 1.5rem;
  background: var(--light);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 2rem 1.35rem;
}

.thanks-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #d5e3f5;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 1rem;
}

.site-footer p {
  margin: 0;
}

/* 404 */
.page-error {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
  gap: 0.5rem;
}

.page-error .brand-link img {
  width: min(18rem, 80vw);
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .story-strip {
    grid-template-columns: 1fr 1fr;
  }

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

  #waitlist-form {
    padding: 1.75rem 1.75rem 1.85rem;
  }
}

@media (min-width: 900px) {
  body {
    font-size: 1.2rem;
  }

  .hero {
    padding-top: 3.5rem;
    padding-bottom: 4.25rem;
  }

  .story-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .story-panel figcaption {
    font-size: 1.05rem;
    min-height: 5.5rem;
  }

  .benefit-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
    align-items: stretch;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .steps li {
    flex-direction: column;
    padding: 1.5rem 1.4rem 1.6rem;
    min-height: 100%;
  }
}

@media (max-width: 399px) {
  .header-cta {
    font-size: 0.95rem;
    padding-inline: 0.8rem;
  }
}
