/* redshift.coffee — 2026-11-11: the customer app's dark palette
   (redshift lib/app/app/colors.dart), one page, phone first.
   One rhythm everywhere: every block opens with .head (eyebrow + title on
   the left, a line on the right), then its content --head-gap below;
   blocks are --section apart; cards share --radius and --gap. */

:root {
  --bg: #171d25;
  --bg-deep: #11161c;
  --surface: #24303e;
  --surface-2: #2d3a4a;
  --divider: #3b4655;
  --text: #f8faff;
  --text-2: #93a4c7;
  --muted: #62708d;
  --primary: #3077d1;
  --accent: #f0631b;
  --accent-hover: #ff5a00;
  --success: #2e9e6f;
  --error: #e05a5a;

  --wrap: 1160px;
  --gutter: 20px;
  --section: clamp(72px, 9vw, 120px);
  --head-gap: clamp(28px, 3.5vw, 44px);
  --gap: 16px;
  --radius: 24px;
  --radius-sm: 14px;
  --pad: clamp(22px, 2.6vw, 30px);
}

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 6vw, 72px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Anchors land below the sticky header. */
[id] { scroll-margin-top: 80px; }

/* --- rhythm --- */

main > section { padding-top: var(--section); }
main > section:last-child { padding-bottom: var(--section); }
.block { margin-top: var(--section); }

.eyebrow {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lead { color: var(--text-2); font-size: clamp(17px, 1.5vw, 19px); }
.lead + .lead { margin-top: 14px; }

/* The right column starts level with the title (below the eyebrow). */
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 56px; align-items: start; }
.head + :not(.block) { margin-top: var(--head-gap); }
.head > :last-child:not(:first-child) { padding-top: 35px; }
@media (max-width: 760px) {
  .head { grid-template-columns: 1fr; }
  .head > :last-child:not(:first-child) { padding-top: 0; }
}

/* --- buttons --- */

.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 0;
  font: inherit; font-size: 16px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.place .btn-ghost { background: var(--surface-2); }
.place .btn-ghost:hover { background: var(--divider); }
.btn[disabled] { opacity: .6; cursor: default; }

