/* The London Brief — teaser landing. Hero + enemy + bento + closer.
   Warm cream paper, Newsreader display (authoritative, news), Fraunces (product),
   Inter body, ink + gold. British English, no em-dashes. No backdrop-filter
   (Safari blanks stacked layers). Restrained + roomy: the feel is invitation-only. */

:root {
  --cream: #f4efe4;
  --ink: #141019;
  --ink-soft: rgba(20, 16, 25, 0.68);
  --ink-faint: rgba(20, 16, 25, 0.46);
  --gold: #c9a24b;
  --gold-deep: #9a7623;
  --navy: #10121c;
  --max: 1160px;
  --display: "Newsreader", Georgia, "Times New Roman", serif; /* authoritative headline serif */
  --serif: "Fraunces", Georgia, serif;                        /* product + feature labels */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: hidden; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Warm glows only. No busy paper texture on the page: clean space reads as
   premium and exclusive. (The product card keeps its own faint texture.) */
.texture { display: none; }
.glow { position: fixed; z-index: -2; width: 54vw; height: 54vw; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.glow-a { top: -24vw; left: -20vw; background: rgba(201,162,75,0.11); }
.glow-b { bottom: -26vw; right: -20vw; background: rgba(201,162,75,0.06); }

/* Nav (solid) */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px clamp(20px, 5vw, 56px);
  background: var(--cream);
  border-bottom: 1px solid rgba(20,16,25,0.07);
}
.nav-mark { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: -0.2px; }
.nav-logo { width: 30px; height: 30px; object-fit: contain; }
.nav-mark small { font-weight: 500; font-size: 13px; letter-spacing: 0; color: var(--ink-soft); }
.nav-cta {
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink);
  padding: 9px 17px; border: 1px solid rgba(20,16,25,0.2); border-radius: 999px;
  transition: background .25s, color .25s, border-color .25s;
}
.nav-cta:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.nav-cta .cta-mini { display: none; }

/* Shared */
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 20px; }
.kicker-centre { margin-bottom: 14px; }
.kicker-light { color: var(--gold); }

/* Buttons + form */
.btn {
  font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--cream);
  background: var(--ink); border: none; border-radius: 999px; padding: 14px 26px;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .25s ease, opacity .2s;
  box-shadow: 0 8px 22px rgba(20,16,25,0.2);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20,16,25,0.3); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

