/* Boorista marketing site.
 * Tokens are the app's own (apps/mobile/src/theme.tsx): Night Shift is home, Crema is daylight.
 * Colour budget: browns for almost everything, caramel for coffee, ecto for the one action
 * (download). Steam rises; it doesn't bounce. */

@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #1A0F0A;
  --s1: #2A1A12;
  --s2: #3B261B;
  --line: #5A3D2C;
  --line-strong: #9A7860;
  --ink: #F3E6D3;
  --muted: #BFA58C;
  --caramel: #D9A066;
  --ecto: #5CFFA8;
  --on-ecto: #1A0F0A;
  --hex: #FF4FA3;
  --mark-body: #F3E6D3;
  --mark-cheek: #FF4FA3;
  --mark-neon: #5CFFA8;
  --mark-shadow: #3B261B;
  --glow: 0 0 0 1px var(--ecto), 0 0 28px rgba(92, 255, 168, .35);

  --gutter: 16px;
  --max: 1180px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F6EBDD;
    --s1: #FFF8EF;
    --s2: #EBDCC8;
    --line: #B89C7E;
    --line-strong: #8A6A50;
    --ink: #2A1A12;
    --muted: #6E4F3B;
    --caramel: #8C521B;
    --ecto: #087A4A;
    --on-ecto: #FFFFFF;
    --hex: #B8156F;
    --mark-body: #FFFFFF;
    --mark-cheek: #B8156F;
    --mark-neon: #087A4A;
    --mark-shadow: #EBDCC8;
    --glow: 0 0 0 2px var(--ecto);
    color-scheme: light;
  }
}

@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "DM Sans", system-ui, sans-serif;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.num { font-family: "Plex Mono", ui-monospace, monospace; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ecto); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--ecto); color: var(--on-ecto); padding: 10px 14px; border-radius: var(--r-sm); z-index: 10; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

main > section { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
main > section + section { margin-top: clamp(96px, 14vw, 168px); }
h2 { font-size: clamp(32px, 5vw, 56px); max-width: 18ch; }

/* ——— Header ——— */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 24px;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top)) var(--gutter) 12px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.lockup { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.lockup-mark { width: 40px; height: 40px; }
.lockup-word { width: 108px; height: 20px; }
.top-nav { display: none; gap: 28px; margin-left: auto; }
.top-nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.top-nav a:hover { color: var(--ink); }
.top .btn { margin-left: auto; }
@media (min-width: 820px) { .top-nav { display: flex; } .top .btn { margin-left: 0; } }

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--ecto); color: var(--on-ecto); font: 600 16px/1 "DM Sans", sans-serif;
  text-decoration: none; cursor: pointer; box-shadow: var(--glow);
  transition: transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; box-shadow: none; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 20px 8px 16px; border-radius: var(--r-md);
  background: var(--ecto); color: var(--on-ecto); text-decoration: none; box-shadow: var(--glow);
  transition: transform .3s var(--ease);
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 12px; line-height: 1.2; opacity: .8; }
.store strong { display: block; font-size: 18px; line-height: 1.2; font-weight: 700; }
.store.store-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }

/* ——— Hero ——— */
.hero {
  display: grid; gap: 48px; align-items: center;
  padding-top: clamp(32px, 6vw, 72px) !important;
}
@media (min-width: 960px) { .hero { grid-template-columns: 1.1fr 1fr; gap: 32px; } }
.hero h1 { font-size: clamp(46px, 7.6vw, 100px); letter-spacing: -0.045em; line-height: .98; max-width: 11ch; }
.lead { margin-top: 28px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34em; }
.hero .stores { margin-top: 36px; }
.fine { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 40em; }

.hero-stage { position: relative; height: 560px; max-width: 520px; width: 100%; margin: 0 auto; }
@media (max-width: 520px) { .hero-stage { height: 500px; } }

