/* ---------------------------------------------------------------------------
   cocktails.biks.io

   Palette and type are lifted from backend/tailwind.config.ts so the marketing
   site, the admin app and the iOS app read as one thing: a single neutral ink
   ramp plus one amber accent. Do not introduce a second accent.

   Dark only, on purpose. The app is dark-first because it is used in dim light,
   and a light marketing site in front of a dark app is a lie about the product.
   --------------------------------------------------------------------------- */

:root {
  --ink-50: #f6f6f5;
  --ink-100: #e7e7e4;
  --ink-200: #d1d1cc;
  --ink-300: #b0b0a8;
  --ink-400: #88887e;
  --ink-500: #6d6d63;
  --ink-600: #57574f;
  --ink-700: #474742;
  --ink-800: #3b3b38;
  --ink-900: #343431;
  --ink-950: #1a1a19;

  --amber-500: #b4762a;
  --amber-600: #96601f;
  --amber-400: #d08f3f;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --measure: 46rem;
  --page: 64rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--ink-200);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  color: var(--ink-50);
  line-height: 1.2;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
}

a {
  color: var(--amber-400);
  text-decoration-color: color-mix(in srgb, var(--amber-400) 40%, transparent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink-50);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber-400);
  outline-offset: 3px;
  border-radius: 3px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--ink-900);
  color: var(--ink-50);
  padding: 0.5rem 0.875rem;
  border-radius: 4px;
}

/* --- header ---------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--ink-800);
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--ink-950) 88%, transparent);
  backdrop-filter: blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--ink-50);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.wordmark:hover {
  color: var(--ink-50);
}

.wordmark svg {
  width: 20px;
  height: 20px;
  color: var(--amber-500);
  flex: none;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--ink-400);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink-100);
}

/* --- hero ------------------------------------------------------------------ */

.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--ink-800);
  background:
    radial-gradient(48rem 26rem at 78% -10%, color-mix(in srgb, var(--amber-600) 16%, transparent), transparent 70%),
    var(--ink-950);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  margin-bottom: 1.25rem;
}

.hero .lede {
  font-size: 1.1875rem;
  color: var(--ink-300);
  max-width: 34rem;
  margin: 0 0 2rem;
}

.hero .lede strong {
  color: var(--ink-100);
  font-weight: 600;
}

/* --- download placeholder --------------------------------------------------
   PLACEHOLDER. When the app is on the App Store:
     1. Replace <div class="badge"> with an <a href="https://apps.apple.com/...">
     2. Drop in Apple's official "Download on the App Store" SVG badge
        (Apple supplies it; using their artwork is required by the marketing
        guidelines, and it must not be recoloured or redrawn).
     3. Delete .badge--soon and the "Coming soon" label.
   --------------------------------------------------------------------------- */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--ink-700);
  background: var(--ink-900);
  color: var(--ink-100);
  text-decoration: none;
  min-height: 3.25rem;
}

.badge svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--ink-200);
}

.badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.badge__text small {
  font-size: 0.6875rem;
  color: var(--ink-400);
  letter-spacing: 0.02em;
}

.badge__text span {
  font-size: 1.0625rem;
  font-weight: 600;
}

.badge--soon {
  cursor: default;
  border-style: dashed;
  border-color: var(--ink-700);
  background: transparent;
}

.cta-note {
  font-size: 0.875rem;
  color: var(--ink-400);
  margin: 0;
  max-width: 20rem;
}

/* --- phone mockup ---------------------------------------------------------- */

.phone {
  justify-self: center;
  width: 100%;
  max-width: 19rem;
  border-radius: 2.5rem;
  border: 1px solid var(--ink-700);
  background: var(--ink-900);
  padding: 0.6rem;
  box-shadow:
    0 0 0 1px var(--ink-950),
    0 30px 60px -20px rgb(0 0 0 / 0.75);
}

.phone__screen {
  border-radius: 2rem;
  background: var(--ink-950);
  padding: 1.5rem 1.15rem 1.25rem;
  overflow: hidden;
}

.phone__notch {
  width: 5rem;
  height: 0.3rem;
  border-radius: 999px;
  background: var(--ink-800);
  margin: -0.6rem auto 1.15rem;
}

