/* Landing-only styles. Shared tokens, header, and footer live in styles.css. */

/* ---- backdrop: dot grid fading under a warm glow ---- */
:root { color-scheme: light; }
body { position: relative; isolation: isolate; overflow-x: hidden; }
body::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 1100px; z-index: -2;
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%);
}
body::after {
  content: '';
  position: absolute; z-index: -1; pointer-events: none;
  top: -180px; right: -240px; width: 760px; height: 760px;
  background: radial-gradient(closest-side, var(--glow) 0%, transparent 100%);
}
:root { --dot: #cfcabc; --glow: rgba(232, 163, 61, .32); --shadow-ink: 16, 22, 35; }

.wrap-wide { max-width: 1060px; }

/* ---- hero ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(24px, 6vw, 72px) 0 clamp(40px, 6vw, 72px);
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  letter-spacing: -1.6px;
  line-height: 1.02;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero-sub { font-size: 19px; max-width: 34em; margin: 0 0 32px; }

/* store badges */
.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 56px; padding: 8px 18px 8px 14px;
  background: var(--ink); color: var(--paper);
  border-radius: 12px; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 10px 24px -14px rgba(var(--shadow-ink), .55);
  transition: transform .18s ease, box-shadow .18s ease;
}
.badge:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 16px 28px -14px rgba(var(--shadow-ink), .6); }
.badge:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge span { display: block; line-height: 1.1; }
.badge .small { font-size: 11px; font-weight: 500; opacity: .78; letter-spacing: .1px; }
.badge .big { font-size: 19px; font-weight: 600; letter-spacing: -.3px; margin-top: 2px; }
.stores-note { flex-basis: 100%; color: var(--ink-muted); font-size: 14px; margin: 4px 0 0; }

/* ---- the sale ticket ---- */
.ticket-wrap { position: relative; }
.ticket {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 24px 24px;
  box-shadow:
    0 1px 2px rgba(var(--shadow-ink), .06),
    0 12px 32px -12px rgba(var(--shadow-ink), .28),
    0 40px 80px -40px rgba(var(--shadow-ink), .35);
  transform: rotate(-1.2deg);
}
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.ticket-head h2 { font-size: 20px; margin: 0; letter-spacing: -.4px; }
.chip {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.ticket-rows { list-style: none; padding: 0; margin: 0; }
.ticket-rows li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 16px; color: var(--ink-muted); margin: 0;
  padding: 9px 0; border-top: 1px dashed var(--line);
}
.ticket-rows li:first-child { border-top: 0; }
.ticket-rows .amt { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 500; }
.ticket-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 10px; padding-top: 16px; border-top: 2px solid var(--ink);
}
.ticket-total .label { font-weight: 600; color: var(--ink); font-size: 17px; }
.ticket-total .amt {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 40px; letter-spacing: -1.2px; line-height: 1;
  color: var(--profit); font-variant-numeric: tabular-nums;
}
/* torn receipt edge */
.ticket::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: -9px; height: 10px;
  background: radial-gradient(circle at 6px -2px, transparent 6px, var(--surface) 6.5px) 0 0 / 14px 10px repeat-x;
}
.ticket-caption { margin: 22px 8px 0; font-size: 14px; color: var(--ink-muted); text-align: center; }

/* ---- feature bento ---- */
.bento {
  display: grid; gap: 16px; margin: 8px 0 72px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 1px 2px rgba(var(--shadow-ink), .05), 0 20px 40px -32px rgba(var(--shadow-ink), .3);
  grid-column: span 2;
  display: flex; flex-direction: column; gap: 12px;
}
.card.wide { grid-column: span 6; flex-direction: row; align-items: center; gap: 28px; }
.card.wide .card-text { flex: 1 1 320px; }
.card h3 { margin: 0; font-size: 19px; letter-spacing: -.3px; }
.card p { margin: 0; font-size: 15.5px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line); color: var(--amber-deep);
}
.icon svg { width: 22px; height: 22px; }
.channels { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 320px; justify-content: flex-end; }
.channels .chip { font-size: 14px; padding: 6px 13px; }
.card .n { color: var(--profit); font-weight: 700; }

/* ---- motion prep: hidden only when JS is on, so no-JS still reads ---- */
.js [data-reveal] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .badge, .badge:hover { transition: none; transform: none; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .ticket { transform: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { grid-column: span 1; }
  .card.wide { grid-column: span 2; flex-direction: column; align-items: stretch; gap: 18px; }
  .card.wide .card-text, .channels { flex: none; width: 100%; }
  .channels { justify-content: flex-start; align-content: flex-start; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .card, .card.wide { grid-column: span 1; }
  .badge { flex: 1 1 100%; justify-content: center; }
}
