/* boozai.app: the app's own palette (mobile/src/ui.tsx) and the icon's red. No web fonts, no third-party requests. */
:root {
  --bg: #f6f6f7; --card: #ffffff; --text: #18181b; --muted: #63636b; --line: #e4e4e7;
  --red: #c8102e; --good: #2e7d4f;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111113; --card: #1c1c1f; --text: #f4f4f5; --muted: #a1a1aa; --line: #34343a; --red: #f07167; --good: #5dbb83; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--red); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.bar { border-bottom: 1px solid var(--line); background: var(--card); }
.bar .wrap { display: flex; align-items: center; gap: 10px; height: 56px; }
.bar a.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.bar img { width: 32px; height: 32px; border-radius: 8px; }

/* landing */
.hero { text-align: center; padding: 56px 0 32px; }
.hero .logo { display: block; margin: 0 auto; width: 128px; height: 128px; border-radius: 28px;
  box-shadow: 0 6px 24px rgba(0,0,0,.12); }
/* The logo (index.html): the sight swings in and locks onto the drinks, then a ring pulses out.
   Same motion as the app's sign-in screen and the admin console. */
.logo-sight { stroke: #db0d18; fill: #db0d18; transform-box: view-box; transform-origin: 511.5px 495.5px;
  animation: logo-lock 1.1s cubic-bezier(.16, 1, .3, 1) both; }
.logo-drinks { transform-box: view-box; transform-origin: 511.5px 495.5px; animation: logo-drinks-in .7s ease-out .15s both; }
.logo-ping { fill: none; stroke: #db0d18; stroke-width: 10; opacity: 0; transform-box: view-box;
  transform-origin: 511.5px 495.5px; animation: logo-ping .9s ease-out 1s forwards; }
@keyframes logo-lock {
  0% { opacity: 0; transform: scale(1.7) rotate(-120deg); }
  45% { opacity: 1; }
  80% { transform: scale(.96) rotate(4deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes logo-drinks-in { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes logo-ping { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.22); } }
@media (prefers-reduced-motion: reduce) { .logo-sight, .logo-drinks, .logo-ping { animation: none; } }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 24px 0 12px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 auto; max-width: 560px; }
.soon { display: inline-block; margin-top: 28px; padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; }
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 24px 0 40px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.feature h2 { font-size: 18px; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); }
.example { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 40px; }
.example h2 { font-size: 18px; margin: 0 0 8px; }
.example p { margin: 0 0 8px; color: var(--muted); }
.example p:last-child { margin-bottom: 0; }

/* documents */
.doc h1 { font-size: 32px; line-height: 1.2; margin: 40px 0 4px; letter-spacing: -0.01em; }
.doc .updated { color: var(--muted); margin: 0 0 24px; }
.doc section { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin-bottom: 14px; }
.doc h2 { font-size: 19px; margin: 0 0 8px; }
.doc h3 { font-size: 16px; margin: 16px 0 4px; }
.doc p { margin: 0 0 10px; }
.doc ul, .doc ol { margin: 0 0 10px; padding-left: 22px; }
.doc li { margin-bottom: 4px; }
.doc section > :last-child { margin-bottom: 0; }
.doc .note { border-left: 4px solid var(--red); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }

/* footer */
footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
footer nav a { color: var(--muted); }
footer p { margin: 4px 0; }

@media (max-width: 520px) {
  .hero h1 { font-size: 32px; }
  .doc section { padding: 16px 18px; }
}
