:root {
  --bg: #f6efe4;
  --canvas: #fbf7f0;
  --panel: #fffaf2;
  --paper: #f2e8d9;
  --paper-muted: #e5d8c5;
  --ink: #12110f;
  --muted: #6f675d;
  --muted-strong: #4a443d;
  --line: rgba(18, 17, 15, 0.13);
  --line-strong: rgba(18, 17, 15, 0.24);
  --blue: #8bb1d6;
  --blue-ink: #315f8d;
  --blush: #d98f85;
  --blush-ink: #8f443d;
  --cream: #fff8ed;
  --shadow: 0 24px 72px rgba(58, 42, 22, 0.13);
  --photo-shadow: 0 32px 84px rgba(58, 42, 22, 0.22);
  --page-x: 1rem;
  color-scheme: light;
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.92) 0%, rgba(246, 239, 228, 0.98) 48%, rgba(242, 232, 217, 0.92) 100%),
    var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

body::before {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(18, 17, 15, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 17, 15, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}

body::after {
  opacity: 0.22;
  background-image: radial-gradient(rgba(18, 17, 15, 0.22) 0.8px, transparent 1px);
  background-size: 16px 16px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

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

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.1rem;
  padding: 0.85rem var(--page-x);
  background: rgba(251, 247, 240, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-logo {
  display: block;
  width: min(9rem, 42vw);
  height: auto;
}

nav {
  display: none;
  color: var(--muted);
  font-size: 0.9rem;
}

nav a {
  padding: 0.45rem 0;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  align-items: start;
  min-height: calc(100svh - 4.1rem);
  padding: clamp(3rem, 8vw, 4.8rem) var(--page-x) clamp(16.5rem, 52vw, 28rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.72) 0%, rgba(246, 239, 228, 0.9) 100%),
    linear-gradient(110deg, rgba(217, 143, 133, 0.12), transparent 38%, rgba(139, 177, 214, 0.13)),
    repeating-linear-gradient(90deg, rgba(18, 17, 15, 0.055) 0, rgba(18, 17, 15, 0.055) 1px, transparent 1px, transparent 120px);
}

.hero-copy-block {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy-block::before {
  position: absolute;
  inset: -1.2rem -0.8rem -0.9rem;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.94), rgba(255, 250, 242, 0.76) 74%, rgba(255, 250, 242, 0));
  filter: blur(8px);
  content: "";
}

.eyebrow,
.section-kicker {
  color: var(--blue-ink);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Iowan Old Style", "Apple Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 0.96;
}

h1 {
  max-width: 800px;
  margin: 0.85rem auto 1.2rem;
  color: var(--ink);
  font-size: 2.42rem;
}

h2 {
  color: var(--ink);
  font-size: 2.18rem;
}

h3 {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.1;
}

.hero-copy {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted-strong);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  max-width: 25rem;
  margin: 1.45rem auto 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 620;
  line-height: 1.15;
  letter-spacing: 0;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: progress;
  opacity: 0.64;
  transform: none;
}

.button.primary {
  background: var(--ink);
  color: var(--cream);
}

.button.primary:hover {
  background: #2a2520;
}

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(255, 250, 242, 0.62);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: rgba(49, 95, 141, 0.38);
  background: rgba(255, 250, 242, 0.88);
}

.button.full {
  width: 100%;
}

.hero-note {
  max-width: 620px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-artifact {
  position: absolute;
  left: 50%;
  bottom: -7.6rem;
  z-index: 1;
  width: min(31rem, 86vw);
  opacity: 0.78;
  transform: translateX(-50%) rotate(-2.5deg);
  pointer-events: none;
}

.hero-artifact img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  box-shadow: var(--photo-shadow);
  filter: saturate(0.94) contrast(0.98) brightness(1.02);
  object-fit: cover;
}

.manifesto {
  padding: 4.6rem var(--page-x) 4rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.74), rgba(246, 239, 228, 0.86)),
    linear-gradient(90deg, rgba(217, 143, 133, 0.12), transparent 46%, rgba(139, 177, 214, 0.12));
}

.manifesto-inner,
.section-heading {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.manifesto h2,
.section-heading h2,
.caution h2,
.waitlist h2 {
  margin-top: 0.8rem;
}

.manifesto-inner p:last-child,
.section-heading p:last-child,
.caution-copy p,
.waitlist-copy > p {
  color: var(--muted);
  font-size: 1.04rem;
}

.manifesto-inner p:last-child {
  max-width: 760px;
  margin: 1.25rem auto 0;
}

.signal-row {
  display: grid;
  gap: 1px;
  width: 100%;
  max-width: 1080px;
  margin: 3rem auto 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.signal-row > div {
  min-height: 9.5rem;
  padding: 1.3rem;
  background: rgba(255, 250, 242, 0.78);
}

.signal-row span,
.card-number {
  color: var(--blush-ink);
  font-size: 0.82rem;
  font-weight: 820;
}

.signal-row strong {
  display: block;
  margin-top: 1.35rem;
  color: var(--ink);
  font-family: "Iowan Old Style", "Apple Garamond", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.signal-row p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-pad {
  padding: 4.5rem var(--page-x);
}

.feature-grid {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 1120px;
  margin: 2.4rem auto 0;
}

.feature-card,
.form-card,
.caution-list > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-card {
  overflow: hidden;
  background: rgba(255, 250, 242, 0.84);
}

.feature-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  filter: saturate(0.96) contrast(0.99);
}

.feature-media-journal {
  object-position: 26% center;
}

.feature-media-consultation {
  object-position: 74% center;
}

.feature-body {
  padding: 1.3rem;
}

.feature-body h3 {
  margin-top: 0.8rem;
}

.feature-body p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.caution {
  display: grid;
  gap: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.56), rgba(242, 232, 217, 0.74)),
    var(--paper);
}

