/* BC Sips website — same look as the app: near-black with claret and amber glows,
   New York serif headings, SF text, brass gold, frosted glass cards. */

:root {
  --ink: #0d080a;
  --noir: #10090e;
  --claret: #731229;
  --wine: #7a1a2c;
  --amber: #c77524;
  --gold: #d6ad66;
  --gold-soft: rgba(214, 173, 102, 0.16);
  --ivory: #f7f0e9;
  --text: #f7f0e9;
  --text-2: rgba(247, 240, 233, 0.80);
  --text-3: rgba(247, 240, 233, 0.62);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.10);
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --radius: 22px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font: 17px/1.55 var(--sans);
  background: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}
/* The app's background (claret and amber glows) with warm gold light added, so the page
   isn't all dark: a soft golden haze top right and a glow rising from the bottom. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(48vmax 42vmax at 88% 6%, rgba(214, 173, 102, 0.30), transparent 62%),
    radial-gradient(60vmax 60vmax at 0% 8%, rgba(115, 18, 41, 0.55), transparent 60%),
    radial-gradient(50vmax 50vmax at 100% 48%, rgba(199, 117, 36, 0.26), transparent 60%),
    radial-gradient(70vmax 40vmax at 50% 108%, rgba(214, 173, 102, 0.26), transparent 65%),
    radial-gradient(55vmax 55vmax at 12% 92%, rgba(115, 18, 41, 0.38), transparent 60%),
    linear-gradient(180deg, #26101a 0%, #150a0e 50%, #1a0e0b 100%);
}

/* Champagne bubbles: a few rise from the bottom now and then, sway a little and fade out.
   Made by assets/bubbles.js; off for people who turn on Reduce Motion. */
.bubbles { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute; bottom: -40px; border-radius: 50%;
  /* bright highlight, gold body, a soft rim that fades into the glow — reads as a bubble, not a dot */
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 252, 240, .95) 0 9%, rgba(255, 252, 240, 0) 20%),
    radial-gradient(circle at 50% 50%, rgba(240, 205, 135, .16) 0 40%, rgba(245, 212, 145, .30) 58%, rgba(255, 225, 160, .40) 66%, rgba(255, 225, 160, .22) 71%);
  box-shadow: 0 0 14px rgba(240, 200, 120, 0.32);
  mix-blend-mode: screen;
  opacity: 0;
  /* Three separate animations so the rise keeps one steady speed from bottom to top:
     rise (linear), a gentle side-to-side sway, and fade in / out. */
  animation:
    bubble-rise var(--dur, 12s) linear forwards,
    bubble-sway var(--swaydur, 4s) ease-in-out infinite alternate,
    bubble-fade var(--dur, 12s) linear forwards;
}
@keyframes bubble-rise { from { translate: 0 0; } to { translate: 0 -110vh; } }
@keyframes bubble-sway {
  from { transform: translateX(calc(var(--sway, 12px) * -1)); }
  to   { transform: translateX(var(--sway, 12px)); }
}
@keyframes bubble-fade {
  0%   { opacity: 0; }
  8%   { opacity: var(--alpha, .7); }
  75%  { opacity: calc(var(--alpha, .7) * .7); }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .bubbles { display: none; } }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--text-2); }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 40rem; }
.muted { color: var(--text-3); font-size: .9rem; }

/* Frosted glass, like the app's cards and Liquid Glass buttons. */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 20px 50px rgba(0,0,0,.35);
}

/* Header */
.nav {
  position: sticky; top: 12px; z-index: 10;
  margin: 12px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 400 1.25rem var(--serif); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--text-2); font-size: .95rem; }
