/* home.css — the new Home (V15 P1), from the canvas's "Home · phone" and "Home · computer". */

#home { padding-top: 16px; }

/* ── An email's Unsubscribe link (/?unsub=<token>): asked first, on the page (a mail scanner opens links — V14 S8) ── */
.unsub h2 { font-size: 26px; }
.unsub-words { margin: 8px 0 0; color: var(--ink-soft); line-height: 1.5; }
.unsub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.unsub-actions .btn { flex: 1 1 160px; }
.unsub-msg { margin: 12px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
.unsub-msg:empty { display: none; }
.unsub-msg.bad { color: var(--accent); }
@media (min-width: 900px) { .unsub { max-width: 640px; } .unsub h2 { font-size: 30px; } }
#home > * + * { margin-top: 30px; }
.top-row { display: grid; gap: 16px; }
@media (min-width: 900px) {
  #home { padding-top: 24px; }
  #home > * + * { margin-top: 40px; }
  .top-row { grid-template-columns: 7fr 5fr; gap: 20px; }
}

/* ── New drops: the newest cards drift through on the slant (Chris + Natalie, 11-02) ──
   Each row is its own moving track inside a still block (never a moving block whose children move: the 10-30 crash);
   the block's edges fade the cards in and out. Paused off screen (home.js) and for reduced motion (navi.css). */
.hero { position: relative; height: 556px; border-radius: 32px; overflow: hidden; }
.hero-words { position: absolute; left: 22px; right: 22px; top: 18px; display: flex; flex-direction: column; z-index: 1; }
.hero-words .btn { position: absolute; left: 0; right: 0; top: calc(556px - 18px - 22px - 50px); }
.drift {
  position: absolute; left: 0; right: 0; top: 100px; bottom: 80px; overflow: hidden;
  --card: 78px; --gap: 14px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent),
                      linear-gradient(to bottom, transparent, #000 11%, #000 89%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent),
              linear-gradient(to bottom, transparent, #000 11%, #000 89%, transparent);
  mask-composite: intersect;
}
.belt { position: absolute; left: 50%; top: var(--y); transform: translate(-50%, -50%) rotate(-24deg); }
.track { display: flex; gap: var(--gap); width: max-content; padding: 14px 0; animation: navi-drift var(--dur, 30s) linear infinite; }
.belt.back .track { animation-direction: reverse; }
.drift.paused .track { animation-play-state: paused; }
@keyframes navi-drift { from { transform: translateX(0); } to { transform: translateX(var(--shift)); } }
/* The belt's pause button (V17, drawn 11-10, built 11-11): anything that moves for more than five seconds can be
   stopped (WCAG 2.2.2). A toggle: pressed = held still, and the phone remembers it (home.js). Under reduced motion
   the belt is already still, so there is nothing to press. */
.belt-pause {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid #fff; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 4px 14px rgba(160,72,104,.16);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.belt-pause[hidden] { display: none; }
.belt-pause .icon { width: 18px; height: 18px; stroke-width: 2.6; }
.belt-pause .i-play { display: none; fill: currentColor; stroke-width: 1.4; }
.belt-pause[aria-pressed="true"] .i-pause { display: none; }
.belt-pause[aria-pressed="true"] .i-play { display: inline; }
.drift.held .track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .belt-pause { display: none; } }
.track a { flex: none; width: var(--card); border-radius: var(--pc-radius); -webkit-tap-highlight-color: transparent; }
.track .pc { transition: transform .3s var(--ease); }
@media (min-width: 900px) {
  .hero { height: 560px; border-radius: 36px; }
  .hero-words { top: auto; bottom: 36px; left: 36px; right: auto; width: 330px; }
  .hero-words h1 { font-size: 58px; }
  .hero-words .btn { position: static; align-self: flex-start; margin-top: 20px; }
  .belt-pause { top: 18px; right: 18px; }
  .drift { left: 46%; top: 0; bottom: 0; --card: 96px; --gap: 16px; }   /* the right half: clear of the words */
  .drift:hover .track { animation-play-state: paused; }   /* still enough to click */
  .track a:hover .pc, .track a:focus-visible .pc { transform: translateY(-10px) scale(1.05); }
}

/* ── Navi's Vault ── */
.vault { display: flex; flex-direction: column; }
.vault h2 { font-size: 38px; }
.vault-shelf {
  margin: 16px 0; padding: 22px 12px 18px; border-radius: 24px; display: flex; justify-content: center; gap: 18px;
  background: linear-gradient(160deg, var(--blush) 0%, var(--lilac) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -20px 40px rgba(255,255,255,.25);
}
.vault-card { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 118px; text-decoration: none; text-align: center; }
.vault-card .pc { width: 118px; box-shadow: 0 16px 30px rgba(90, 40, 70, .26); }
.vault-card .sheen {
  position: absolute; top: -10%; left: 0; width: 45%; height: 120%; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.7), rgba(255,255,255,0));
  animation: navi-sheen 1.7s ease-in-out 1.1s 1 both; animation-delay: var(--d, 1.1s);
}
.vault-card .who { margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--ink-soft); }
.vault-card .who .name { display: block; font-size: 15px; color: var(--ink); }
.vault-card .price { font-size: 22px; }
.vault-card:nth-child(3) { display: none; }
.vault .btn { margin-top: auto; }
@media (min-width: 900px) {
  .vault h2 { font-size: 48px; }
  .vault-shelf { gap: 26px; padding: 20px 16px 14px; }
  .vault-card, .vault-card .pc { width: 134px; }
  .vault-card .price { font-size: 24px; }
}
@media (min-width: 1180px) { .vault-card:nth-child(3) { display: flex; } }

