/* Chefs Kitch website. Colors come from the logo: plum script, white hat, gold spoon. */
:root {
  --bg: #FFFFFF;
  --ink: #241433;       /* plum-black, for text */
  --muted: #6B5B7B;
  --line: #E9E1F0;
  --purple: #5B2A86;    /* the logo's script */
  --gold: #C9A227;      /* the spoon */
  --wash: #F6F1FA;      /* the one tinted band */
  --on-purple: #FFFFFF;
  /* kept for the other pages */
  --surface: #F6F1FA; --soft: #ECE2F5; --border: #E9E1F0; --success: #22A06B;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17101F; --ink: #F2ECF7; --muted: #B2A5C1; --line: #33263F; --purple: #B18BE0;
    --gold: #D9B648; --wash: #20172B; --on-purple: #17101F;
    --surface: #20172B; --soft: #2C2039; --border: #33263F;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.6 'Figtree', system-ui, sans-serif; }
a { color: var(--purple); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: 'Young Serif', Georgia, serif; font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Nav: the real logo, small */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: block; text-decoration: none; }
.brand img { display: block; height: 92px; width: auto; }
@media (prefers-color-scheme: dark) {
  /* The logo was drawn for white, so it sits on a little white plate */
  .brand img { background: #fff; border-radius: 14px; padding: 6px 8px; }
}
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 16px; font-weight: 600; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--purple); }
.nav-links .nav-cta { color: var(--purple); }

/* Hero: headline on the left, the week on the right */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 48px 0 96px; }
.hero h1 { font-size: clamp(46px, 6.4vw, 84px); line-height: 1; color: var(--purple); max-width: 12ch; text-wrap: balance; }
.lead { font-size: 21px; line-height: 1.5; color: var(--ink); max-width: 30ch; margin: 24px 0 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; }
.button.primary { background: var(--purple); color: var(--on-purple); }
.button.primary:hover { filter: brightness(1.08); }
.note { font-size: 15px; color: var(--muted); margin: 14px 0 0; }

/* Beta sign-up form */
.join { max-width: 520px; }
.join .fields { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.join label > span, .phone-pick legend { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.join input[type=email], .join input[name=name] {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px;
}
.join input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--purple); }
.phone-pick { border: 0; padding: 0; margin: 16px 0 20px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.phone-pick legend { float: left; margin: 0 8px 0 0; }
.phone-pick label { position: relative; }
.phone-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.phone-pick label span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: 15px; }
.phone-pick input:checked + span { border-color: var(--purple); color: var(--purple); background: var(--wash); }
.phone-pick input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join button { border: 0; cursor: pointer; font-family: inherit; }
.join button:disabled { opacity: 0.6; cursor: default; }
.form-msg { min-height: 1.4em; margin: 10px 0 0; font-size: 15px; }
.form-msg.bad { color: #C2410C; }
.joined { font-size: 19px; line-height: 1.5; background: var(--wash); border-radius: 18px; padding: 18px 20px; margin: 0; }
.joined strong { color: var(--purple); }

/* Real app screens in a plain phone bezel */
.phone { margin: 0; justify-self: center; width: 100%; max-width: 360px; border: 10px solid #0E0914; border-radius: 44px; overflow: hidden; background: #1A1226; }
.phone img { display: block; width: 100%; height: auto; }
.hero-phone { max-width: 380px; transform: rotate(2deg); }

/* Who's cooking: the week as a list next to the real plan screen */
.week-section .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.week-copy h2 { font-size: clamp(34px, 4.4vw, 52px); color: var(--purple); }
.week-copy > p { color: var(--muted); max-width: 40ch; margin: 16px 0 36px; }

/* The week: the app's own idea, each night outlined in the cook's color */
.week { margin: 0; }
.week figcaption { font-family: 'Allura', cursive; font-size: 46px; line-height: 1; color: var(--purple); margin: 0 0 14px 4px; }
.week ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.week li {
  display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-items: baseline;
  padding: 14px 0 14px 18px; border-bottom: 1px solid var(--line); position: relative;
}
.week li::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 5px; border-radius: 3px; background: var(--cook, transparent); }
.week .day { grid-row: span 2; font-weight: 700; font-size: 15px; color: var(--muted); }
.week .dish { font-family: 'Young Serif', Georgia, serif; font-size: 22px; line-height: 1.25; }
.week .who { font-size: 15px; color: var(--muted); }
.week li.off::before { background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 10px); }
.week li.off .dish { color: var(--muted); }

/* Three short points, plain text */
section { padding: 88px 0; }
.points { background: var(--wash); }

/* Two more screens, side by side */
.screens .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 880px; }
.screens figure { margin: 0; }
.screens .phone { max-width: 340px; }
.screens figcaption { font-family: 'Young Serif', Georgia, serif; font-size: 22px; line-height: 1.3; text-align: center; margin: 22px auto 0; max-width: 18ch; }
.points .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.point h2 { font-size: 28px; }
.point p { color: var(--muted); margin: 12px 0 0; max-width: 32ch; }

/* At the stove */
.kitchen .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.kitchen h2 { font-size: clamp(34px, 4.4vw, 52px); max-width: 14ch; }
.kitchen ul { list-style: none; margin: 0; padding: 0; }
.kitchen li { font-size: 21px; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); position: relative; }
.kitchen li:first-child { padding-top: 4px; }
.kitchen li::before { content: ''; position: absolute; left: 4px; top: calc(16px + 0.8em - 7px); width: 14px; height: 14px; border-radius: 50%; background: var(--gold); }
.kitchen li:first-child::before { top: calc(4px + 0.8em - 7px); }

/* Closing */
.closing { text-align: center; padding: 96px 0 104px; border-top: 1px solid var(--line); }
.closing .script { font-family: 'Allura', cursive; font-size: 52px; color: var(--gold); margin: 0; line-height: 1; }
.closing h2 { font-size: clamp(32px, 4.4vw, 50px); margin: 10px auto 32px; max-width: 18ch; }

/* Footer */
footer { padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
footer .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
footer a { color: var(--muted); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Privacy and terms */
.policy { max-width: 720px; margin: 0 auto; padding: 24px 24px 72px; }
.policy h1 { font-size: clamp(36px, 5vw, 52px); color: var(--purple); }
.policy h2 { font-size: 24px; margin-top: 40px; }
.policy .updated { color: var(--muted); }

/* Small labels used on the beta page */
.pill { display: inline-block; background: var(--gold); color: #241433; font-size: 14px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding: 24px 0 72px; }
  .points .wrap { grid-template-columns: 1fr; gap: 36px; }
  .kitchen .wrap { grid-template-columns: 1fr; gap: 32px; }
  .week-section .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-phone { transform: none; }
  section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .brand img { height: 60px; }
  .nav-links { gap: 16px; font-size: 15px; }
  .nav-links a:first-child { display: none; }
  .lead { font-size: 19px; }
  .week li { grid-template-columns: 48px 1fr; column-gap: 12px; }
  .week .dish { font-size: 19px; }
  .kitchen li { font-size: 19px; }
  .join .fields { grid-template-columns: 1fr; }
  .screens .wrap { grid-template-columns: 1fr; gap: 56px; }
  .phone { max-width: 300px; border-width: 8px; border-radius: 38px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
