/* Join page. Hero positions are in design pixels at 390 wide; --u is one design pixel on this screen.
   They live here, not in style attributes, because the page policy blocks inline styles. */
:root { --u: calc(min(100vw, 430px) / 390); }
.page { max-width: 430px; margin: 0 auto; overflow-x: clip; }
/* The logo and sign-in link used to sit in the top 58 design pixels of the hero; the locked header carries them now. */
.hero { position: relative; height: calc(var(--u) * 548); margin-top: calc(var(--u) * -58); overflow: hidden; }
.landing .site-footer { padding-bottom: 84px; }
.ground, .mug { position: absolute; display: block; will-change: transform; }
.ground { left: calc(var(--u) * 91.66); top: calc(var(--u) * 90.19); width: calc(var(--u) * 379.08); height: calc(var(--u) * 505.44); mix-blend-mode: multiply; }
.mug { left: calc(var(--u) * 168); top: calc(var(--u) * 285); width: calc(var(--u) * 250.09); height: calc(var(--u) * 250.09); }
.type { position: absolute; inset: 0; will-change: transform; }
.type h1 { margin: 0; }
.joinour { position: absolute; left: calc(var(--u) * 25); top: calc(var(--u) * 62); font-size: calc(var(--u) * 19); font-family: var(--display); font-weight: 600; letter-spacing: 0.14em; line-height: 1; }
.hl { position: absolute; left: calc(var(--u) * 24); display: flex; align-items: flex-end; overflow: hidden; line-height: 1; white-space: nowrap; letter-spacing: 0; }
.hl-row { display: contents; }
.hl-in { display: block; margin-bottom: -0.1em; will-change: transform; }
.hl-1 { top: calc(var(--u) * 92); height: calc(var(--u) * 119.01); font-size: calc(var(--u) * 167.16); letter-spacing: -0.01em; margin-left: calc(var(--u) * -2); }
.hl-2 { top: calc(var(--u) * 220.01); height: calc(var(--u) * 60.46); font-size: calc(var(--u) * 83.52); color: var(--gray); }
.hl-3 { top: calc(var(--u) * 288.47); height: calc(var(--u) * 60.46); font-size: calc(var(--u) * 83.52); color: var(--gray); }
.fade { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }

.sticker { position: absolute; transform: rotate(-10deg); filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.18)); will-change: transform; }
.sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.st-hero { left: calc(var(--u) * 6); top: calc(var(--u) * 392); width: calc(var(--u) * 118); height: calc(var(--u) * 118); font-size: calc(var(--u) * 118); }
.st-t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-family: var(--display); text-transform: uppercase; }
.st-s { font-weight: 600; font-size: 0.113em; letter-spacing: 0.16em; line-height: 1.1; margin-right: -0.16em; }
.st-n { display: flex; align-items: flex-start; font-weight: 800; font-size: 0.5em; line-height: 0.88; margin-left: -0.03em; }
.st-n.long { font-size: 0.3em; }
.st-d { font-size: 0.41em; line-height: 1; margin: 0.08em 0.03em 0 0; }