/* ── Who's your bias? ── */
/* The heading on its own line (Bodoni runs wider than the canvas's Cormorant), the toggle beside the hint */
.bias-sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.bias-sub .hint { margin: 0; }
.rank-toggle {
  flex: none; min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid #fff; cursor: pointer;
  background: rgba(255,255,255,.8); color: var(--ink); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px; box-shadow: 0 4px 12px rgba(160,72,104,.10); position: relative;
}
.rank-toggle::after { content: ""; position: absolute; inset: -6px 0; }   /* 46 to the thumb (its 1 px border counts), 36 to the eye */
.rank-toggle svg { width: 13px; height: 13px; fill: currentColor; }
.rank-toggle[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.bias .tabs { margin-top: 14px; }
.members {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px;
}
.members a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; text-align: center; }
.face {
  position: relative; display: block; width: 74px; height: 74px; padding: 3px; border-radius: 50%;
  background: linear-gradient(150deg, #fff, var(--blush)); box-shadow: 0 8px 18px rgba(160,72,104,.16);
}
.face .crop { display: block; width: 68px; height: 68px; border-radius: 50%; overflow: hidden; background: #fff; }
.face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transform: scale(1.6); transform-origin: 50% 22%; display: block; }
.face .navi-heart, .face .place {
  position: absolute; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
}
.face .navi-heart { right: -2px; top: -2px; background: var(--accent); }
.face .navi-heart svg { width: 12px; height: 12px; fill: #fff; }
.face .place { left: -3px; top: -3px; width: 26px; height: 26px; background: var(--ink); color: var(--on-ink); font: 700 15px/1 var(--display); }
.members .name { font-size: 15px; line-height: 1.2; }
.members .hearts { margin-top: -4px; font-size: 12px; font-weight: 600; color: var(--accent); }
.bias .arrow-link { margin-top: 10px; }
@media (min-width: 900px) {
  .bias .tabs { max-width: 560px; }
  .members { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 20px 12px; }
  .face { width: 96px; height: 96px; }
  .face .crop { width: 90px; height: 90px; }
}

/* ── Group orders ── */
.go-box { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 12px; border-radius: 28px; text-decoration: none; }
.go-box img { width: 64px; height: auto; flex: none; }
.go-words { flex: 1; min-width: 0; }
.go-words strong { display: block; font-size: 26px; line-height: 1.1; font-weight: 600; }
.go-words span { font-size: 15px; line-height: 1.4; color: var(--ink-soft); }
.go-arrow { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; }
.go-arrow .icon { width: 18px; height: 18px; stroke-width: 2; }
@media (min-width: 900px) { .go-box { padding: 18px 24px 18px 18px; border-radius: 32px; } .go-words strong { font-size: 32px; } }

/* ── Reviews ── a row you swipe */
.reviews-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.reviews-head h2 a { text-decoration: none; }
.score { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 14px; color: var(--ink-dim); text-decoration: none; }
.score:hover { color: var(--accent); }
.score svg { width: 14px; height: 14px; fill: var(--accent); }
.score strong { color: var(--ink); }
.review-row {
  margin: 12px calc(-1 * var(--gutter)) 0; padding: 6px var(--gutter) 14px; display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.review-row::-webkit-scrollbar { display: none; }
.review {
  flex: none; width: 268px; margin: 0; padding: 18px; border-radius: 24px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 10px;
}
.review .stars { width: 80px; height: 14px; fill: var(--accent); }
.review blockquote { margin: 0; font-style: italic; font-size: 17px; line-height: 1.4; }
.review figcaption { margin-top: auto; font-size: 13px; color: var(--ink-dim); }
@media (min-width: 900px) { .review { width: 300px; } }

/* Before the data lands: the shapes, softly */
.skeleton { background: rgba(255,255,255,.55); border-radius: var(--pc-radius); }
