:root {
  --teal: #3fbeb3;
  --teal-dark: #237a72;
  --orange: #ef8b2e;
  --ink: #273033;
  --muted: #596669;
  --cream: #fffaf2;
  --mint: #e9f9f6;
  --peach: #fff0df;
  --green: #eff7e3;
  --line: #d8e8e5;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(37, 83, 78, 0.16);
  --content-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid rgba(216, 232, 229, 0.85);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--teal-dark);
  font-family: Noteworthy, "Marker Felt", "Comic Sans MS", cursive;
  font-size: 1.45rem;
  font-weight: 700;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

nav a,
.site-footer a {
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.hero {
  min-height: clamp(620px, calc(100svh - 74px), 820px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(30px, 5vw, 78px);
  align-items: center;
  padding: clamp(42px, 6vw, 78px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(233, 249, 246, 0.94), rgba(255, 240, 223, 0.78)),
    url("assets/images/alphabet-fox.png") center right / min(48vw, 620px) no-repeat;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--teal-dark);
  font-family: Noteworthy, "Marker Felt", "Comic Sans MS", cursive;
  font-weight: 500;
  font-size: clamp(4.3rem, 8vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--teal-dark);
  max-width: 780px;
  font-size: clamp(2rem, 3.15vw, 3.15rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 1.08rem;
  font-weight: 900;
}

.hero-lede {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--ink);
  font-size: clamp(1.12rem, 1.75vw, 1.32rem);
}

.hero-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--orange);
}

.button.secondary {
  color: var(--teal-dark);
  background: var(--white);
  border-color: var(--teal);
}

.trust-note {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-media {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover {
  width: min(74vw, 410px);
  max-height: 70svh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-icon {
  position: absolute;
  right: clamp(4px, 4vw, 34px);
  bottom: clamp(20px, 7vw, 72px);
  width: clamp(94px, 14vw, 148px);
  border: 6px solid var(--white);
  border-radius: 22%;
  box-shadow: 0 18px 45px rgba(39, 48, 51, 0.22);
}

.preview-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 24px);
  padding: 22px clamp(20px, 5vw, 72px);
  background: var(--white);
  border-block: 1px solid var(--line);
}

.preview-band img {
  width: 100%;
  height: clamp(130px, 20vw, 230px);
  object-fit: contain;
  border-radius: 8px;
  background: var(--cream);
}

.section {
  padding: clamp(54px, 7vw, 98px) clamp(20px, 5vw, 72px);
}

.two-column,
.app-section,
.printable-section {
  max-width: var(--content-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.feature-list,
.use-grid {
  display: grid;
  gap: 14px;
}

.feature-list article,
.use-grid article,
.signup-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 22px;
  box-shadow: 0 10px 24px rgba(37, 83, 78, 0.07);
}

.feature-list p,
.use-grid p,
.app-section p,
.printable-section p {
  margin: 0;
  color: var(--muted);
}

.app-section {
  background: var(--mint);
  max-width: none;
  padding-inline: max(clamp(20px, 5vw, 72px), calc((100vw - var(--content-max)) / 2));
}

.device-preview {
  display: flex;
  justify-content: center;
}

.device-preview img {
  max-height: 680px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.metric-row span {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 8px;
  background: var(--white);
  padding: 14px;
  color: var(--muted);
}

.metric-row strong {
  color: var(--orange);
  font-size: 2rem;
  line-height: 1;
}

.printable-section {
  background: var(--peach);
  max-width: none;
  padding-inline: max(clamp(20px, 5vw, 72px), calc((100vw - var(--content-max)) / 2));
}

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

.form-row {
  align-items: stretch;
  margin-top: 0;
}

input {
  min-width: min(100%, 280px);
  min-height: 48px;
  flex: 1 1 250px;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

.form-help,
.form-status,
.download-link {
  margin-top: 12px;
  font-size: 0.95rem;
}

.form-status {
  min-height: 1.45em;
  color: var(--teal-dark);
  font-weight: 800;
}

.download-link {
  display: inline-flex;
  color: var(--teal-dark);
  font-weight: 900;
  text-underline-offset: 4px;
}

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

.use-section > div {
  max-width: var(--content-max);
  margin-inline: auto;
}

.use-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 30px 20px;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
  font-weight: 800;
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .two-column,
  .app-section,
  .printable-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(120deg, rgba(233, 249, 246, 0.96), rgba(255, 240, 223, 0.9)),
      url("assets/images/alphabet-fox.png") center top / 80vw no-repeat;
  }

  .hero-media {
    min-height: 430px;
    order: -1;
  }

  .book-cover {
    width: min(76vw, 330px);
  }

  .preview-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-row,
  .use-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(4rem, 21vw, 5.7rem);
  }

  h2 {
    font-size: clamp(1.75rem, 10vw, 2.45rem);
    line-height: 1.18;
  }

  nav {
    font-size: 0.92rem;
  }

  .button,
  .form-row button,
  input {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-media {
    min-height: 360px;
  }

  .app-icon {
    right: 8px;
    bottom: 26px;
  }
}
