/* BZG — Black Friday sale (sale.bzgapps.com).
   Set like bzgapps.com: the white bar with the logo, then a band for each
   app in its own colour. The hero is black, for the Friday. The type and
   the checkout sheet are shared with the Index site. */

@font-face { font-family: "Sequel Sans"; font-weight: 400; font-display: swap; src: url(assets/fonts/sequel-sans-400.woff) format("woff"); }
@font-face { font-family: "Sequel Sans"; font-weight: 500; font-display: swap; src: url(assets/fonts/sequel-sans-500.woff) format("woff"); }
@font-face { font-family: "Sequel Sans"; font-weight: 600; font-display: swap; src: url(assets/fonts/sequel-sans-600.woff) format("woff"); }
@font-face { font-family: "Sequel Sans"; font-weight: 700; font-display: swap; src: url(assets/fonts/sequel-sans-700.woff) format("woff"); }

:root {
  color-scheme: light;
  --bg: #fbfbfd;
  --tint: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --dim: #86868b;
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .12);
  --blue: #0071e3;
  --sale: #e8382e;
  --i1: #4C8DFF; --i2: #9A6BFF; --i3: #FF6EC7; --i4: #FFB56B;
  --i-solid: #8F87F8;
  --grad: linear-gradient(120deg, var(--i1), var(--i2) 38%, var(--i3) 72%, var(--i4));
  --enter: cubic-bezier(.2, .7, .3, 1);
  --move: cubic-bezier(.4, .2, .2, 1);
  --font: "Sequel Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 58px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.47;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 600; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }
.soft { color: var(--dim); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.flow .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--enter), transform .9s var(--enter); transition-delay: var(--d, 0s); }
.flow .reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; font-weight: 500; white-space: nowrap;
  transition: background .15s ease-out, transform .15s ease-out;
}
.btn-sm { height: 30px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 26px; font-size: 17px; }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-dark:active { transform: scale(.98); }
.btn[disabled] { background: rgba(0, 0, 0, .08); color: var(--dim); cursor: default; transform: none; }

/* ---------- Header: the white bar from bzgapps.com ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.nav-inner { position: relative; max-width: 1200px; margin: 0 auto; height: 58px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: flex-end; }
.brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 7px; font-weight: 500; font-size: 22px; letter-spacing: -.01em; white-space: nowrap; }
.brand img { flex: none; }
.nav-end { display: flex; align-items: center; gap: 14px; }
.nav-clock { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav-clock b { color: var(--text); font-weight: 600; }

/* The icon and name, side by side, the way every BZG app is introduced. */
.lockup { display: flex; align-items: center; gap: 12px; font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: 0; }
.lockup img { flex: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .18)); }

