/* BrokeChef site. Brand: ink #1B1714, mustard #FFC83D, ketchup #E8553B, green #1C8C55, cream #FAF6F0. */
:root {
  --ink: #1b1714; --sub: #4a433c; --faint: #8a8178; --cream: #faf6f0; --paper: #ffffff; --line: #ece4d8;
  --mustard: #ffc83d; --ketchup: #e8553b; --green: #1c8c55;
  --disp: 'Bricolage Grotesque', system-ui, sans-serif; --body: 'DM Sans', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { font-family: var(--body); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.disp { font-family: var(--disp); font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; }

/* nav */
nav.top { display: flex; align-items: center; gap: 12px; padding: 22px 0; }
nav.top .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
nav.top .brand img { width: 42px; height: 42px; border-radius: 11px; }
nav.top .brand span { font-family: var(--disp); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
nav.top .links { margin-left: auto; display: flex; gap: 26px; font-weight: 700; font-size: 15px; }
nav.top .links a { text-decoration: none; opacity: 0.72; }
nav.top .links a:hover { opacity: 1; }

/* buttons */
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 14px; padding: 11px 18px 11px 14px; text-decoration: none; }
.store svg { width: 24px; height: 24px; fill: #fff; }
.store small { display: block; font-size: 11px; opacity: 0.75; font-weight: 500; }
.store b { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--sub); }
.trust span::before { content: '✓'; color: var(--green); font-weight: 900; margin-right: 6px; }

/* iPhone frame around real iPhone 17 Pro simulator screens (status bar and Dynamic Island are in the images) */
.phone { width: 300px; aspect-ratio: 4777 / 10000; border-radius: 17.3% / 8%; background: #0d0d0d; padding: 0; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.45), 0 0 0 2px #3a3a3a inset; position: relative; flex: none; }
.glass { position: absolute; inset: 1.53% 3.33%; border-radius: 15.4% / 6.9%; overflow: hidden; background: #fff; container-type: inline-size; }
.glass > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.home-bar { position: absolute; bottom: 0.9%; left: 50%; transform: translateX(-50%); width: 36%; height: 0.6%; min-height: 4px; border-radius: 3px; background: #111; z-index: 3; opacity: 0.85; }

/* hero */
.hero-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; padding: 30px 0 80px; }
.kick { display: inline-flex; gap: 8px; align-items: center; background: #fff; border-radius: 999px; padding: 7px 14px 7px 7px; font-weight: 700; font-size: 14px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); }
.kick img { width: 28px; border-radius: 8px; }
.hero h1 { font-size: clamp(56px, 7.4vw, 100px); margin: 22px 0; }
.hero h1 em { font-style: normal; color: var(--ketchup); }
.hero .lead { font-size: 21px; line-height: 1.5; max-width: 480px; margin: 0 0 30px; color: var(--sub); }
.collage { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.collage > img { aspect-ratio: 1; object-fit: cover; border-radius: 24px; width: 100%; }
.collage .phone { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-3deg); width: 47%; z-index: 2; }
.receipt { position: absolute; z-index: 3; right: -18px; bottom: 26px; background: #fff; border-radius: 20px; padding: 16px 20px; width: 236px; font-size: 14px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.35); }
.receipt div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #e5ddd2; white-space: nowrap; }
.receipt div:last-child { border: 0; font-weight: 900; font-size: 17px; padding-top: 9px; }
.receipt .ok { color: var(--green); font-weight: 800; font-size: 13px; }

/* stores */
.shops { padding-bottom: 80px; }
.shops-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.shops-head h2 { font-size: clamp(38px, 4.4vw, 56px); margin: 0; max-width: 520px; }
.shops-head h2 em { font-style: normal; color: var(--green); }
.shop-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, 1fr); gap: 14px; }
.shop-grid li { background: #fff; border-radius: 24px; padding: 16px 8px 13px; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.shop-grid li:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.3); }
.shop-grid img { width: 64px; height: 64px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07); }
.shop-grid span { font-size: 13px; font-weight: 800; text-align: center; line-height: 1.2; white-space: nowrap; }
.shops-fine { margin: 16px 0 0; font-size: 13px; color: var(--faint); text-align: center; }

/* feature band */
.band { background: #fff; border-radius: 44px; padding: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.band img { width: 72px; margin-bottom: 14px; }
.band h3 { font-family: var(--disp); font-size: 30px; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 10px; }
.band p { margin: 0; font-size: 17px; line-height: 1.55; color: #5a524a; }

/* screens */
.section-head { text-align: center; padding: 96px 0 10px; }
.section-head h2 { font-size: clamp(42px, 5vw, 64px); margin: 0 0 12px; }
.section-head p { font-size: 19px; color: var(--sub); margin: 0 auto; max-width: 560px; line-height: 1.5; }
.screens { display: flex; gap: 34px; justify-content: center; padding: 56px 0 30px; }
.screens figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.screens figure:nth-child(2) { transform: translateY(-30px); }
.screens .phone { width: 260px; }
.screens figcaption { font-weight: 800; font-size: 17px; text-align: center; max-width: 240px; line-height: 1.35; }
.screens figcaption span { display: block; font-weight: 500; color: var(--faint); font-size: 15px; margin-top: 4px; }

/* food marquee */
.marquee { overflow: hidden; padding: 70px 0 20px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 16px; width: max-content; animation: slide 60s linear infinite; }
.marquee img { width: 180px; height: 180px; border-radius: 28px; object-fit: cover; flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* FAQ */
.faq { max-width: 876px; margin: 0 auto; padding-top: 40px; padding-bottom: 20px; }
.faq details { background: #fff; border-radius: 22px; padding: 20px 24px; margin-bottom: 12px; }
.faq summary { font-weight: 800; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--faint); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; line-height: 1.6; color: var(--sub); }

/* partners */
.partners { display: grid; grid-template-columns: 1fr 1.1fr; gap: 52px; padding-top: 96px; padding-bottom: 60px; align-items: start; }
.partners h2 { font-size: clamp(46px, 5.4vw, 70px); margin: 0 0 18px; }
.partners p { font-size: 19px; line-height: 1.55; color: var(--sub); margin: 0; }
.perk { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 22px; padding: 18px 20px; margin-top: 26px; }
.perk b { font-family: var(--disp); font-size: 34px; color: var(--green); letter-spacing: -0.03em; }
.perk span { font-weight: 700; line-height: 1.35; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: #fff; border-radius: 30px; padding: 26px; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.35); }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; color: var(--sub); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: 500 16px var(--body); padding: 14px 16px; border-radius: 14px; border: 1.5px solid #e7dfd3; background: var(--cream); color: var(--ink); width: 100%; outline: none; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); background: #fff; }
.form textarea { min-height: 110px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form button { grid-column: 1 / -1; font: 800 17px var(--body); padding: 17px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; cursor: pointer; }
.form button:disabled { opacity: 0.55; cursor: default; }
.form .note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--faint); text-align: center; }
.form .msg { grid-column: 1 / -1; margin: 0; font-weight: 700; text-align: center; }
.form .msg.err { color: var(--ketchup); }
.done { text-align: center; padding: 30px 10px; }
.done img { width: 110px; margin: 0 auto 10px; }
.done h3 { font-family: var(--disp); font-size: 34px; margin: 0 0 8px; letter-spacing: -0.02em; }

/* legal / text pages */
.doc { max-width: 760px; margin: 0 auto; padding: 20px 0 40px; }
.doc h1 { font-family: var(--disp); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(40px, 6vw, 58px); line-height: 1; margin: 10px 0 10px; }
.doc h2 { font-family: var(--disp); font-size: 25px; letter-spacing: -0.02em; margin: 36px 0 6px; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; color: #2e2924; }
.doc .lead { font-size: 20px; color: var(--sub); }
.doc .meta { color: var(--faint); font-size: 14px; }
.doc .card { background: #fff; border-radius: 22px; padding: 6px 24px; margin: 22px 0; }
.doc h3 { font-size: 18px; font-weight: 800; margin: 22px 0 2px; }
.doc h2[id] { scroll-margin-top: 20px; }
.doc li { margin: 4px 0; }
.doc a { color: var(--ink); text-underline-offset: 3px; }
.doc .short { padding: 4px 26px 10px; border: 2px solid var(--ink); }
.doc .short h2 { margin-top: 18px; }
.doc .short p { font-size: 14px; color: var(--faint); }
.doc .toc { background: #fff; border-radius: 22px; padding: 18px 26px 14px; margin: 22px 0 10px; }
.doc .toc-head { font-weight: 900; font-size: 13px !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint) !important; margin: 0 0 6px; }
.doc .toc ol { columns: 2; column-gap: 34px; margin: 0; padding-left: 22px; }
.doc .toc li { font-size: 15px; line-height: 1.5; margin: 0 0 4px; break-inside: avoid; }
.doc .toc a { text-decoration: none; font-weight: 700; }
.doc .toc a:hover { text-decoration: underline; }
.doc .callout { background: #fff3cf; border-left: 4px solid var(--mustard); border-radius: 12px; padding: 14px 18px; }
@media (max-width: 640px) { .doc .toc ol { columns: 1; } .doc .short, .doc .toc { padding-left: 18px; padding-right: 18px; } }

footer.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 30px 0 48px; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; font-size: 14px; font-weight: 700; color: var(--faint); }
footer.foot a { text-decoration: none; }
footer.foot a:hover { color: var(--ink); }
footer.foot .fine { flex-basis: 100%; font-weight: 500; font-size: 13px; }

/* tablet and phone */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 50px; padding-bottom: 60px; }
  .collage { max-width: 560px; margin: 0 auto; width: 100%; }
  .receipt { right: 0; }
  .band { grid-template-columns: 1fr; padding: 40px 30px; gap: 34px; }
  .partners { grid-template-columns: 1fr; gap: 34px; }
  .shops-head { flex-direction: column; align-items: start; gap: 14px; }
  .shop-grid { grid-template-columns: repeat(6, 1fr); }
  .screens { justify-content: flex-start; overflow-x: auto; padding: 50px 28px 30px; margin: 0 -28px; scroll-snap-type: x mandatory; }
  .screens figure { scroll-snap-align: center; }
  .screens figure:nth-child(2) { transform: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  nav.top .links { gap: 14px; font-size: 14px; }
  nav.top .links .opt { display: none; }
  .hero .lead { font-size: 18px; }
  .collage { gap: 8px; }
  .collage > img { border-radius: 16px; }
  .receipt { width: auto; min-width: 190px; font-size: 13px; padding: 12px 14px; bottom: -22px; right: -4px; }
  .receipt .ok { font-size: 12px; }
  .screens .phone { width: 230px; }
  .form { grid-template-columns: 1fr; padding: 20px; }
  .shop-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .shop-grid li { border-radius: 18px; padding: 11px 4px 9px; gap: 7px; }
  .shop-grid img { width: 44px; height: 44px; }
  .shop-grid span { font-size: 12px; }
    .marquee img { width: 130px; height: 130px; border-radius: 22px; }
}