.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 20px;
  border-radius: var(--radius-sm); border: 1px solid #3a3f47;
  background: #000; color: #fff; text-decoration: none;
}
.store:hover { border-color: #6b7380; }
/* Both stores the same size: the wider one sets it. */
.stores { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stores .store { justify-content: flex-start; min-width: 0; }
.store span { white-space: nowrap; }
@media (max-width: 600px) {
  .stores { gap: 10px; }
  .stores .store { padding: 0 12px; gap: 8px; }
  .store svg { width: 22px; height: 22px; }
  .store b { font-size: 15px; }
  .store small { font-size: 10px; }
}
@media (max-width: 340px) { .stores { grid-template-columns: 1fr; } }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 11px; line-height: 1; opacity: .8; }
.store b { display: block; font-size: 17px; line-height: 1.2; }

/* --- header --- */

.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(23, 29, 37, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(59, 70, 85, .5);
}
.top > .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { height: 26px; width: auto; filter: invert(1); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--text-2); }
.nav a:hover { color: var(--text); }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 15px; color: #fff; }
.nav { gap: 26px; }
.menu-btn {
  display: none;
  width: 40px; height: 40px; margin-left: -14px;
  border: 0; border-radius: 12px;
  background: var(--surface); color: var(--text);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .i-close, .menu-open .menu-btn .i-open { display: none; }
.menu-open .menu-btn .i-close { display: block; }

.mobile-nav { display: none; }
@media (max-width: 900px) {
  .nav a:not(.btn) { display: none; }
  .menu-btn { display: inline-flex; }
  .menu-open .mobile-nav { display: block; border-top: 1px solid rgba(59, 70, 85, .5); }
  .mobile-nav .wrap { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 16px; }
  .mobile-nav a {
    padding: 14px 0;
    font-size: 18px; font-weight: 600;
    text-decoration: none; color: var(--text);
    border-bottom: 1px solid rgba(59, 70, 85, .4);
  }
  .mobile-nav a:last-child { border-bottom: 0; }
}

/* --- hero --- */

.hero { padding-top: clamp(48px, 8vw, 112px); }
.hero-text > div { max-width: 880px; }
.hero h1 span { color: var(--accent); }
.hero-text .lead { margin-top: 24px; max-width: 640px; }

/* --- numbers --- */

.speed { margin-top: var(--section); }
.speed-card {
  background: linear-gradient(160deg, var(--surface) 0%, #1d2732 100%);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(24px, 4.5vw, 56px);
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.stat { background: rgba(17, 22, 28, .5); border-radius: 18px; padding: 20px 22px; }
.stat b { display: block; white-space: nowrap; font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.stat span { display: block; margin-top: 8px; color: var(--text-2); font-size: 14px; line-height: 1.4; }
.stats-note { margin-top: 14px; color: var(--muted); font-size: 13px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 32px; margin-top: var(--head-gap); padding-top: var(--head-gap); border-top: 1px solid var(--divider); }
.how h3 { font-size: 17px; margin-bottom: 6px; }
.how p { color: var(--text-2); font-size: 15px; }
.num { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(240, 99, 27, .16); color: var(--accent); font-size: 13px; font-weight: 800; margin-bottom: 12px; }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .stats { gap: 10px; }
  .stat { padding: 16px; }
  .stat b { font-size: 28px; }
  .stat span { font-size: 13px; }
}
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }

/* --- cards (shared) --- */

.card, .bean, .feature, .place, .form-card {
  background: var(--surface);
  border-radius: var(--radius);
}

/* --- beans --- */

.beans { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.bean { overflow: hidden; display: flex; flex-direction: column; }
.bean img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 62%; }
.bean-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bean-meta { color: var(--text-2); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(240, 99, 27, .14); color: #f6a47a; }
.recipe { margin-top: auto; background: var(--bg-deep); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.recipe b { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.bean-date { color: var(--muted); font-size: 13px; }
@media (max-width: 1100px) { .beans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .beans { grid-template-columns: 1fr; } }

/* --- drinks: one row on a wide screen, scrolls sideways on a narrow --- */

.drinks { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
.drink img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 80%; border-radius: var(--radius); background: var(--surface); }
.drink h3 { font-size: 17px; margin-top: 14px; }
.drink p { color: var(--text-2); font-size: 14px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 999px) {
  .drinks {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 10px;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .drinks::-webkit-scrollbar { display: none; }
  .drink { flex: 0 0 clamp(200px, 42vw, 260px); scroll-snap-align: start; }
}

/* --- app --- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.feature { padding: var(--pad); }
.feature .icon { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: #fff; }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 15px; }
.i-blue { background: var(--primary); }
.i-orange { background: var(--accent); }
.i-green { background: var(--success); }
.i-violet { background: #7a5af5; }
.i-gold { background: #d99a2b; }
.i-slate { background: #4b5b70; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* --- locations --- */

.places { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.place { padding: var(--pad); display: flex; flex-direction: column; }
.place h3 { font-size: 22px; }
.place p { color: var(--text-2); margin-top: 10px; font-size: 15px; }
.hours { margin: 20px 0 24px; display: grid; grid-template-columns: fit-content(60%) 1fr; gap: 6px 20px; font-size: 15px; }
.hours dt { color: var(--text-2); }
.hours dd { margin: 0; font-weight: 600; white-space: nowrap; }
.hours .special { color: var(--accent, #ff5a4e); }
.place .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) { .places { grid-template-columns: 1fr; } }

/* --- forms: text on the left, the form on the right, the same in both --- */

.form-row { display: grid; grid-template-columns: 5fr 7fr; gap: 32px 56px; align-items: start; }
.form-row .lead { margin-top: 18px; }
@media (max-width: 960px) { .form-row { grid-template-columns: 1fr; } }

.perks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.perks li b { color: var(--text); display: block; font-size: 16px; }
.check { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(46, 158, 111, .18); color: var(--success); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.check svg { width: 14px; height: 14px; }

.form-card { padding: var(--pad); }
.form-card h3 { font-size: 22px; margin-bottom: 6px; }
.form-card > p { color: var(--text-2); font-size: 15px; margin-bottom: 22px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* no zoom on iOS */
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2393a4c7' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(48, 119, 209, .22); }
.field ::placeholder { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.form-msg { font-size: 15px; }
.form-msg.err { color: var(--error); }
.form-done { text-align: center; padding: 30px 10px; }
.form-done .check { width: 56px; height: 56px; margin: 0 auto 16px; }
.form-done .check svg { width: 26px; height: 26px; }
.form-done p { color: var(--text-2); margin-top: 8px; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }

/* --- footer: one row on a wide screen, stacked on a narrow --- */

footer { border-top: 1px solid var(--divider); padding: 32px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 32px; align-items: center; }
footer nav { display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: center; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .logo { height: 20px; opacity: .7; }
@media (max-width: 900px) {
  footer .wrap { grid-template-columns: 1fr; gap: 18px; }
  footer nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* --- privacy, terms: long text in the site's frame (2026-11-11) --- */

.doc { padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.doc-wrap { max-width: calc(820px + 2 * var(--gutter)); }
.doc h1 { font-size: clamp(32px, 4.6vw, 48px); margin: 0 0 14px; }
.doc h2 { font-size: clamp(22px, 2.4vw, 26px); margin: 48px 0 12px; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text-2); font-size: 16px; line-height: 1.7; }
.doc p { margin: 12px 0; }
.doc strong, .doc b { color: var(--text); font-weight: 600; }
.doc ul, .doc ol { padding-left: 22px; margin: 12px 0; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--accent); }
.doc a { color: #f6a47a; text-decoration: none; border-bottom: 1px solid rgba(246, 164, 122, .35); }
.doc a:hover { border-bottom-color: #f6a47a; }
.doc hr { border: 0; height: 1px; background: var(--divider); margin: 36px 0; }
.doc code, .doc .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; color: var(--text); }
.doc .subtitle, .doc .effective-date { color: var(--text-2); font-size: 18px; margin: 0 0 8px; }
.doc .note { color: var(--muted); font-size: 15px; }
.doc .brand { color: var(--text); font-weight: 600; }
.doc .badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 13px; }
.doc .card { padding: var(--pad); margin: 32px 0; }
.doc .card > h2:first-child { margin-top: 0; }
.doc .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.doc .meta b { display: block; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.doc .meta span { color: var(--text); font-size: 16px; }
@media (max-width: 640px) { .doc .meta { grid-template-columns: 1fr; } }
.doc .footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--divider); }
.doc .footer, .doc .footer p { color: var(--muted); font-size: 14px; }
.doc p, .doc li, .doc .meta span { overflow-wrap: anywhere; }
