:root {
  --ink: #17201f;
  --muted: #59635f;
  --paper: #fbf6eb;
  --paper-soft: #efe6d7;
  --white: #fffdf8;
  --teal: #0c756b;
  --teal-dark: #064f49;
  --clay: #b85f4d;
  --gold: #d5a84e;
  --line: rgba(23, 32, 31, 0.14);
  --shadow: 0 24px 70px rgba(23, 32, 31, 0.14);
  --radius: 8px;
  --progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Atkinson Hyperlegible", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(23, 32, 31, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 31, 0.018) 1px, transparent 1px);
  background-size: 100% 3.15rem, 4.6rem 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

::selection {
  color: var(--white);
  background: var(--teal);
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: 3px;
}

.progress span {
  display: block;
  width: calc(var(--progress) * 100%);
  height: 100%;
  background: var(--teal);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem clamp(1rem, 5vw, 4rem);
  background: rgba(251, 246, 235, 0.92);
  backdrop-filter: blur(14px);
  transition: box-shadow 420ms ease, background 420ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 246, 235, 0.97);
  box-shadow: 0 12px 32px rgba(23, 32, 31, 0.08);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.96rem;
  font-weight: 700;
}

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

.nav-links {
  justify-self: center;
  display: inline-flex;
  gap: 1.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a,
.nav-cta,
.button,
.text-button,
.lesson-button {
  transition: transform 280ms ease, color 280ms ease, background 280ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  justify-self: end;
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 1rem;
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-cta:hover,
.nav-cta:focus-visible,
.button:hover,
.button:focus-visible,
.text-button:hover,
.text-button:focus-visible,
.lesson-button:hover,
.lesson-button:focus-visible {
  transform: translateY(-1px);
}

.hero {
  min-height: calc(96svh - 4.4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(23rem, 42rem);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
}

.hero-left {
  max-width: 58rem;
}

.issue-label,
.eyebrow,
.photo-card span,
.note-card span,
.message-card span,
.result-card span,
.practice-card span {
  margin: 0 0 1rem;
  color: var(--teal);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  line-height: 1.25;
  font-weight: 600;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 10.5ch;
  margin-bottom: 1.2rem;
  font-size: clamp(4.2rem, 9vw, 9rem);
  line-height: 0.87;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.55rem, 5.4vw, 5.8rem);
  line-height: 0.94;
}

h3 {
  margin-bottom: 0.38rem;
  font-size: 1.16rem;
  line-height: 1.15;
}

.hero-copy,
.sample-copy p,
.family-copy > p,
.final-copy p,
.kit-item p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.34vw, 1.22rem);
  line-height: 1.58;
  font-weight: 400;
}

.hero-copy {
  max-width: 43rem;
  margin-bottom: 1.55rem;
}

.hero-actions,
.lesson-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button {
  min-height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 0 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.button svg,
.text-button svg {
  width: 1rem;
  height: 1rem;
}

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

.button.quiet {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
}

.hero-board {
  position: relative;
  min-height: min(68svh, 44rem);
}

.photo-card,
.phone-card,
.note-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.photo-card {
  overflow: hidden;
  width: 78%;
  transform: rotate(1deg);
}

.photo-card img {
  width: 100%;
  height: clamp(18rem, 42vw, 32rem);
  object-fit: cover;
}

.photo-card span {
  display: block;
  margin: 0;
  padding: 0.75rem 0.85rem;
  color: var(--muted);
  background: var(--white);
}

.phone-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(18rem, 48%);
  overflow: hidden;
  border: 0.55rem solid #111817;
  border-radius: 2.1rem;
  transform: rotate(-2deg);
}

.phone-card img {
  width: 100%;
}

.note-card {
  position: absolute;
  left: 4%;
  bottom: 8%;
  width: min(19rem, 58%);
  padding: 1rem;
  background: #fff8cf;
  transform: rotate(-1.7deg);
}

.note-card span {
  margin-bottom: 0.35rem;
  color: var(--clay);
}

.note-card strong {
  display: block;
  font-family: "Caveat", "Comic Sans MS", cursive;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 0.96;
}

.pause-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  background: var(--white);
}

.pause-strip span {
  min-height: 7rem;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--teal-dark);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 3rem);
  font-weight: 700;
}

.pause-strip span:last-child {
  border-right: 0;
}

.section {
  padding: clamp(4.8rem, 9vw, 8rem) clamp(1rem, 5vw, 4rem);
}

.section-heading,
.kit-title,
.practice-heading {
  width: min(64rem, 100%);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.why-section {
  background: var(--paper);
}

.field-notes {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.field-note {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}

.field-note:nth-child(2) {
  margin-top: 4rem;
}

.field-note:nth-child(3) {
  margin-top: 1.7rem;
}

.field-note span {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--clay);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
}

.field-note p {
  margin: 0;
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  line-height: 1.04;
}

.check-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(20rem, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  background: var(--paper-soft);
}

.sample-copy {
  position: sticky;
  top: 6rem;
}

.sample-card,
.practice-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.35rem);
  background: var(--white);
  box-shadow: var(--shadow);
}

.message-card {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
}

.message-card span,
.result-card span,
.practice-card span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--muted);
}

.message-card p,
.practice-card p,
blockquote {
  margin-bottom: 0;
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3.6vw, 3rem);
  line-height: 1.08;
}

