.wrap { width: min(1120px, 100% - 2 * var(--sp-5)); margin-inline: auto; }
.logo { font: 600 var(--fs-xl)/1 var(--font-display); text-decoration: none; color: var(--espresso); font-variation-settings: "SOFT" 100; }
.logo i { display: inline-block; width: .3em; height: .3em; border-radius: 50%; background: var(--copper); margin-inline: .04em; transform: translateY(-.1em); }
.skip { position: absolute; left: var(--sp-4); top: -80px; z-index: 20; }
.skip:focus { top: var(--sp-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.muted { color: var(--mocha); font-size: var(--fs-sm); }
.fine { color: var(--mocha); font-size: var(--fs-sm); margin-top: var(--sp-4); }
.eyebrow { font-size: var(--fs-sm); font-weight: 600; color: var(--copper-deep); margin-bottom: var(--sp-3); }
.sub { font-size: var(--fs-lg); color: var(--roast); max-width: 54ch; }
.nowrap { white-space: nowrap; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--crema) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--latte); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); min-height: 64px; }
.nav nav { display: flex; gap: var(--sp-5); }
.nav nav a { color: var(--roast); text-decoration: none; font-weight: 500; font-size: var(--fs-sm); }
.nav nav a:hover { color: var(--copper-deep); }
@media (max-width: 760px) { .nav nav { display: none; } }

/* hero */
.hero { padding: var(--sp-8) 0 var(--sp-9); overflow: clip; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--sp-7); align-items: center; }
.hero h1 { font-size: var(--fs-hero); margin-bottom: var(--sp-5); }
.hero .row { margin-top: var(--sp-6); }
.hero-art { position: relative; aspect-ratio: 1 / 1.05; display: grid; place-items: center; }
.blob { position: absolute; inset: 6%; border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; background: var(--latte); animation: morph 14s ease-in-out infinite alternate; }
@keyframes morph { to { border-radius: 54% 46% 44% 56% / 44% 56% 48% 52%; transform: rotate(6deg); } }
.cup { position: relative; width: 82%; overflow: visible; }
.cup-body { fill: var(--foam); stroke: var(--espresso); stroke-width: 4; }
.handle { fill: none; stroke: var(--espresso); stroke-width: 12; stroke-linecap: round; }
.rim { fill: var(--foam); stroke: var(--espresso); stroke-width: 4; }
.coffee-top { fill: var(--roast); }
.saucer { fill: var(--espresso); opacity: .14; }
.liquid { fill: var(--copper); transform-origin: bottom; animation: fill 2.4s var(--ease-pour) .3s both; }
@keyframes fill { from { transform: translateY(170px); } to { transform: translateY(40px); } }
.st { fill: none; stroke: var(--roast); stroke-width: 5; stroke-linecap: round; opacity: 0; animation: steam 3s var(--ease-pour) infinite; }
.s2 { animation-delay: .8s; } .s3 { animation-delay: 1.6s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(18px); } 40% { opacity: .7; } 100% { opacity: 0; transform: translateY(-22px); } }
.float { position: absolute; display: grid; gap: 2px; background: var(--foam); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); animation: bob 5s ease-in-out infinite alternate; }
.float span:not(.badge) { color: var(--mocha); }
.f1 { top: 6%; left: -2%; } .f2 { bottom: 10%; right: 0; animation-delay: -2.5s; }
@keyframes bob { to { transform: translateY(-10px); } }
@media (max-width: 860px) { .hero-in { grid-template-columns: minmax(0, 1fr); } .hero-art { max-width: 420px; margin-inline: auto; width: 100%; } .hero { padding-top: var(--sp-6); } .f1 { left: 0; } }

