/* Colours, fonts and gradients match the app: app/src/theme.ts */
:root {
  --red: #F0442B; --red-text: #C7301A; --mango: #FFC53D; --butter: #FFE29A; --green: #22B07D;
  --ink: #2A1712; --soft: #6F5E56; --page: #FFF8EE; --line: #F0E4D3;
  --brand: linear-gradient(165deg, #FF5B3D 0%, #F0442B 45%, #DB2F18 100%);
  --button: linear-gradient(165deg, #E8412A, #CC2C16);
  --name: linear-gradient(100deg, #FFF6DC 0%, #FFDB7D 45%, #FFBF2B 100%);
  --heading: 'Bricolage Grotesque', system-ui, sans-serif;
  --round: clamp(28px, 3vw, 44px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--ink); font: 400 17px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--heading); font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.8vw, 5.2rem); line-height: .95; letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1; letter-spacing: -.028em; }
h3 { font-size: 1.4rem; line-height: 1.2; letter-spacing: -.02em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 3px; }
.cream :focus-visible, .white :focus-visible, .form-card :focus-visible { outline-color: var(--red-text); }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.lead { max-width: 34em; margin-top: 14px; font-size: clamp(1.06rem, 1.5vw, 1.25rem); font-weight: 500; }
.small { font-size: .875rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border: 0; border-radius: 99px; font: 600 1rem Inter, system-ui, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-red { background: var(--button); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-gold { background: linear-gradient(100deg, #FFE9AE, #FFBF2B); color: var(--ink); }
.btn-clear { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: .94rem; }

.phone { flex: none; width: min(320px, 78vw); border: 9px solid #1D100D; border-radius: 46px; overflow: hidden; background: #1D100D; box-shadow: 0 30px 70px rgba(42, 23, 18, .3); }
.phone img { width: 100%; border-radius: 37px; }

/* Top of the page */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--ink); }
.wall { position: absolute; inset: -60px; display: flex; justify-content: center; gap: 14px; transform: rotate(-7deg) scale(1.15); }
.wall div { flex: none; width: clamp(150px, 17vw, 250px); animation: drift 50s linear infinite; }
.wall div:nth-child(even) { animation-direction: reverse; }
.wall img { width: 100%; aspect-ratio: 4 / 5; margin-bottom: 14px; border-radius: 26px; object-fit: cover; }
@keyframes drift { to { transform: translateY(-33.3333%); } }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 0 110%, rgba(240, 68, 43, .85), rgba(240, 68, 43, 0) 52%), radial-gradient(circle at 78% 62%, rgba(255, 160, 40, .4), rgba(255, 160, 40, 0) 36%), linear-gradient(180deg, rgba(42, 23, 18, .65), rgba(42, 23, 18, 0) 24%), linear-gradient(90deg, rgba(42, 23, 18, .84) 8%, rgba(42, 23, 18, .6) 46%, rgba(42, 23, 18, 0) 78%); }
.hero > .wrap { position: relative; z-index: 1; }
.nav { display: flex; align-items: center; gap: 32px; padding-top: 20px; }
.brand { display: flex; align-items: center; gap: 4px; margin-right: auto; text-decoration: none; }
.brand span { padding-right: 4px; font: 800 1.8rem/1.2 var(--heading); letter-spacing: -.035em; background: var(--name); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 28px; font-weight: 500; }
.nav-links a { padding-block: 10px; text-decoration: none; }
.nav-links [aria-current] { color: var(--butter); }
.nav-links a:hover { color: var(--butter); }
.hero-grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 36px; }
.hero-text { min-width: 0; padding-bottom: 96px; }
.hero h1 span { display: block; width: fit-content; margin-top: -.06em; padding: .06em .06em .18em 0; background: var(--name); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text > p:not(.small) { max-width: 30em; margin-top: 26px; font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 18px; }
.hero .phone { align-self: flex-start; width: 280px; height: 480px; border-bottom: 0; border-radius: 46px 46px 0 0; }

/* Top of the other pages */
.top { padding-bottom: calc(var(--round) + 16px); color: #fff; }

/* Each section slides over the last one, like the sheets in the app */
.sheet { position: relative; z-index: 1; margin-top: calc(var(--round) * -1); padding-block: clamp(44px, 5vw, 76px) calc(clamp(44px, 5vw, 76px) + var(--round)); border-radius: var(--round) var(--round) 0 0; }
.cream { background: var(--page); }
.white { background: #fff; }
.butter { background: linear-gradient(150deg, #FFF0C4, #FFD36B); }
.peach { background: linear-gradient(150deg, #FFF3E4, #FFB59A); }
.mango { background: linear-gradient(150deg, #FFD968, #FFAE1A); }
.green { background: linear-gradient(150deg, #5BDCAB, #22B07D); }
.red { color: #fff; background: radial-gradient(circle at 92% 2%, rgba(255, 197, 61, .6), rgba(255, 197, 61, 0) 42%), var(--brand); }
.ink { color: #fff; background: var(--ink); }

/* Worst food nights */
.nights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.night { display: flex; flex-direction: column; padding: 18px; border-radius: 30px; }
.night h3 { margin: 14px 0; font-size: 1.4rem; line-height: 1.08; }
.scene { display: flex; flex-direction: column; justify-content: center; gap: 6px; height: 280px; font-size: .9rem; line-height: 1.35; }
.fix { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: .94rem; font-weight: 600; line-height: 1.35; }
.fix img { flex: none; border-radius: 12px; }
.night-chat { background: var(--ink); color: #fff; }
.night-chat .scene p { align-self: flex-start; padding: 9px 13px; border-radius: 4px 18px 18px; background: #4A332B; }
.night-chat .scene .me { align-self: flex-end; border-radius: 18px 4px 18px 18px; background: var(--butter); color: var(--ink); }
.night time { margin-left: 6px; font-size: .75rem; opacity: .75; }
.night-bill { background: linear-gradient(150deg, #FFD968, #FFAE1A); }
.bill { padding: 16px 16px 24px; background: #fff; transform: rotate(-3deg); clip-path: polygon(0 0, 100% 0, 100% 97%, 95% 100%, 90% 97%, 85% 100%, 80% 97%, 75% 100%, 70% 97%, 65% 100%, 60% 97%, 55% 100%, 50% 97%, 45% 100%, 40% 97%, 35% 100%, 30% 97%, 25% 100%, 20% 97%, 15% 100%, 10% 97%, 5% 100%, 0 97%); }
.bill p:not(.note) { display: flex; justify-content: space-between; gap: 8px; padding-block: 6px; font-variant-numeric: tabular-nums; }
.bill .total { margin-top: 6px; border-top: 2px dashed #CDBBA9; font: 800 1.4rem/1.5 var(--heading); }
.bill .note { margin-top: 8px; color: var(--red-text); font-weight: 600; }
.night-week { background: var(--brand); color: #fff; }
.night-week .scene { gap: 0; font-weight: 600; }
.night-week .scene p { display: flex; padding-block: 8px; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.night-week .scene p:last-child { border: 0; }
.night-week b { width: 3.2em; color: var(--butter); }
.night-lost { background: linear-gradient(150deg, #5BDCAB, #22B07D); }
.search { overflow: hidden; padding: 12px 16px; border-radius: 99px; background: #fff; text-overflow: ellipsis; white-space: nowrap; }
.none { margin: 0 0 10px 16px; font-weight: 600; }
#nights .actions { margin: 24px 0 0; }

/* Directions */
.directions { position: relative; min-height: 420px; margin-top: 28px; padding-right: 340px; }
.directions + .small { margin-top: 24px; color: var(--soft); }
.directions button { width: 100%; padding: 11px 0; border: 0; background: none; color: #806B60; font: 700 clamp(1.3rem, 2.4vw, 2rem)/1.12 var(--heading); letter-spacing: -.025em; text-align: left; text-wrap: balance; cursor: pointer; transition: color .2s; }
.directions button:hover { color: var(--ink); }
.directions .open button { color: var(--red); }
.spot { display: none; position: absolute; top: 0; right: 0; width: 300px; overflow: hidden; border-radius: 32px; color: #fff; background: var(--ink); }
.open .spot { display: block; animation: pop .45s cubic-bezier(.2, 1.2, .4, 1); }
.spot img { width: 100%; aspect-ratio: 36 / 47; object-fit: cover; }
.spot figcaption { position: absolute; inset: auto 0 0; display: grid; gap: 6px; padding: 110px 26px 26px; background: linear-gradient(transparent, rgba(42, 23, 18, .92) 62%); font-weight: 500; }
.spot b { font: 800 2rem/1.05 var(--heading); letter-spacing: -.03em; }
.spot em { color: var(--butter); font-style: normal; font-weight: 600; }
.found { display: flex; align-items: center; gap: 8px; font-size: .94rem; }
.found i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mango); color: var(--ink); font: 600 .75rem Inter, sans-serif; }
@keyframes pop { from { transform: translateY(16px) scale(.97); } }

/* What the app does */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 18px; }
.feature { display: flex; flex-direction: column; height: 310px; padding: 24px; overflow: hidden; border-radius: 30px; }
.feature h3 { font-size: 1.6rem; line-height: 1.08; }
.feature h3 + p { margin-top: 8px; font-weight: 500; line-height: 1.4; }
.feature .map { width: 100%; height: 0; min-height: 0; flex: 1; margin-top: 16px; border: 5px solid #fff; border-radius: 22px; object-fit: cover; object-position: 50% 42%; }
.share { grid-column: 2 / 4; flex-direction: row; justify-content: space-between; gap: 32px; }
.share > div:first-child { align-self: center; max-width: 330px; }
.share .phone { width: 250px; height: 420px; margin-right: 24px; }

.spin { grid-row: 1 / 3; height: auto; color: #fff; background: radial-gradient(circle at 92% 2%, rgba(255, 197, 61, .6), rgba(255, 197, 61, 0) 50%), var(--brand); }
.reel { position: relative; height: 404px; margin: 18px 0 16px; overflow: hidden; border: 4px solid #fff; border-radius: 26px; background: var(--ink); }
.reel img { width: 100%; height: 396px; object-fit: cover; }
.reel p { position: absolute; inset: auto 0 0; display: grid; gap: 4px; padding: 90px 20px 20px; background: linear-gradient(transparent, rgba(42, 23, 18, .92) 65%); font-weight: 500; }
.reel b { font: 800 1.7rem/1.05 var(--heading); letter-spacing: -.02em; }

.plates { --w: 112px; display: flex; justify-content: center; margin-top: 34px; }
.plates li { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; width: var(--w); height: 146px; padding: 12px; overflow: hidden; border-radius: 20px; color: #fff; background: var(--ink); font-size: .85rem; font-weight: 600; line-height: 1.25; box-shadow: 0 10px 24px rgba(42, 23, 18, .25); transform: rotate(-7deg); }
.plates li + li { margin-left: -8px; }
.plates li:nth-child(2) { z-index: 1; transform: translateY(-14px); }
.plates li:nth-child(3) { padding-left: 20px; transform: rotate(7deg); }
.plates img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.plates li::after { content: ""; position: absolute; inset: 30% 0 0; z-index: -1; background: linear-gradient(transparent, rgba(42, 23, 18, .92) 80%); }
.plates b { font: 800 1.7rem/1 var(--heading); letter-spacing: -.03em; color: var(--butter); }

/* Vision line on the home page */
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; }
.band h2 { max-width: 15em; }

/* Quiz */
.quiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
#types { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
#types li { padding: 9px 16px; border-radius: 99px; background: rgba(110, 15, 0, .3); font-weight: 500; transition: background .3s, color .3s; }
#types .mine { background: var(--mango); color: var(--ink); }
.quiz { min-height: 510px; }
.quiz h3 { min-height: 2.4em; margin: 18px 0 22px; font-size: clamp(1.5rem, 2.3vw, 1.95rem); outline: none; }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .32); }
.steps .done { background: #fff; }
.answer { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 66px; margin-bottom: 12px; padding: 12px 20px; border: 0; border-radius: 26px; background: #fff; color: var(--ink); font: 600 1rem/1.35 Inter, system-ui, sans-serif; text-align: left; cursor: pointer; transition: background .2s, transform .2s; }
.answer:hover { transform: translateX(6px); }
.answer.picked { background: var(--mango); }
.answer span { font-size: 1.9rem; line-height: 1; }
.badge { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: #fff; font-size: 3.6rem; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.quiz h3.result { min-height: 0; margin: 20px 0 12px; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.035em; }
.traits { display: grid; gap: 10px; margin: 24px 0; font-weight: 600; }
.traits div { display: grid; grid-template-columns: 92px 1fr; align-items: center; }
.traits i { height: 9px; border-radius: 9px; background: linear-gradient(var(--butter) 0 0) 0 / var(--value) 100% no-repeat rgba(110, 15, 0, .4); }

/* Vision */
.statement { max-width: 16em; font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: .98; letter-spacing: -.03em; }
.statement span { color: var(--red); }
.statement img { display: inline-block; width: 1.25em; height: .78em; border-radius: 99px; object-fit: cover; vertical-align: -.08em; }
.vision-text { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; max-width: 1000px; margin-top: 28px; font-size: clamp(1.06rem, 1.5vw, 1.25rem); }
.road { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 64px; max-width: 1000px; margin-top: 36px; }
.road li { padding-block: 13px; border-bottom: 1px solid #E4D3BC; font-weight: 500; }
.road h3 { margin-bottom: 10px; }

.safety { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px 64px; }
.safety h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.safety li { padding-block: 16px; border-bottom: 1px solid var(--line); }
.safety li:first-child { padding-top: 4px; }

/* Early access */
.ink { padding-bottom: 32px; }
.join-grid { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: 64px; align-items: center; }
.pin { width: 120px; margin-bottom: 18px; }
.eyes { transition: transform .12s; }
.form-card { padding: clamp(24px, 3vw, 36px); border-radius: 36px; background: var(--page); color: var(--ink); }
.form-card label { display: block; margin: 12px 0 5px; font-weight: 600; font-size: .94rem; }
.form-card form > label:first-child { margin-top: 0; }
.form-card label span { color: var(--soft); font-weight: 400; }
.form-card input:not([type=checkbox]) { width: 100%; height: 48px; padding: 0 16px; border: 1.5px solid #D9C7B0; border-radius: 18px; background: #fff; color: var(--ink); font: 400 1rem Inter, system-ui, sans-serif; }
.form-card input::placeholder { color: #8A7469; }
.form-card input[aria-invalid=true] { border-color: var(--red-text); }
.form-card .check { display: flex; gap: 12px; align-items: flex-start; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--red-text); }
.error { color: var(--red-text); font-size: .9rem; font-weight: 500; }
.error:not(:empty) { margin-top: 6px; }
.form-card .btn { width: 100%; margin: 18px 0 12px; }
.form-card .small { color: var(--soft); }
#joined { outline: none; }
#joined h3 { margin-bottom: 10px; font-size: 1.9rem; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 48px; color: #CDBBB0; font-size: .94rem; }
.foot { padding-top: 36px; }
.foot footer { margin-top: 0; }
footer div { display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (max-width: 1000px) {
  .nights { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .spin { grid-row: auto; grid-column: 1 / 3; }
  .reel { height: 304px; }
  .reel img { height: 296px; }
  .share { grid-column: 1 / 3; }
}
@media (max-width: 820px) {
  .quiz-grid, .join-grid, .safety { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #types { display: none; }
  .directions { min-height: 0; margin-top: 20px; padding-right: 0; }
  .spot { position: relative; width: min(300px, 100%); margin: 4px 0 14px; }
}
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; gap: 2px 24px; padding-top: 12px; }
  .nav-links { order: 1; width: 100%; gap: 24px; font-size: .94rem; }
  .nav .btn { padding-inline: 16px; }
  .brand span { font-size: 1.5rem; }
  .brand img { width: 44px; height: 44px; }
  .hero-grid { padding-top: 24px; }
  .hero-text { padding-bottom: 72px; }
  .hero .phone { display: none; }
  .hero::after { background: linear-gradient(180deg, rgba(42, 23, 18, .7), rgba(42, 23, 18, .62) 50%, rgba(240, 68, 43, .6)); }
  .actions { margin: 22px 0 14px; }
  .actions .btn { padding-inline: 20px; }

  /* Swipe sideways instead of scrolling down */
  .nights, .features { display: flex; gap: 12px; margin-inline: -20px; padding-inline: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none; }
  .night { flex: none; width: 272px; scroll-snap-align: start; }
  .feature { flex: none; width: 290px; height: 420px; scroll-snap-align: start; }
  .share { flex-direction: column; gap: 18px; }
  .share > div:first-child { align-self: auto; }
  .share .phone { align-self: center; width: 220px; margin: 0; }
  .reel { height: 224px; }
  .reel img { height: 216px; }
  .plates { --w: 90px; margin-top: 70px; }
  .plates li { height: 160px; }

  .band .wrap { flex-direction: column; align-items: flex-start; }
  .vision-text, .road { grid-template-columns: minmax(0, 1fr); }
  .join-grid > div:first-child { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; align-items: center; }
  .join-grid .lead { grid-column: 1 / 3; margin-top: 10px; }
  .pin { width: 64px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
