/* Shots! landing page
   Palette comes straight from the app icon: purple night, amber pour, glass white. */
:root {
  --night: #160D2B;
  --plum: #2B1A4F;
  --plum-2: #3B2566;
  --amber: #FFC94A;
  --orange: #F2841E;
  --glass: #F4EEFA;
  --pink: #FF3F9E;
  --cyan: #3FF2FF;
  --muted: #B9A9D6;

  --display: "Bungee", "Arial Black", sans-serif;
  --body: "Familjen Grotesk", system-ui, sans-serif;

  --measure: 34rem;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(60rem 40rem at 50% 18rem, rgba(242, 132, 30, .16), transparent 70%),
    var(--night);
  color: var(--glass);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  background: rgba(22, 13, 43, .82);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; font: 1.1rem var(--display); text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.sound {
  font: 500 .9rem var(--body); color: var(--muted);
  background: none; border: 1px solid rgba(185, 169, 214, .35); border-radius: 999px;
  padding: 7px 14px; cursor: pointer;
}
.sound[aria-pressed="true"] { color: var(--night); background: var(--amber); border-color: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 700 1.05rem var(--body);
  color: var(--night);
  background: linear-gradient(180deg, var(--amber), var(--orange));
  padding: 15px 26px; border-radius: 14px;
  text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 6px 0 #9C4E0B, 0 14px 30px rgba(242, 132, 30, .3);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #9C4E0B, 0 8px 20px rgba(242, 132, 30, .25); }
.btn-small { padding: 8px 16px; font-size: .95rem; border-radius: 10px; box-shadow: 0 4px 0 #9C4E0B; }
.btn-ghost {
  color: var(--glass); background: var(--plum-2);
  box-shadow: 0 6px 0 #1E1238;
}
.btn-ghost:active { box-shadow: 0 2px 0 #1E1238; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: clamp(28px, 6vw, 64px) var(--gutter) 88px;
}
.chant {
  margin: 0 auto;
  max-width: 62rem;
  font: 400 clamp(3.2rem, 13vw, 9.5rem)/.86 var(--display);
  letter-spacing: -.01em;
  display: grid;
}
.word { display: block; opacity: 0; }
.w1 { justify-self: start; color: var(--glass); }
.w2 { justify-self: center; color: var(--amber); }
.w3 {
  justify-self: end;
  font-family: "Bungee Shade", var(--display);
  color: var(--pink);
  text-shadow: 0 0 28px rgba(255, 63, 158, .55);
}
.chant.go .w1 { animation: slam .42s cubic-bezier(.2, 1.4, .4, 1) .15s forwards; }
.chant.go .w2 { animation: slam .42s cubic-bezier(.2, 1.4, .4, 1) .65s forwards; }
.chant.go .w3 { animation: slam .46s cubic-bezier(.2, 1.5, .4, 1) 1.15s forwards; }
@keyframes slam {
  0% { opacity: 0; transform: scale(2.6) rotate(-6deg); }
  60% { opacity: 1; transform: scale(.94) rotate(1deg); }
  100% { opacity: 1; transform: none; }
}
.hero.shake { animation: shake .28s ease; }
@keyframes shake {
  0%, 100% { transform: none; }
  25% { transform: translate(-5px, 3px); }
  50% { transform: translate(4px, -3px); }
  75% { transform: translate(-2px, 2px); }
}

.glass-btn {
  display: block; margin: clamp(-8px, -1vw, 0px) auto 0;
  background: none; border: 0; padding: 10px; cursor: pointer;
  border-radius: 24px;
}
.glass { width: clamp(150px, 26vw, 220px); height: auto; overflow: visible; transition: transform .15s ease; }
.glass-btn:hover .glass { transform: rotate(-4deg); }
.glass-btn.clink .glass { animation: clink .32s ease; }
@keyframes clink {
  0% { transform: rotate(0); }
  30% { transform: translateY(-14px) rotate(-9deg); }
  60% { transform: translateY(2px) rotate(3deg); }
  100% { transform: none; }
}
.liquid { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
.poured .liquid { transition: transform 1.1s cubic-bezier(.3, .8, .3, 1); transform: scaleY(1); }

.tally { margin: 2px 0 30px; min-height: 1.5em; color: var(--muted); font-size: .95rem; }
.tagline { margin: 0; font: 400 clamp(1.5rem, 4vw, 2.3rem)/1.15 var(--display); color: var(--glass); }
.lede { max-width: var(--measure); margin: 16px auto 32px; color: var(--muted); font-size: 1.15rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: center; align-items: center; }
.store {
  font-weight: 500; color: var(--muted);
  padding: 12px 18px; border: 1px dashed rgba(185, 169, 214, .4); border-radius: 12px;
}
.fine { color: var(--muted); font-size: .9rem; margin: 26px 0 0; }

/* ---------- Demo ---------- */
.demo { padding: 72px var(--gutter); text-align: center; background: linear-gradient(180deg, transparent, rgba(43, 26, 79, .55) 30%, rgba(43, 26, 79, .55)); }
h2 { font: 400 clamp(1.7rem, 4.4vw, 2.8rem)/1.1 var(--display); margin: 0 auto 12px; max-width: 22ch; }
.section-lede { max-width: var(--measure); margin: 0 auto 36px; color: var(--muted); }

.desk {
  position: relative; overflow: hidden;
  max-width: 880px; height: 400px; margin: 0 auto;
  border-radius: 16px;
  background:
    radial-gradient(30rem 20rem at 20% 110%, rgba(255, 63, 158, .45), transparent 70%),
    radial-gradient(30rem 22rem at 90% 0%, rgba(63, 242, 255, .25), transparent 70%),
    linear-gradient(160deg, #3B2566, #1C1036);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(244, 238, 250, .1);
  text-align: left;
}
.menubar {
  height: 30px; padding: 0 12px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(244, 238, 250, .16); backdrop-filter: blur(12px);
  font-size: .85rem;
}
.mb-left { display: flex; gap: 16px; }
.mb-right { display: flex; align-items: center; gap: 12px; }
.mb-glass {
  width: 30px; height: 24px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 5px; cursor: pointer; color: var(--glass);
}
.mb-glass[aria-expanded="true"], .mb-glass:hover { background: rgba(244, 238, 250, .2); }
.mb-glass svg { width: 18px; height: 18px; }
.mb-outline { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.mb-base { fill: currentColor; }
.mb-fill { fill: currentColor; opacity: 0; transition: opacity .2s; }
.mb-glass.full .mb-fill { opacity: 1; }
.mb-glass.full { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

.panel {
  position: absolute; top: 36px; right: 52px;
  width: min(330px, calc(100% - 24px));
  background: rgba(30, 18, 56, .94); backdrop-filter: blur(16px);
  border-radius: 12px; padding: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(244, 238, 250, .12);
  transform-origin: top right;
  animation: drop .18s ease-out;
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.panel-search { font-size: .85rem; color: var(--muted); padding: 6px 8px; border-radius: 7px; background: rgba(244, 238, 250, .07); }
.panel-day { font-weight: 700; font-size: .85rem; margin: 12px 2px 8px; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-height: 260px; overflow: auto; }
.panel-empty { color: var(--muted); font-size: .9rem; margin: 6px 2px; }
.thumb {
  aspect-ratio: 16 / 10; border-radius: 8px; border: 1px solid rgba(244, 238, 250, .2);
  cursor: pointer; padding: 0; position: relative; overflow: hidden;
}
.thumb:hover { outline: 2px solid var(--amber); outline-offset: 0; }
.thumb i { position: absolute; display: block; border-radius: 3px; }
.thumb-new { animation: pop .3s ease; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.on { animation: flash .35s ease-out; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }

.toast {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(10px);
  padding: 8px 18px; border-radius: 999px;
  background: rgba(244, 238, 250, .92); color: var(--night); font-weight: 700;
  opacity: 0; transition: opacity .15s, transform .15s; pointer-events: none;
}
.toast.on { opacity: 1; transform: translateX(-50%); }

.demo-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 20px; margin-top: 30px; }
.hint { color: var(--muted); }

/* ---------- The menu ---------- */
.menu { padding: 96px var(--gutter); }
.board {
  max-width: 40rem; margin: 0 auto;
  padding: clamp(28px, 5vw, 52px);
  border: 3px solid var(--pink);
  border-radius: 28px;
  box-shadow: 0 0 0 1px rgba(255, 63, 158, .3), 0 0 40px rgba(255, 63, 158, .3), inset 0 0 40px rgba(255, 63, 158, .12);
  background: rgba(22, 13, 43, .7);
}
.board-title { text-align: center; color: var(--pink); text-shadow: 0 0 22px rgba(255, 63, 158, .6); margin-bottom: 4px; }
.board-sub { text-align: center; color: var(--muted); margin: 0 0 30px; font-style: italic; }
.items { margin: 0; }
.item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline;
  column-gap: 10px; padding: 14px 0;
}
.item dt { font-weight: 700; font-size: 1.15rem; }
.item::before {
  content: ""; grid-column: 2; grid-row: 1;
  border-bottom: 2px dotted rgba(185, 169, 214, .45); transform: translateY(-5px);
}
.price { grid-column: 3; grid-row: 1; margin: 0; color: var(--amber); font-weight: 700; }
.desc { grid-column: 1 / -1; margin: 4px 0 0; color: var(--muted); max-width: 32rem; }

/* ---------- Last call ---------- */
.last-call { text-align: center; padding: 40px var(--gutter) 88px; }
.last-title { font-size: clamp(2.4rem, 8vw, 5rem); color: var(--amber); margin-bottom: 30px; max-width: none; }

/* ---------- Tip jar ---------- */
.tip { text-align: center; padding: 0 var(--gutter) 96px; }
.tip-title { font-size: clamp(1.6rem, 5vw, 2.4rem); color: var(--glass); margin: 0 auto 12px; max-width: none; }
.tip-text { max-width: var(--measure); margin: 0 auto 26px; color: var(--muted); }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
  padding: 22px var(--gutter); color: var(--muted); font-size: .9rem;
  border-top: 1px solid rgba(185, 169, 214, .15);
}

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .desk { height: 380px; }
  .panel { right: 12px; }
  .sound { padding: 6px 11px; }
  .item dt { font-size: 1.05rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chant.go .word { animation: fade .3s ease forwards; }
  .chant.go .w2 { animation-delay: .15s; }
  .chant.go .w3 { animation-delay: .3s; }
  @keyframes fade { to { opacity: 1; } }
  .hero.shake, .glass-btn.clink .glass, .mb-glass.full, .thumb-new, .panel { animation: none; }
  .poured .liquid { transition: none; }
  .flash.on { animation-duration: .01s; }
}
