/* Nosh website. The look follows the Instagram templates in the Nosh repo (pipeline/social):
   colour washes with a fine grain, heavy tight lettering, and the black Nosh band at the bottom.
   House rules carried over: washes not flat colour, no yellow, no pill tags, no small spaced capitals. */
@font-face { font-family: Fredoka; font-weight: 700; font-display: swap; src: url(/assets/fonts/fredoka-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter-latin-wght-normal.woff2) format('woff2'); }

:root {
  --ink: #0b0b0c;
  --red: #E53935;
  --text: #181d27;
  --soft: #535862;
  --faint: #717680;
  --line: #d5d7da;
  --paper: #f5f5f6;
  /* Washes as on the Instagram slides (lib/colours.js), minus the pinks and purples. */
  /* Nosh's own colour since 2026-11-06: the red-orange of the pin. Pink and purple read too close to Pulse. */
  --wash-tomato: radial-gradient(120% 80% at 100% 0%, #FFC15C 0%, #FFC15C00 55%), radial-gradient(110% 90% at 0% 100%, #6E1A0C 0%, #6E1A0C00 60%), linear-gradient(170deg, #FF8A3D 0%, #E8461E 50%, #9C2410 100%);
  --wash-tangerine: radial-gradient(120% 80% at 0% 0%, #FFD08A 0%, #FFD08A00 55%), radial-gradient(110% 90% at 100% 100%, #A8240F 0%, #A8240F00 60%), linear-gradient(165deg, #FF9F4A 0%, #F2602A 50%, #C8361A 100%);
  --wash-ocean: radial-gradient(120% 80% at 0% 0%, #3CF0D0 0%, #3CF0D000 55%), radial-gradient(110% 90% at 100% 100%, #2A1E8F 0%, #2A1E8F00 60%), linear-gradient(165deg, #16B8C9 0%, #1C7FE6 50%, #3B33B8 100%);
  --wash-forest: radial-gradient(120% 80% at 0% 0%, #93E88F 0%, #93E88F00 55%), radial-gradient(110% 90% at 100% 100%, #052C22 0%, #052C2200 60%), linear-gradient(165deg, #2FA65A 0%, #1A7F4E 50%, #0C5540 100%);
  --wash-night: radial-gradient(90% 60% at 88% 0%, rgba(255,122,61,.4) 0%, rgba(255,122,61,0) 62%), radial-gradient(100% 70% at 0% 100%, rgba(42,84,220,.55) 0%, rgba(42,84,220,0) 62%), linear-gradient(180deg, #1C1746 0%, #0B0A1C 100%);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 -.25'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: Inter, system-ui, sans-serif; color: var(--text); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

/* Lettering: the app's wordmark weight, pulled tight. */
h1, h2, h3 { font-weight: 900; letter-spacing: -0.045em; line-height: .98; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(48px, 7.2vw, 100px); }
h2 { font-size: clamp(38px, 5vw, 68px); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--soft); max-width: 34em; text-wrap: pretty; }

/* A wash with its grain. Anything inside sits above the grain. */
.wash { position: relative; isolation: isolate; color: #fff; }
.wash::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: soft-light; background-image: var(--grain); border-radius: inherit; }
.wash h1, .wash h2, .wash h3 { color: #fff; }
.wash .lede { color: rgba(255,255,255,.92); }

/* The Nosh mark: the bitten pin and the wordmark. */
.mark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.mark svg { height: 30px; width: auto; fill: var(--pin, currentColor); }
.mark span { font-weight: 900; font-size: 30px; letter-spacing: -2px; line-height: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 26px; border-radius: 14px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; background: var(--ink); color: #fff; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.btn.light { background: #fff; color: var(--ink); }
.btn.small { height: 42px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
/* The official App Store and Google Play badges: used as supplied, same height, never redrawn. */
.store { display: inline-flex; border-radius: 9px; transition: transform .15s ease, box-shadow .15s ease; }
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.store img { height: 54px; width: auto; }
@media (max-width: 420px) { .store img { height: 46px; } .hero .get, .last .pair { gap: 12px; } }

/* Top bar */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.top nav { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 15px; }
.top nav a { text-decoration: none; }
.top nav a.plain:hover { text-decoration: underline; text-underline-offset: 4px; }
.top.dark { position: static; border-bottom: 1px solid var(--line); color: var(--ink); --pin: var(--red); }

/* Hero */
.hero { background: var(--wash-tomato); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 40px; align-items: center; min-height: min(860px, 100vh); padding: 120px 0 0; }
.hero .words { padding-bottom: 96px; }
.hero .lede { margin-top: 26px; }
.hero .get { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero .note { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.86); }
.hero .facts { margin-top: 22px; font-size: 16px; font-weight: 600; color: rgba(255,255,255,.92); }

/* The phone with two posters behind it. */
.stage { position: relative; align-self: end; height: 660px; }
.phone { position: absolute; left: 50%; bottom: -70px; width: 306px; transform: translateX(-50%); border: 10px solid var(--ink); border-radius: 50px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px rgba(60,10,0,.45); z-index: 2; }
.phone img { width: 100%; }
.stage .poster { position: absolute; width: 250px; border-radius: 16px; box-shadow: 0 30px 60px rgba(60,10,0,.4); }
/* Placed from the phone's centre line, so they peek out by the same amount at any width. */
.stage .poster.a { left: calc(50% - 262px); top: 90px; transform: rotate(-9deg); }
.stage .poster.b { right: calc(50% - 270px); top: 190px; transform: rotate(8deg); }

/* Sections */
section { padding: clamp(72px, 9vw, 128px) 0; }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.head .lede { margin-top: 20px; }

/* The poster wall: real deals in the Instagram designs. */
.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.wall img { width: 100%; border-radius: 16px; box-shadow: 0 1px 2px rgba(10,13,18,.08), 0 14px 34px rgba(10,13,18,.12); transition: transform .18s ease, box-shadow .18s ease; }
.wall img:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(10,13,18,.1), 0 26px 50px rgba(10,13,18,.2); }
.wall li { list-style: none; }
.wall li:nth-child(even) { margin-top: 34px; }

/* Why: four statements, each on its own wash. */
.why { background: var(--paper); }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.reason { border-radius: 28px; padding: clamp(28px, 3.4vw, 48px); min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
/* Each card has a sticker in its top corner, the way the Kids and students slide carries its burst:
   white, big, a little crooked, with the card's deep colour for the details. */
.reason .sticker { align-self: flex-end; width: 170px; height: auto; overflow: visible; margin: -26px -8px auto 0; transform: rotate(var(--turn, -8deg)); filter: drop-shadow(0 14px 22px rgba(0,0,0,.24)); }
.reason .sticker.wide { width: 196px; margin-top: 0; margin-bottom: auto; }
.reason .sticker .round { font-family: Fredoka, Inter, sans-serif; font-weight: 700; letter-spacing: -0.02em; fill: var(--deep); }
.reason h3 { font-size: clamp(32px, 3.6vw, 50px); margin-top: 20px; }
.reason p { font-size: 18px; line-height: 1.45; color: rgba(255,255,255,.93); max-width: 26em; }
.reason:nth-child(1) { background: var(--wash-night); --deep: #1C1746; }
.reason:nth-child(2) { background: var(--wash-ocean); --deep: #1F2A8A; }
.reason:nth-child(3) { background: var(--wash-forest); --deep: #0A4434; }
.reason:nth-child(4) { background: var(--wash-tomato); --deep: #9C2410; }

/* The app, three screens. */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.screen .shot { border: 8px solid var(--ink); border-radius: 42px; overflow: hidden; box-shadow: 0 24px 50px rgba(10,13,18,.16); max-width: 300px; margin-inline: auto; }
.screen h3 { font-size: 26px; letter-spacing: -0.035em; line-height: 1.1; margin-top: 30px; }
.screen p { margin-top: 10px; color: var(--soft); font-size: 17px; }
.screen .say { max-width: 300px; margin-inline: auto; }

/* Cities */
/* The road map sits on the night wash; the dark fade on the left keeps the city names readable. */
.cities { --fade: linear-gradient(90deg, rgba(11,10,28,.94) 0%, rgba(11,10,28,.82) 40%, rgba(11,10,28,.4) 72%, rgba(11,10,28,.18) 100%); background: var(--fade), url(/assets/cities-map.svg) center / cover no-repeat, var(--wash-night); }
.cities .credit { position: absolute; right: 16px; bottom: 12px; margin: 0; font-size: 11px; color: rgba(255,255,255,.45); }
.cities .credit a { color: inherit; }
.cities h2 { font-size: clamp(44px, 7.4vw, 108px); }
.cities h2 span { display: block; }
.cities .lede { margin-top: 30px; }

/* For restaurants */
.owners .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.owners .lede { margin-top: 20px; }
.owners .act { justify-self: end; }

/* Last word, then the band. */
.last { background: var(--wash-tangerine); text-align: center; }
.last h2 { font-size: clamp(44px, 7vw, 96px); }
.last .get { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.last .note { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.9); }
.last .pair { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* The black Nosh band, as on every slide. */
.band { background: var(--ink); color: #fff; --pin: var(--red); }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 34px 0; }
.band .mark svg { height: 38px; } .band .mark span { font-size: 38px; letter-spacing: -2.5px; }
.band nav { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 15px; font-weight: 500; }
.band nav a { text-decoration: none; color: rgba(255,255,255,.86); }
.band nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.band .built { width: 100%; font-size: 14px; color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; }
.band .legal { width: 100%; margin-top: -12px; font-size: 12px; color: rgba(255,255,255,.45); }

/* Text pages: privacy, terms, support, submit a deal. */
.doc { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 112px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(40px, 6vw, 68px); }
.doc .sub { margin-top: 14px; color: var(--faint); font-size: 15px; }
.doc h2 { font-size: 26px; letter-spacing: -0.03em; line-height: 1.15; margin-top: 48px; }
.doc h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin-top: 28px; }
.doc p, .doc ul { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin-top: 6px; }
.doc a { color: var(--red); font-weight: 600; text-underline-offset: 3px; }
.doc .lede { margin-top: 22px; }
.doc .btn { margin-top: 26px; color: #fff; }
.doc .card { margin-top: 28px; border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; }
.doc .card h2 { margin-top: 0; font-size: 22px; }

/* Below this the hero stacks: the words, then the phone. */
@media (max-width: 1040px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 0; min-height: 0; padding-top: 112px; }
  .hero .words { padding-bottom: 48px; }
  .stage { height: 470px; width: 100%; }
  .phone { width: 250px; bottom: -90px; border-width: 8px; border-radius: 42px; }
  .stage .poster { width: 178px; }
  .stage .poster.a { left: calc(50% - 250px); top: 70px; }
  .stage .poster.b { right: calc(50% - 256px); top: 130px; }
}
@media (max-width: 900px) {
  .cities { --fade: linear-gradient(180deg, rgba(11,10,28,.78) 0%, rgba(11,10,28,.6) 100%); }
  /* On a phone the posters swipe sideways, the way they do on Instagram. */
  .wall { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -24px; padding: 6px 24px 30px; scrollbar-width: none; }
  .wall::-webkit-scrollbar { display: none; }
  .wall li { flex: 0 0 min(64%, 300px); scroll-snap-align: center; }
  .wall li:nth-child(even) { margin-top: 0; }
  .reasons { grid-template-columns: 1fr; }
  .reason .sticker { width: 132px; margin-top: -18px; }
  .reason .sticker.wide { width: 156px; margin-top: 4px; margin-bottom: 26px; }
  /* The three screens swipe sideways too. */
  .screens { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -24px; padding: 6px 24px 30px; scrollbar-width: none; }
  .screens::-webkit-scrollbar { display: none; }
  .screen { flex: 0 0 min(72%, 300px); scroll-snap-align: center; }
  .owners .wrap { grid-template-columns: 1fr; align-items: start; }
  .owners .act { justify-self: start; }
  .top nav a.plain { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
