/* ============================================================
   JOE x Uber One — Free Coffee landing page
   Mobile-first base + desktop layer (@media min-width:768/1024).
   ============================================================ */

:root {
  --blush:      #fbd9e2;
  --blush-soft: #fdeef2;
  --pink:       #f6c1d9;   /* matches official logo pink */
  --pink-press: #efacc8;
  --pink-hot:   #ff2f9e;
  --ink:        #1a1719;
  --ink-soft:   #5b545a;
  --cream:      #f6f4f1;
  --charcoal:   #1e1f1d;   /* matches official logo dark */
  --white:      #ffffff;
  --radius:     18px;
  --radius-lg:  26px;
  --mobile:     460px;     /* mobile content canvas */
  --page:       1120px;    /* desktop content canvas */
  --shadow:     0 10px 30px rgba(26, 23, 25, .08);
  --shadow-cta: 0 8px 22px rgba(255, 47, 158, .18);
  --font:       'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* Mobile-first: everything sits on a centred mobile canvas. */
.header-inner, .hero-inner, .section, .closing-inner, .footer-top, .footer-bottom {
  max-width: var(--mobile);
  margin-inline: auto;
}

/* ---------------- Buttons ---------------- */
.btn {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .2px;
  border: 0;
  border-radius: 999px;
  padding: 18px 26px;
  width: 100%;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px) scale(.997); }
.btn-primary { background: var(--pink); color: var(--ink); box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--pink-press); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--blush-soft); }

/* ---------------- Header ---------------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: center; padding: 12px 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; object-fit: contain; }
.brand-word { height: 15px; width: auto; }
.header-cta { display: none; width: auto; padding: 11px 20px; font-size: .92rem; }

/* ---------------- Hero ---------------- */
.hero {
  background: radial-gradient(120% 90% at 50% 0%, var(--blush) 0%, var(--blush-soft) 70%, #fff 100%);
}
.hero-inner { padding: 18px 22px 40px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px; }
.uber-logo { height: 22px; width: auto; }
.eyebrow-text { text-transform: uppercase; font-weight: 700; font-size: .68rem; letter-spacing: 1.5px; color: var(--ink-soft); }
.hero-title {
  font-size: clamp(2rem, 10.5vw, 3rem);
  font-weight: 900; line-height: .95; letter-spacing: -1.5px; text-transform: uppercase;
}
.hero-sub { margin: 14px auto 0; max-width: 30ch; font-size: 1.02rem; font-weight: 500; color: var(--ink-soft); }

/* cup + cards share one grid cell and are centred; sized by width only so the
   image keeps its natural proportions (height stays auto). */
.hero-art { display: grid; place-items: center; margin: 12px auto 6px; }
.hero-cup { grid-area: 1 / 1; width: 300px; max-width: 82%; height: auto; filter: drop-shadow(0 16px 22px rgba(26,23,25,.18)); z-index: 2; }
.hero-cards { grid-area: 1 / 1; width: 350px; max-width: 96%; height: auto; opacity: .96; z-index: 1; animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

.promo {
  background: var(--white); border: 1px solid var(--pink); border-radius: var(--radius);
  padding: 14px 16px; margin: 4px auto 22px; max-width: 340px; text-align: left; box-shadow: var(--shadow);
}
.promo-label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); }
.promo-row { display: flex; align-items: center; gap: 10px; margin: 6px 0 8px; }
.promo-code {
  flex: 1; font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 1.25rem; font-weight: 700;
  letter-spacing: 2px; color: var(--pink-hot); background: var(--blush-soft); border-radius: 10px;
  padding: 8px 12px; text-align: center; word-break: break-all;
}
.promo-copy {
  flex: 0 0 auto; border: 0; cursor: pointer; background: var(--ink); color: #fff;
  font-family: var(--font); font-weight: 700; font-size: .85rem; padding: 10px 16px; border-radius: 10px; transition: background .12s ease;
}
.promo-copy:hover { background: #000; }
.promo-copy.copied { background: var(--pink-hot); }
.promo-hint { font-size: .82rem; color: var(--ink-soft); }
.hero-cta { max-width: 340px; }

/* ---------------- Sections ---------------- */
.section { padding: 44px 22px; }
.section-title { text-align: center; font-size: 1.9rem; font-weight: 900; text-transform: uppercase; letter-spacing: -.5px; margin-bottom: 24px; }
.section-lead { text-align: center; color: var(--ink-soft); margin: -14px auto 26px; max-width: 32ch; font-weight: 500; }

/* How it works */
.steps { list-style: none; display: grid; gap: 14px; max-width: 380px; margin-inline: auto; }
.step { display: flex; gap: 16px; align-items: flex-start; background: var(--cream); border-radius: var(--radius); padding: 18px 20px; }
.step-num { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; background: var(--pink); color: var(--ink); border-radius: 50%; font-weight: 900; }
.step-body h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 3px; }
.step-body p { font-size: .92rem; color: var(--ink-soft); font-weight: 500; }