.pad { padding: 0 24px; }
.pad .lede { margin: 0 0 14px; text-wrap: balance; }
.pad .notice { margin: 0 0 14px; }
.legal { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.jump { display: inline-flex; align-items: center; gap: 8px; height: 44px; margin-top: 6px; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.jump .arr { display: inline-block; transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.jump:hover .arr { transform: translateX(6px); }
.sticker { cursor: default; }
.page section { padding: 56px 24px 0; }
.page section h2 { margin: 0; font-size: 46px; line-height: 0.94; letter-spacing: 0.005em; }
.sub { margin: 14px 0 0; line-height: 1.45; color: var(--body); text-wrap: pretty; }

.steps { margin-top: 22px; }
.step { position: relative; padding: 18px 0; }
.rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left center; }
.step-in { display: flex; gap: 16px; align-items: flex-start; }
.step h3 { margin: 0; font-size: 22px; }
.step p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: var(--body); text-wrap: pretty; }

/* The numbers, white on black, edge to edge. */
.page section.nums { margin-top: 56px; padding: 56px 0 60px; background: linear-gradient(rgba(12,12,12,0.72), rgba(12,12,12,0.72)), var(--ink) url(/img/beans-dark.webp) center / cover no-repeat; color: var(--bg); }
.nums-in { padding: 0 24px; }
.nums .g { color: #a39e98; }
.nums .sub { color: #d6d2cd; }
.dots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 9px; margin-top: 30px; }
.dot { aspect-ratio: 1; border-radius: 50%; border: 2px solid #fff; background: #fff; transition: background-color 0.18s ease-out, border-color 0.18s ease-out, transform 0.18s ease-out; }
.dot.off { border-color: rgba(255, 255, 255, 0.28); background: transparent; transform: scale(0.86); }

/* Each club is a poster, the phone hero in small: DAILY over the club's name, its picture standing in front, the price
   stamped on. Sizes are in container units (1cqw is 1% of the poster's width), so it holds its shape at any size. */
.poster { position: relative; container-type: inline-size; width: 100%; max-width: 520px; aspect-ratio: 100 / 126; }
.poster h3 { margin: 0; }
.pl { position: absolute; left: 0; display: flex; align-items: flex-end; overflow: hidden; font-family: var(--display); font-weight: 800; line-height: 1; white-space: nowrap; text-transform: uppercase; }
.pl > span { display: block; margin-bottom: -0.1em; will-change: transform; }
.pl-1 { top: 0; height: 34.8cqw; font-size: 48.88cqw; letter-spacing: -0.01em; margin-left: -0.6cqw; }
.pl-2, .pl-3 { height: 17.68cqw; font-size: 24.42cqw; color: var(--gray); }
.pl-2 { top: 37.43cqw; }
.pl-3 { top: 57.46cqw; }
.p-art { position: absolute; display: block; height: auto; will-change: transform; }
.club-coffee .p-art { left: 45cqw; top: 60cqw; width: 62cqw; }
.club-latte .p-art { left: 27cqw; top: 68cqw; width: 78cqw; }
.poster .sticker { left: -2cqw; top: 90cqw; width: 34cqw; height: 34cqw; font-size: 34cqw; transform: rotate(-10deg); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.promise { margin: 6px 0 0; font-size: 19px; line-height: 1.3; color: var(--body); }
.ticker { overflow: hidden; margin-top: 18px; padding: 12px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-in { display: flex; width: max-content; animation: ticker 26s linear infinite; }
.club-latte .ticker-in { animation-duration: 38s; animation-direction: reverse; }
.ticker span { display: flex; align-items: center; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.ticker span::after { content: ""; width: 7px; height: 7px; margin: 0 16px; border-radius: 50%; background: var(--gray); }
.ticker:hover .ticker-in { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-in { animation: none; } }
.clubs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 52px; padding: 56px 24px 0; }
.gift-line { grid-column: 1 / -1; margin: -16px 0 0; }
.clubs-h { margin: 0; font-size: 46px; line-height: 0.94; }
.club { display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 96px; }
.club .btn { margin-top: 18px; }

.faqs { margin-top: 20px; }
.faqs details { border-top: 1px solid var(--line); }
.faqs details:last-child { border-bottom: 1px solid var(--line); }
.faqs summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 16px; font-weight: 500; }
.faqs summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--ink); transition: transform 0.2s ease-out; }
.plus::after { transform: rotate(90deg); }
.faqs details[open] .plus::after { transform: rotate(0); }
.faqs p { margin: 0 0 16px; font-size: 15px; color: var(--body); text-wrap: pretty; }
.close .btn { margin-top: 22px; }
.close-art { display: block; width: 150px; height: auto; margin: 0 0 14px -14px; }
.photo-band.spill { margin-top: 40px; padding: 0 12px; }
.photo-band.spill img { aspect-ratio: 3 / 2; object-fit: contain; background: none; max-width: 1100px; margin: 0 auto; }

.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; visibility: hidden; background: #fff; border-top: 1px solid var(--line); padding: 12px 24px calc(12px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.3s; }
.bar.show { visibility: visible; transform: none; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bar .btn { max-width: 382px; min-height: 56px; margin: 0 auto; font-size: 22px; }

@media (prefers-reduced-motion: reduce) { .bar, .bar.show, .dot, .plus::before, .plus::after, .jump .arr { transition: none; } }

/* ================= Tablet and desktop =================
   The hero is laid out again in design pixels, this time on a 1280-wide sheet: the headline is a two-line
   lock-up on the left (DAILY over COFFEE CLUB), the mug stands in front of its right end, and the sign-up
   text sits under the headline. The header carries the Join button, so the bottom bar is off. */
@media (min-width: 768px) {
  :root { --u: calc(min(100vw, 1440px) / 1280); }
  .page { max-width: none; }
  .landing .site-footer { padding-bottom: 0; }
  .bar { display: none; }

  .top { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: calc(var(--u) * 440) minmax(calc(var(--u) * 330), auto); max-width: 1440px; margin: 0 auto; }
  .hero { grid-area: 1 / 1 / 3 / 2; height: auto; margin-top: 0; }
  .pad { grid-area: 2 / 1; position: relative; z-index: 2; align-self: start; width: calc(var(--gutter) + var(--u) * 520); max-width: 100%; padding: 0 0 40px var(--gutter); }
  .pad .lede { font-size: clamp(1.0625rem, calc(var(--u) * 22), 1.5rem); margin-bottom: 18px; }
  .pad .btn { max-width: 400px; }

  .joinour { left: var(--gutter); top: calc(var(--u) * 30); font-size: calc(var(--u) * 26); }
  .hl { left: var(--gutter); }
  .hl-1 { top: calc(var(--u) * 68); height: calc(var(--u) * 230.7); font-size: calc(var(--u) * 324); margin-left: calc(var(--u) * -4); }
  .hl-row { position: absolute; left: var(--gutter); top: calc(var(--u) * 314); display: flex; gap: calc(var(--u) * 28); }
  .hl-row .hl { position: static; }
  .hl-2, .hl-3 { height: calc(var(--u) * 101.4); font-size: calc(var(--u) * 140); }

  .mug { left: auto; right: calc(var(--gutter) + var(--u) * 10); top: calc(var(--u) * 206); width: calc(var(--u) * 520); height: calc(var(--u) * 520); }
  .ground { left: auto; right: calc(var(--gutter) + var(--u) * (10 - 109.4)); top: calc(var(--u) * (206 - 405.1)); width: calc(var(--u) * 788.2); height: calc(var(--u) * 1050.9); }
  .st-hero { left: auto; right: calc(var(--gutter) + var(--u) * 446); top: calc(var(--u) * 548); width: calc(var(--u) * 150); height: calc(var(--u) * 150); font-size: calc(var(--u) * 150); }
  .fade { display: none; }

  .page section, .clubs { max-width: 1440px; margin: 0 auto; padding: clamp(72px, 9vw, 128px) var(--gutter) 0; }
  .page section h2, .clubs-h { font-size: clamp(52px, 6.2vw, 88px); line-height: 0.92; }
  .sub { font-size: clamp(1.0625rem, 1.5vw, 1.3rem); max-width: 30em; margin-top: 18px; }

  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.2vw, 48px); margin-top: 40px; }
  .step { padding: 24px 0 0; }
  .rule { height: 3px; background: var(--ink); }
  .step-in { flex-direction: column; gap: 14px; }
  .step h3 { font-size: clamp(24px, 2.4vw, 32px); }
  .step p { font-size: 16px; margin-top: 8px; max-width: 22em; }

  .page section.nums { max-width: none; margin-top: 0; padding: clamp(64px, 7vw, 104px) 0 clamp(72px, 8vw, 120px); }
  .nums-in { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

  .nums-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; grid-template-rows: auto 1fr; }
  .nums h2, .nums .sub { grid-column: 1; }
  .nums .sub { align-self: start; }
  .nums .dots { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 100%; max-width: 560px; margin: 0 0 0 auto; gap: clamp(9px, 1.2vw, 16px); }
  .poster { margin: 0 auto 0 0; }
  .promise { font-size: 22px; }
  .ticker { margin-top: 22px; padding: 16px 0; }
  .ticker span { font-size: 30px; }
  .clubs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px clamp(32px, 4vw, 64px); max-width: 1440px; margin: 0 auto; padding: clamp(72px, 9vw, 128px) var(--gutter) 0; }
  .clubs-head { grid-column: 1 / -1; }
  .clubs-h { font-size: clamp(52px, 6.2vw, 88px); line-height: 0.92; }
  .club .btn { margin-top: 24px; }

  .qs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; align-items: start; }
  .faqs { margin-top: 0; }
  .faqs summary { min-height: 72px; font-size: 19px; }
  .faqs p { font-size: 17px; max-width: 36em; margin-bottom: 22px; }

  .close { text-align: center; }
  .close-art { width: 210px; margin: 0 auto 18px; }
  .photo-band.spill { margin-top: 64px; }
  .close .sub { margin-left: auto; margin-right: auto; }
  .close .btn { max-width: 400px; margin: 28px auto 0; }
  .close .legal { max-width: 34em; margin-left: auto; margin-right: auto; }
}
/* Past the 1440 sheet the mug's ground shadow would stop at a hard edge, so it fades out instead. */
@media (min-width: 1441px) {
  .ground { -webkit-mask-image: linear-gradient(90deg, #000 58%, transparent 90%); mask-image: linear-gradient(90deg, #000 58%, transparent 90%); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .faqs summary { min-height: 64px; font-size: 17px; }
}