.phone {
  position: absolute; right: 0; top: 0; width: min(290px, 74%);
  aspect-ratio: 290 / 560; border-radius: 44px; padding: 10px;
  background: var(--s2); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--line);
  transform: rotate(4deg);
}
@media (max-width: 520px) { .phone { right: 4%; transform: rotate(3deg); } }
.phone-screen {
  height: 100%; border-radius: 34px; background: var(--bg); overflow: hidden;
  padding: 34px 16px 16px; display: flex; flex-direction: column; gap: 12px; font-size: 13px;
}
.ph-head { display: flex; align-items: center; gap: 4px; }
.ph-mark { width: 34px; height: 34px; }
.ph-word { width: 86px; height: 16px; color: var(--ink); }
.ph-greet { font-weight: 700; font-size: 20px; line-height: 1.15; letter-spacing: -0.02em; margin-top: 4px; }
.ph-card { background: var(--s1); border-radius: var(--r-md); padding: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.ph-usual { display: flex; gap: 12px; align-items: center; }
.ph-glass { width: 44px; height: 62px; flex: none; border-radius: 4px 4px 10px 10px; overflow: hidden; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.ph-glass i { display: block; }
.l-foam { flex: 1.2; background: #FFF3E2; }
.l-milk { flex: 2.4; background: #E6CBA8; }
.l-shot { flex: 1; background: #4A2A18; }
.ph-title { font-weight: 600; font-size: 15px; }
.ph-reason { color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 2px; }
.ph-fact { color: var(--caramel); font-size: 12px; margin-top: 6px; font-weight: 600; }
.ph-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ph-chips span { padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 12px; font-weight: 500; }
.ph-chips span:first-child { background: var(--s2); }
.ph-cta { margin-top: auto; text-align: center; background: var(--ecto); color: var(--on-ecto); border-radius: 999px; padding: 12px; font-weight: 700; box-shadow: var(--glow); }

.rise { position: absolute; z-index: 2; left: -4%; bottom: 0; width: min(270px, 62%); filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.ghost-body { animation: rise 1.8s var(--ease) .25s both, hover 6s ease-in-out 2.2s infinite alternate; }
.eyes { transform-origin: 120px 104px; animation: blink 4.2s ease 2.3s 1 both; }
@keyframes rise { from { transform: translateY(96px); } to { transform: translateY(0); } }
@keyframes hover { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.1); } }

.steam { position: absolute; left: 7%; bottom: 210px; width: 150px; height: 160px; pointer-events: none; }
.steam span {
  position: absolute; bottom: 0; width: 14px; height: 110px; border-radius: 999px;
  background: linear-gradient(to top, transparent, color-mix(in srgb, var(--ink) 22%, transparent), transparent);
  filter: blur(6px); animation: steam 5s ease-in-out infinite; opacity: 0;
}
.steam span:nth-child(1) { left: 30%; animation-delay: 1.6s; }
.steam span:nth-child(2) { left: 52%; animation-delay: 2.8s; }
.steam span:nth-child(3) { left: 72%; animation-delay: 4s; }
@keyframes steam { 0% { transform: translateY(20px) scaleY(.6); opacity: 0; } 40% { opacity: .9; } 100% { transform: translateY(-60px) scaleY(1.1); opacity: 0; } }

/* ——— Tune a cup ——— */
.tune-intro { display: grid; gap: 20px; }
@media (min-width: 960px) { .tune-intro { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.tune-intro p { color: var(--muted); font-size: 18px; max-width: 32em; }

.tune-board {
  margin-top: 48px; display: grid; gap: 40px;
  background: var(--s1); border-radius: 28px; padding: clamp(24px, 4vw, 56px);
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (min-width: 900px) { .tune-board { grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; } }

.tune-controls { display: grid; gap: 30px; }
.slider { display: grid; gap: 10px; }
.slider-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 19px; }
.slider-row output { color: var(--caramel); font-size: 15px; }
.slider-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 0; cursor: pointer; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(to right, var(--caramel) var(--p), var(--s2) var(--p)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--s2); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--caramel); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--ink); border: 4px solid var(--caramel); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 4px solid var(--caramel); }

.temp { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: 8px; }
.temp legend { float: left; font-weight: 600; font-size: 19px; margin-right: 12px; }
.temp label { position: relative; }
.temp input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.temp span { display: inline-block; padding: 10px 20px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-strong); font-weight: 600; }
.temp input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.temp input:focus-visible + span { outline: 3px solid var(--ecto); outline-offset: 3px; }

.surprise {
  justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--caramel);
  font: 600 16px/1.4 "DM Sans", sans-serif; text-decoration: underline; text-underline-offset: 5px; cursor: pointer;
}

.tune-result { display: grid; gap: 20px; align-items: center; grid-template-columns: 112px 1fr; order: -1; }
@media (min-width: 560px) { .tune-result { grid-template-columns: 200px 1fr; gap: 28px; } }
@media (min-width: 900px) { .tune-result { grid-template-columns: 250px 1fr; order: 0; } }
.glass { width: 100%; max-width: 250px; margin: 0 auto; overflow: visible; }
.glass rect { transition: y .7s var(--ease), height .7s var(--ease); }
#g-ice rect { transition: opacity .5s var(--ease); }
.peek { transition: transform .9s var(--ease), opacity .6s; transform: translateY(18px); opacity: 0; }
.peek.on { transform: translateY(0); opacity: 1; }

.for-you { color: var(--caramel); font-weight: 600; }
.result-copy h3 { font-size: clamp(26px, 4vw, 48px); margin-top: 6px; letter-spacing: -0.035em; }
.reason { margin-top: 10px; font-size: clamp(15px, 1.6vw, 18px); color: var(--muted); min-height: 2.6em; }
.flash { animation: flash .7s var(--ease); }
@keyframes flash { from { opacity: .2; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ——— The locked recipe ——— */
.locked { grid-column: 1 / -1; display: grid; gap: 16px 32px; justify-items: start; align-items: center; padding-top: 28px; border-top: 1.5px dashed var(--line); }
@media (min-width: 900px) { .locked { grid-template-columns: minmax(0, 360px) 1fr auto; } }
.locked-lines { display: grid; gap: 8px; width: 100%; max-width: 360px; }
.locked-lines i { font-style: normal; }
.locked-lines span { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.locked-lines b { font-weight: 500; letter-spacing: 2px; filter: blur(4px); color: var(--ink); user-select: none; }
.locked-copy { font-weight: 600; font-size: 18px; }
.ph-secret .ph-title { filter: none; }
.ph-secret { box-shadow: inset 0 0 0 1.5px var(--line-strong); border-style: dashed; }

/* ——— Perks ——— */
.perk-big {
  margin-top: 56px; display: grid; gap: 32px; align-items: center;
  padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: var(--s2);
}
@media (min-width: 720px) { .perk-big { grid-template-columns: auto 1fr; gap: 56px; } }
.perk-big h3 { font-size: clamp(26px, 3vw, 36px); }
.perk-big p { margin-top: 12px; font-size: 18px; color: var(--muted); max-width: 34em; }
.clock { position: relative; width: 150px; height: 150px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--caramel); display: grid; place-items: center; }
.clock::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 1.5px dashed var(--line-strong); }
.clock-hand { position: absolute; left: 50%; bottom: 50%; width: 3px; height: 52px; margin-left: -1.5px; background: var(--caramel); border-radius: 3px; transform-origin: bottom; transform: rotate(-120deg); }
.clock-time { position: relative; top: 34px; font-size: 18px; color: var(--ink); }

.perk-list { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 36px 40px; }
@media (min-width: 640px) { .perk-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .perk-list { grid-template-columns: repeat(3, 1fr); } }
.perk-list li { padding-top: 20px; border-top: 1.5px solid var(--line); }
.perk-list h3 { font-size: 21px; letter-spacing: -0.015em; }
.perk-list p { margin-top: 8px; color: var(--muted); }

/* ——— Menu ——— */
.menu-lead { margin-top: 16px; color: var(--muted); font-size: 18px; }
.menu-board { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px clamp(20px, 2.4vw, 34px); font-size: clamp(20px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.menu-board li { display: inline-flex; align-items: center; }
.menu-board .hidden-drink { filter: blur(7px); opacity: .55; user-select: none; }
.menu .menu-lead { margin-top: 28px; }

/* ——— Proof ——— */
.proof { display: grid; gap: 48px; }
@media (min-width: 960px) { .proof { grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: center; } }
.proof-quote { margin: 0; }
.proof-quote blockquote { margin: 0; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; }
.proof-quote figcaption { margin-top: 20px; color: var(--muted); font-size: 14px; }
.proof-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.proof-facts li { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: baseline; }
.proof-facts .big { white-space: nowrap; font-size: 44px; line-height: 1; color: var(--caramel); }
.proof-facts li span:last-child { color: var(--muted); }

/* ——— FAQ ——— */
.faq { max-width: 860px !important; }
.faq h2 { margin-bottom: 32px; }
details { border-top: 1.5px solid var(--line); }
details:last-of-type { border-bottom: 1.5px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--caramel); border-bottom: 2px solid var(--caramel); transform: rotate(45deg); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
details p { padding: 0 0 24px; color: var(--muted); max-width: 40em; }

/* ——— Final call ——— */
.get { text-align: center; display: grid; justify-items: center; gap: 18px; }
.get-mark { width: 120px; height: 120px; }
.get h2 { max-width: 16ch; }
.get p { color: var(--muted); font-size: 18px; }
.get .stores { justify-content: center; margin-top: 12px; }

/* ——— Footer ——— */
.foot {
  max-width: var(--max); margin: clamp(96px, 12vw, 160px) auto 0;
  padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  border-top: 1.5px solid var(--line); display: grid; gap: 14px; color: var(--muted); font-size: 15px;
}
@media (min-width: 720px) { .foot { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; } }
.foot-word { width: 120px; height: 22px; color: var(--ink); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.copy { grid-column: 1 / -1; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .steam { display: none; }
}

/* ——— Terms and privacy ——— */
.legal { max-width: 720px; margin: 0 auto; padding: 48px var(--gutter) calc(64px + env(safe-area-inset-bottom)); }
.legal h1 { font-size: clamp(36px, 6vw, 56px); letter-spacing: -0.035em; }
.legal section { margin-top: 48px; padding: 0; max-width: none; display: grid; gap: 12px; }
.legal h2 { font-size: 24px; max-width: none; }
.legal p { color: var(--muted); }
.legal a { color: var(--caramel); }
.legal-foot { margin-top: 48px; }

/* On phones the glass stays in view while you drag the sliders under it. */
@media (max-width: 899px) {
  .tune-result { position: sticky; top: 64px; z-index: 1; background: var(--s1); padding: 12px 0 16px; box-shadow: 0 12px 16px -12px rgba(0, 0, 0, .35); }
}
.legal-meta { margin-top: 16px; font-size: 15px; }
.legal-summary { margin-top: 40px; padding: 24px; border-radius: var(--r-lg); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.legal-summary ul, .legal ul, .legal ol { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--muted); }
.legal-summary ul { color: var(--ink); }
.legal-toc { margin-top: 40px; }
.legal-toc ol { margin: 12px 0 0; padding-left: 1.4em; columns: 2 220px; column-gap: 32px; }
.legal-toc li { margin-bottom: 6px; break-inside: avoid; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal section { scroll-margin-top: 84px; }
.table-wrap { overflow-x: auto; margin-top: 8px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal thead th { background: var(--s2); font-weight: 600; }
.legal tbody th { font-weight: 600; width: 22%; }
.legal td { color: var(--muted); }
.legal tr:last-child th, .legal tr:last-child td { border-bottom: 0; }
.officer { font-style: normal; padding: 16px 20px; border-radius: var(--r-md); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); line-height: 1.7; }
.fill { background: color-mix(in srgb, var(--hex) 22%, transparent); color: var(--ink); padding: 0 4px; border-radius: 4px; }