.phone h3 {
  font-size: 1.375rem;
  margin-bottom: 0.3rem;
}

.phone__desc {
  font-size: 0.8125rem;
  color: var(--ink-400);
  margin: 0 0 1.15rem;
  line-height: 1.45;
}

.phone__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.chip {
  font-size: 0.6875rem;
  border-radius: 3px;
  background: var(--ink-800);
  color: var(--ink-300);
  padding: 0.15rem 0.45rem;
}

.chip--accent {
  background: color-mix(in srgb, var(--amber-600) 30%, transparent);
  color: var(--amber-400);
}

.phone__toggle {
  display: inline-flex;
  border: 1px solid var(--ink-700);
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.75rem;
  margin-bottom: 0.9rem;
}

.phone__toggle span {
  padding: 0.25rem 0.7rem;
  color: var(--ink-400);
}

.phone__toggle span.on {
  background: var(--amber-600);
  color: #fff;
  font-weight: 600;
}

.phone__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.phone__list li {
  display: flex;
  gap: 0.85rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--ink-900);
  color: var(--ink-200);
}

.phone__list li:first-child {
  border-top: 0;
}

.phone__amt {
  color: var(--ink-50);
  font-variant-numeric: tabular-nums;
  min-width: 3.75rem;
  flex: none;
}

.phone__garnish {
  color: var(--ink-400);
  font-size: 0.75rem;
}

/* --- sections -------------------------------------------------------------- */

section {
  padding: 4rem 0;
}

.section-head {
  max-width: var(--measure);
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--ink-400);
  margin: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1px;
  background: var(--ink-800);
  border: 1px solid var(--ink-800);
  border-radius: 8px;
  overflow: hidden;
}

.feature {
  background: var(--ink-950);
  padding: 1.75rem 1.5rem;
}

.feature h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.feature p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-400);
  line-height: 1.55;
}

.feature__mark {
  width: 22px;
  height: 22px;
  color: var(--amber-500);
  margin-bottom: 0.9rem;
  display: block;
}

/* --- stats ----------------------------------------------------------------- */

.stats {
  border-top: 1px solid var(--ink-800);
  border-bottom: 1px solid var(--ink-800);
  background: color-mix(in srgb, var(--ink-900) 45%, transparent);
}

.stats ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 2rem;
}

.stats dt {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--ink-50);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stats dd {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- closing --------------------------------------------------------------- */

.closing {
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.closing p {
  color: var(--ink-400);
  max-width: 34rem;
  margin: 0 auto 2rem;
}

.closing .cta {
  justify-content: center;
}

/* --- footer ---------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--ink-800);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.875rem;
  color: var(--ink-400);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.site-footer a {
  color: var(--ink-400);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink-100);
}

.drink-responsibly {
  width: 100%;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-900);
  color: var(--ink-400);
  font-size: 0.8125rem;
}

/* --- legal pages ----------------------------------------------------------- */

.legal {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

.legal h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.legal .updated {
  color: var(--ink-400);
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
}

.legal .intro p {
  color: var(--ink-200);
  margin: 1.25rem 0 0;
}

.legal section {
  padding: 0;
  margin-top: 2.75rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}

.legal p {
  margin: 0 0 0.9rem;
}

.legal p:last-child {
  margin-bottom: 0;
}

.legal ul {
  margin: 0;
  padding-left: 1.35rem;
}

.legal li {
  margin-bottom: 0.65rem;
}

.legal li::marker {
  color: var(--ink-600);
}

.legal-nav {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
  border-top: 1px solid var(--ink-800);
  font-size: 0.9375rem;
}

/* --- 404 ------------------------------------------------------------------- */

.notfound {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 7rem 1.5rem;
  text-align: center;
}

.notfound h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.notfound p {
  color: var(--ink-400);
}

/* --- responsive ------------------------------------------------------------ */

@media (max-width: 56rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .phone {
    order: -1;
    max-width: 17rem;
  }
}

@media (max-width: 34rem) {
  body {
    font-size: 16px;
  }

  section {
    padding: 3rem 0;
  }

  .site-nav {
    gap: 1rem;
    font-size: 0.875rem;
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-note {
    max-width: none;
  }

  .site-footer nav {
    margin-left: 0;
    width: 100%;
  }
}