.waitlist { max-width: 480px; }
.waitlist-center { margin: 26px auto 0; }
.field {
  display: flex; gap: 8px; background: #fffdf8;
  border: 1px solid rgba(20,16,25,0.14); border-radius: 999px; padding: 6px 6px 6px 8px;
  transition: border-color .2s, box-shadow .2s;
}
.field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,75,0.18); }
.field input { flex: 1; min-width: 0; border: none; background: transparent; font-family: var(--sans); font-size: 15px; color: var(--ink); padding: 0 12px; outline: none; }
.field input::placeholder { color: var(--ink-faint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 13px; color: var(--ink-faint); margin-top: 12px; padding-left: 4px; min-height: 1.2em; transition: color .2s; }
.form-note.is-error { color: #b0442e; }
.form-note.is-success { color: var(--gold-deep); font-weight: 600; }

/* Referral success panel (replaces the form once someone joins) */
.ref-result { animation: refin .4s ease both; }
@keyframes refin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ref-seal {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px;
  font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: 1.2px;
  text-transform: uppercase; color: #3a2c07; padding: 7px 15px; border-radius: 999px;
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #e7c877, #c9a24b 42%, #9a7623);
  box-shadow: 0 6px 16px rgba(201,162,75,0.4), inset 0 1px 0 rgba(255,255,255,0.5);
  animation: sealPop .5s cubic-bezier(.2,.9,.25,1.5) both;
}
.ref-seal .seal-tick { font-size: 13px; line-height: 1; }
.ref-seal::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(115deg, transparent 34%, rgba(255,255,255,0.75) 50%, transparent 66%);
  animation: sealShine 2.8s ease-in-out .5s infinite;
}
@keyframes sealPop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes sealShine { 0% { transform: translateX(-130%); } 55%, 100% { transform: translateX(130%); } }

.ref-pos { font-family: var(--display); font-size: clamp(22px, 3vw, 28px); color: var(--ink); letter-spacing: -0.3px; }
.ref-pos strong {
  font-weight: 700;
  background: linear-gradient(100deg, #9a7623 0%, #e7c877 25%, #9a7623 50%, #e7c877 75%, #9a7623 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: foil 3.2s linear infinite;
}
@keyframes foil { to { background-position: 220% 0; } }
.ref-cta { font-size: 15px; line-height: 1.5; color: var(--ink-soft); margin: 8px 0 16px; max-width: 32em; }
.waitlist-center .ref-cta { margin-left: auto; margin-right: auto; }
.ref-link { display: flex; gap: 8px; background: #fffdf8; border: 1px solid rgba(20,16,25,0.14); border-radius: 999px; padding: 6px 6px 6px 14px; align-items: center; }
.ref-url { flex: 1; min-width: 0; border: none; background: transparent; font-family: var(--sans); font-size: 13.5px; color: var(--ink-soft); outline: none; }
.ref-copy { padding: 12px 20px; font-size: 14px; }
.ref-share { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.waitlist-center .ref-share { justify-content: center; }
.ref-share-label { font-size: 12px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }
.ref-chip { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(20,16,25,0.16); background: #fffdf8; transition: border-color .18s, transform .18s; }
.ref-chip:hover { border-color: var(--gold); transform: translateY(-1px); }
.ref-progress { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--ink-faint); }
.waitlist-center .ref-progress { justify-content: center; }
.ref-dots { display: inline-flex; gap: 5px; }
.ref-dots i { width: 9px; height: 9px; border-radius: 999px; background: rgba(20,16,25,0.14); }
.ref-dots i.on { background: var(--gold); }

/* Signup celebration: logo springs to the front, glow + rings + sparks burst */
.celebrate {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center;
  pointer-events: none; overflow: hidden;
  background: radial-gradient(circle at center, rgba(16,18,28,0.80), rgba(16,18,28,0.94));
  animation: celShow 2.5s ease forwards;
}
@keyframes celShow { 0% { opacity: 0; } 6% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }

.cel-badge {
  position: relative; display: grid; place-items: center;
  transform: scale(0.2); opacity: 0;
  animation: celPop 1s cubic-bezier(.2,.9,.25,1.35) forwards;
}
.cel-badge img {
  width: min(260px, 60vw); height: auto; object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)) drop-shadow(0 0 30px rgba(201,162,75,0.45));
}
@keyframes celPop {
  0%   { transform: scale(0.2) rotate(-18deg); opacity: 0; }
  55%  { transform: scale(1.16) rotate(5deg); opacity: 1; }
  74%  { transform: scale(0.96) rotate(-2deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.cel-glow {
  position: absolute; left: 50%; top: 50%; width: 440px; height: 440px; margin: -220px 0 0 -220px;
  border-radius: 50%; transform: scale(0.3); opacity: 0;
  background: radial-gradient(circle, rgba(201,162,75,0.6), rgba(201,162,75,0) 68%);
  animation: celGlow 2s ease forwards;
}
@keyframes celGlow { 0% { transform: scale(0.3); opacity: 0; } 28% { opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.cel-ring {
  position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; margin: -100px 0 0 -100px;
  border-radius: 50%; border: 2px solid rgba(201,162,75,0.7); transform: scale(0.4); opacity: 0;
  animation: celRing 1.3s ease-out forwards; animation-delay: 0.12s;
}
.cel-ring.r2 { border-color: rgba(255,255,255,0.4); animation-delay: 0.3s; }
@keyframes celRing { 0% { transform: scale(0.4); opacity: 0.85; } 100% { transform: scale(3.1); opacity: 0; } }

.cel-sparks { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.cel-sparks i {
  position: absolute; left: 0; top: 0; width: 9px; height: 9px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: var(--gold); opacity: 0;
  animation: celSpark 1.1s ease-out forwards; animation-delay: var(--d, 0s);
}
.cel-sparks i.lite { background: #fff6df; width: 6px; height: 6px; margin: -3px 0 0 -3px; }
@keyframes celSpark {
  0%   { transform: translate(0,0) scale(0.4); opacity: 0; }
  22%  { opacity: 1; }
  100% { transform: translate(var(--tx,0), var(--ty,0)) scale(1); opacity: 0; }
}

.cel-confetti { position: absolute; inset: 0; overflow: hidden; }
.cel-confetti i {
  position: absolute; top: 50%; left: 50%; width: 9px; height: 15px; border-radius: 2px;
  margin: -7px 0 0 -4px; opacity: 0;
  animation: celPopper var(--dur, 1.9s) forwards; animation-delay: var(--cd, 0s);
}
/* Party popper: burst up and out, then fall under gravity. */
@keyframes celPopper {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; animation-timing-function: cubic-bezier(.1,.62,.28,1); }
  6%   { opacity: 1; }
  26%  { transform: translate3d(var(--px, 0), var(--py, -22vh), 0) rotate(var(--r1, 90deg)); opacity: 1; animation-timing-function: cubic-bezier(.5,0,.75,.45); }
  100% { transform: translate3d(var(--fx, 0), 116vh, 0) rotate(var(--rot, 600deg)); opacity: 1; }
}

/* Resting confetti pile that lingers along the bottom after the burst */
.cel-rest { position: fixed; left: 0; right: 0; bottom: 0; height: 70px; z-index: 998; pointer-events: none; overflow: hidden; animation: restFade 7.5s ease forwards; }
@keyframes restFade { 0%, 84% { opacity: 1; } 100% { opacity: 0; } }
.cel-rest i {
  position: absolute; bottom: 0; width: 9px; height: 15px; border-radius: 2px; opacity: 0;
  animation: restDrop var(--rd, 0.6s) cubic-bezier(.3,.85,.4,1) forwards; animation-delay: var(--rdelay, 0s);
}
@keyframes restDrop {
  0%   { transform: translateY(-130px) rotate(var(--r0, 0deg)); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(var(--ry, 0px)) rotate(var(--r1, 20deg)); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .celebrate, .cel-rest { display: none; }
  .ref-seal, .ref-seal::after, .ref-pos strong { animation: none; }
}

/* Stat row (selectivity) */
.stats { display: flex; align-items: center; gap: 20px; margin: 8px 0 18px; }
.stat strong { display: block; font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 4.2vw, 42px); color: var(--ink); line-height: 1; }
.stat span { font-size: 15px; color: var(--ink-soft); margin-top: 6px; display: block; max-width: 12ch; }
.stat-arrow { display: flex; align-items: center; color: var(--gold); flex: none; }
.stat-arrow svg { width: clamp(52px, 8vw, 72px); height: auto; }

/* Exclusivity line, sits below the metric */
.opening-line { font-size: 15px; color: var(--ink-soft); margin-bottom: 30px; }

/* Store badges */
.stores { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.stores-label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-faint); margin-right: 4px; }
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px; border-radius: 14px; background: var(--ink); color: var(--cream); font-size: 15px; font-weight: 600; }
.badge svg { width: 20px; height: 20px; fill: currentColor; }
.badge span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.badge small { font-size: 9px; font-weight: 500; letter-spacing: .5px; opacity: .7; text-transform: uppercase; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh; max-width: var(--max); margin: 0 auto;
  padding: 120px clamp(20px, 5vw, 56px) 64px;
  display: grid; grid-template-columns: 1.4fr 0.6fr; gap: clamp(24px, 3.5vw, 52px);
  align-items: center;
}
/* Big, faint brand mark centred behind the hero */
.hero-watermark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 0; pointer-events: none; }
.hero-watermark img { width: min(560px, 66vw); height: auto; opacity: 0.05; }
.hero-copy, .hero-art { position: relative; z-index: 1; }
.hero-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(42px, 5.6vw, 66px); line-height: 1.08; letter-spacing: -0.6px;
  margin-bottom: 22px;
}
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 27em; margin-bottom: 30px; }

/* Floating cover card, nudged up and to the right */
.hero-art { display: flex; justify-content: center; perspective: 1500px; transform: translate(22px, -46px); }
.cover {
  position: relative; width: min(360px, 84vw); aspect-ratio: 1 / 1.62;
  background: var(--cream); border-radius: 26px; padding: 26px 22px 22px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 2px 6px rgba(20,16,25,0.08), 0 34px 66px rgba(20,16,25,0.28);
  transform: rotate(-3deg) rotateY(7deg); animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: rotate(-3deg) rotateY(7deg) translateY(0); }
  50% { transform: rotate(-2.3deg) rotateY(5deg) translateY(-12px); }
}
.cover-texture { position: absolute; inset: 0; z-index: 0; background: repeating-linear-gradient(45deg, rgba(20,16,25,0.03) 0, rgba(20,16,25,0.03) 1px, transparent 1px, transparent 18px); }
.cover-logo { position: absolute; z-index: 2; top: 20px; left: 18px; width: 40px; height: 40px; object-fit: contain; }
.cover-top, .cover-plate, .cover-sign { position: relative; z-index: 1; }
.cover-top { text-align: center; }
.cover-date { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--ink); text-shadow: 0 1px 0 rgba(255,255,255,.7); padding: 0 30px; }
.cover-weather { font-size: 9px; letter-spacing: 2px; font-weight: 600; color: var(--ink-faint); margin-top: 6px; }
.cover-greeting { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--ink); margin-top: 12px; }
.cover-plate { flex: 1; margin: 16px 0; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--gold); box-shadow: 0 12px 22px rgba(0,0,0,.22); }
.cover-plate img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Signature block shrinks to the masthead width and centres in the card, so the
   masthead reads centred and the byline ends exactly at its right edge. */