/* marquee */
.band { background: var(--espresso); color: var(--on-dark); padding: var(--sp-4) 0; overflow: clip; }
.marquee-wrap { overflow: clip; }
.band:hover .marquee, .band:focus-within .marquee { animation-play-state: paused; }
.marquee { display: flex; gap: var(--sp-7); width: max-content; font: 500 var(--fs-xl) var(--font-display); animation: scroll 32s linear infinite; }
.marquee span::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); margin-left: var(--sp-7); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* sections */
.sec { padding: var(--sp-9) 0; }
.sec.alt { background: var(--foam); border-block: 1px solid var(--latte); }
.sec-head { margin-bottom: var(--sp-7); max-width: 640px; }
.sec-head h2, .manage h2, .final h2, .narrow h2 { font-size: var(--fs-4xl); }
.sec-head .sub { margin-top: var(--sp-4); }
.cards { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* demo */
.demo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.demo-form { display: grid; gap: var(--sp-5); background: var(--foam); border: 1px solid var(--latte); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--shadow-1); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font: 600 var(--fs-sm) var(--font-ui); margin-bottom: var(--sp-3); padding: 0; }
.range { margin-top: var(--sp-4); font-weight: 500; display: grid; gap: var(--sp-2); }
.range span { font-weight: 600; }
input[type=range] { width: 100%; accent-color: var(--copper); min-height: 32px; }
.check { display: flex; gap: var(--sp-3); align-items: center; margin-top: var(--sp-4); font-size: var(--fs-sm); }
.check input { width: 20px; height: 20px; accent-color: var(--copper); }
.chip .d { font-weight: 600; margin-left: 2px; }
.ticket { position: sticky; top: 88px; background: var(--espresso); color: var(--on-dark); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--shadow-2); min-height: 420px; display: grid; align-content: center; }
.ticket .eyebrow { color: var(--latte); }
.ticket h3 { font-size: var(--fs-2xl); }
.ticket .muted { color: var(--latte); margin-top: var(--sp-2); }
.lines { list-style: none; padding: 0; margin: var(--sp-5) 0; display: grid; gap: var(--sp-2); border-top: 1px dashed var(--mocha); padding-top: var(--sp-4); }
.lines li { display: flex; justify-content: space-between; font-size: var(--fs-sm); animation: line-in var(--dur-layout) var(--ease-pour); }
@keyframes line-in { from { opacity: 0; transform: translateY(6px); } }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--sp-5); border-top: 1px dashed var(--mocha); padding-top: var(--sp-4); }
.total b { font: 600 var(--fs-3xl)/1 var(--font-display); }
.ticket .btn { width: 100%; }
.ticket .btn-secondary { color: var(--on-dark); border-color: var(--on-dark); }
.ticket .btn-secondary:hover { background: var(--on-dark); color: var(--espresso); }
.ticket .fine { color: var(--latte); text-align: center; }
.ticket-state[hidden] { display: none; }
.done { text-align: center; display: grid; justify-items: center; gap: var(--sp-3); }
.done h3 { font-size: var(--fs-3xl); }
.tick { width: 96px; }
.tick circle { fill: none; stroke: var(--pistachio); stroke-width: 4; stroke-dasharray: 214; stroke-dashoffset: 214; }
.tick path { fill: none; stroke: var(--on-dark); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.done.play .tick circle { animation: draw 700ms var(--ease-pour) forwards; }
.done.play .tick path { animation: draw 500ms var(--ease-pour) 450ms forwards; }
.done.play h3, .done.play p, .done.play .btn { animation: line-in var(--dur-hero) var(--ease-pour) 700ms both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mini-total { display: none; }
@media (max-width: 900px) { .mini-total { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 72px; z-index: 3; background: var(--espresso); color: var(--on-dark); border-radius: var(--r-pill); padding: var(--sp-2) var(--sp-5); font-size: var(--fs-sm); box-shadow: var(--shadow-2); } .mini-total b { font: 600 var(--fs-xl)/1 var(--font-display); } }
@media (max-width: 900px) { .demo { grid-template-columns: minmax(0, 1fr); } .ticket { position: static; min-height: 0; } .demo-form { padding: var(--sp-5); } }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); position: relative; }
.steps li { position: relative; padding-top: var(--sp-5); border-top: 2px solid var(--latte); }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 100%; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-pour) .2s; }
.steps li.in::before { transform: scaleX(1); }
.n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--espresso); color: var(--on-dark); font: 600 var(--fs-lg) var(--font-display); margin-bottom: var(--sp-4); }
.steps h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.steps p { color: var(--roast); }

/* occasions */
.occ { transition: transform var(--dur-layout) var(--ease-pour), box-shadow var(--dur-layout) var(--ease-pour); }
.occ:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.occ svg { width: 48px; height: 48px; fill: none; stroke: var(--copper); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--sp-4); }
.occ h3 { font-size: var(--fs-2xl); margin-bottom: var(--sp-2); }
.occ ul { padding-left: 1.1em; margin: var(--sp-4) 0 0; color: var(--mocha); font-size: var(--fs-sm); }