.result-card {
  padding: 1rem;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--teal-dark);
}

.result-card span {
  color: rgba(255, 253, 248, 0.64);
}

.result-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.1;
}

.result-card p {
  margin: 0;
  color: rgba(255, 253, 248, 0.82);
  line-height: 1.5;
}

.text-button {
  width: max-content;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  margin-top: 0.75rem;
  padding: 0;
  color: var(--teal-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.message-card.is-changing,
.result-card.is-changing {
  animation: softSwap 460ms ease;
}

.kit-section {
  background: var(--paper);
}

.kit-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.kit-item {
  min-height: 17rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.2rem;
  background: var(--white);
}

.kit-item:nth-child(even) {
  background: #f6f0e5;
}

.kit-item svg {
  width: 2rem;
  height: 2rem;
  margin-bottom: auto;
  color: var(--teal);
}

.kit-item p {
  margin: 0;
}

.family-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  padding: clamp(4.8rem, 9vw, 8rem) clamp(1rem, 5vw, 4rem);
  background: #121918;
  color: var(--white);
}

.family-photo {
  overflow: hidden;
  border-radius: var(--radius);
  transform: rotate(-0.8deg);
}

.family-photo img {
  width: 100%;
  height: min(60svh, 39rem);
  object-fit: cover;
  filter: saturate(0.82) contrast(1.03) brightness(0.88);
}

.family-copy {
  max-width: 54rem;
}

.family-copy .eyebrow {
  color: #bfe8de;
}

.family-copy > p {
  color: rgba(255, 253, 248, 0.76);
}

blockquote {
  margin: 1.5rem 0 0;
  border-left: 3px solid #bfe8de;
  padding-left: 1rem;
  color: var(--white);
}

.practice-section {
  background: var(--paper);
}

.lesson-row {
  margin-bottom: 1rem;
}

.lesson-button {
  min-height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 1rem;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-weight: 700;
}

.lesson-button.is-active {
  color: var(--white);
  background: var(--teal);
}

.practice-card {
  width: min(66rem, 100%);
}

.practice-card p {
  margin-bottom: 1rem;
}

.practice-card strong {
  color: var(--teal-dark);
}

.final-section {
  display: grid;
  place-items: center;
  min-height: 68svh;
  padding: clamp(4.8rem, 9vw, 8rem) clamp(1rem, 5vw, 4rem);
  text-align: center;
  background: var(--paper-soft);
}

.final-copy {
  width: min(52rem, 100%);
}

.final-copy p:not(.eyebrow) {
  max-width: 36rem;
  margin: 0 auto 0.25rem;
}

.final-copy .button {
  margin-top: 0.7rem;
}

.legal-page {
  min-height: 78svh;
  padding: clamp(4.8rem, 9vw, 8rem) clamp(1rem, 5vw, 4rem);
}

.legal-hero {
  width: min(62rem, 100%);
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
}

.legal-hero h1 {
  max-width: 9.5ch;
  font-size: clamp(3.8rem, 8vw, 7.8rem);
}

.legal-hero p:not(.eyebrow),
.legal-list p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.34vw, 1.2rem);
  line-height: 1.65;
}

.legal-hero .button {
  margin-top: 1rem;
}

.legal-list {
  width: min(74rem, 100%);
  border-top: 1px solid var(--line);
}

.legal-list article {
  display: grid;
  grid-template-columns: minmax(12rem, 0.42fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.35rem, 3vw, 2.2rem) 0;
}

.legal-list h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
}

.legal-list p {
  margin: 0;
}

.legal-list a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 5vw, 4rem);
  color: rgba(255, 253, 248, 0.68);
  background: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.site-footer a {
  color: #bfe8de;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 850ms ease,
    transform 850ms cubic-bezier(0.2, 0.72, 0.16, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes softSwap {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  45% {
    opacity: 0;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .check-section,
  .family-section {
    grid-template-columns: 1fr;
  }

  .hero-board {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.55fr);
    gap: 1rem;
  }

  .photo-card,
  .phone-card,
  .note-card {
    position: static;
    width: auto;
    transform: none;
  }

  .note-card {
    grid-column: 1 / -1;
  }

  .field-notes {
    grid-template-columns: 1fr;
  }

  .field-note:nth-child(2),
  .field-note:nth-child(3) {
    margin-top: 0;
  }

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

  .sample-copy {
    position: static;
  }

  .legal-list article {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 0.85rem;
  }

  .brand {
    font-size: 0.9rem;
  }

  .brand img {
    width: 2.15rem;
    height: 2.15rem;
  }

  .nav-cta {
    min-height: 2.45rem;
    padding-inline: 0.75rem;
  }

  h1 {
    font-size: clamp(3.55rem, 17vw, 5.4rem);
  }

  h2 {
    font-size: clamp(2.35rem, 11vw, 3.9rem);
  }

  .hero,
  .section,
  .check-section,
  .family-section,
  .final-section {
    padding-inline: 1rem;
  }

  .hero-board {
    grid-template-columns: 1fr;
  }

  .kit-list {
    grid-template-columns: 1fr;
  }

  .kit-item {
    min-height: 12rem;
  }

  .pause-strip {
    grid-template-columns: 1fr;
  }

  .pause-strip span {
    min-height: 4.8rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pause-strip span:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