/* ---------- Hero: black, for the Friday ---------- */
.hero { background: #0b0b0c; color: #fff; padding: clamp(48px, 7vw, 84px) 0 clamp(44px, 6vw, 72px); text-align: center; }
.chip { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .86); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.hero h1 { margin-top: 24px; font-size: clamp(34px, 5vw, 56px); line-height: 1.1; letter-spacing: -.01em; font-weight: 600; }
.hero h1 .off { display: inline-block; margin-bottom: .16em; padding: .02em .16em .06em; border-radius: .14em; background: #fff; color: #0b0b0c; font-size: clamp(72px, 13vw, 168px); line-height: 1; letter-spacing: -.035em; font-weight: 700; }
.lede { max-width: 580px; margin: 20px auto 0; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.4; color: rgba(255, 255, 255, .7); }

.clock { margin-top: 32px; }
.clock-label { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .5); text-transform: uppercase; letter-spacing: .1em; }
.clock-digits { display: inline-flex; gap: 8px; margin-top: 10px; }
.clock-digits span { display: flex; flex-direction: column; align-items: center; width: 80px; padding: 12px 0 10px; background: #1b1b1e; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.clock-digits b { font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.clock-digits i { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .5); }

/* The three apps, each in its own colour. */
.picks { margin-top: 48px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; text-align: left; scroll-margin-top: 76px; }
.pick { position: relative; display: flex; flex-direction: column; padding: 24px 24px 22px; border-radius: 20px; color: #fff; transition: transform .35s var(--enter); }
.pick:hover { transform: translateY(-4px); }
.pick .lockup { font-size: 24px; gap: 10px; }
.pct { font-style: normal; font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--sale); color: #fff; white-space: nowrap; }
.pick .pct { position: absolute; bottom: 26px; right: 20px; }
.pct[hidden], .pct:empty { display: none; }
.pick > span { margin-top: 12px; font-size: 16px; line-height: 1.3; opacity: .82; min-height: 2.6em; }
.pick em { margin-top: 14px; font-style: normal; display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.pick em span { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.pick em s { font-size: 16px; opacity: .6; }
.pick-coherence, .band-coherence .shot { background: linear-gradient(180deg, #e3f1f8, #bfe0ee); }
.pick-coherence { color: #1d5878; }
.pick-unite, .band-unite .shot { background: linear-gradient(90deg, #0d0717 0%, #3c1470 55%, #8a24e0 100%); }
.pick-bundle, .band-bundle .shot { background: linear-gradient(100deg, #8a24e0 0%, #5a3fc9 38%, #7fb6dc 72%, #cfe8f3 100%); }
.pick-quip, .band-quip .shot { background: linear-gradient(180deg, #1c1838 0%, #33508f 55%, #5ba2f2 100%); }

.facts-row { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.facts-row li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 2px solid rgba(255, 255, 255, .22); }
.facts-row b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.facts-row span { font-size: 14px; color: rgba(255, 255, 255, .6); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 100px) 0; background: #fafafa; }
.h2 { text-align: center; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: 0; font-weight: 600; }

/* ---------- An app: the same every time, in its own colour ---------- */
.band { --accent: #1d1d1f; padding: clamp(56px, 7vw, 88px) 0; background: #fff; scroll-margin-top: 58px; }
.band + .band { border-top: 1px solid var(--line); }
.band-coherence { --accent: #1f6f9a; }
.band-unite { --accent: #7a2bd6; }
.band-quip { --accent: #2f6fd0; }
.band-bundle { --accent: #5a3fc9; }
.band[hidden], .pick[hidden] { display: none; }
.duo { display: flex; flex: none; }
.duo img + img { margin-left: -14px; }
.shot-duo { position: relative; }
.shot.shot-duo img { position: absolute; width: 60%; height: auto; }
.shot.shot-duo img:first-child { left: 3%; top: 8%; }
.shot.shot-duo img:last-child { right: 3%; bottom: 3%; }
.band-copy { max-width: 600px; }
.band-copy h2 { margin-top: 16px; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; letter-spacing: 0; font-weight: 600; }
.band-copy h2 i { color: var(--accent); }
.band-desc { margin-top: 8px; font-size: 17px; line-height: 1.4; color: var(--muted); }
.app-grid { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: stretch; }
.shot { border-radius: 24px; aspect-ratio: 16 / 11; min-height: 100%; padding: clamp(18px, 3.4vw, 44px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: contain; }

.card { background: var(--card); color: var(--text); border-radius: 24px; padding: 22px 22px 18px; box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, .08); display: flex; flex-direction: column; }

.seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 3px; border: 0; border-radius: 12px; background: rgba(0, 0, 0, .06); }
.seg label { position: relative; z-index: 1; text-align: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 0; font-size: 14px; font-weight: 500; color: var(--muted); border-radius: 9px; transition: color .2s ease-out; }
.seg input:checked + span { color: var(--text); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }
.seg-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3);
  background: #fff; border-radius: 9px; box-shadow: 0 1px 3px rgba(0, 0, 0, .14), 0 0 0 .5px rgba(0, 0, 0, .05);
  transform: translateX(calc(var(--at, 0) * 100%)); transition: transform .35s var(--move);
}

.tag { align-self: flex-start; margin-top: 22px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: var(--sale); }
.tag:empty { visibility: hidden; }
.price { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.price [data-now] { font-size: 60px; line-height: 1.05; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price s { font-size: 20px; color: var(--dim); font-variant-numeric: tabular-nums; }
.price.swap [data-now], .price.swap s { animation: step .4s var(--enter) both; }
@keyframes step { from { opacity: 0; transform: translateY(8px); } }
.terms { margin-top: 2px; font-size: 15px; color: var(--muted); }

.ticks { list-style: none; margin: 20px 0 22px; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 15px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 6px;
  border-left: 2px solid var(--accent, #1d1d1f); border-bottom: 2px solid var(--accent, #1d1d1f); transform: rotate(-45deg); border-radius: 1px;
}
.btn-buy { height: 50px; font-size: 17px; margin-top: auto; font-variant-numeric: tabular-nums; }
.try { margin-top: 14px; padding: 0; border: 0; background: none; text-align: center; font-size: 14px; color: var(--blue); }
.try:hover { text-decoration: underline; }
.fine { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--dim); text-align: center; }
.fine svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; }

/* ---------- Questions ---------- */
.faq { margin-top: 44px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 2px; position: relative; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg); transition: transform .25s var(--move);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details p { padding: 0 40px 22px 2px; color: var(--muted); font-size: 16px; animation: step .35s var(--enter) both; }
.faq a { color: var(--blue); }
.faq a:hover { text-decoration: underline; }

/* ---------- Checkout: a sheet over the page ---------- */
.pay {
  width: min(880px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 28px;
  background: var(--card); color: var(--text); overflow: auto;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .18), 0 40px 120px rgba(0, 0, 0, .3);
}
.pay[open] { animation: sheet .45s var(--enter) both; }
@keyframes sheet { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.pay::backdrop { background: rgba(20, 20, 30, .38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pay-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 560px; }
.pay-side { --accent: #1d1d1f; padding: 32px 28px; background: var(--tint); display: flex; flex-direction: column; }
.pay-icons img { width: 64px; height: 64px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .16)); }
.pay-icons img + img { margin-left: -20px; }
.done-icons { justify-content: center; }
.done-icons img { width: 72px; height: 72px; }
.pay-side h2 { margin-top: 16px; font-size: 26px; letter-spacing: -.02em; font-weight: 700; }
.pay-macs { font-size: 15px; color: var(--muted); }
.sum { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-2); display: grid; gap: 8px; font-size: 15px; font-variant-numeric: tabular-nums; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt { color: var(--muted); }
.sum-off dt, .sum-off dd { color: var(--sale); font-weight: 600; }
.sum-off[hidden] { display: none; }
.sum-total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line-2); align-items: baseline; }
.sum-total dt { color: var(--text); font-weight: 600; }
.sum-total dd { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.sum-note { margin-top: 6px; font-size: 12px; color: var(--dim); }
.pay-side .ticks { margin: auto 0 0; padding-top: 18px; font-size: 14px; }
.pay-main { position: relative; padding: 52px 24px 18px; display: flex; flex-direction: column; }
.pay-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .06); display: grid; place-items: center;
}
.pay-close:hover { background: rgba(0, 0, 0, .1); }
.pay-close svg { width: 12px; height: 12px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.step { display: flex; flex-direction: column; flex: 1; }
.step[hidden] { display: none; }
.checkout-container { flex: 1; min-height: 450px; }
.step-done { align-items: center; justify-content: center; text-align: center; padding: 20px 12px 40px; animation: step .45s var(--enter) both; }
.step-done h2 { font-size: 30px; letter-spacing: -.02em; font-weight: 700; margin: 18px 0 8px; }
.step-done p { max-width: 340px; color: var(--muted); margin-bottom: 24px; }

/* ---------- Before and after ---------- */
[data-state="ended"] :is(.clock, .nav-clock, .tag) { display: none; }
[data-state="ended"] .hero h1 .off { background: none; color: inherit; padding: 0; text-decoration: line-through; opacity: .45; }

/* ---------- Footer: the same bar as bzgapps.com ---------- */
.bzg-footer { background: #fff; border-top: 1px solid var(--line); padding: 30px 0 36px; font-size: 14px; }
.bzg-cols { display: grid; grid-template-columns: minmax(0, 1.9fr) 1.1fr 1fr; gap: 28px 36px; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.bzg-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.bzg-footer h2 { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.bzg-footer a:hover { text-decoration: underline; }
.bzg-app { display: flex; align-items: center; gap: 14px; padding: 3px 0; font-size: 16px; }
.bzg-app:hover { text-decoration: none !important; }
.bzg-app img { flex: none; width: 40px; height: 40px; }
.bzg-app img.flat { transform: scale(.82); }
.bzg-app img.round { border-radius: 23%; }
.bzg-app span { min-width: 0; }
.bzg-app i { display: block; font-style: normal; font-size: 13.5px; color: var(--muted); }
.bzg-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.bzg-base small { font-size: 12.5px; color: var(--muted); }
.bzg-base img { width: 34px; height: 20px; }

/* ---------- Smaller windows ---------- */
@media (max-width: 1000px) {
  .picks { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .shot { min-height: 0; }
  .card { max-width: 480px; width: 100%; margin: 0 auto; }
}
@media (max-width: 760px) {
  .nav-inner { justify-content: space-between; }
  .brand { position: static; transform: none; }
  .picks { grid-auto-flow: row; grid-template-columns: 1fr; gap: 10px; }
  .pick { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 16px 18px; }
  .pick .lockup { font-size: 20px; }
  .pick .lockup img { width: 36px; height: 36px; }
  .pick > span { display: none; }
  .pick em { margin: 0; flex-direction: column-reverse; align-items: flex-end; gap: 0; }
  .pick .pct { position: static; margin-left: auto; margin-right: 12px; }
  .pick em span { font-size: 22px; }
  .pick em s { font-size: 13px; }
  .facts-row { grid-template-columns: 1fr; gap: 14px; }
  .clock-digits span { width: 70px; }
  .clock-digits b { font-size: 28px; }
  .lockup { font-size: 26px; }
  .card { border-radius: 22px; padding: 18px 18px 16px; }
  .price [data-now] { font-size: 46px; }
  .faq summary { font-size: 17px; }
  .faq details p { padding-right: 8px; }
  .pay { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .pay-grid { grid-template-columns: 1fr; min-height: 100%; }
  .pay-side { padding: 18px 18px 16px; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; }
  .pay-side .pay-icons { grid-row: span 2; }
  .pay-side .pay-icons img { width: 44px; height: 44px; }
  .pay-side:has(.pay-icons img + img) { grid-template-columns: 74px 1fr; }
  .pay-side h2 { margin: 0; font-size: 20px; }
  .pay-side .sum { grid-column: 1 / -1; margin-top: 14px; padding-top: 12px; }
  .pay-side .sum-note { grid-column: 1 / -1; }
  .pay-side .ticks { display: none; }
  .pay-main { padding: 14px 12px 14px; }
  .pay-close { position: fixed; top: 16px; right: 14px; z-index: 2; }
  .bzg-cols { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .bzg-cols nav:first-child { grid-column: 1 / -1; }
  .bzg-base { align-items: flex-start; }
}
@media (max-width: 420px) {
  .nav-clock [data-clock-label] { display: none; }
  .clock-digits span { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow .reveal { opacity: 1; transform: none; transition: none; }
  .seg-thumb, .pick { transition: none; }
  .pay[open], .step-done, .price.swap [data-now], .price.swap s, .faq details p { animation: none; }
}
