:root {
  --paper: #f2ede3;
  --paper-warm: #eee5d8;
  --ink: #173326;
  --muted: #696d6d;
  --line: rgba(24, 38, 32, 0.48);
  --berry: #b40746;
  --berry-dark: #900038;
  --gold: #b88a05;
  --violet: #9f0d49;
  --blue: #1688c6;
  --green: #4f7644;
  --orange: #c75f05;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 68% 18%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(105deg, rgba(245, 240, 231, 0.96), rgba(231, 221, 207, 0.86)),
    repeating-linear-gradient(92deg, rgba(78, 59, 37, 0.022) 0 1px, transparent 1px 8px),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

.page {
  min-height: 100svh;
  overflow-x: clip;
}

.hero {
  width: min(100%, 1536px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(34px, 4.8vw, 76px) clamp(34px, 5.8vw, 92px) 154px;
  position: relative;
}

.copy {
  width: min(58vw, 820px);
  min-width: 610px;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(45px, 3.7vw, 60px);
  line-height: 0.9;
  letter-spacing: 0;
  text-decoration: none;
}

.brand span {
  color: var(--gold);
}

.menu {
  display: none;
}

.intro {
  padding-top: clamp(72px, 10vh, 116px);
}

h1 {
  width: min(760px, 100%);
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(76px, 6.2vw, 104px);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 span {
  white-space: nowrap;
}

.subcopy {
  width: min(410px, 100%);
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 1.55vw, 24px);
  line-height: 1.42;
  letter-spacing: 0.01em;
}

.note {
  margin: 38px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.signals {
  width: min(660px, 100%);
  margin: clamp(34px, 4.2vh, 48px) 0 0 -18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(86px, 1fr));
  list-style: none;
  color: #555d5d;
  font-size: clamp(12px, 1.05vw, 15px);
  line-height: 1.35;
  text-align: center;
}

.signals li {
  position: relative;
  min-width: 0;
  padding: 0 10px;
}

.rule {
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 1px;
  height: 46px;
  background: rgba(61, 68, 64, 0.36);
}

.dot {
  display: block;
  width: 7px;
  height: 7px;
  margin: 0 auto 15px;
  border-radius: 999px;
}

.metabolic {
  background: var(--gold);
}

.inflammation {
  background: var(--violet);
}

.muscle {
  background: var(--blue);
}

.gut {
  background: var(--green);
}

.nutrition {
  background: var(--orange);
}

.plate {
  width: min(46vw, 660px);
  margin: 0;
  position: absolute;
  top: 14px;
  right: clamp(18px, 4vw, 70px);
  z-index: 1;
}

.plate picture,
.plate img {
  display: block;
  width: 100%;
}

.plate img {
  mix-blend-mode: multiply;
}

.actionDock {
  width: min(100%, 1536px);
  min-height: 138px;
  padding: 22px clamp(34px, 5.8vw, 92px) 24px;
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 8;
  background: rgba(245, 240, 231, 0.86);
  border-top: 1px solid rgba(24, 38, 32, 0.28);
  backdrop-filter: blur(14px);
}

.waitlist {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(380px, 1.08fr);
  align-items: end;
  gap: clamp(34px, 5vw, 70px);
}

.field {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 17px;
}

.field span {
  display: block;
  margin-bottom: 10px;
}

.field input {
  width: 100%;
  height: 44px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
  font-size: 21px;
}

.field input:focus {
  border-bottom-color: var(--berry);
}

.field input[aria-invalid="true"] {
  border-bottom-color: #a73a2f;
}

.submit {
  min-height: 80px;
  border: 0;
  border-radius: 0;
  padding: 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 7vw, 190px);
  color: #fff7f4;
  background: linear-gradient(135deg, var(--berry), var(--berry-dark));
  box-shadow: 0 18px 38px rgba(121, 0, 47, 0.24);
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.1;
}

.submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(121, 0, 47, 0.28);
}

.submit:active {
  transform: translateY(0);
  opacity: 0.92;
}

.submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.submit span:last-child {
  font-size: 42px;
  line-height: 0.7;
}

