/* The Bake Down — waitlist landing page.
   Tokens and every measurement follow README.md ("Design tokens" / "Page structure"). */

:root {
  --bake-red: #C3204A;
  --rose: #FF5C7A;
  --butter: #FFDE59;
  --cream: #FFF4E0;
  --off-white: #FFFDF7;
  --ink: #1C1A17;
  --light-pink: #FFD5DC;
  --mid-pink: #FF8FA6;
  --green: #56B98A;
  --rule: #F0DEC0;
  --body-text: #6B6156;
  --muted: #8A8072;
  --faint: #A29886;
  --faint-2: #B5A894;
  --terracotta: #8A4438;
  --hero-gradient: linear-gradient(150deg, #FFE9B0 0%, #FFD5DC 100%);
  --hover-transition: 140ms ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Familjen Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 1280px;
  margin: 0 auto;
  background: var(--cream);
  overflow: hidden;
}

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

h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 46px;
  letter-spacing: -0.035em;
  color: var(--ink);
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 34px 48px;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--body-text);
  text-decoration: none;
}

.nav .nav-cta {
  background: var(--rose);
  color: var(--off-white);
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 100px;
  transition: background var(--hover-transition);
}

.nav .nav-cta:hover { background: var(--bake-red); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 112px 48px 64px;
  background: var(--hero-gradient);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

/* Logo straddling the header/hero seam — the page's signature detail */

.logo-lockup {
  position: absolute;
  top: 0;
  left: 48px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 3;
}

.logo-seal {
  width: 112px;
  height: 112px;
  border-radius: 100px;
  background: var(--bake-red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: 15px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 22px rgba(140, 20, 50, 0.22);
}

.logo-micro {
  font-size: 7.5px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.26em;
  color: var(--light-pink);
}

.logo-tiles {
  display: grid;
  grid-template-columns: repeat(3, 10px);
  gap: 4px;
}

.logo-tile { height: 10px; border-radius: 3px; }
.logo-tile--pink { background: var(--mid-pink); }
.logo-tile--butter { background: var(--butter); }

.logo-wordmark {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 0.9;
  white-space: nowrap;
  letter-spacing: -0.045em;
  color: #FFF9EC;
  text-align: center;
}

.logo-plate {
  width: 142px;
  height: 19px;
  margin-top: -4px;
  border-radius: 100px;
  background: var(--bake-red);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 3px;
}

.logo-plate-top {
  width: 122px;
  height: 8px;
  border-radius: 100px;
  background: var(--rose);
}

.logo-stem {
  width: 23px;
  height: 19px;
  margin-left: 59px;
  background: var(--ink);
  clip-path: polygon(26% 0, 74% 0, 100% 100%, 0 100%);
}

.logo-foot {
  width: 55px;
  height: 11px;
  margin-left: 43px;
  border-radius: 100px;
  background: var(--ink);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 74px;
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}

.hero h1 .accent { color: var(--bake-red); }

.hero-sub {
  font-size: 20px;
  line-height: 1.5;
  color: var(--terracotta);
  max-width: 460px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  font-size: 17px;
  font-weight: 700;
  padding: 16px 30px;
  white-space: nowrap;
  border-radius: 100px;
  text-decoration: none;
  transition: background var(--hover-transition);
}

.btn--primary { background: var(--bake-red); color: var(--off-white); }
.btn--primary:hover { background: var(--rose); }
.btn--secondary { background: var(--off-white); color: var(--ink); }
.btn--secondary:hover { background: var(--butter); }

.hero-fineprint {
  font-size: 14px;
  color: #A5705E;
}

/* ---------- Session board ---------- */

.board {
  position: relative;
  height: 430px;
  border-radius: 20px;
  box-shadow: 0 20px 44px rgba(163, 54, 74, 0.2);
  background: var(--off-white);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.board-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.board-session {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.board-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bake-red);
}

.board-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: var(--rose);
}

.board-round {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.025em;
  white-space: nowrap;
  color: var(--ink);
}

.board-clock { text-align: right; }

.board-time {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.board-time-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint-2);
  margin-top: 4px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
}

