/* Droplist website. Tokens mirror the iOS app: dark ground, white product tiles, glass cards, Apotek Extended type. */

@font-face { font-family: "Apotek"; src: url("/fonts/light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Apotek"; src: url("/fonts/regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Apotek"; src: url("/fonts/medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Apotek"; src: url("/fonts/semibold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Apotek"; src: url("/fonts/bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Apotek"; src: url("/fonts/black.otf") format("opentype"); font-weight: 900; font-display: swap; }

:root {
  --bg: #212121;          /* TESTTEST dark */
  --bg-deep: #191919;
  --card: #2c2c2c;        /* INFO dark */
  --tag: #404040;         /* TAGS dark */
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --text: #ffffff;
  --muted: #a3a3a8;
  --faint: #86868c;
  --green: #33cf67;
  --green-dim: rgba(51,207,103,.18);
  --red: #ff5f5f;
  --white: #ffffff;
  --font: "Apotek", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r-xl: 26px; --r-lg: 22px; --r-md: 16px; --r-sm: 10px;
  --wrap: 1120px;
  --glass-bg: rgba(255,255,255,.06);
  --glass-border: rgba(255,255,255,.1);
  --shadow: 0 18px 48px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 400; line-height: 1.45; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -.01em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(34px, 6vw, 64px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap.narrow { max-width: 620px; }
svg { width: 1em; height: 1em; flex: none; }

/* ---------- top bar (glass) ---------- */
.top { position: sticky; top: 0; z-index: 30; background: transparent; }
.top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -40px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 85%, transparent) 45%, transparent 100%);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 100%); }
.top.scrolled::before { opacity: 1; }
.theme { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; margin-right: 12px; }
.theme svg { width: 17px; height: 17px; }
.theme .moon, .theme svg:last-child { display: none; }
[data-theme="light"] .theme svg:first-child { display: none; }
[data-theme="light"] .theme svg:last-child { display: inline; }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand img { height: 26px; width: auto; }
.links { display: flex; gap: 22px; margin-left: 10px; }
.links a { font-weight: 600; font-size: 15px; color: var(--muted); padding: 8px 0; }
.links a:hover, .links a[aria-current] { color: var(--text); }
.top .btn { margin-left: auto; }

/* ---------- buttons, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 16px; border-radius: 999px; padding: 15px 22px; border: 1px solid transparent; transition: transform .15s ease, background .15s ease; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn.white { background: var(--white); color: #111; }
.btn.white:hover { background: #ededed; }
.btn.small { padding: 10px 16px; font-size: 14px; }
.btn.stockx { background: #006340; color: #fff; }
.btn.stockx img { height: 20px; width: 20px; }
.btn.stockx:hover { background: #007a4f; }
.btn.ghost { background: var(--glass-bg); border-color: var(--glass-border); color: var(--text); }
.pill { display: inline-flex; align-items: center; gap: 5px; background: var(--tag); color: var(--text); font-weight: 600; font-size: 12.5px; padding: 6px 10px; border-radius: 9px; line-height: 1; white-space: nowrap; }
.pill.green { background: var(--green-dim); color: var(--green); }
.pill.type { font-weight: 500; font-size: 11.5px; letter-spacing: .05em; color: var(--muted); }
a.pill { transition: background .15s ease, color .15s ease; }
a.pill:hover { background: var(--line-2); }
.pills.browse { gap: 8px; margin-bottom: 10px; }
.pills.browse .pill { font-size: 13px; padding: 8px 12px; }
.pills.browse .pill em { font-style: normal; color: var(--faint); font-weight: 500; margin-left: 2px; }
.card.faq h3 { font-size: 15px; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.card.faq p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.card.faq p:last-child { margin-bottom: 0; }
.raffle-block { margin-bottom: 30px; }
.raffle-block .retailers { margin-top: 8px; }
.pill.quiet { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }
.pill svg { width: 13px; height: 13px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pills.lead { margin: 10px 0 18px; }

.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.stores.center { justify-content: center; }
.store { display: inline-flex; align-items: center; white-space: nowrap; gap: 10px; background: var(--white); color: #111; border-radius: 14px; padding: 10px 18px 10px 14px; min-width: 176px; font-weight: 700; font-size: 17px; line-height: 1.05; transition: transform .15s ease; }
.store:hover { transform: translateY(-2px); }
.store .ico { width: 26px; height: 26px; }
.store .ico svg { width: 26px; height: 26px; }
.store small { display: block; font-size: 10.5px; font-weight: 500; color: #555; letter-spacing: .02em; margin-bottom: 1px; }

/* ---------- glass + cards ---------- */
.glass, .card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--r-lg); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); }
.card { padding: 18px 20px; margin-top: 12px; color: #e8e8ea; font-size: 15px; }
.card.quiet { color: var(--muted); font-size: 13px; }
.card.disclosure { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--faint); }
.card.disclosure svg { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow { font-weight: 600; font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.lead { font-size: 18px; color: var(--muted); max-width: 52ch; margin-top: 18px; }
.fine { font-size: 13px; color: var(--faint); margin-top: 14px; }
.stats { margin-top: 22px; gap: 8px; }
.pill.stat { font-size: 13px; padding: 8px 12px; gap: 7px; font-weight: 600; }
.pill.stat svg { width: 15px; height: 15px; }

.phones { position: relative; height: 560px; }
.phone { position: absolute; width: 235px; border-radius: 28px; background: #0b0b0c; padding: 7px; box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.08) inset; overflow: hidden; }
.phone img { width: 100%; height: auto; display: block; border-radius: 22px; }
.phone { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--r, 0deg)) translateY(var(--lift, 0px)) scale(var(--s, 1)); }
.phone.p1 { left: 8%; top: 40px; --r: -6deg; z-index: 2; }
.phone.p2 { left: 36%; top: 0; z-index: 3; width: 250px; }
.phone.p3 { left: 64%; top: 60px; --r: 6deg; z-index: 1; }
.phone.p4 { display: none; }
.phone.solo { position: static; width: 260px; margin: 0 auto; }

/* ---------- sections ---------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; }
.more:hover { color: var(--text); }
h2.center { text-align: center; margin-bottom: 22px; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: 12px; overflow-x: auto; padding: 4px 0 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

.brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.brand-tile { position: relative; aspect-ratio: 4/3; border-radius: var(--r-xl); overflow: hidden; background: var(--card) center/cover no-repeat; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .2s ease; }
.brand-tile:hover { transform: translateY(-3px); }
.brand-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.78)); }
.brand-tile span { position: absolute; left: 22px; bottom: 20px; z-index: 1; display: flex; flex-direction: column; gap: 3px; }
.brand-tile strong { font-size: 26px; font-weight: 900; letter-spacing: .01em; text-transform: uppercase; color: #fff; }
.brand-tile em { font-style: normal; font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.feature .fi { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 14px; background: var(--glass-bg); border: 1px solid var(--glass-border); margin-bottom: 16px; }
.feature .fi svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 34px; }
.cta p { color: var(--muted); margin-top: 8px; max-width: 48ch; }
.cta .stores { margin-top: 0; }

/* ---------- page heads ---------- */
.page-head { padding: 36px 0 8px; }
.page-head.slim { padding: 18px 0 0; }
.page-head.center { text-align: center; padding: 64px 0 40px; }
.page-head .sub { color: var(--muted); font-size: 16px; margin-top: 8px; }
.app-icon { border-radius: 22px; margin: 0 auto 18px; box-shadow: var(--shadow); }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; font-size: 14px; }
.crumbs a:hover { color: var(--text); }

