/* Duo Coffee — the app's own palette: espresso, crema, copper. */
:root {
  --espresso: #120b08;
  --raised: #1e1410;
  --amber: #f2b87a;
  --crema: #f7d9a8;
  --copper: #c9763c;
  --text: #f6efe7;
  --dim: #b4a498;
  --line: rgba(255, 236, 214, 0.1);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--espresso);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- The warm room, behind everything ---------- */

.room { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* Lamp light pooling low, as the splash's glow does, breathing slowly. */
.room .glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80vw 48vh at 50% 108%, rgba(201, 118, 60, 0.32), transparent 70%),
    radial-gradient(46vw 26vh at 50% 110%, rgba(247, 217, 168, 0.16), transparent 72%);
  animation: breathe 8s ease-in-out infinite;
}
.room .glow.slow {
  background: radial-gradient(60vw 34vh at 36% 104%, rgba(242, 184, 122, 0.18), transparent 72%);
  animation-duration: 12s;
  animation-direction: alternate-reverse;
}

@keyframes breathe {
  0%, 100% { opacity: 0.75; transform: translateY(0) scale(1); }
  50%      { opacity: 1;    transform: translateY(-1.5vh) scale(1.04); }
}

#steam { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Cups drifting through the page ---------- */

.drift {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.2;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.55));
  will-change: transform;
}
.drift img { display: block; width: 100%; height: auto; }

/* ---------- Layout ---------- */

.wrap { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; padding: 0 24px; }

header { display: flex; align-items: center; gap: 14px; padding: 34px 0 0; }
header .mark { width: 44px; height: 44px; border-radius: 11px; }
header a.home { color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -0.01em; }
header nav { margin-left: auto; display: flex; gap: 18px; }
header nav a { color: var(--dim); font-weight: 600; font-size: 15px; text-decoration: none; }
header nav a:hover { color: var(--amber); }

.hero { text-align: center; padding: 10vh 0 4vh; }
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 7.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, var(--crema), var(--copper));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { margin: 0 auto; max-width: 34ch; font-size: clamp(17px, 2.3vw, 22px); color: var(--dim); }

/* The one thing on the page that asks for anything. Words rather than
   Apple's mark: the official badge artwork is the only permitted way to use
   the logo, and a lookalike would be worse than none. */
.badge {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--crema), var(--amber));
  color: #2a160a;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 34px rgba(242, 184, 122, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.badge:hover, .badge:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(242, 184, 122, 0.48);
}

/* Three machines, standing still above the light. */
.devices { display: flex; justify-content: center; gap: 22px; margin: 3vh 0 1vh; }
.devices figure { margin: 0; flex: 0 1 280px; }
.devices img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
  border: 1px solid var(--line);
  filter: drop-shadow(0 30px 44px rgba(0, 0, 0, 0.7));
}
.devices figcaption { text-align: center; color: var(--dim); font-size: 14px; margin-top: 12px; }
@keyframes hover {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50%      { transform: translateY(-14px) rotate(0.5deg); }
}
@media (max-width: 720px) {
  .devices { gap: 10px; }
  .devices figure:nth-child(3) { display: none; }
  .devices img { border-radius: 22px; }
}

section { padding: 9vh 0; }
.eyebrow { color: var(--amber); font-size: 13px; font-weight: 800; letter-spacing: 0.22em; }
h2 { margin: 8px 0 26px; font-size: clamp(27px, 3.8vw, 40px); letter-spacing: -0.025em; line-height: 1.1; }
.lede { color: var(--dim); max-width: 60ch; margin: -12px 0 26px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: linear-gradient(180deg, var(--raised), rgba(18, 11, 8, 0.9));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(242, 184, 122, 0.45); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--dim); font-size: 15px; }

/* A shelf of cups, the way the history shows them. */
.shelf {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2vw;
  padding: 30px 12px 0;
  margin: 0 0 30px;
  border-radius: 24px;
  background: radial-gradient(70% 90% at 50% 80%, rgba(201, 118, 60, 0.28), transparent 70%);
}
.shelf .stack { display: flex; flex-direction: column-reverse; align-items: center; }
.shelf .stack img { width: clamp(46px, 8vw, 88px); height: auto; margin-top: -8%; filter: drop-shadow(0 6px 8px rgba(0,0,0,0.5)); }
.shelf-plank {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(180deg, #d69a62, #8a5530);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  margin: -30px 0 34px;
}
.days { display: flex; justify-content: center; gap: 2vw; margin: -24px 0 30px; color: var(--dim); font-size: 13px; }
.days span { width: clamp(46px, 8vw, 88px); text-align: center; }

/* The machines, sideways. */
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 0 20px; scroll-snap-type: x mandatory; }
.shots img {
  flex: 0 0 auto;
  width: min(320px, 76vw);
  border-radius: 22px;
  border: 1px solid var(--line);
  scroll-snap-align: center;
}