.message {
  min-height: 20px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.message.error {
  color: #953326;
}

.message.success {
  color: var(--ink);
}

.access {
  margin: -18px 0 0;
  color: #5f6464;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-align: center;
}

@media (min-width: 1320px) {
  .hero {
    padding-bottom: 160px;
  }

  .copy {
    width: 740px;
  }

  .plate {
    width: 660px;
  }
}

@media (max-width: 980px) {
  :root {
    --mobile-dock-height: 170px;
  }

  body {
    overflow-x: hidden;
  }

  .hero {
    min-height: 100svh;
    padding: 38px 52px calc(var(--mobile-dock-height) + 28px);
    overflow: hidden;
  }

  .copy {
    width: 100%;
    min-width: 0;
    position: static;
  }

  .brand {
    font-size: 54px;
    position: relative;
    z-index: 3;
  }

  .menu {
    width: 46px;
    height: 34px;
    padding: 0;
    display: grid;
    gap: 8px;
    position: absolute;
    top: 52px;
    right: 62px;
    z-index: 5;
    border: 0;
    background: transparent;
  }

  .menu span {
    height: 2px;
    background: var(--ink);
  }

  .intro {
    padding-top: clamp(70px, 9svh, 94px);
    position: relative;
    z-index: 2;
  }

  h1 {
    width: min(620px, 70vw);
    font-size: clamp(68px, 11.8vw, 108px);
    line-height: 0.92;
  }

  h1 span {
    white-space: normal;
  }

  .subcopy {
    width: min(500px, 62vw);
    margin-top: clamp(24px, 3.2svh, 34px);
    font-size: clamp(21px, 2.8vw, 28px);
    line-height: 1.44;
  }

  .note {
    margin-top: clamp(20px, 2.8svh, 28px);
    font-size: clamp(16px, 2vw, 20px);
  }

  .plate {
    width: min(70vw, 620px);
    top: clamp(178px, 22svh, 238px);
    right: max(-18vw, -140px);
  }

  .plate img {
    -webkit-mask-image: radial-gradient(ellipse at 72% 56%, #000 0 48%, rgba(0, 0, 0, 0.9) 62%, transparent 84%);
    mask-image: radial-gradient(ellipse at 72% 56%, #000 0 48%, rgba(0, 0, 0, 0.9) 62%, transparent 84%);
  }

  .signals {
    width: auto;
    margin: 0;
    position: absolute;
    left: 52px;
    right: 52px;
    bottom: calc(var(--mobile-dock-height) + 42px);
    z-index: 3;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    font-size: clamp(14px, 1.85vw, 18px);
  }

  .actionDock {
    min-height: var(--mobile-dock-height);
    padding: 12px 52px calc(12px + env(safe-area-inset-bottom));
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    margin: 0;
    border-top-color: rgba(24, 38, 32, 0.26);
  }

  .waitlist {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .field {
    font-size: 15px;
  }

  .field span {
    margin-bottom: 4px;
  }

  .field input {
    height: 34px;
    font-size: 18px;
  }

  .submit {
    min-height: 58px;
    border-radius: 7px;
    font-size: 20px;
    gap: 0;
  }

  .submit span:last-child {
    display: none;
  }

  .message {
    min-height: 16px;
    margin-top: 5px;
    font-size: 12px;
  }

  .access {
    margin-top: 4px;
    font-size: 12px;
    letter-spacing: 0.18em;
  }
}

@media (max-width: 640px) {
  :root {
    --mobile-dock-height: 148px;
  }

  .hero {
    padding: 40px 28px calc(var(--mobile-dock-height) + 24px);
  }

  .brand {
    font-size: 48px;
  }

  .menu {
    top: 54px;
    right: 32px;
    width: 44px;
  }

  .intro {
    padding-top: clamp(70px, 9.5svh, 94px);
  }

  h1 {
    width: min(70vw, 330px);
    font-size: clamp(52px, 14.2vw, 70px);
    line-height: 0.94;
  }

  .subcopy {
    width: min(66vw, 310px);
    margin-top: clamp(20px, 2.8svh, 28px);
    font-size: clamp(18px, 4.9vw, 23px);
    line-height: 1.43;
  }

  .note {
    width: min(76vw, 340px);
    margin-top: clamp(16px, 2.2svh, 24px);
    font-size: 15px;
    line-height: 1.55;
  }

  .plate {
    width: min(76vw, 330px);
    top: clamp(190px, 24svh, 238px);
    right: max(-22vw, -88px);
  }

  .signals {
    left: 28px;
    right: 28px;
    bottom: calc(var(--mobile-dock-height) + 38px);
    font-size: clamp(11px, 3.15vw, 13px);
    line-height: 1.25;
  }

  .signals li {
    padding: 0 5px;
  }

  .rule {
    height: 42px;
  }

  .actionDock {
    min-height: var(--mobile-dock-height);
    padding: 10px 28px calc(10px + env(safe-area-inset-bottom));
    width: 100%;
  }

  .field {
    font-size: 13px;
  }

  .field input {
    height: 32px;
    font-size: 16px;
  }

  .submit {
    min-height: 50px;
    font-size: 17px;
  }

  .access {
    font-size: 10px;
  }
}

@media (max-width: 420px) {
  :root {
    --mobile-dock-height: 144px;
  }

  .hero {
    padding-left: 24px;
    padding-right: 24px;
  }

  h1 {
    width: min(72vw, 300px);
    font-size: clamp(50px, 13.8vw, 60px);
  }

  .subcopy {
    width: min(69vw, 290px);
    font-size: clamp(18px, 4.9vw, 20px);
  }

  .plate {
    width: min(78vw, 306px);
    right: max(-23vw, -82px);
  }

  .signals {
    left: 18px;
    right: 18px;
    font-size: 12px;
  }

  .actionDock {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 640px) and (max-height: 740px) {
  :root {
    --mobile-dock-height: 128px;
  }

  .hero {
    padding-top: 30px;
  }

  .brand {
    font-size: 42px;
  }

  .menu {
    top: 42px;
  }

  .intro {
    padding-top: 58px;
  }

  h1 {
    width: min(70vw, 280px);
    font-size: clamp(44px, 12.6vw, 52px);
  }

  .subcopy {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.34;
  }

  .note {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.35;
  }

  .plate {
    width: min(70vw, 276px);
    top: 176px;
    right: max(-20vw, -76px);
  }

  .signals {
    bottom: calc(var(--mobile-dock-height) + 26px);
    font-size: 10px;
  }

  .dot {
    margin-bottom: 9px;
  }

  .rule {
    height: 36px;
  }

  .actionDock {
    padding-top: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }

  .waitlist {
    gap: 6px;
  }

  .field span {
    margin-bottom: 2px;
    font-size: 11px;
  }

  .field input {
    height: 26px;
    font-size: 15px;
  }

  .submit {
    min-height: 44px;
    font-size: 16px;
  }

  .message {
    min-height: 0;
    margin-top: 3px;
    font-size: 10px;
  }

  .access {
    margin-top: 3px;
    font-size: 9px;
  }
}