.cover-sign { align-self: center; }
.cover-rule { display: block; width: 38px; height: 2px; background: var(--gold); border-radius: 1px; margin: 0 auto 10px; }
.cover-masthead { font-family: var(--serif); font-weight: 900; font-size: 21px; letter-spacing: .5px; color: var(--ink); text-align: center; }
.cover-byline { font-size: 10px; letter-spacing: 1px; color: var(--ink-faint); text-align: right; margin-top: 6px; }

/* ===== THE ENEMY (dark) ===== */
.enemy { background: var(--navy); color: #f3f0e8; padding: clamp(48px, 7vw, 84px) clamp(20px, 5vw, 56px); }
.enemy-wrap { max-width: 880px; margin: 0 auto; }
.enemy-title { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 5vw, 54px); line-height: 1.12; letter-spacing: -0.4px; margin-bottom: 26px; }
.enemy-body { font-family: var(--sans); font-size: clamp(17px, 2.1vw, 21px); color: rgba(243,240,232,0.72); max-width: 40em; }
.loop { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 36px 0; }
.loop-chip { font-family: var(--sans); font-size: 14px; font-weight: 600; padding: 9px 16px; border: 1px solid rgba(243,240,232,0.26); border-radius: 999px; }
.loop-arrow { color: var(--gold); font-size: 18px; }
.loop-repeat { font-size: 24px; }
.enemy-turn { font-family: var(--display); font-weight: 500; font-size: clamp(21px, 2.9vw, 32px); color: #fff; line-height: 1.28; max-width: 22em; }

/* ===== BENTO ===== */
.bento-section { max-width: var(--max); margin: 0 auto; padding: clamp(64px,10vw,124px) clamp(20px,5vw,56px) 40px; }
.bento-intro { text-align: center; margin-bottom: clamp(34px, 4.5vw, 54px); }
.bento-intro h2 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 5vw, 54px); letter-spacing: -0.4px; }