.chips { display: flex; gap: 8px; margin-top: 18px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text); border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.chip.on { background: var(--white); color: #111; border-color: var(--white); }
.chip svg { width: 15px; height: 15px; }

/* ---------- list ---------- */
.list { padding-top: 10px; }
.dayhead { display: flex; align-items: baseline; gap: 10px; font-size: 22px; margin: 26px 0 12px; }
.dayhead em { font-style: normal; font-weight: 700; color: var(--faint); font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.day.hide, .drop.hide { display: none; }

.drop { position: relative; display: grid; grid-template-columns: 116px 1fr auto; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; margin-bottom: 10px; transition: transform .15s ease, border-color .15s ease; }
.drop:hover { transform: translateY(-2px); border-color: var(--line-2); }
.drop.instock { border-color: rgba(51,207,103,.6); box-shadow: 0 0 0 1px rgba(51,207,103,.25); background: linear-gradient(90deg, rgba(51,207,103,.14), var(--card) 60%); }
.drop .tile { display: block; width: 116px; height: 116px; background: var(--white); border-radius: var(--r-md); overflow: hidden; }
.drop .tile img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.drop .body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.drop .name { font-weight: 700; font-size: 17px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drop .badge { align-self: flex-start; background: var(--green); color: #082a14; font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.drop .chev { color: var(--faint); width: 22px; height: 22px; }
.drop .chev svg { width: 22px; height: 22px; }
.drop.small { grid-template-columns: 84px 1fr auto; padding: 10px; }
.drop.small .tile { width: 84px; height: 84px; }
.drop.small .name { font-size: 15px; }
.stack .drop { margin-bottom: 8px; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* ---------- product ---------- */
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
.hero-tile { position: sticky; top: 84px; background: var(--white); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow); }
.hero-tile > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumb { width: 64px; height: 64px; border-radius: 12px; border: 2px solid #eee; background: #fff; padding: 4px; cursor: pointer; }
.thumb.on { border-color: #111; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-info h1 { font-size: clamp(28px, 4vw, 40px); }
.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.cell { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cell.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.cell.wide .cv { margin-left: auto; }
.cell .ci { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--text); }
.cell .ci svg { width: 18px; height: 18px; }
.cell .ck { color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.cell .cv { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.cell.wide .ck { display: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.actions .btn { flex: 1 1 200px; }
.h2 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }

.retailer { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--r-lg); padding: 12px; margin-bottom: 8px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: transform .15s ease; }
.retailer:hover { transform: translateY(-2px); }
.retailer .logo { width: 56px; height: 56px; background: var(--white); border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.retailer .logo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.retailer .logo.dark { background: #111; }
.retailer .logo.dark img { padding: 12px; }
.retailer .body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.retailer .name { font-weight: 700; font-size: 16px; }
.retailer .time { font-size: 13px; color: var(--muted); font-weight: 500; }
.retailer .time.open { color: var(--green); }
.retailer .time.closed { color: var(--red); }
.retailer .region { font-size: 10.5px; font-weight: 700; border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 5px; margin-left: 4px; color: var(--muted); }
.retailer .chev { color: var(--faint); }
.retailer .chev svg { width: 20px; height: 20px; }

/* ---------- brand landing ---------- */
.brand-hero { position: relative; padding: 110px 0 60px; background: var(--bg-deep) center/cover no-repeat; }
.brand-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(33,33,33,.55), rgba(33,33,33,.92) 70%, var(--bg)); }
.brand-hero .wrap { position: relative; }
.brand-hero h1 { text-transform: uppercase; }
.brand-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
.brand-copy { padding: 30px; }
.ticks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.ticks svg { color: var(--green); margin-top: 3px; }

/* ---------- footer, tab bar ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 120px; margin-top: 30px; }
.foot-brand { display: inline-block; margin-bottom: 16px; }
.foot-brand img { display: block; width: 120px; height: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; }
.foot-links a { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.foot-links a:hover { color: var(--text); }
.foot-note { color: var(--faint); font-size: 12px; max-width: 70ch; margin-top: 6px; }

.tabbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .phones { height: 440px; }
  .phone { width: 190px; }
  .phone.p2 { width: 204px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .hero-tile { position: static; padding: 16px; }
  .brand-grid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .links, .top .btn, .theme { display: none; }
  .top .wrap { height: 58px; }
  .hero { padding-top: 32px; }
  h1 { font-size: 38px; }
  /* On phones the three frames become a swipeable strip instead of a stacked fan. */
  .phones { height: auto; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 0 14px; margin: 26px -16px 0; padding-inline: 16px; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phone { position: static; flex: 0 0 156px; width: 156px; transform: none; scroll-snap-align: center; border-radius: 22px; padding: 5px; }
  .phone img { border-radius: 18px; }
  .phone.p1, .phone.p2, .phone.p3, .phone.p4 { display: block; left: auto; top: auto; width: 156px; transform: none; }
  .phone.solo { width: 220px; }
  .brands { grid-template-columns: 1fr; }
  .brand-tile { aspect-ratio: 16/9; }
  .features { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 84%; }
  .drop { grid-template-columns: 96px 1fr auto; }
  .drop .tile { width: 96px; height: 96px; }
  .cells { grid-template-columns: 1fr 1fr; }
  .cell .cv { font-size: 15px; }
  .store { min-width: auto; flex: 1 1 auto; font-size: 15px; padding: 10px 12px; }
  .tabbar { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: rgba(44,44,44,.72); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); border: 1px solid var(--glass-border); border-radius: 26px; padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
  .tabbar a { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; font-weight: 700; padding: 12px 0; border-radius: 18px; }
  .tabbar a[aria-current] { color: #111; background: var(--white); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- text pages (About, Terms, Privacy) ---------- */
.prose { font-size: 16px; line-height: 1.6; color: #e8e8ea; }
.prose h1 { display: none; }              /* the page head already carries the title */
.prose h2 { font-size: 19px; margin: 30px 0 10px; }
.prose h2:first-of-type { margin-top: 22px; }
.prose p { margin: 0 0 16px; }
.prose p:empty { display: none; }
.prose em { color: var(--muted); }
.prose strong { color: var(--text); }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
.prose a:hover { text-decoration-color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose li p { margin: 0; }

/* ---------- contact form ---------- */
.contact { display: grid; gap: 16px; padding: 24px; }
.contact label { display: grid; gap: 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.contact .lbl { display: block; }
.contact .req { font-weight: 500; color: var(--faint); }
.contact .hide-label { visibility: hidden; }
.contact input, .contact textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 16px; outline: none; }
.contact input:focus, .contact textarea:focus { border-color: var(--text); }
.contact textarea { resize: vertical; min-height: 140px; }
.contact .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact .btn { justify-self: start; }
.contact [data-status] { min-height: 1em; }
.contact.sent .btn { background: var(--green-dim); color: var(--green); pointer-events: none; }
@media (max-width: 640px) { .contact .row2 { grid-template-columns: 1fr; } .contact .hide-label { display: none; } }

/* ---------- product price cell ---------- */
.cell .cs { font-size: 12px; color: var(--faint); font-weight: 500; margin-top: -4px; }
.cell .cs:empty { display: none; }
.retailer .logo .glyph { display: inline-flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #111; }
.retailer .logo .glyph svg { width: 24px; height: 24px; }

/* ---------- embedded contact form ---------- */
/* The Squarespace page is shown through a window that starts below its header bar and ends
   under the Submit button, so only the form itself is visible. Measured at 343px and 570px:
   header bar 0 to 72, form 97 to 604. */
.embed { position: relative; height: 540px; padding: 0; overflow: hidden; background: #fff; }
.embed iframe { position: absolute; top: -12px; left: 0; width: 100%; height: 1100px; border: 0; }
.fine.center { text-align: center; }
.fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- motion (all guarded by prefers-reduced-motion below) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes fan-l { from { opacity: 0; transform: translateY(44px) rotate(0deg); } to { opacity: 1; transform: rotate(-6deg); } }
@keyframes fan-c { from { opacity: 0; transform: translateY(44px); } to { opacity: 1; transform: none; } }
@keyframes fan-r { from { opacity: 0; transform: translateY(44px) rotate(0deg); } to { opacity: 1; transform: rotate(6deg); } }
.hero-copy > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .07s; }
.hero-copy > :nth-child(3) { animation-delay: .14s; }
.hero-copy > :nth-child(4) { animation-delay: .21s; }
.phone.p1 { animation: fan-l .75s cubic-bezier(.2,.7,.2,1) backwards .1s; }
.phone.p2 { animation: fan-c .75s cubic-bezier(.2,.7,.2,1) backwards .2s; }
.phone.p3 { animation: fan-r .75s cubic-bezier(.2,.7,.2,1) backwards .3s; }
.phone.p4 { animation: fan-c .75s cubic-bezier(.2,.7,.2,1) backwards .4s; }
@media (max-width: 640px) { .phone.p1, .phone.p3 { animation-name: fan-c; } }
.page-head h1, .page-head .sub, .page-head .chips { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.page-head .sub { animation-delay: .06s; }
.page-head .chips { animation-delay: .12s; }
/* Below-the-fold cards fade and rise as they scroll into view (class added by app.js). `translate` is
   used instead of `transform` so the hover lift on cards keeps working. */
.js .reveal { opacity: 0; translate: 0 14px; transition: opacity .5s ease, translate .55s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; translate: 0 0; }
.hero-tile > img { transition: opacity .22s ease; }
.hero-tile > img.fade { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .phone, .page-head h1, .page-head .sub, .page-head .chips { animation: none !important; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Desktop hover: the phone lifts, comes forward and tilts toward the cursor (app.js sets --rx/--ry). */
@media (hover: hover) and (min-width: 961px) {
  /* Hover works on a copy of the phone that fades in on top (app.js). The copy takes the lift
     and tilt, so the change of stacking order is a crossfade rather than a jump. */
  .phone.ghost { animation: none !important; z-index: 6; opacity: 0; pointer-events: auto;
    transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s ease, opacity .32s ease; }
  .phone.ghost.hov { --lift: -12px; --s: 1.04; opacity: 1; box-shadow: 0 34px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12) inset; }
  .phone.ghost.follow { transition: transform .18s ease-out, box-shadow .6s ease, opacity .32s ease; }
  .phone.ghost.out { opacity: 0; pointer-events: none; }
  .phones, .brand-hero .phone-wrap { position: relative; }
}
@media (prefers-reduced-motion: reduce) { .phone.ghost { display: none; } }

/* ---------- raffle "entered" tick (remembered in this browser) ---------- */
.rcard { position: relative; }
.rcard .retailer.raffle { padding-right: 64px; }
.rcard .tick { position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--glass-bg); color: transparent; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.rcard .tick svg { width: 16px; height: 16px; }
.rcard .tick:hover { border-color: var(--text); }
.rcard .tick:active { transform: scale(.92); }
.rcard.done .tick { background: var(--green); border-color: var(--green); color: #082a14; }
.rcard.done .retailer { opacity: .5; }
.rcard.done .retailer .time.open { color: var(--muted); }
.retailers .rcard + .rcard, .retailers .rcard + .retailer, .retailers .retailer + .rcard { margin-top: 8px; }
.entered-bar { margin-top: 14px; align-items: center; }
.entered-bar .pill { font-size: 13px; padding: 8px 12px; }
.hide-entered .rcard.done { display: none; }

/* nav download button: both store marks then the word */
.nav-dl { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 12.5px; letter-spacing: .08em; padding: 11px 16px 11px 18px; }
.nav-dl .ico { display: inline-flex; width: 15px; height: 15px; }
.nav-dl .ico svg { width: 15px; height: 15px; }
.nav-dl .ico + .ico { margin-left: -3px; }

/* ---------- desktop QR modal for app links ---------- */
.qr-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; }
.qr-modal[hidden] { display: none; }
.qr-back { position: absolute; inset: 0; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.qr-card { position: relative; width: min(380px, calc(100% - 40px)); padding: 28px 28px 24px; border-radius: 24px; text-align: center; animation: rise .35s cubic-bezier(.2,.7,.2,1) both; }
.qr-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.qr-x svg { width: 16px; height: 16px; }
.qr-tile { width: 232px; height: 232px; margin: 6px auto 20px; background: var(--white); border-radius: 18px; padding: 16px; box-sizing: border-box; }
.qr-tile img { width: 100%; height: 100%; display: block; }
.qr-card h2 { font-size: 20px; margin: 0 0 8px; }
.qr-card p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.qr-links { display: flex; gap: 8px; justify-content: center; }
.qr-links a { display: inline-flex; align-items: center; gap: 7px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 9px 14px; font-weight: 600; font-size: 13.5px; }
.qr-links a svg { width: 15px; height: 15px; }
.qr-links a:hover { background: var(--line-2); }
body.qr-open { overflow: hidden; }

/* ---------- /app page ---------- */
.feats { padding-top: 10px; }
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.feat-row:first-child { border-top: 0; }
.feat-row.flip .feat-copy { order: 2; }
.feat-copy h2 { font-size: 30px; margin: 0 0 12px; text-wrap: balance; }
.feat-copy > p { color: var(--muted); font-size: 16.5px; max-width: 46ch; margin: 0 0 18px; }
.feat-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.feat-points li { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; }
.feat-points svg { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 3px; }
.feat-shot { display: flex; justify-content: center; }
.feat-shot .phone.solo { width: 250px; }
@media (max-width: 960px) {
  .feat-row { grid-template-columns: 1fr; gap: 22px; padding: 28px 0; }
  .feat-row .feat-copy, .feat-row.flip .feat-copy { order: 2; }
  .feat-shot .phone.solo { width: 210px; }
  .feat-copy h2 { font-size: 26px; }
}

.h1-logo { margin: 0 0 6px; line-height: 0; }
.h1-logo img { width: 220px; max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) { .h1-logo img { width: 190px; } }

.embed.embed-delete { height: 352px; }
.embed.embed-delete iframe { top: -193px; }

/* ---------- languages, share row, home copy ---------- */
.langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 14px; }
.langs a { color: var(--faint); font-size: 13px; font-weight: 600; }
.langs a[aria-current], .langs a:hover { color: var(--text); }
.share { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 13px; color: var(--faint); }
.share a { color: var(--muted); font-weight: 600; }
.share a:hover { color: var(--text); }
.h1-sub { display: block; font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 14px; line-height: 1.4; }
.about-home h2 { font-size: 22px; margin: 26px 0 8px; }
.about-home h2:first-child { margin-top: 0; }
.about-home p { color: var(--muted); }

/* ---------- brands dropdown, brand pages ---------- */
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 4px; }
.dd-btn svg { width: 14px; height: 14px; rotate: 90deg; transition: rotate .15s ease; }
.dd:hover .dd-btn svg, .dd:focus-within .dd-btn svg { rotate: -90deg; }
.dd-menu { position: absolute; top: 100%; left: -12px; min-width: 210px; padding: 8px; display: none; flex-direction: column; background: rgba(44,44,44,.9); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); border: 1px solid var(--glass-border); border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.45); z-index: 40; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: flex; }
.dd-menu a { padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--text); }
.dd-menu a:hover { background: var(--line-2); }
.dd-menu a:last-child { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--muted); }
.brands { grid-template-columns: repeat(3, 1fr); }
.brand-tile.small { aspect-ratio: 3/2; }
.brand-tile.small strong { font-size: 20px; }
.qr-inline { text-align: center; padding: 26px 24px; }
.qr-inline .qr-tile { width: 200px; height: 200px; margin: 0 auto 16px; background: var(--white); border-radius: 18px; padding: 14px; box-sizing: border-box; }
.qr-inline .qr-tile img { width: 100%; height: 100%; display: block; }
.qr-inline p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.qr-inline .stores { margin-top: 0; justify-content: center; }
@media (max-width: 640px) { .brand-tile.small { aspect-ratio: 16/9; } .qr-inline .qr-tile { display: none; } .qr-inline p { display: none; } }

/* ---------- about page ---------- */
.prose .portrait { float: right; width: 168px; height: 168px; border-radius: 30px; object-fit: cover; margin: 6px 0 18px 26px; box-shadow: var(--shadow); }
.card.weareplay { display: flex; gap: 18px; align-items: flex-start; margin-top: 26px; clear: both; }
.card.weareplay .wp-badge { flex: none; background: var(--white); color: #111; font-weight: 800; font-size: 13px; letter-spacing: .02em; border-radius: 12px; padding: 10px 12px; }
.card.weareplay strong { display: block; font-size: 16px; margin-bottom: 4px; }
.card.weareplay p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.card.weareplay a { color: var(--text); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
@media (max-width: 640px) { .prose .portrait { float: none; display: block; width: 140px; height: 140px; margin: 0 0 18px; } }

/* ---------- light theme: the app's light palette (background #ffffff, cards #ebebeb, tags #dddddd, text #000) ---------- */
:root[data-theme="light"] {
  --bg: #ffffff; --bg-deep: #f3f3f3; --card: #ebebeb; --tag: #dddddd;
  --line: rgba(0,0,0,.08); --line-2: rgba(0,0,0,.16);
  --text: #000000; --muted: #57575c; --faint: #6b6b71;
  --green-dim: rgba(51,207,103,.16);
  --glass-bg: rgba(0,0,0,.045); --glass-border: rgba(0,0,0,.09);
  --shadow: 0 18px 48px rgba(0,0,0,.14);
}
[data-theme="light"] .brand img, [data-theme="light"] .foot-brand img, [data-theme="light"] .h1-logo img { filter: invert(1); }
[data-theme="light"] .btn.white { background: #111; color: #fff; }
[data-theme="light"] .btn.white:hover { background: #000; }
[data-theme="light"] .store { background: #111; color: #fff; }
[data-theme="light"] .store small { color: #b5b5b5; }
[data-theme="light"] .chip.on { background: #111; color: #fff; border-color: #111; }
[data-theme="light"] .card, [data-theme="light"] .prose { color: #1d1d1f; }
[data-theme="light"] .card.quiet { color: var(--muted); }
[data-theme="light"] .drop .tile, [data-theme="light"] .retailer .logo, [data-theme="light"] .hero-tile, [data-theme="light"] .qr-tile, [data-theme="light"] .qr-inline .qr-tile, [data-theme="light"] .embed { box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
[data-theme="light"] .thumb { border-color: #ddd; }
[data-theme="light"] .thumb.on { border-color: #111; }
[data-theme="light"] .tabbar { background: rgba(255,255,255,.8); box-shadow: 0 12px 30px rgba(0,0,0,.15); }
[data-theme="light"] .tabbar a[aria-current] { color: #fff; background: #111; }
[data-theme="light"] .dd-menu { background: rgba(255,255,255,.94); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
[data-theme="light"] .brand-hero::before { background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,.9) 70%, var(--bg)); }
[data-theme="light"] .qr-back { background: rgba(0,0,0,.35); }
[data-theme="light"] .qr-card { background: #fff; }
[data-theme="light"] .card.weareplay .wp-badge { background: #111; color: #fff; }
[data-theme="light"] .drop.instock { background: linear-gradient(90deg, rgba(51,207,103,.16), var(--card) 60%); }
[data-theme="light"] .rcard .tick { background: #fff; }
[data-theme="light"] .pill.type { color: #444; }
[data-theme="light"] .feat-points svg { color: #1f9e4c; }
[data-theme="light"] .retailer .time.open { color: #1f9e4c; }
[data-theme="light"] .pill.green { color: #167a3a; }
[data-theme="light"] .drop .badge { color: #063d1a; }

.top .nav-dl { margin-left: 0; }

/* brand tile and brand hero text sit on photos: always white, in both themes */
.brand-tile span, .brand-tile strong, .brand-tile em { color: #fff; }
.brand-tile em { color: rgba(255,255,255,.75); }
.brand-hero h1, .brand-hero .lead { color: #fff; }
[data-theme="light"] .brand-hero::before { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55) 60%, var(--bg)); }

.restock-block { margin-bottom: 26px; }
.restock-block .retailers { margin-top: 8px; }

/* ---------- in-stock product grid (Monotote) ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.shop-card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 12px 12px; overflow: hidden; transition: transform .15s ease, border-color .15s ease; }
.shop-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.shop-card .tile { display: block; aspect-ratio: 1; background: var(--white); border-radius: 0; margin: 0 -12px 4px; overflow: hidden; }
.shop-card .tile img { width: 100%; height: 100%; object-fit: cover; padding: 0; display: block; }
.shop-card .name { font-weight: 700; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card .price { font-size: 13.5px; font-weight: 600; }
.shop-card .price s { color: var(--faint); font-weight: 500; margin-left: 4px; }
.shop-card .shop { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); margin-top: auto; }
.shop-card .shop svg { width: 13px; height: 13px; }
[data-theme="light"] .shop-card .tile { box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
@media (max-width: 960px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }

.card.intro { margin: 0 0 18px; color: var(--muted); font-size: 15px; max-width: 78ch; }

/* ---------- footer preferences ---------- */
.prefs { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 6px 0 16px; }
.pref { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); }
.pref select { appearance: none; -webkit-appearance: none; background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text); border-radius: 10px; padding: 7px 30px 7px 11px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 9px center; background-size: 14px; }
.pref select:hover { border-color: var(--line-2); }
.pref select option { color: #111; }

/* ---------- brand tiles on phones: two columns, text that fits ---------- */
.brand-tile span { right: 14px; }
.brand-tile strong { line-height: 1.05; }
@media (max-width: 640px) {
  .brands { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brand-tile, .brand-tile.small { aspect-ratio: 4/3; border-radius: 18px; }
  .brand-tile span { left: 14px; bottom: 12px; gap: 2px; }
  .brand-tile strong, .brand-tile.small strong { font-size: 17px; letter-spacing: 0; }
  .brand-tile em { font-size: 10.5px; letter-spacing: .04em; }
  .brands .brand-tile:first-child { grid-column: 1 / -1; aspect-ratio: 16/8; }
  .brands .brand-tile:first-child strong { font-size: 22px; }
}
