* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --ink: #241d18;
  --muted: #6f645c;
  --paper: #fffdf8;
  --milk: #f7f1e8;
  --line: #eadfce;
  --wood: #b76e3c;
  --tomato: #b84432;
  --sage: #687d5f;
  --honey: #d99a45;
  --deep: #312116;
  --shadow: 0 24px 80px rgba(52, 33, 20, 0.14);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.78);
  border-bottom: 1px solid rgba(234, 223, 206, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(183, 110, 60, 0.28);
  border-radius: 8px;
  background: #fff7ed;
  color: var(--wood);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 18px;
  color: #534840;
  font-size: 0.94rem;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--wood);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: var(--milk);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("/images/rouxchef-hero.png");
  background-position: 60% center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.97) 0%, rgba(255, 253, 248, 0.9) 36%, rgba(255, 253, 248, 0.45) 68%, rgba(255, 253, 248, 0.22) 100%),
    linear-gradient(0deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 253, 248, 0) 24%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1160px, calc(100% - 40px));
  min-height: 760px;
  margin: 0 auto;
  padding: 122px 0 76px;
  align-items: center;
  gap: 36px;
}

.hero-copy {
  min-width: 0;
  max-width: 680px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--wood);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 640px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.55rem;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-text,
.section-copy p,
.emphasis p,
.feature-card span,
details p,
.footer p {
  color: var(--muted);
}

.hero-text {
  max-width: 600px;
  margin-bottom: 32px;
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 760;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

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

.button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(217, 154, 69, 0.38);
  outline-offset: 3px;
}

.button.primary {
  color: #fffaf1;
  background: var(--deep);
  box-shadow: 0 14px 34px rgba(49, 33, 22, 0.22);
}

.button.primary:hover {
  background: #442b1b;
}

.button.secondary {
  color: var(--deep);
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(49, 33, 22, 0.16);
}

.hero-phone {
  display: none;
}

.phone-shell {
  position: relative;
  width: 254px;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(145deg, #241d18, #17110d);
  box-shadow: var(--shadow);
}

.phone-shell::before,
.phone-shell::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
}

.phone-shell::before {
  top: 22px;
  width: 72px;
  height: 21px;
  border-radius: 999px;
  background: #17110d;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 241, 0.05);
}

.phone-shell::after {
  bottom: 18px;
  width: 78px;
  height: 4px;
  border-radius: 999px;
  background: rgba(36, 29, 24, 0.2);
}

.mini-phone {
  border-radius: 34px;
  padding: 10px;
  background: #241d18;
  box-shadow: var(--shadow);
}

.phone-screen,
.mini-screen {
  min-height: 100%;
  border-radius: 26px;
  background: #fffaf1;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.phone-screen {
  width: 100%;
  min-height: 522px;
  padding: 58px 18px 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.phone-top,
.ingredient-row,
.recipe-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-top {
  margin-bottom: 20px;
  color: var(--sage);
  font-size: 0.82rem;
}

.phone-top strong {
  color: var(--tomato);
}

.phone-screen h2 {
  margin-bottom: 18px;
  font-size: 1.28rem;
  line-height: 1.1;
  text-wrap: balance;
}

.ingredient-row {
  min-height: 42px;
  margin-bottom: 9px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  font-size: 0.84rem;
  gap: 8px;
}

.ingredient-row small {
  color: var(--sage);
  font-weight: 760;
}

.recipe-card {
  display: block;
  margin-top: auto;
  padding: 14px;
  border-radius: 14px;
  background: #2f271f;
  color: #fffaf1;
}

.recipe-card span {
  display: block;
  margin-bottom: 8px;
  color: #d9cbb9;
  font-size: 0.75rem;
  font-weight: 760;
  text-transform: uppercase;
}

.recipe-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.96rem;
  line-height: 1.18;
}

.recipe-card p {
  margin: 0;
  color: #efe4d2;
  font-size: 0.82rem;
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0;
}

.section-copy {
  max-width: 690px;
}

.section-copy p {
  font-size: 1.06rem;
}

.intro {
  display: grid;
  gap: 30px;
  align-items: end;
}

.outcome-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.outcome-strip span {
  min-height: 48px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
  color: #4f443b;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  gap: 14px;
  padding-top: 0;
}

.feature-card {
  min-height: 214px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
  box-shadow: 0 18px 56px rgba(79, 55, 34, 0.06);
}