.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile {
  background: #fbf8f1;
  border: 1px solid rgba(20,16,25,0.09);
  border-radius: var(--radius);
  padding: 30px;
  display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
  box-shadow: 0 1px 2px rgba(20,16,25,0.04);
  overflow: hidden;
}
.tile-visual, .equation, .deck, .notif { min-width: 0; max-width: 100%; }
.tile:hover { transform: translateY(-4px); border-color: rgba(201,162,75,0.55); box-shadow: 0 20px 40px rgba(20,16,25,0.12); }
.tile-visual { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 190px; padding: 10px 0 28px; }

/* Feature headings (bold, driving) */
.tile-copy h3 { font-family: var(--serif); font-weight: 900; font-size: clamp(24px, 3.1vw, 32px); letter-spacing: -0.4px; line-height: 1.08; }
.tile-copy p { color: var(--ink-soft); font-size: 16px; margin-top: 10px; }

/* Finite brief visual */
.deck { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.deck-stack { position: relative; width: 132px; height: 118px; }
.deck-back { position: absolute; left: 50%; top: 8px; width: 118px; height: 104px; border-radius: 14px; background: var(--cream); border: 1px solid rgba(20,16,25,0.09); box-shadow: 0 6px 16px rgba(20,16,25,0.06); }
.deck-back.b1 { transform: translateX(-50%) rotate(4deg); }
.deck-back.b2 { transform: translateX(-50%) rotate(8deg); opacity: 0.7; }
.deck-card { position: absolute; left: 50%; top: 0; transform: translateX(-50%) rotate(-3deg); width: 122px; height: 112px; border-radius: 14px; overflow: hidden; background: var(--cream); border: 1px solid rgba(20,16,25,0.12); box-shadow: 0 12px 26px rgba(20,16,25,0.16); }
.deck-photo { width: 100%; height: 100%; }
.deck-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 100%; display: block; }
.deck-tag { position: absolute; left: 8px; bottom: 8px; right: 8px; text-align: center; font-family: var(--sans); font-weight: 700; font-size: 9.5px; letter-spacing: 0.6px; text-transform: uppercase; color: #fff; background: rgba(20,16,25,0.5); padding: 4px 6px; border-radius: 999px; }
.deck-progress { display: flex; align-items: center; gap: 6px; }
.deck-progress i { width: 12px; height: 4px; border-radius: 999px; background: rgba(20,16,25,0.12); }
.deck-progress i.on { background: var(--gold); }
.deck-done { text-align: center; font-family: var(--serif); font-weight: 600; font-style: italic; font-size: 12.5px; color: var(--gold-deep); }

/* Notification visual */
.notif { width: 100%; display: flex; gap: 11px; align-items: flex-start; background: #ffffff; border: 1px solid rgba(20,16,25,0.09); border-radius: 18px; padding: 13px 15px; box-shadow: 0 12px 26px rgba(20,16,25,0.1); }
.notif-icon { width: 40px; height: 40px; border-radius: 9px; background: var(--cream); padding: 5px; object-fit: contain; border: 1px solid rgba(20,16,25,0.08); }
.notif-body { flex: 1; }
.notif-top { display: flex; justify-content: space-between; align-items: baseline; }
.notif-top strong { font-size: 11px; letter-spacing: .6px; }
.notif-top span { font-size: 11px; color: var(--ink-faint); }
.notif-body p { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }

/* No ads: single inline SVG */
.ad-svg { width: 230px; max-width: 94%; height: auto; overflow: visible; }

/* Price: logo < 2x coffee */
.equation { display: flex; align-items: center; gap: 20px; }
.eq-logo { width: 88px; height: 88px; object-fit: contain; padding: 12px; border-radius: 20px; background: var(--cream); border: 1px solid rgba(20,16,25,0.1); box-shadow: 0 8px 20px rgba(20,16,25,0.12); }
.eq-op { font-family: var(--serif); font-weight: 900; font-size: 52px; color: var(--gold-deep); }
.eq-times { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--ink-soft); }
.price-hl { color: var(--gold-deep); }
.coffee { position: relative; width: 132px; height: 116px; }
.cup { position: absolute; bottom: 20px; left: 16px; width: 88px; height: 66px; background: linear-gradient(180deg, #fff, #efe7d6); border: 4px solid var(--ink); border-radius: 8px 8px 32px 32px; }
.cup::before { content: ""; position: absolute; top: 3px; left: 6px; right: 6px; height: 5px; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-deep)); border-radius: 999px; z-index: 2; }
.cup-liquid { position: absolute; left: 4px; right: 4px; bottom: 4px; height: 40px; border-radius: 4px 4px 26px 26px; background: linear-gradient(180deg, #c49a6b 0%, #9a6a3c 30%, #6f4a2f 62%, #48301d 100%); z-index: 1; }
.cup-liquid::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: #efe1cb; border-radius: 4px 4px 0 0; box-shadow: 0 1px 2px rgba(20,16,25,0.18); }
.cup-handle { position: absolute; right: -22px; top: 12px; width: 22px; height: 30px; border: 4px solid var(--ink); border-left: none; border-radius: 0 16px 16px 0; }
.saucer { position: absolute; bottom: 10px; left: 2px; width: 112px; height: 12px; background: #efe7d6; border: 4px solid var(--ink); border-radius: 999px; }
.steam { position: absolute; top: 0; width: 6px; height: 30px; background: linear-gradient(180deg, rgba(20,16,25,0.24), transparent); border-radius: 6px; animation: steam 3s ease-in-out infinite; }
.steam.s1 { left: 40px; } .steam.s2 { left: 56px; animation-delay: .6s; } .steam.s3 { left: 72px; animation-delay: 1.1s; }
@keyframes steam { 0%,100% { opacity: .2; transform: translateY(3px) scaleY(.9); } 50% { opacity: .6; transform: translateY(-5px) scaleY(1.1); } }

/* Closer */
.closer { text-align: center; padding: clamp(64px, 10vw, 120px) clamp(20px,5vw,56px) 24px; max-width: 720px; margin: 0 auto; }
.closer h2 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.4px; line-height: 1.08; }
.closer-sub { font-size: clamp(16px, 2vw, 18px); color: var(--ink-soft); margin: 16px auto 0; max-width: 32em; }
.closer-order { font-size: 13.5px; color: var(--ink-faint); margin: 8px auto 0; max-width: 30em; }
.trust { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 22px; font-size: 14px; color: var(--ink-soft); }
.trust .dot { width: 8px; height: 8px; border-radius: 50%; background: #3aa76d; box-shadow: 0 0 0 4px rgba(58,167,109,0.18); }
.js-count { font-weight: 700; color: var(--ink); }

/* Footer */
.foot { padding: 34px clamp(20px,5vw,56px) 52px; text-align: center; font-size: 13px; color: var(--ink-faint); }

/* Responsive */
@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; text-align: center; min-height: auto; padding-top: 104px; }
  .hero-copy { display: contents; }
  /* the copy wrapper carried z-index:1 above the watermark; restore that per child */
  .hero .kicker, .hero-title, .hero-sub, .stats, .opening-line, .waitlist, .stores, .hero-art { position: relative; z-index: 1; }
  /* order: kicker, headline, card, then the pitch and the form */
  .hero .kicker { order: 1; }
  .hero-title { order: 2; }
  .hero-art { order: 3; margin: 6px 0 20px; transform: none; }
  .hero-sub { order: 4; margin-left: auto; margin-right: auto; }
  .stats { order: 5; justify-content: center; }
  .opening-line { order: 6; }
  .waitlist { order: 7; margin-left: auto; margin-right: auto; }
  .stores { order: 8; justify-content: center; }
  .loop { justify-content: flex-start; }
  .bento { grid-template-columns: 1fr; }
  .cover { animation: none; transform: rotate(-2deg); }
  /* anchor the watermark to the lower hero so it sits behind the text below the
     card, not behind the card itself */
  .hero-watermark { top: auto; bottom: 16%; height: 32%; align-items: center; }
  .hero-watermark img { width: min(360px, 72vw); opacity: 0.06; }
  /* snug up the feature tiles so visuals are not lost in whitespace */
  .tile { padding: 24px; }
  .tile-visual { min-height: 128px; padding: 4px 0 16px; }
}
@media (max-width: 480px) {
  .field { flex-direction: column; padding: 8px; border-radius: 18px; gap: 8px; }
  .field input { background: #fff; border: 1px solid rgba(20,16,25,0.16); border-radius: 12px; padding: 14px; text-align: center; font-size: 16px; }
  .btn { width: 100%; }
  .stats { gap: 16px; }
  /* referral link: stack the URL above a full-width Copy button */
  .ref-link { flex-direction: column; align-items: stretch; padding: 8px; border-radius: 16px; gap: 8px; }
  .ref-url { background: #fff; border: 1px solid rgba(20,16,25,0.14); border-radius: 12px; padding: 13px 14px; text-align: center; }
  .ref-copy { width: 100%; }
}
@media (max-width: 560px) {
  .nav { padding: 12px 16px; gap: 10px; }
  .nav-mark { font-size: 16px; gap: 8px; min-width: 0; }
  .nav-mark small { display: none; }
  .nav-logo { width: 24px; height: 24px; flex: none; }
  .nav-cta { font-size: 13px; padding: 8px 14px; white-space: nowrap; flex: none; }
  .nav-cta .cta-full { display: none; }
  .nav-cta .cta-mini { display: inline; }
  /* store badges: label on its own line so both badges sit on one row */
  .stores-label { flex-basis: 100%; text-align: center; margin: 0 0 4px; }
  .badge { padding: 7px 12px; font-size: 14px; }
  /* shrink the price equation so the coffee is not clipped on the right */
  .equation { gap: 8px; }
  .eq-logo { width: 60px; height: 60px; padding: 9px; border-radius: 15px; }
  .eq-op { font-size: 34px; }
  .eq-times { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover, .steam { animation: none; }
}