.tile {
  aspect-ratio: 1;
  border-radius: 9px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--faint-2);
}

.tile--oven { background: var(--light-pink); color: var(--bake-red); }
.tile--yours { background: var(--butter); color: var(--ink); }

.board-legend {
  margin-top: auto;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.swatch { width: 11px; height: 11px; border-radius: 3px; }
.swatch--butter { background: var(--butter); }
.swatch--pink { background: var(--light-pink); }
.swatch--cream { background: var(--cream); border: 1px solid var(--rule); }

/* ---------- How it works ---------- */

.how {
  padding: 84px 48px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.how-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.how-intro {
  font-size: 16px;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.55;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--off-white);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-badge {
  width: 46px;
  height: 46px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 22px;
}

.step-badge--butter { background: var(--butter); color: var(--ink); }
.step-badge--green { background: var(--green); color: var(--off-white); }
.step-badge--rose { background: var(--rose); color: var(--off-white); }

.card-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.card-body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--body-text);
}

/* ---------- What's on ---------- */

.whats-on {
  padding: 72px 48px 84px;
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.event-card {
  border: 2px solid;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.event-panel {
  height: 172px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.event-figure {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

/* Four stacked lines must still fit the fixed 172px panel */
.event-figure--stack4 { font-size: 26px; }

.event-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-body .card-title { font-size: 24px; }
.event-body .card-body { font-size: 15px; }

.event-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event-card--pink { border-color: var(--light-pink); }
.event-card--pink .event-panel { background: var(--light-pink); }
.event-card--pink .event-label,
.event-card--pink .event-figure,
.event-card--pink .event-eyebrow { color: var(--bake-red); }

.event-card--butter { border-color: #FFE9B0; }
.event-card--butter .event-panel { background: #FFE9B0; }
.event-card--butter .event-label,
.event-card--butter .event-eyebrow { color: #B08414; }
.event-card--butter .event-figure { color: #8A5A0E; }

.event-card--green { border-color: #C8E6D5; }
.event-card--green .event-panel { background: #C8E6D5; }
.event-card--green .event-label,
.event-card--green .event-eyebrow { color: #3B8B62; }
.event-card--green .event-figure { color: #26644A; }

/* ---------- Prices ---------- */

.price {
  padding: 76px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.price-panel {
  background: var(--ink);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.price-flag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--butter);
}

.price-figure-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-was {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #8F857A;
  text-decoration: line-through;
  text-decoration-thickness: 3px;
}

.price-save {
  font-size: 14px;
  color: var(--butter);
  font-weight: 600;
}

.price-figure {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--off-white);
}

.price-per {
  font-size: 19px;
  white-space: nowrap;
  color: #B5AB9C;
}

.price-divider { height: 1px; background: #3A342C; }

.price-included {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  color: #E4DCCE;
}

.price-note {
  font-size: 14px;
  color: #8F857A;
  line-height: 1.5;
}

.price-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.price-copy h2 {
  font-size: 42px;
  line-height: 1.05;
}

.price-body {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  font-size: 14px;
  font-weight: 700;
  padding: 9px 16px;
  white-space: nowrap;
  border-radius: 100px;
}

.pill--butter { background: var(--butter); }
.pill--pink { background: var(--light-pink); }
.pill--green { background: #C8E6D5; }
.pill--warm { background: #FFE9B0; }

/* ---------- Waitlist ---------- */

.waitlist {
  margin: 0 48px 64px;
  padding: 60px 48px;
  background: var(--rose);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.waitlist-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.waitlist-copy h2 {
  color: var(--off-white);
  line-height: 1.02;
}

.waitlist-copy p {
  font-size: 18px;
  line-height: 1.55;
  color: #FFE4E9;
  max-width: 400px;
}

.form-card {
  background: var(--off-white);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field > label,
.chips-field legend {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input[type="text"],
.field input[type="email"] {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  border: 2px solid var(--rule);
  border-radius: 12px;
  background: #FFF9F0;
  color: var(--ink);
  outline: none;
}

.field input[type="text"]:focus,
.field input[type="email"]:focus { border-color: var(--rose); }

.chips-field {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.chips-field legend {
  padding: 0;
  margin-bottom: 9px;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-block;
  border: 2px solid var(--rule);
  white-space: nowrap;
  border-radius: 100px;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 600;
  color: var(--body-text);
  cursor: pointer;
  transition: border-color var(--hover-transition), color var(--hover-transition), background var(--hover-transition);
}

.chip:hover span {
  border-color: var(--rose);
  color: var(--bake-red);
}

.chip input:checked + span {
  border-color: var(--rose);
  background: var(--light-pink);
  color: var(--bake-red);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--bake-red);
  outline-offset: 2px;
}

.submit-btn {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 17px;
  padding: 16px;
  border: none;
  border-radius: 100px;
  background: var(--bake-red);
  color: var(--off-white);
  cursor: pointer;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background var(--hover-transition);
}

.submit-btn:hover { background: var(--ink); }
.submit-btn:disabled { cursor: default; opacity: 0.75; }

.form-error {
  font-size: 14px;
  line-height: 1.5;
  color: var(--bake-red);
}

.form-fineprint {
  font-size: 12px;
  color: var(--faint);
  line-height: 1.5;
}

.form-success {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-success h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.form-success p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--body-text);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 48px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-seal {
  width: 32px;
  height: 32px;
  border-radius: 100px;
  background: var(--bake-red);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.footer-tiles {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 2px;
}

.footer-tile { height: 5px; border-radius: 2px; }
.footer-tile--pink { background: var(--mid-pink); }
.footer-tile--butter { background: var(--butter); }

.footer-plate {
  width: 41px;
  height: 7px;
  margin-top: -2px;
  border-radius: 100px;
  background: var(--bake-red);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 1px;
}

.footer-plate-top {
  width: 33px;
  height: 3px;
  border-radius: 100px;
  background: var(--rose);
}

.footer-stem {
  width: 7px;
  height: 5px;
  background: var(--ink);
  clip-path: polygon(26% 0, 74% 0, 100% 100%, 0 100%);
}

.footer-foot {
  width: 16px;
  height: 4px;
  border-radius: 100px;
  background: var(--ink);
}

.footer-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.footer-line {
  font-size: 14px;
  color: var(--faint);
}

/* ---------- Responsive ----------
   The design is desktop-only as drawn (fixed 1280px canvas).
   These breakpoints follow the README's suggested approach and
   still need client sign-off before launch. */

@media (max-width: 1280px) {
  .page { width: 100%; }
}

@media (max-width: 1000px) {
  .hero,
  .price,
  .waitlist {
    grid-template-columns: 1fr;
  }

  .hero { gap: 48px; }

  .board { max-width: 560px; }
}

@media (max-width: 760px) {
  .site-header { padding: 24px; justify-content: flex-start; }

  .nav {
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .hero { padding: 48px 24px; }

  /* The seam-straddling logo becomes a normal in-flow logo on mobile */
  .logo-lockup {
    position: static;
    transform: none;
  }

  .hero h1 { font-size: 44px; }

  h2 { font-size: 32px; }

  .price-copy h2 { font-size: 32px; }

  .how { padding: 64px 24px; }

  .whats-on { padding: 56px 24px 64px; }

  .price { padding: 56px 24px; }

  /* "£45 £35 per person" is too wide for a phone at desktop sizes */
  .price-figure-row { flex-wrap: wrap; }
  .price-figure { font-size: 56px; }
  .price-was { font-size: 26px; }

  .card-grid { grid-template-columns: 1fr; }

  .board {
    height: auto;
    gap: 20px;
  }

  .board-grid { grid-template-columns: repeat(3, 1fr); }

  .waitlist {
    margin: 0 24px 48px;
    padding: 40px 24px;
  }

  .site-footer { padding: 32px 24px; }
}