.feature-card p {
  margin-bottom: 14px;
  color: var(--tomato);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.feature-card span {
  display: block;
}

.section.product-flow {
  width: 100%;
  max-width: none;
  padding: 84px max(20px, calc((100% - 1160px) * 0.5));
  background: #f6efe4;
}

.product-flow .section-copy {
  max-width: 760px;
}

.screens {
  display: grid;
  gap: 26px;
  max-width: 920px;
  margin: 36px auto 0;
  align-items: end;
}

.mini-phone {
  position: relative;
  width: min(100%, 254px);
  margin: 0 auto;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(145deg, #241d18, #17110d);
  box-shadow: 0 26px 70px rgba(52, 33, 20, 0.18);
}

.mini-phone::before,
.mini-phone::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
}

.mini-phone::before {
  top: 22px;
  width: 72px;
  height: 21px;
  border-radius: 999px;
  background: #17110d;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 241, 0.05);
}

.mini-phone::after {
  bottom: 18px;
  width: 78px;
  height: 4px;
  border-radius: 999px;
  background: rgba(36, 29, 24, 0.2);
}

.mini-screen {
  min-height: 522px;
  padding: 58px 20px 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mini-screen p {
  margin-bottom: 14px;
  color: var(--wood);
  font-size: 0.86rem;
  font-weight: 760;
}

.mini-screen strong {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1.1;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.mini-screen span {
  color: var(--muted);
  font-size: 0.94rem;
}

.mini-screen button {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  border: 0;
  border-radius: 8px;
  color: #fffaf1;
  background: var(--sage);
  font-weight: 760;
}

.scan-line {
  position: relative;
  height: 134px;
  margin-top: auto;
  border-radius: 16px;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(49, 33, 22, 0.12),
      rgba(49, 33, 22, 0.12) 2px,
      transparent 2px,
      transparent 12px
    ),
    #fffdf8;
  border: 1px solid var(--line);
}

.scan-line::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 48%;
  height: 2px;
  background: var(--tomato);
}

.progress-lines {
  display: grid;
  gap: 11px;
  margin-top: auto;
}

.progress-lines i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sage), rgba(104, 125, 95, 0.18));
}

.progress-lines i:nth-child(2) {
  width: 72%;
  background: linear-gradient(90deg, var(--honey), rgba(217, 154, 69, 0.18));
}

.progress-lines i:nth-child(3) {
  width: 48%;
  background: linear-gradient(90deg, var(--tomato), rgba(184, 68, 50, 0.16));
}

.emphasis {
  display: grid;
  gap: 24px;
  align-items: start;
}

.emphasis h2 {
  margin-bottom: 0;
}

.emphasis p {
  font-size: 1.08rem;
}

.waitlist {
  display: grid;
  gap: 30px;
  align-items: start;
}

.waitlist-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: #4f443b;
  font-size: 0.92rem;
  font-weight: 720;
}

input,
textarea {
  width: 100%;
  border: 1px solid #dfd2bf;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
}

input {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 108px;
  padding: 13px 14px;
  resize: vertical;
}

.form-button {
  width: 100%;
}

.form-button:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status[data-state="success"] {
  color: var(--sage);
}

.form-status[data-state="error"] {
  color: var(--tomato);
}

.confirmation-dialog {
  width: min(430px, calc(100% - 40px));
  max-width: none;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: transparent;
}

.confirmation-dialog::backdrop {
  background: rgba(36, 29, 24, 0.38);
  backdrop-filter: blur(10px);
}

.confirmation-card {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(234, 223, 206, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(255, 250, 241, 0.96)),
    #fffdf8;
  box-shadow: 0 34px 90px rgba(36, 29, 24, 0.22);
}

.confirmation-mark {
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(104, 125, 95, 0.32);
  border-radius: 8px;
  background: #f1eadc;
}

.confirmation-mark::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 11px;
  width: 11px;
  height: 19px;
  border: solid var(--sage);
  border-width: 0 3px 3px 0;
  transform: rotate(42deg);
}

.confirmation-card .kicker {
  margin-bottom: -4px;
}

.confirmation-card h2 {
  margin-bottom: 0;
  font-size: 2rem;
}

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

.confirmation-card .button {
  width: 100%;
  margin-top: 4px;
}

.faq {
  display: grid;
  gap: 26px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 760;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
}

.footer p {
  margin-bottom: 0;
}

.footer a:last-child {
  color: var(--wood);
  font-weight: 700;
}

@media (min-width: 700px) {
  .site-header {
    padding: 18px 34px;
  }

  .nav-links {
    display: flex;
  }

  .hero-inner {
    width: min(1160px, calc(100% - 68px));
  }

  h1 {
    font-size: 4.45rem;
  }

  h2 {
    font-size: 2.85rem;
  }

  .section {
    width: min(1160px, calc(100% - 68px));
  }

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

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

  .waitlist,
  .emphasis,
  .faq,
  .intro {
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  }

  .footer {
    width: min(1160px, calc(100% - 68px));
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 760px) and (max-width: 1059px) {
  .screens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 610px;
  }

  .screens .mini-phone:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .hero-phone {
    display: block;
    justify-self: end;
  }
}

@media (min-width: 1060px) {
  .screens {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 58px);
  }

  .mini-phone {
    width: min(100%, 252px);
  }

  .mini-phone.raised {
    transform: translateY(-28px);
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 14px 18px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 253, 248, 0.9) 58%, rgba(255, 253, 248, 0.55) 100%),
      linear-gradient(0deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 253, 248, 0) 24%);
  }

  .hero-inner {
    width: calc(100% - 40px);
    min-height: 720px;
    padding-top: 112px;
    padding-bottom: 54px;
  }

  h1 {
    font-size: 2.72rem;
    line-height: 1.04;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 58px 0;
  }

  .section.product-flow {
    padding: 64px 20px;
  }
}