/* stats */
.dark-sec { background: var(--espresso); color: var(--on-dark); }
.stats { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.stats b { display: block; font: 600 var(--fs-hero)/1 var(--font-display); color: var(--latte); }
.stats span { color: var(--latte); }
.quote { margin: var(--sp-8) 0 0; max-width: 780px; }
.quote blockquote { margin: 0; font: 500 var(--fs-3xl)/1.2 var(--font-display); }
.quote figcaption { margin-top: var(--sp-4); color: var(--latte); font-size: var(--fs-sm); }

/* manage */
.manage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); align-items: center; }
.manage .sub { margin: var(--sp-4) 0; }
.ticks { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.ticks li::before { content: ""; display: inline-block; width: 18px; height: 18px; margin-right: var(--sp-3); vertical-align: -3px; border-radius: 50%; background: var(--pistachio); }
.phone { width: min(100%, 340px); margin-inline: auto; background: var(--espresso); border-radius: 40px; padding: 12px; box-shadow: var(--shadow-2); }
.phone-in { background: var(--crema); position: relative; border-radius: 30px; padding: var(--sp-5); display: grid; gap: var(--sp-4); min-height: 360px; align-content: start; }
.bk { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: var(--sp-4); align-items: center; padding: var(--sp-4); }
.bk .date { text-align: center; background: var(--crema); border-radius: var(--r-sm); padding: 6px 0; font-weight: 600; line-height: 1.1; }
.bk .date small { display: block; font-size: var(--fs-xs); color: var(--copper-deep); }
.chat { background: var(--foam); border: 1px solid var(--latte); border-radius: var(--r-md) var(--r-md) var(--r-md) 4px; padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); color: var(--roast); }
.chat b { color: var(--copper-deep); margin-right: var(--sp-2); }
.btn.sm { min-height: 40px; padding: 0 var(--sp-4); font-size: var(--fs-sm); }
.mini-toast { background: var(--espresso); color: var(--on-dark); border-radius: var(--r-pill); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); opacity: 0; transform: translateY(10px); transition: opacity var(--dur-layout) var(--ease-pour), transform var(--dur-layout) var(--ease-pour); }
.mini-toast.on { opacity: 1; transform: none; }
@media (max-width: 860px) { .manage { grid-template-columns: minmax(0, 1fr); } }

/* pricing */
.price { display: grid; gap: var(--sp-3); align-content: start; position: relative; }
.price h3 { font-size: var(--fs-xl); }
.amt { font: 600 var(--fs-hero)/1 var(--font-display); }
.price.pop { border-color: var(--copper); box-shadow: var(--shadow-2); }
.price .badge { justify-self: start; }
.price .btn { margin-top: var(--sp-3); }

/* faq */
.narrow { width: min(760px, 100% - 2 * var(--sp-5)); }
details { border-bottom: 1px solid var(--latte); padding: var(--sp-4) 0; }
summary { cursor: pointer; font: 600 var(--fs-lg) var(--font-ui); list-style: none; display: flex; justify-content: space-between; gap: var(--sp-4); min-height: 44px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: var(--fs-2xl); color: var(--copper); transition: transform var(--dur-layout) var(--ease-pour); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: var(--sp-2); color: var(--roast); max-width: 60ch; }

.final { background: var(--copper); color: var(--on-copper); padding: var(--sp-9) 0; text-align: center; }
.final h2 { max-width: 16ch; margin: 0 auto var(--sp-6); font-size: var(--fs-hero); }
.final .btn { background: var(--espresso); color: var(--on-dark); }
.final .btn:hover { background: var(--roast); }
.final .btn:focus-visible { outline-color: var(--on-copper); }
footer { padding: var(--sp-7) 0; }
.foot { display: flex; flex-wrap: wrap; gap: var(--sp-5); justify-content: space-between; align-items: center; color: var(--mocha); font-size: var(--fs-sm); }

/* reveal (only hidden when JS is on and motion allowed) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-hero) var(--ease-pour), transform var(--dur-hero) var(--ease-pour); }
.js .reveal.in { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(2) { transition-delay: 100ms; } .js .cards .reveal:nth-child(3) { transition-delay: 200ms; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .float, .st, .marquee { animation: none; }
  .st { opacity: .5; }
  .liquid { animation: none; transform: translateY(40px); }
  .marquee { flex-wrap: wrap; width: auto; gap: var(--sp-4) var(--sp-6); }
  .marquee span[aria-hidden] { display: none; }
  .steps li::before { transform: scaleX(1); transition: none; }
  .done .tick circle, .done .tick path { stroke-dashoffset: 0; animation: none; }
}
