/* ===== Cozy Cup Cafe: frosted-glass coffee house ===== */
:root {
  --ink: #2b0a06;
  --ink-2: #4a1a10;
  --text: #3a1d15;
  --muted: #5e4339;
  --glass: rgba(246, 238, 228, .55);
  --glass-line: rgba(255, 255, 255, .55);
  --cream: #f6ece0;
  --f: "Roboto", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-dark: 0 12px 24px -8px rgba(43, 10, 6, .55);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* hidden overlays must never block clicks */
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body {
  margin: 0; min-height: 100vh;
  background: #6d5748;
  color: var(--text);
  font: 400 15px/1.6 var(--f);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); font-weight: 500; letter-spacing: -.01em; }
p { margin: 0; }
button { font-family: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 10px; }

/* ===== Blurred café background ===== */
.bg { position: fixed; inset: -10%; z-index: -1; overflow: hidden; filter: blur(60px) saturate(1.1);
  background:
    radial-gradient(28% 22% at 4% 48%, #f4c47e 0%, transparent 70%),
    radial-gradient(30% 30% at 12% 80%, #a02c1e 0%, transparent 70%),
    radial-gradient(40% 35% at 85% 20%, #e4d6c6 0%, transparent 70%),
    radial-gradient(45% 40% at 50% 55%, #4a3a32 0%, transparent 75%),
    radial-gradient(35% 30% at 90% 70%, #8b6f5d 0%, transparent 70%),
    linear-gradient(180deg, #cdbcab, #7c6555 40%, #5d4a3e 70%, #8a7262);
}
.bg span { position: absolute; border-radius: 50%; mix-blend-mode: soft-light; animation: drift 26s ease-in-out infinite alternate; }
.bg span:nth-child(1) { width: 30vw; height: 30vw; left: 2%; top: 30%; background: #ffd79a; }
.bg span:nth-child(2) { width: 40vw; height: 40vw; right: 0; top: 0; background: #f3e9df; animation-delay: -6s; }
.bg span:nth-child(3) { width: 36vw; height: 36vw; left: 30%; top: 50%; background: #2e221c; animation-delay: -12s; }
.bg span:nth-child(4) { width: 22vw; height: 22vw; left: 8%; top: 75%; background: #c0392b; animation-delay: -3s; }
.bg span:nth-child(5) { width: 28vw; height: 28vw; right: 6%; top: 60%; background: #b49a86; animation-delay: -9s; }
@keyframes drift { to { transform: translate(4vw, -3vw) scale(1.12); } }

/* ===== Glass frame ===== */
.frame {
  position: relative; max-width: 1080px; width: calc(100% - 48px); margin: 56px auto 70px;
  border-radius: 44px; overflow: clip;
  background: linear-gradient(180deg, rgba(238, 228, 216, .86) 0%, rgba(222, 208, 194, .78) 38%, rgba(176, 156, 141, .66) 70%, rgba(140, 118, 104, .62) 100%);
  backdrop-filter: blur(28px) saturate(1.2); -webkit-backdrop-filter: blur(28px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: 0 40px 90px -30px rgba(30, 12, 6, .55), inset 0 1px 0 rgba(255, 255, 255, .6);
}

/* ===== Pills & round buttons ===== */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; cursor: pointer; font-weight: 500; white-space: nowrap;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background .25s;
}
.pill-dark { background: linear-gradient(180deg, var(--ink-2), var(--ink)); color: #fff; box-shadow: var(--shadow-dark); }
.pill-dark:hover { transform: translateY(-2px); box-shadow: 0 18px 28px -10px rgba(43, 10, 6, .65); }
.pill-dark:active { transform: translateY(1px); }
.pill-lg { padding: 13px 40px; font-size: .95rem; }
.pill-sm { padding: 8px 18px; font-size: .78rem; }
.pill-xs { padding: 5px 12px; font-size: .62rem; }
.pill.wide { width: 100%; }
.round {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer;
  border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .45); color: var(--ink);
  font-size: 1.1rem; line-height: 1; transition: transform .3s var(--spring), background .2s;
}
.round:hover { transform: scale(1.08); background: rgba(255, 255, 255, .75); }
.round.sm { width: 28px; height: 28px; }
.round svg { width: 14px; height: 14px; }

/* ===== Nav ===== */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 40px 64px 0; }
.brand { display: grid; line-height: 1.1; }
.brand-name { display: inline-flex; align-items: center; gap: 6px; font: 700 1.2rem var(--f); color: var(--ink); }
.brand-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-tag { font-size: .66rem; color: var(--muted); margin-top: 3px; }
.nav-links { position: relative; display: flex; gap: 34px; font-size: .74rem; font-weight: 500; color: var(--ink); }
.nav-links a { padding: 6px 0; opacity: .85; transition: opacity .2s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-line { position: absolute; bottom: -2px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: left .45s var(--ease), width .45s var(--ease); }
.nav-cta { padding: 7px 10px 7px 16px; font-size: .74rem; }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); font-size: .68rem; }
.cart-count.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.45); background: #fff; color: var(--ink); } }

/* ===== Hero ===== */
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; padding: 30px 64px 40px; min-height: 440px; }
.hero-title { font-size: clamp(2.3rem, 4.6vw, 3.3rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.22; margin-bottom: 34px; }
.hero-title .ln { display: block; overflow: hidden; }
.hero-title .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.hero-title .ln:nth-child(2) > span { transition-delay: .12s; }
.loaded .hero-title .ln > span { transform: none; }
.cat-tiles { display: flex; gap: 14px; margin-top: 30px; }
.tile {
  position: relative; width: 52px; height: 52px; border-radius: 16px; cursor: pointer; display: grid; place-items: center;
  background: rgba(255, 255, 255, .55); border: 1px solid var(--glass-line); color: var(--ink);
  box-shadow: 0 8px 18px -10px rgba(43, 10, 6, .35);
  transition: transform .35s var(--spring), background .25s, color .25s;
}
.tile svg { width: 26px; height: 26px; }
.tile em { position: absolute; top: calc(100% + 6px); font: 500 .65rem var(--f); opacity: 0; transform: translateY(-4px); transition: .25s; pointer-events: none; }
.tile:hover { transform: translateY(-4px); }
.tile:hover em, .tile.active em { opacity: 1; transform: none; }
.tile.active { background: var(--ink); color: #fff; }
.hero-cup { justify-self: center; width: min(100%, 330px); aspect-ratio: 1; position: relative;
  opacity: 0; transform: translateY(30px) rotate(-25deg) scale(.9); transition: opacity 1s .2s, transform 1.6s .2s var(--spring); }
.loaded .hero-cup { opacity: 1; transform: none; }
.hero-cup .cup-svg { width: 100%; height: 100%; filter: drop-shadow(0 28px 34px rgba(50, 22, 10, .38)); animation: sway 9s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-10px); } }

/* ===== Menu ===== */
.menu { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: center; padding: 30px 64px 40px; }
.menu-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .35); color: var(--ink); padding: 6px 13px; border-radius: 99px; font-size: .72rem; font-weight: 500; cursor: pointer; transition: background .25s, color .25s; }
.chips button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.arrows { display: flex; gap: 6px; }
.track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 92px 4px 30px; margin: -10px -4px 0; scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 30px), transparent);
}
.track::-webkit-scrollbar { display: none; }
.p-card {
  position: relative; flex: 0 0 196px; scroll-snap-align: start;
  padding: 74px 18px 38px; border-radius: 28px; text-align: left;
  background: linear-gradient(160deg, rgba(255, 255, 255, .6), rgba(240, 228, 214, .38));
  border: 1px solid var(--glass-line);
  box-shadow: 0 18px 30px -22px rgba(43, 10, 6, .45);
  transition: transform .45s var(--ease), box-shadow .45s;
  animation: cardIn .6s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } }
.p-card:hover { transform: translateY(-6px); box-shadow: 0 26px 36px -22px rgba(43, 10, 6, .55); }
.p-img { position: absolute; left: 50%; top: -74px; width: 138px; height: 138px; transform: translateX(-50%); transition: transform .7s var(--spring); }
.p-img svg { width: 100%; height: 100%; filter: drop-shadow(0 14px 16px rgba(50, 22, 10, .3)); }
.p-card:hover .p-img { transform: translateX(-50%) rotate(-18deg) scale(1.05); }
.p-card h3 { font-size: .9rem; font-weight: 500; margin-bottom: 4px; }
.p-card p { font-size: .68rem; color: var(--muted); line-height: 1.45; min-height: 3em; }
.p-actions { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.p-actions .round { width: 28px; height: 28px; }
.p-price { position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .7rem; font-weight: 700; padding: 4px 14px; border-radius: 8px; box-shadow: var(--shadow-dark); }
.fav.on { background: #fff; color: #b3261e; }
.fav.on svg { fill: currentColor; }
.add-btn.done { background: var(--ink); color: #fff; }
.menu-copy h2 { margin-bottom: 18px; }
.menu-copy p { font-size: .78rem; color: var(--muted); line-height: 1.8; margin-bottom: 20px; }
.swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }

/* ===== Feature ===== */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 60px 64px 50px; }
.feature-copy h2 { margin-bottom: 22px; max-width: 18em; }
.feature-copy > p { font-size: .78rem; color: var(--muted); line-height: 1.85; max-width: 34em; margin-bottom: 22px; }
.more { margin-bottom: 22px; animation: swap .5s var(--ease); }
.more p { font-size: .78rem; color: var(--muted); margin-top: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats div { background: rgba(255, 255, 255, .4); border: 1px solid var(--glass-line); border-radius: 16px; padding: 12px; }
.stats b { display: block; font-size: 1.3rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats span { font-size: .68rem; color: var(--muted); }
.feature-art { position: relative; justify-self: center; width: min(100%, 380px); aspect-ratio: 1; }
.feature-cup { position: absolute; inset: 13%; transition: transform .6s var(--ease); }
.feature-cup .cup-svg { width: 100%; height: 100%; filter: drop-shadow(0 20px 26px rgba(50, 22, 10, .35)); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bean-ring { position: absolute; inset: 0; }
.bean { position: absolute; left: 50%; top: 50%; width: var(--s); height: calc(var(--s) * 1.4);
  transform: translate(-50%, -50%) rotate(var(--r)) scale(.2); opacity: 0;
  transition: transform 1.2s var(--spring), opacity .5s; transition-delay: var(--d); }
.bean svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 3px rgba(30, 10, 4, .35)); }
.bean-ring, .mini-ring, .corner-beans { container-type: inline-size; }
.in .bean { opacity: 1; transform: translate(calc(-50% + var(--x) * 1cqw), calc(-50% + var(--y) * 1cqw)) rotate(var(--r)) scale(1); }
.price-bubble {
  position: absolute; right: 4%; top: 12%; z-index: 2; cursor: pointer;
  display: grid; place-items: center; gap: 0; width: 82px; height: 72px; border-radius: 20px;
  background: rgba(255, 244, 232, .62); border: 1px solid rgba(255, 255, 255, .7); color: var(--ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 30px -16px rgba(43, 10, 6, .5);
  animation: bob 4s ease-in-out infinite; transition: transform .3s var(--spring);
}
.price-bubble b { font-size: 1.2rem; font-weight: 500; }
.price-bubble span { font-size: .6rem; opacity: 0; margin-top: -10px; transition: .25s; }
.price-bubble:hover span { opacity: .7; margin-top: 0; }
@keyframes bob { 50% { translate: 0 -8px; } }

/* ===== App / order ahead ===== */
.app { display: grid; grid-template-columns: auto 1fr; gap: 50px; align-items: center; padding: 70px 64px 60px; }
.phones { position: relative; display: flex; gap: 28px; }
.phone {
  position: relative; width: 196px; height: 420px; border-radius: 22px; padding: 14px;
  background: linear-gradient(180deg, rgba(196, 176, 172, .7), rgba(232, 214, 200, .78) 60%, rgba(248, 236, 222, .85));
  border: 1px solid rgba(255, 255, 255, .55); box-shadow: 0 24px 44px -24px rgba(43, 10, 6, .55);
  display: flex; flex-direction: column; font-size: .6rem;
}
.ph-top { font-size: 1rem; color: var(--ink); height: 18px; line-height: 1; }
.phone h4 { font-size: .82rem; font-weight: 500; margin: 6px 0 8px; }
.phone-a .pill-xs { align-self: flex-start; padding: 5px 24px; }
.ph-icons { display: flex; justify-content: space-between; margin: 14px 6px; color: var(--ink); }
.ph-icons i svg { width: 16px; height: 16px; }
.ph-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-card { position: relative; background: rgba(255, 255, 255, .35); border-radius: 12px; padding: 6px 6px 14px; display: grid; gap: 2px; }
.ph-img { width: 52px; height: 52px; margin: 0 auto 4px; }
.ph-img svg { width: 100%; height: 100%; filter: drop-shadow(0 5px 5px rgba(50, 22, 10, .3)); }
.ph-card b, .ph-wide b { font-size: .58rem; font-weight: 500; color: var(--ink); }
.ph-card small, .ph-wide small { font-size: .46rem; color: var(--muted); line-height: 1.3; }
.ph-price { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .45rem; padding: 2px 8px; border-radius: 4px; }
.ph-wide { margin-top: 18px; width: 64%; background: rgba(255, 255, 255, .4); border-radius: 12px; padding: 10px; display: grid; gap: 2px; }
.ph-nav { margin-top: auto; display: flex; justify-content: space-around; background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 6px; }
.ph-nav i svg { width: 15px; height: 15px; }
.phone-b { padding-top: 14px; }
.ph-hero { position: relative; width: 190px; height: 190px; margin: -6px 0 6px -18px; transition: transform .6s var(--ease); }
.ph-hero svg { width: 100%; height: 100%; filter: drop-shadow(0 16px 20px rgba(50, 22, 10, .35)); }
.phone-b h4 { margin-top: auto; }
.phone-b p { font-size: .55rem; color: var(--muted); line-height: 1.55; }
.ph-label { display: block; margin-top: 8px; font-weight: 500; font-size: .52rem; color: var(--ink); }
.ph-buy { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.ph-total { background: rgba(255, 255, 255, .7); border-radius: 99px; padding: 4px 10px; font-weight: 700; font-size: .58rem; color: var(--ink); }
.ph-add { margin-left: auto; margin-right: -26px; padding: 5px 5px 5px 14px; }
.ph-add .plus { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .7); font-size: .8rem; }
.float-latte { position: absolute; left: 172px; top: 270px; width: 76px; height: 76px; z-index: 3; animation: bob 5s ease-in-out infinite; }
.float-latte .cup-svg { position: relative; z-index: 1; width: 100%; height: 100%; filter: drop-shadow(0 8px 10px rgba(50, 22, 10, .35)); }
.mini-ring { position: absolute; inset: -32%; }
.mini-ring .bean { --s: 6px; }
.app-copy h2 { margin-bottom: 18px; }
.app-copy p { font-size: .78rem; color: var(--muted); line-height: 1.85; margin-bottom: 22px; max-width: 30em; }
.store-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.store { width: 42px; height: 42px; border-radius: 12px; cursor: pointer; display: grid; place-items: center; background: rgba(255, 255, 255, .55); border: 1px solid var(--glass-line); color: var(--ink); transition: transform .3s var(--spring); }
.store:hover { transform: translateY(-3px); }
.store svg { width: 20px; height: 20px; }

/* ===== Reserve ===== */
.reserve { padding: 40px 64px 30px; }
.reserve-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.eyebrow { font-size: .62rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.reserve hr { border: 0; height: 1px; background: rgba(255, 255, 255, .35); margin: 26px 0; }
.reserve-text { font-size: .74rem; color: var(--text); line-height: 1.85; max-width: 46em; }
.events { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.event { display: grid; gap: 2px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .25); border: 1px solid rgba(255, 255, 255, .35); transition: transform .35s var(--spring), background .25s; }
.event:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .4); }
.event b { font-size: .7rem; color: #fff; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.event span { font-size: .82rem; font-weight: 500; color: var(--ink); }
.event small { font-size: .66rem; color: var(--muted); }

/* ===== Footer ===== */
.footer { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; padding: 50px 64px 40px 76px; }
.f-brand .brand-name { color: #fff; }
.f-brand .brand-tag { display: block; color: rgba(255, 255, 255, .8); }
.f-col { display: grid; align-content: start; gap: 9px; font-size: .66rem; color: var(--text); }
.f-col h3 { font-size: .95rem; font-weight: 500; margin-bottom: 6px; }
.f-col a:hover { color: #fff; }
.f-copy { grid-column: 1 / -1; font-size: .64rem; color: rgba(255, 255, 255, .7); padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); }
.corner-beans { position: relative; max-width: 1080px; width: calc(100% - 48px); margin: -200px auto 40px; height: 160px; pointer-events: none; }
.corner-beans .bean { left: 0; top: 70%; }

/* ===== Drawer & modal ===== */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(30, 12, 6, .4); backdrop-filter: blur(4px); opacity: 0; transition: opacity .4s; }
.scrim.show { opacity: 1; }
.drawer {
  position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 70; width: min(400px, calc(100% - 24px));
  border-radius: 30px; display: flex; flex-direction: column;
  background: rgba(244, 234, 222, .88); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, .6);
  transform: translateX(110%); visibility: hidden; transition: transform .6s var(--ease), visibility 0s .6s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .6s var(--ease); box-shadow: 0 30px 70px -20px rgba(30, 12, 6, .6); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 16px; }
.drawer-head h2 { font-size: 1.35rem; }
.drawer-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 24px; }
.line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(43, 10, 6, .08); animation: swap .4s var(--ease); }
.line .thumb svg { width: 52px; height: 52px; }
.line b { display: block; font-weight: 500; color: var(--ink); font-size: .9rem; }
.line small { color: var(--muted); }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qty button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(43, 10, 6, .25); background: rgba(255, 255, 255, .6); cursor: pointer; font-weight: 700; color: var(--ink); }
.line-total { font-weight: 700; color: var(--ink); font-size: .9rem; }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }
.empty svg { width: 120px; height: 120px; margin: 0 auto 10px; opacity: .9; }
.drawer-foot { padding: 16px 24px 22px; display: grid; gap: 10px; border-top: 1px solid rgba(43, 10, 6, .08); }
.field { display: grid; gap: 5px; font-size: .74rem; font-weight: 500; color: var(--ink); }
.field input, .field select { padding: 11px 14px; border-radius: 14px; border: 1px solid rgba(43, 10, 6, .18); background: rgba(255, 255, 255, .7); font: 400 .9rem var(--f); color: var(--ink); min-width: 0; }
.totals { display: grid; gap: 2px; font-size: .82rem; color: var(--muted); }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-top: 4px; }
.fine { font-size: .68rem; color: var(--muted); text-align: center; }
.success { text-align: center; padding: 30px 0; }
.success svg.check { width: 76px; height: 76px; margin: 0 auto 14px; }
.success .check circle { fill: var(--ink); }
.success .check path { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .7s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 6px; }
.success p { color: var(--muted); font-size: .88rem; }
.modal { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; padding: 16px; background: rgba(30, 12, 6, .4); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.modal.show { opacity: 1; }
.modal-card { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 30px; background: rgba(244, 234, 222, .92); border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 30px 70px -20px rgba(30, 12, 6, .6); transform: translateY(20px) scale(.97); transition: transform .45s var(--spring); }
.modal.show .modal-card { transform: none; }
.modal-body { display: grid; gap: 12px; padding: 0 24px 24px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ===== Toast ===== */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; padding: 11px 20px; border-radius: 99px; background: var(--ink); color: #fff; font-size: .85rem; box-shadow: var(--shadow-dark); white-space: nowrap; opacity: 0; transform: translate(-50%, 200%); transition: transform .5s var(--spring), opacity .3s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: .45s; }
.hero .cat-tiles.reveal { transition-delay: .6s; }

/* =====================================================================
   v3: bigger layout + type, Apple-style scroll scenes
   ===================================================================== */
body { font-size: 17px; }
.frame { max-width: 1280px; border-radius: 52px; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }

/* sticky glass nav */
.nav { position: sticky; top: 14px; z-index: 30; margin: 26px 26px 0; padding: 18px 40px; border-radius: 999px; transition: background .4s, box-shadow .4s, padding .4s; }
.nav.stuck { background: rgba(246, 238, 228, .72); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); box-shadow: 0 10px 30px -14px rgba(43, 10, 6, .4); padding: 12px 28px; }
.brand-name { font-size: 1.5rem; }
.brand-icon { width: 24px; height: 24px; }
.brand-tag { font-size: .8rem; }
.nav-links { gap: clamp(18px, 2.6vw, 40px); font-size: .95rem; white-space: nowrap; }
.nav-cta { font-size: .92rem; padding: 10px 12px 10px 22px; }
.cart-count { min-width: 24px; height: 24px; font-size: .78rem; }
.pill-lg { padding: 17px 48px; font-size: 1.08rem; }
.pill-sm { padding: 12px 26px; font-size: .95rem; }
.round { width: 44px; height: 44px; }
.round svg { width: 18px; height: 18px; }

/* hero scene: pinned while the cup grows and turns */
.frame { margin-top: 28px; }
.hero-scene { position: relative; height: 190vh; margin-top: -96px; }
.hero { position: sticky; top: 0; height: 100vh; min-height: 560px; padding: 110px 80px 20px; grid-template-columns: 1.05fr 1fr; }
.hero-title { font-size: clamp(2.6rem, min(6.4vw, 9vh), 5.6rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 44px; }
.hero-copy { will-change: transform, opacity; }
.hero-cup { width: min(100%, 520px, 62vh); will-change: transform; transition: opacity 1.2s .2s, transform 1.6s .2s var(--spring); }
.hero-cup.scrubbing { transition: opacity 1.2s .2s; }
.cat-tiles { gap: 18px; margin-top: 32px; }
.tile { width: 68px; height: 68px; border-radius: 20px; }
.tile svg { width: 32px; height: 32px; }
.tile em { font-size: .78rem; }
.hero-tagline { position: absolute; left: 50%; top: 16%; z-index: 2; opacity: 0; text-align: center; white-space: nowrap; pointer-events: none;
  font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 700; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(180deg, var(--ink-2), var(--ink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: grid; justify-items: center; gap: 8px; }
.hero-scroll span { width: 1.5px; height: 36px; background: linear-gradient(var(--ink), transparent); animation: scrollcue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* menu */
.menu { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; padding: 70px 80px 60px; }
.chips button { padding: 10px 20px; font-size: .92rem; }
.track { gap: 30px; padding-top: 120px; }
.p-card { flex-basis: 260px; padding: 100px 24px 48px; border-radius: 34px; }
.p-img { width: 186px; height: 186px; top: -100px; }
.p-card h3 { font-size: 1.2rem; }
.p-card p { font-size: .88rem; }
.p-actions .round { width: 38px; height: 38px; }
.p-price { font-size: .92rem; padding: 6px 18px; bottom: -14px; border-radius: 10px; }
.menu-copy p, .feature-copy > p, .app-copy p, .more p { font-size: 1.05rem; line-height: 1.75; }

/* statement: words light up as you scroll (Apple-style) */
.statement { position: relative; height: 220vh; }
.statement-inner { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; padding: 0 80px; }
.words { font-size: clamp(2rem, 4.6vw, 3.9rem); font-weight: 600; line-height: 1.16; letter-spacing: -.03em; color: var(--ink); max-width: 20ch; }
.words .w { opacity: .14; transition: opacity .25s linear; }
.words .w.lit { opacity: 1; }

/* feature */
.feature { padding: 80px 80px 70px; gap: 50px; }
.feature-art { width: min(100%, 540px); }
.feature-cup { will-change: transform; }
.price-bubble { width: 110px; height: 94px; border-radius: 26px; }
.price-bubble b { font-size: 1.6rem; }
.stats b { font-size: 1.8rem; }
.stats span { font-size: .85rem; }

/* order ahead */
.app { padding: 110px 80px 90px; gap: 70px; }
.phones { zoom: 1.25; }
.phone { will-change: transform; }
.store { width: 54px; height: 54px; border-radius: 16px; }
.store svg { width: 24px; height: 24px; }

/* reserve + events + footer */
.reserve { padding: 70px 80px 40px; }
.eyebrow { font-size: .85rem; }
.reserve-text { font-size: 1.02rem; }
.event { padding: 20px 22px; border-radius: 24px; }
.event b { font-size: .85rem; }
.event span { font-size: 1.05rem; }
.event small { font-size: .85rem; }
.footer { padding: 70px 80px 50px 92px; }
.f-col { font-size: .9rem; gap: 12px; }
.f-col h3 { font-size: 1.2rem; }
.f-copy { font-size: .82rem; }

/* Apple-like reveal: longer, softer, with a hint of scale */
.reveal { transform: translateY(48px) scale(.97); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }

/* ===== v4: real photography ===== */
img.cup-svg {
  display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, .78); background: #e6dacb;
  user-select: none; -webkit-user-drag: none;
}
.p-img img.cup-svg { filter: drop-shadow(0 16px 18px rgba(50, 22, 10, .32)); }
.ph-img img.cup-svg, .float-latte img.cup-svg { border-width: 3px; }
.ph-hero img.cup-svg { border-width: 5px; }
.feature-cup img.cup-svg { border-width: 10px; }
.hero-cup img.cup-svg { border-width: 12px; }
.line .thumb { width: 52px; height: 52px; }
.line .thumb img.cup-svg { border-width: 2px; }
.empty img.cup-svg { width: 130px; height: 130px; margin: 0 auto 12px; }
/* real café interior behind the glass, heavily blurred like the reference */
.bg::before {
  content: ""; position: absolute; inset: 0;
  background: url("https://images.unsplash.com/photo-1511081692775-05d0f180a065?w=1600&q=60&auto=format") center / cover no-repeat;
  opacity: .75;
}
.f-credit { grid-column: 1 / -1; margin-top: -14px; font-size: .74rem; color: rgba(255, 255, 255, .6); }
.f-credit a { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .menu { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .menu-copy { order: -1; max-width: 680px; }
}
@media (max-width: 980px) {
  .frame { width: calc(100% - 32px); margin: 24px auto 60px; border-radius: 34px; }
  .nav, .hero, .menu, .feature, .app, .reserve { padding-left: 36px; padding-right: 36px; }
  .footer { padding-left: 36px; padding-right: 36px; grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu { grid-template-columns: minmax(0, 1fr); }
  .menu-copy { order: -1; }
  .app { grid-template-columns: 1fr; justify-items: center; }
  .events { grid-template-columns: 1fr 1fr; }
  .nav { margin: 16px 16px 0; padding: 14px 24px; }
  .statement-inner { padding: 0 36px; }
  .phones { zoom: 1.1; }
}
@media (max-width: 680px) {
  .frame { width: calc(100% - 20px); margin: 12px auto 40px; border-radius: 28px; }
  .nav, .hero, .menu, .feature, .app, .reserve, .footer { padding-left: 20px; padding-right: 20px; }
  .nav { margin: 10px 10px 0; padding: 12px 16px; }
  .brand-tag { display: none; }
  .hero-scene { height: 165vh; }
  .hero { grid-template-columns: 1fr; padding-top: 84px; align-content: center; gap: 6px; min-height: 0; }
  .hero-title { margin-bottom: 28px; }
  .hero-cup { order: -1; width: min(72%, 300px); }
  .hero-scroll { display: none; }
  .p-card { flex-basis: 230px; }
  .statement-inner { padding: 0 22px; }
  .app { padding-top: 70px; }
  .feature { grid-template-columns: 1fr; padding-top: 30px; }
  .phones { zoom: .78; }
  .events { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .menu-bar { flex-direction: column; align-items: flex-start; }
  .arrows { display: none; }
  .corner-beans { display: none; }
}
@media (max-width: 420px) {
  .phones { zoom: .64; }
  .footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html, .track { scroll-behavior: auto; }
}