/* A little collage for the selfie section: cups round a face-shaped hole. */
.selfie {
  position: relative;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  margin: 0 auto 26px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #5c3820, #1e1108);
}
.selfie img { position: absolute; width: 26%; filter: drop-shadow(0 8px 10px rgba(0,0,0,0.5)); }
.selfie .face {
  left: 50%; top: 42%;
  width: 62%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 22px rgba(247, 217, 168, 0.55)) drop-shadow(0 18px 24px rgba(0,0,0,0.5));
  /* The photo stops at the shoulders; fade it out there, not on a line. */
  /* Cut to a circle, as the app does when it cannot lift the person. */
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 50%;
  border: 3px solid rgba(247, 217, 168, 0.8);
  z-index: 1;
}
.selfie .front { z-index: 2; width: 28%; }
.selfie .caption {
  position: absolute; left: 0; right: 0; bottom: 5%;
  text-align: center; z-index: 3;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.selfie .caption span { color: rgba(255,255,255,0.8); font-weight: 700; }

/* Picture and words side by side, so the words belong to the picture
   rather than hanging under it; stacked on a phone. */
.selfie-section { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 48px; align-items: center; }
.selfie-section .selfie { margin: 0; }
.selfie-text p { color: var(--dim); max-width: 46ch; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 26px; margin: 10px 0; color: var(--text, #f2ece6); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px rgba(242,184,122,0.6); }
@media (max-width: 760px) {
  .selfie-section { grid-template-columns: 1fr; gap: 26px; }
  .selfie-section .selfie { margin: 0 auto; width: 100%; }
}
.selfie .caption b { display: block; font-size: clamp(22px, 5vw, 34px); font-weight: 900; }
.selfie .caption small { color: var(--crema); font-weight: 700; letter-spacing: 0.2em; font-size: 11px; }

/* The pour-over dial, drawn in CSS. */
.dial {
  width: 220px; height: 220px; margin: 0 auto 26px;
  border-radius: 50%;
  background: conic-gradient(var(--amber) 0 25%, rgba(242,184,122,0.3) 25% 42%, rgba(242,184,122,0.16) 42% 58%, rgba(242,184,122,0.1) 58% 100%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%);
  mask: radial-gradient(circle, transparent 58%, #000 59%);
}
.dial-wrap { position: relative; }
.dial-wrap .time {
  position: absolute; left: 0; right: 0; top: 76px;
  text-align: center; font-size: 44px; font-weight: 800; letter-spacing: -0.02em;
}
.dial-wrap .step { text-align: center; margin: -12px 0 26px; }
.dial-wrap .step small { color: var(--amber); letter-spacing: 0.2em; font-weight: 800; font-size: 12px; }
.dial-wrap .step b { display: block; font-size: 24px; }

.premium-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 0 18px; }
.premium-row img { flex: 0 0 auto; width: 200px; border-radius: 16px; border: 1px solid var(--line); }
.cups-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 6px 0 26px; }
.cups-row img { width: 72px; height: auto; filter: drop-shadow(0 6px 8px rgba(0,0,0,0.5)); }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.seen { opacity: 1; transform: none; }

article { max-width: 68ch; }
article p, article li { color: var(--dim); }
article strong { color: var(--text); }
article a, .link { color: var(--amber); }
ul { padding-left: 20px; }
li { margin: 6px 0; }

footer {
  position: relative;
  z-index: 2;
  margin-top: 6vh;
  padding: 26px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--amber); }
footer .spacer { margin-left: auto; }

/* Everything above is decoration. For anyone who has asked not to be moved,
   it holds still. */
@media (prefers-reduced-motion: reduce) {
  .room .glow, .devices img { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #steam { display: none; }
}

/* The real thing, first: the Duo folded, then stood in a tent. */
.hero-device { display: flex; justify-content: center; margin: 2vh 0 4vh; }
.hero-device img {
  width: min(560px, 88vw); height: auto;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 80px rgba(242, 184, 122, 0.18));
}
.tent-device { display: flex; justify-content: center; margin: 8px 0 30px; }
.tent-device img {
  width: min(620px, 90vw); height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.7));
}