.nav ul a:hover { background: var(--glass-strong); color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .nav ul .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font: 600 1rem var(--sans); color: #1a0a0d;
  background: linear-gradient(180deg, #e4c07f, var(--gold));
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 10px 30px rgba(214,173,102,.25);
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn svg { width: 20px; height: 20px; }
.btn.ghost { color: var(--text); background: var(--glass-strong); border: 1px solid var(--line); box-shadow: none; }
.btn[aria-disabled="true"] { cursor: default; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero .logo { width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 26px; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.hero .lead { margin-inline: auto; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.trust { display: flex; gap: 10px 18px; justify-content: center; flex-wrap: wrap; margin-top: 18px; color: var(--text-3); font-size: .9rem; }
.trust span::before { content: "✦ "; color: var(--gold); }

/* Phone screenshots */
.phones { display: flex; gap: 22px; justify-content: center; align-items: flex-end; margin: 54px auto 0; flex-wrap: wrap; }
.phone {
  width: min(250px, 72vw); aspect-ratio: 1206 / 2622;
  border-radius: 38px; padding: 9px;
  background: linear-gradient(160deg, #2a1a1f, #0b0708);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.phone:nth-child(2) { transform: translateY(-26px); }
.phone .screen {
  width: 100%; height: 100%; border-radius: 30px; overflow: hidden;
  display: grid; place-items: center; text-align: center; padding: 0;
  background: radial-gradient(120% 60% at 0% 0%, rgba(115,18,41,.6), transparent), #120a0d;
  color: var(--text-3); font-size: .85rem;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
/* Phones on small screens: a 3D carousel. The front phone is centred, the other two sit
   partly behind it, turned away. Drag, swipe, tap a side phone or tap a dot to turn it;
   assets/carousel.js moves the phones (inline transforms). Without JavaScript the
   same layout shows, still. */
.phone-dots { display: none; }
@media (max-width: 720px) {
  .phones {
    --pw: min(210px, 54vw);
    position: relative; display: block;
    height: calc(var(--pw) * 2622 / 1206 + 8px);
    margin: 48px -16px 0; overflow-x: clip;
    perspective: 900px; perspective-origin: 50% 40%;
    touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  }
  .phones.dragging { cursor: grabbing; }
  .phone {
    position: absolute; top: 0; left: 50%;
    width: var(--pw); margin-left: calc(var(--pw) / -2);
    border-radius: 32px; padding: 7px;
    -webkit-tap-highlight-color: transparent;
  }
  .phone .screen { border-radius: 26px; }
  .phone .screen img { pointer-events: none; -webkit-user-drag: none; }
  .phone:nth-child(2) {
    transform: none; z-index: 3;
    box-shadow: 0 0 56px rgba(214,173,102,.32), 0 30px 80px rgba(0,0,0,.6);
  }
  .phone:nth-child(1) { transform: translateX(-62%) translateZ(-160px) rotateY(30deg); z-index: 1; filter: brightness(.55); }
  .phone:nth-child(3) { transform: translateX(62%) translateZ(-160px) rotateY(-30deg); z-index: 1; filter: brightness(.55); }
  .phone-dots { display: flex; justify-content: center; gap: 4px; margin-top: 18px; }
  .phone-dots button {
    width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
    display: grid; place-items: center;
  }
  .phone-dots button::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: rgba(247, 240, 233, .3); transition: background .3s, width .3s;
  }
  .phone-dots button[aria-current="true"]::before { width: 18px; border-radius: 4px; background: var(--gold); }
}

/* Sections */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 40px; }
.section-head .lead { margin-inline: auto; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { padding: 24px; }
.card .icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); font-size: 1.3rem; margin-bottom: 14px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: .97rem; }
.tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(214,173,102,.55); color: var(--gold); font: 700 .65rem/1.4 var(--sans); letter-spacing: .08em; vertical-align: middle; }

/* About split */
.split { display: grid; gap: 32px; grid-template-columns: 1.1fr 1fr; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
/* Each fact reads top to bottom: the gold number, then what it means right under it. */
.facts { padding: 8px 28px; display: grid; }
.facts div { display: flex; flex-direction: column; gap: 2px; padding: 18px 0; }
.facts div + div { border-top: 1px solid var(--line); }
.facts strong { font: 400 2.1rem/1.1 var(--serif); color: var(--gold); }
.facts span { color: var(--text-2); font-size: 1rem; }

/* Plans */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 860px; margin: 0 auto; }
.plan { padding: 28px; }
.plan.plus { border-color: rgba(214,173,102,.45); background: linear-gradient(160deg, rgba(214,173,102,.10), rgba(255,255,255,.05)); }
.plan .price { font: 400 2.2rem var(--serif); margin: 6px 0 2px; }
.plan .price small { font: 400 1rem var(--sans); color: var(--text-3); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; color: var(--text-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { padding: 4px 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 14px; }

/* Download / closing */
.cta { text-align: center; padding: 48px 24px; }
.cta img { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 18px; }

/* Footer */
footer { padding: 40px 0 56px; color: var(--text-3); font-size: .88rem; }
footer .row { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav a { color: var(--text-2); }
footer p { color: var(--text-3); font-size: .85rem; max-width: 40rem; }

/* Legal / support pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 0 24px; }
.doc .glass { padding: 30px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.35rem; margin-top: 1.6em; }
.doc .updated { color: var(--text-3); margin-bottom: 26px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Motion: hero and phones animate in on load; sections fade up as you scroll.
   Only with JavaScript on (html.js) and when the visitor hasn't asked to reduce motion. ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero > :not(.phones) { opacity: 0; animation: rise-in .8s cubic-bezier(.2, .7, .2, 1) forwards; }
  .js .hero > :nth-child(1) { animation-delay: .05s; }
  .js .hero > :nth-child(2) { animation-delay: .15s; }
  .js .hero > :nth-child(3) { animation-delay: .25s; }
  .js .hero > :nth-child(4) { animation-delay: .35s; }
  .js .hero > :nth-child(5) { animation-delay: .45s; }

  /* Phones rise in one after another: the middle first, the sides tilt in after it. */
  .js .phone { opacity: 0; animation: phone-in 1.1s cubic-bezier(.2, .8, .2, 1) forwards; }
  .js .phone:nth-child(2) { animation-delay: .45s; }
  .js .phone:nth-child(1) { animation-delay: .7s; --tilt: -7deg; }
  .js .phone:nth-child(3) { animation-delay: .85s; --tilt: 7deg; }

  /* Scroll reveal (assets/motion.js adds .in when an element comes into view). */
  .js .reveal { opacity: 0; translate: 0 26px; transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.in { opacity: 1; translate: 0 0; }
}
@keyframes rise-in { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes phone-in {
  from { opacity: 0; translate: 0 90px; rotate: var(--tilt, 0deg); }
  to   { opacity: 1; translate: 0 0; rotate: 0deg; }
}