.caution-copy {
  max-width: 760px;
}

.caution-copy p {
  margin-top: 1rem;
}

.caution-list {
  display: grid;
  gap: 0.85rem;
}

.caution-list > div {
  padding: 1.25rem;
  background: rgba(255, 250, 242, 0.76);
}

.caution-list dt {
  color: var(--ink);
  font-family: "Iowan Old Style", "Apple Garamond", Georgia, serif;
  font-size: 1.5rem;
}

.caution-list dd {
  margin-top: 0.35rem;
  color: var(--muted);
}

.waitlist {
  display: grid;
  gap: 2rem;
  max-width: 1120px;
  margin: 0 auto;
}

.waitlist-copy {
  max-width: 720px;
}

.waitlist-copy > p {
  margin-top: 1rem;
}

.medical-note {
  padding: 1rem 0 0 1rem;
  border-left: 2px solid var(--blush);
  color: var(--muted) !important;
  font-size: 0.96rem !important;
}

.form-card {
  width: 100%;
  max-width: 32rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.1)),
    var(--panel);
  color: var(--ink);
}

.form-step,
.tally-step-head {
  display: grid;
  gap: 0.45rem;
}

.form-step h3,
.tally-step-head h3 {
  font-size: 1.42rem;
}

.step-label {
  color: var(--blue-ink);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.email-capture-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.email-capture-form label {
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 720;
}

.email-row {
  display: grid;
  gap: 0.65rem;
}

.email-row input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.email-row input::placeholder {
  color: rgba(74, 68, 61, 0.58);
}

.email-row input:focus {
  border-color: rgba(49, 95, 141, 0.58);
  outline: 2px solid rgba(139, 177, 214, 0.36);
  outline-offset: 2px;
}

.email-row input[aria-invalid="true"] {
  border-color: rgba(143, 68, 61, 0.82);
}

.form-status {
  min-height: 1.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status[data-tone="error"] {
  color: var(--blush-ink);
}

.form-status[data-tone="success"] {
  color: var(--blue-ink);
}

.tally-step {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.tally-step[hidden] {
  display: none;
}

.form-card iframe {
  display: block;
  width: 100%;
  min-height: 28rem;
  margin-top: 0.75rem;
  border: 0;
  border-radius: 8px;
  background: var(--cream);
}

.form-fallback {
  margin-top: 0.9rem;
  color: rgba(20, 20, 20, 0.68);
  font-size: 0.9rem;
}

.form-fallback a {
  color: #111111;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.5rem var(--page-x) 2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

@media (min-width: 520px) {
  :root {
    --page-x: 1.5rem;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .email-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .email-row .button {
    min-height: 3rem;
  }
}

@media (min-width: 760px) {
  :root {
    --page-x: 2rem;
  }

  nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
  }

  h1 {
    font-size: 4.6rem;
  }

  h2 {
    font-size: 3.4rem;
  }

  .hero {
    padding-top: clamp(4rem, 7vw, 6.4rem);
    padding-bottom: clamp(10rem, 16vw, 14rem);
  }

  .hero-copy {
    font-size: 1.1rem;
  }

  .hero-artifact {
    left: calc(50% + min(20rem, 24vw));
    bottom: -11.5rem;
    width: min(36rem, 42vw);
    opacity: 0.6;
    transform: translateX(-50%) rotate(3deg);
  }

  .manifesto,
  .section-pad {
    padding-top: 5.8rem;
    padding-bottom: 5.8rem;
  }

  .signal-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .feature-card-large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(20rem, 0.78fr);
  }

  .feature-card-large img {
    height: 100%;
    min-height: 24rem;
    aspect-ratio: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .feature-body {
    padding: 1.6rem;
  }

  .caution {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
    align-items: start;
  }

  .waitlist {
    grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 0.78fr);
    align-items: start;
  }

  .form-card {
    justify-self: end;
  }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1100px) {
  :root {
    --page-x: 3rem;
  }

  h1 {
    font-size: 5.55rem;
  }

  h2 {
    font-size: 4.35rem;
  }

  .hero-artifact {
    left: calc(50% + 24rem);
    bottom: -14.5rem;
    width: min(40rem, 38vw);
    opacity: 0.64;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