/* Download */
.download-card { display: flex; align-items: center; gap: 16px; background: var(--blush); border-radius: var(--radius-lg); padding: 18px 22px; max-width: 380px; margin: 0 auto 18px; }
.download-icon { width: 56px; height: 56px; border-radius: 50%; }
.download-text h2 { font-size: 1.2rem; font-weight: 900; text-transform: uppercase; }
.download-text p { font-size: .9rem; font-weight: 700; color: var(--ink-soft); }
.store-badges { display: flex; gap: 12px; max-width: 380px; margin-inline: auto; }
.store-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 14px; padding: 11px 12px; transition: background .12s ease, transform .12s ease; }
.store-btn:hover { background: #000; transform: translateY(-1px); }
.store-btn svg { width: 24px; height: 24px; fill: #fff; flex: 0 0 auto; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; }
.store-btn small { font-size: .6rem; opacity: .8; }
.store-btn strong { font-size: .92rem; }

/* We recommend */
.product-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 420px; margin-inline: auto; }
.product { background: var(--cream); border-radius: var(--radius); padding: 10px 12px 16px; text-align: center; }
.product-img { background: #fff; border-radius: 14px; margin-bottom: 10px; aspect-ratio: 1 / .95; display: grid; place-items: center; overflow: hidden; }
.product-img img { height: 100%; width: auto; object-fit: contain; }
.product h3 { font-size: .98rem; font-weight: 800; }
.product p { font-size: .78rem; color: var(--ink-soft); font-weight: 500; }
.fineprint { text-align: center; font-size: .8rem; color: var(--ink-soft); margin: 18px auto 24px; }
.recommend-cta { max-width: 380px; margin-inline: auto; display: block; }

/* FAQ */
.faq { background: var(--cream); }
.faq-list { max-width: 420px; margin-inline: auto; display: grid; gap: 10px; }
.faq-item { background: #fff; border-radius: var(--radius); padding: 4px 18px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; font-weight: 800; font-size: 1rem; padding: 16px 30px 16px 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 600; color: var(--pink-hot); transition: transform .2s ease; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 0 18px; color: var(--ink-soft); font-weight: 500; font-size: .92rem; }

/* Closing CTA */
.closing { background: radial-gradient(120% 100% at 50% 0%, var(--blush) 0%, var(--pink) 100%); text-align: center; }
.closing-inner { padding: 54px 22px 64px; }
.closing h2 { font-size: clamp(2.2rem, 11vw, 2.9rem); font-weight: 900; text-transform: uppercase; line-height: .98; letter-spacing: -1px; margin-bottom: 28px; }
.closing .btn { max-width: 340px; margin-inline: auto; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--charcoal); color: #fff; padding: 44px 24px calc(96px + env(safe-area-inset-bottom)); }
.footer-word { height: 22px; width: auto; margin-bottom: 16px; }
.footer-tagline { color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 500; max-width: 32ch; margin-bottom: 18px; }
.socials { display: flex; gap: 12px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; background: var(--pink); border-radius: 9px; transition: transform .12s ease; }
.socials a:hover { transform: translateY(-2px); }
.socials svg { width: 22px; height: 22px; fill: var(--ink); }

.footer-col { display: flex; flex-direction: column; margin-top: 30px; }
.footer-col h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.5); margin-bottom: 12px; font-weight: 700; }
.footer-col a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 7px 0; }
.footer-col a:hover { color: #fff; }

.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-policies { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
.footer-policies a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .82rem; font-weight: 500; }
.footer-policies a:hover { color: #fff; }
.footer-legal { color: rgba(255,255,255,.5); font-size: .76rem; font-weight: 500; line-height: 1.6; }

/* ---------------- Sticky mobile CTA ---------------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(255,255,255,.98) 70%, rgba(255,255,255,0));
  transform: translateY(120%); transition: transform .3s ease; pointer-events: none;
}
.sticky-cta .btn { max-width: var(--mobile); margin-inline: auto; pointer-events: auto; }
.sticky-cta.show { transform: translateY(0); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: .9rem; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   DESKTOP  (≥ 768px)
   ============================================================ */
@media (min-width: 768px) {
  .header-inner, .hero-inner, .section, .closing-inner, .footer-top, .footer-bottom { max-width: var(--page); }

  .sticky-cta { display: none; }       /* sticky bar is a mobile pattern */
  .site-footer { padding-bottom: 48px; }

  /* Header: logo left, CTA right */
  .header-inner { justify-content: space-between; padding: 14px 40px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-word { height: 17px; }
  .header-cta { display: inline-block; }

  /* Hero: two columns — copy left, art right */
  .hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    grid-template-areas: "lead art" "action art";
    align-items: center;
    column-gap: 48px;
    row-gap: 6px;
    text-align: left;
    padding: 44px 40px 52px;
  }
  .hero-lead { grid-area: lead; align-self: center; }
  .hero-action { grid-area: action; align-self: center; }
  .hero-art { grid-area: art; min-height: 360px; margin: 0; align-self: center; }
  .eyebrow { margin-bottom: 22px; }
  .hero-title { font-size: clamp(2.3rem, 4.1vw, 3.8rem); white-space: nowrap; }
  .hero-sub { margin-left: 0; max-width: 36ch; font-size: 1.15rem; }
  .hero-cup { width: 400px; max-width: 88%; }
  .hero-cards { width: 420px; max-width: 100%; }
  .promo { margin-left: 0; margin-top: 8px; }
  .hero-cta { max-width: 320px; }

  /* Section rhythm */
  .section { padding: 72px 40px; }
  .section-title { font-size: 2.6rem; margin-bottom: 12px; }
  .section-lead { font-size: 1.1rem; margin-bottom: 40px; }

  /* How it works: 3 across */
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: var(--page); }
  .step { flex-direction: column; padding: 28px 26px; }
  .step-num { width: 42px; height: 42px; font-size: 1.1rem; margin-bottom: 8px; }
  .step-body h3 { font-size: 1.2rem; }
  .step-body p { font-size: .98rem; }

  /* Download: centred, side by side */
  .download-inner { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
  .download-card, .store-badges { margin: 0; }
  .download-card { padding: 18px 26px; }
  .download-icon { width: 64px; height: 64px; }
  .store-badges { width: auto; }
  .store-btn { padding: 12px 22px; }

  /* Products: 3 across */
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 980px; }
  .product { padding: 14px 16px 20px; transition: transform .15s ease, box-shadow .15s ease; }
  .product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .product h3 { font-size: 1.08rem; }
  .product p { font-size: .85rem; }
  .recommend-cta { margin-top: 36px; }

  /* FAQ: centred single column */
  .faq-list { max-width: 760px; gap: 12px; }
  .faq-item { padding: 6px 26px; }
  .faq-item summary { font-size: 1.1rem; padding: 20px 30px 20px 0; }

  /* Closing */
  .closing-inner { padding: 88px 40px 96px; }
  .closing h2 { font-size: clamp(3rem, 5.5vw, 4.4rem); }

  /* Footer: brand + link columns, then bottom bar */
  .site-footer { padding: 64px 40px 40px; }
  .footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
  .footer-word { height: 26px; }
  .footer-col { margin-top: 6px; }
  .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; }
  .footer-policies { margin-bottom: 0; }
  .footer-legal { text-align: right; max-width: 46ch; }
}

/* Large desktop polish */
@media (min-width: 1100px) {
  .hero-title { font-size: 4rem; }
  .hero-cup { width: 440px; }
  .hero-cards { width: 460px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cards { animation: none; }
  html { scroll-behavior: auto; }
}
