/* Edrim Variety Shop: "Gachapon". A row of toy-capsule vending machines. Hand-written. */
:root {
  --red: #E5484D;
  --sky: #4FA3E0;
  --sun: #F7C948;
  --mint: #5CC8A1;
  --cream: #FFF7EA;
  --ink: #22223B;
  --glass: #EAF5FC;
  --white: #FFFFFF;
  --line: 4px solid var(--ink);
  --display: 'Coiny', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1360px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.6 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.05; letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.cur { font-family: var(--sans); font-weight: 800; font-size: .72em; margin-right: .06em; vertical-align: .08em; }
.icon { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.kicker::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--ink); background: linear-gradient(var(--white) 50%, var(--red) 50%); flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border: 3px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--cream); font: 800 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 var(--red); transition: box-shadow .15s, translate .15s; }
.btn:hover { box-shadow: 0 7px 0 var(--red); translate: 0 -2px; }
.btn:active { box-shadow: 0 2px 0 var(--red); translate: 0 3px; }
.btn--line { background: transparent; color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.btn--line:hover { box-shadow: 0 7px 0 var(--ink); }
.btn--line:active { box-shadow: 0 2px 0 var(--ink); }

/* Header */
.header { position: sticky; top: 0; z-index: 100; background: var(--cream); border-bottom: var(--line); }
.nav { max-width: var(--wrap); margin: 0 auto; padding: 10px 32px; display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-word { display: flex; flex-direction: column; align-items: flex-start; }
.bw-1 { font-family: var(--display); font-size: 29px; line-height: .9; letter-spacing: .02em; }
.bw-2 { margin-top: 4px; background: var(--sky); color: var(--ink); font-weight: 800; font-size: 10px; letter-spacing: .26em; line-height: 1; padding: 3px 4px 3px 6px; border-radius: 4px; }
.nav-list { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { display: inline-block; padding: 10px 12px; font-weight: 700; font-size: 15px; text-decoration: none; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav-link:hover { text-decoration: underline; text-decoration-color: var(--red); }
.nav-close-li, .nav-toggle { display: none; }
.nav-toggle, .nav-close { width: 48px; height: 48px; border: 3px solid var(--ink); border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }

/* Capsule tray button: the pickup opening of a machine */
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 10px 8px 16px; border: 3px solid var(--ink); border-radius: 14px 14px 22px 22px; background: var(--ink); color: var(--cream); font: 700 14px/1.1 var(--sans); cursor: pointer; flex: none; }
.tray-flap { position: absolute; left: 12px; right: 12px; top: -3px; height: 6px; background: var(--sun); border-radius: 0 0 6px 6px; transform-origin: top; }
.cart-btn.thunk .tray-flap { animation: flap .45s ease-out; }
@keyframes flap { 0% { height: 6px; } 35% { height: 16px; } 100% { height: 6px; } }
.tray-label { font-weight: 800; }
.tray-read { display: inline-flex; align-items: center; gap: 8px; background: var(--cream); color: var(--ink); border-radius: 10px 10px 16px 16px; padding: 6px 10px; }
.tray-total { font-family: var(--display); font-size: 19px; line-height: 1; }
.tray-unit { margin-left: .25em; }
.tray-count { font-size: 12px; font-weight: 800; white-space: nowrap; }

/* Hero */
.hero { padding: 56px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero-tag { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.hero-tag span { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border: 3px solid var(--ink); border-radius: 999px; }
.hero-tag span:first-child { background: var(--ink); color: var(--cream); }
.hero h1 { font-size: clamp(44px, 5.6vw, 84px); line-height: .98; }
.hero h1 span { display: block; color: var(--red); }
.lede { font-size: 18px; max-width: 34em; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 30px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: 38px; border-top: 3px solid var(--ink); }
.hero-facts li { padding: 12px 22px 0 0; margin-right: 22px; font-size: 14.5px; border-right: 2px dashed rgba(34, 34, 59, .35); }
.hero-facts li:last-child { border-right: 0; margin-right: 0; }
.hero-facts b { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }

.hero-machine { justify-self: end; width: 100%; max-width: 600px; background: var(--red); border: var(--line); border-radius: 40px 40px 20px 20px; padding: 20px; }
.hm-window { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border: var(--line); border-radius: 50% 50% 16px 16px / 40% 40% 16px 16px; background: var(--glass); }
.hm-window img { width: 100%; height: 100%; object-fit: cover; }
.hm-window::after, .dome::after, .globe .shine { content: ""; position: absolute; left: 12%; top: 9%; width: 30%; height: 26%; border-top: 7px solid rgba(255, 255, 255, .9); border-left: 7px solid transparent; border-radius: 50%; rotate: -24deg; pointer-events: none; }
.hm-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 16px 26px; background: var(--cream); border: var(--line); border-radius: 20px; }
.big-knob { width: 168px; height: 168px; flex: none; }
.knob-turn { transform-box: view-box; transform-origin: 100px 100px; animation: knob 1.8s cubic-bezier(.55, 0, .2, 1) .35s 1 both; }
@keyframes knob { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.hm-side { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hm-slot { position: relative; width: 26px; height: 70px; border-radius: 13px; background: var(--ink); }
.hm-slot::before { content: ""; position: absolute; left: 50%; top: 12px; bottom: 12px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--sun); }
.hm-slot b { position: absolute; right: 100%; top: 50%; margin: -14px 10px 0 0; font: 800 22px/1 var(--sans); }
.hm-chute { width: 150px; height: 62px; border-radius: 12px 12px 24px 24px; background: var(--ink); position: relative; }
.hm-chute::after { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 22px; border-radius: 0 0 10px 10px; background: var(--sun); border: 3px solid var(--ink); border-top: 0; }
.m-feet { display: flex; justify-content: space-between; padding: 0 16%; }
.m-feet span { width: 22%; height: 14px; background: var(--ink); border-radius: 0 0 8px 8px; }
.hero-machine .m-feet { margin: 20px -20px -38px; }

/* Shop: the machine row */
.shop { padding: 76px 0 0; border-top: var(--line); background: var(--cream); }
.shop-head h2, .how h2, .about h2, .questions h2 { font-size: clamp(36px, 4.4vw, 62px); }
.shop-head h2 span, .about h2 span, .questions h2 span { color: var(--red); }
.shop-note { max-width: 40em; margin-top: 16px; font-size: 16px; }
.picker ol { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pick { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 16px 6px 8px; border: 3px solid var(--ink); border-radius: 999px; background: var(--white); font-weight: 800; font-size: 15px; text-decoration: none; }
.pick small { font-size: 11px; letter-spacing: .1em; opacity: .7; }
.pick-dot { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--ink); background: linear-gradient(var(--white) 50%, var(--body) 50%); }
.pick:hover { background: var(--glass); }

.row { max-width: 1440px; margin: 52px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.machine { display: flex; flex-direction: column; min-width: 0; }
.globe { position: relative; height: 172px; margin: 0 10px; overflow: hidden; background: var(--glass); border: var(--line); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.globe .shine { left: 14%; top: 14%; width: 32%; height: 40%; }
.pile { position: absolute; inset: 0; }
.pile i { position: absolute; width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid var(--ink); background: linear-gradient(var(--white) 50%, var(--c) 50%); rotate: var(--r); }
.m-body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 14px; background: var(--body); border: var(--line); border-radius: 22px 22px 14px 14px; }
.m-plate { text-align: center; background: var(--cream); border: 3px solid var(--ink); border-radius: 14px; padding: 12px 12px 14px; }
.m-no { font-weight: 800; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; }
.m-plate h3 { font-size: 27px; margin-top: 4px; }
.m-note { font-size: 13.5px; line-height: 1.45; margin-top: 6px; }
.capsules { display: grid; gap: 18px; }

/* Capsule card: clear dome over the photo, coloured half below */
.capsule { position: relative; display: flex; flex-direction: column; }
.dome { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--glass); border: 3px solid var(--ink); border-bottom: 0; border-radius: 50% 50% 0 0 / 50% 50% 0 0; }
.dome img { width: 100%; height: 100%; object-fit: cover; }
.dome::before { content: ""; position: absolute; inset: 0; background: rgba(234, 245, 252, .12); pointer-events: none; }
.dome::after { top: 12%; left: 14%; border-top-width: 6px; }
.half { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--cap); border: 3px solid var(--ink); border-top: 8px solid var(--ink); border-radius: 0 0 28px 28px / 0 0 24px 24px; padding: 12px 12px 18px; }
.cap-no { font-weight: 800; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.half h4 { font-size: 19px; line-height: 1.12; margin-top: 4px; }
.cap-desc { font-size: 13.5px; line-height: 1.45; margin-top: 6px; }
.cap-price { font-family: var(--display); font-size: 30px; line-height: 1; margin-top: auto; padding-top: 12px; }
.cap-stock { font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.cap-act { margin-top: 12px; width: 100%; display: flex; justify-content: center; min-height: 48px; }
.turn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 14px; border: 3px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--cream); font: 800 14.5px/1.1 var(--sans); cursor: pointer; box-shadow: 0 4px 0 rgba(34, 34, 59, .4); }
.turn .icon-knob { width: 22px; height: 22px; stroke-width: 2; color: var(--sun); transition: rotate .5s cubic-bezier(.5, 0, .2, 1); }
.turn:hover .icon-knob { rotate: 180deg; }
.turn:active { box-shadow: 0 1px 0 rgba(34, 34, 59, .4); translate: 0 3px; }
.stepper { display: inline-flex; align-items: center; border: 3px solid var(--ink); border-radius: 999px; background: var(--cream); }
.stepper button { width: 46px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 999px; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 30px; text-align: center; font-family: var(--display); font-size: 21px; }
.capsule.in-cart .half::before { content: "In your tray"; position: absolute; top: -20px; right: 8px; background: var(--sun); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px; font: 800 11px/1 var(--sans); letter-spacing: .06em; padding: 5px 9px; }
.m-panel { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--cream); border: 3px solid var(--ink); border-radius: 12px; }
.slot { display: inline-flex; align-items: center; gap: 7px; }
.slot::before { content: ""; width: 14px; height: 38px; border-radius: 7px; background: var(--ink); box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 6px var(--sun); }
.slot b, .chute b { font: 800 10px/1 var(--sans); letter-spacing: .14em; }
.m-knob { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); background: var(--sun); position: relative; }
.m-knob::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 10px; margin-top: -5px; border-radius: 5px; background: var(--ink); }
.chute { display: inline-flex; align-items: flex-end; justify-content: center; width: 70px; height: 38px; padding-bottom: 6px; border-radius: 8px 8px 16px 16px; background: var(--ink); color: var(--cream); }
.machine .m-feet span { height: 12px; }
.floor { height: 34px; margin-top: 0; border-top: var(--line); background: repeating-conic-gradient(#EFE3CC 0 25%, var(--cream) 0 50%) 0 0 / 34px 34px; }

.drop-capsule { position: fixed; z-index: 250; width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--ink); background: linear-gradient(var(--white) 50%, var(--cap, var(--sun)) 50%); pointer-events: none; }

/* How it works */
.how { background: var(--sky); border-top: var(--line); border-bottom: var(--line); padding: 84px 0; }
.how-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 64px; align-items: center; }
.how h2 span { color: var(--cream); -webkit-text-stroke: 0; text-shadow: 3px 3px 0 var(--ink); }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 60px 1fr; gap: 16px; align-items: start; background: var(--cream); border: 3px solid var(--ink); border-radius: 20px; padding: 18px; }
.steps b { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; border: 3px solid var(--ink); background: var(--sun); font: 400 28px/1 var(--display); box-shadow: inset 0 0 0 5px var(--sun), inset 0 0 0 7px var(--ink); }
.steps p { font-size: 15px; }
.how-foot { margin-top: 24px; font-weight: 700; max-width: 40em; }
.how-photo { margin: 0; justify-self: center; width: 100%; max-width: 360px; border: var(--line); border-radius: 180px 180px 24px 24px; overflow: hidden; background: var(--glass); }

/* About */
.about { padding: 92px 0; }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr .62fr; gap: 44px; align-items: center; }
.about-wide { margin: 0; overflow: hidden; border: var(--line); border-radius: 50% 50% 20px 20px / 34% 34% 20px 20px; background: var(--glass); }
.about-copy p:not(.kicker) { margin-top: 16px; font-size: 16.5px; }
.about-copy h2 { margin-bottom: 4px; }
.about-tall { margin: 0; overflow: hidden; border: var(--line); border-radius: 999px; background: var(--glass); }

/* Questions */
.questions { background: var(--sun); border-top: var(--line); border-bottom: var(--line); padding: 84px 0; }
.q-wrap { max-width: 920px; }
.questions h2 span { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 6px; text-underline-offset: 8px; }
.faq-list { display: grid; gap: 12px; margin-top: 32px; }
.faq-list details { background: var(--cream); border: 3px solid var(--ink); border-radius: 30px; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; font-weight: 800; font-size: 17px; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 32px; height: 32px; padding: 4px; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--white); transition: rotate .2s; }
.faq-list details[open] summary .icon { rotate: 45deg; }
.faq-list details p { padding: 0 22px 20px; max-width: 46em; }

/* Contact: the maker's plate on the side of a machine */
.contact { background: var(--mint); padding: 84px 0; }
.maker { position: relative; max-width: 980px; margin: 0 auto; background: var(--cream); border: var(--line); border-radius: 24px; padding: 48px 56px 44px; }
.maker::before, .maker::after { content: ""; position: absolute; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
.maker::before { left: 16px; }
.maker::after { right: 16px; }
.maker h2 { font-size: clamp(32px, 4vw, 52px); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 28px 0 30px; }
.facts div { padding: 14px 0; border-top: 2px dashed rgba(34, 34, 59, .35); }
.facts dt { font-weight: 800; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.facts dd { margin: 4px 0 0; font-size: 16px; }
.facts a { font-weight: 700; }

/* Footer */
.footer { background: var(--ink); color: var(--cream); padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 36px; }
.footer-line { display: flex; flex-direction: column; gap: 8px; }
.fl-caps { display: flex; gap: 6px; }
.fl-caps i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--cream); background: linear-gradient(var(--cream) 50%, var(--red) 50%); }
.fl-caps i:nth-child(2) { background: linear-gradient(var(--cream) 50%, var(--sky) 50%); }
.fl-caps i:nth-child(3) { background: linear-gradient(var(--cream) 50%, var(--sun) 50%); }
.fl-caps i:nth-child(4) { background: linear-gradient(var(--cream) 50%, var(--mint) 50%); }
.fl-caps i:nth-child(5) { background: linear-gradient(var(--cream) 50%, var(--ink) 50%); }
.fl-name { font-family: var(--display); font-size: 50px; line-height: 1; margin-top: 6px; }
.fl-sub { font-size: 14px; max-width: 22em; opacity: .85; }
.fcol h2 { font-family: var(--sans); font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--sun); margin-bottom: 14px; }
.fcol p { font-size: 14.5px; margin-bottom: 12px; }
.fcol li { margin-bottom: 8px; font-size: 14.5px; }
.fcol a { text-decoration: none; }
.fcol a:hover { text-decoration: underline; text-decoration-color: var(--sun); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 247, 234, .22); font-size: 13px; opacity: .85; }

/* Cart drawer: the capsule tray rises from the bottom of the machine */
.cart-overlay { position: fixed; inset: 0; z-index: 180; background: rgba(34, 34, 59, .55); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar { position: fixed; z-index: 190; left: 50%; bottom: 0; width: min(700px, 100%); max-height: 86vh; display: flex; flex-direction: column; background: var(--ink); color: var(--cream); border: var(--line); border-bottom: 0; border-radius: 28px 28px 0 0; padding: 0 16px 16px; transform: translate(-50%, 105%); visibility: hidden; transition: transform .35s cubic-bezier(.3, .8, .3, 1), visibility .35s; }
.cart-sidebar.open { transform: translate(-50%, 0); visibility: visible; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 4px 10px; position: relative; }
.cart-head::before { content: ""; position: absolute; left: 50%; top: 8px; width: 56px; height: 5px; margin-left: -28px; border-radius: 3px; background: rgba(255, 247, 234, .35); }
.cart-head h2 { font-size: 30px; }
.cart-close { width: 46px; height: 46px; border: 3px solid var(--cream); border-radius: 50%; background: transparent; color: var(--cream); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.tray-head { font-size: 13px; font-weight: 700; padding: 0 4px 10px; opacity: .85; }
.cart-items { flex: 1; overflow-y: auto; background: var(--cream); color: var(--ink); border-radius: 18px; border-top: 10px solid var(--sun); box-shadow: inset 0 10px 0 rgba(34, 34, 59, .08); padding: 14px; min-height: 120px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 2px dashed rgba(34, 34, 59, .25); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; background: var(--glass); }
.cart-item h3 { font-family: var(--sans); font-weight: 800; font-size: 15px; line-height: 1.3; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.qty { display: inline-flex; align-items: center; border: 2.5px solid var(--ink); border-radius: 999px; }
.qty button { width: 40px; height: 40px; border: 0; background: none; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.qty button:disabled { opacity: .35; }
.qty output { min-width: 24px; text-align: center; font-weight: 800; }
.cart-item-sub { font-weight: 800; font-size: 16px; }
.cart-remove { margin-top: 4px; padding: 6px 0; border: 0; background: none; color: var(--ink); font: 700 13px var(--sans); text-decoration: underline; cursor: pointer; }
.cart-empty { text-align: center; padding: 26px 10px; }
.cart-empty p { font-weight: 700; margin-bottom: 16px; }
.cart-foot { padding: 16px 4px 4px; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-weight: 700; }
.cart-total .price { font-family: var(--display); font-size: 32px; }
.cart-foot .btn { width: 100%; margin-top: 14px; background: var(--sun); color: var(--ink); border-color: var(--sun); }
.cart-foot p { font-size: 13px; margin-top: 12px; opacity: .85; }

/* Order page */
.header--plain .back-link { margin-left: auto; }
.order-page { padding: 56px 0 84px; }
.order-intro h1, .doc-head h1 { font-size: clamp(36px, 4.4vw, 58px); }
.order-intro .lede { margin-top: 14px; }
.order { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; margin-top: 36px; align-items: start; }
.order-form, .summary { background: var(--white); border: var(--line); border-radius: 24px; padding: 28px; }
.order-form h2, .summary h2, .sent h2 { font-size: 28px; margin-bottom: 18px; }
.summary { border-top: 14px solid var(--red); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 800; font-size: 14.5px; margin-bottom: 6px; }
.field label span { font-weight: 500; opacity: .75; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 14px; background: var(--cream); color: var(--ink); font: 500 16px/1.4 var(--sans); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--sky); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-hint { font-size: 13px; margin-top: 4px; opacity: .8; }
.field-error { font-size: 13.5px; font-weight: 700; color: #B42328; margin-top: 4px; }
.field-error:empty { display: none; }
.order-submit { width: 100%; }
#summary-cart-list { width: 100%; border-collapse: collapse; }
#summary-cart-list td { padding: 10px 0; border-bottom: 2px dashed rgba(34, 34, 59, .25); vertical-align: top; }
#summary-cart-list td:last-child { text-align: right; font-weight: 800; white-space: nowrap; }
#summary-cart-list small { display: block; font-size: 13px; opacity: .75; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; font-weight: 800; }
.summary-total .price { font-family: var(--display); font-size: 30px; }
.summary-note { margin-top: 14px; font-weight: 700; }
.sent { max-width: 720px; margin-top: 36px; background: var(--white); border: var(--line); border-radius: 24px; padding: 32px; }
.sent .hero-actions { margin-top: 22px; }
.sent-copy { margin-top: 24px; }
.sent-copy pre { white-space: pre-wrap; word-break: break-word; background: var(--cream); border: 2px dashed rgba(34, 34, 59, .35); border-radius: 14px; padding: 16px; font: 500 14px/1.5 var(--sans); margin-top: 14px; }

/* Legal pages */
.doc { padding: 56px 0 84px; }
.doc-machine { max-width: 820px; margin: 0 auto; border: var(--line); border-radius: 32px 32px 20px 20px; overflow: hidden; background: var(--white); }
.doc-head { background: var(--sky); border-bottom: var(--line); padding: 36px 40px 30px; }
.doc-head .kicker { margin-bottom: 10px; }
.legal { padding: 30px 40px 40px; }
.legal h2 { font-size: 24px; margin: 28px 0 8px; }
.legal p, .legal li { margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 22px; }

/* Responsive */
@media (max-width: 1239px) {
  .row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; max-width: 1000px; }
  .machine { grid-column: span 2; }
  .machine:nth-child(4) { grid-column: 2 / span 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1079px) {
  .nav { gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .nav-list { display: none; }
  .nav-list.open { display: flex; position: fixed; inset: 0; z-index: 200; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; margin: 0; padding: 80px 32px 40px; background: var(--cream); border-left: 14px solid var(--red); overflow-y: auto; }
  .nav-list.open .nav-link { font-family: var(--display); font-weight: 400; font-size: 38px; padding: 6px 0; }
  .nav-list.open .nav-close-li { display: block; position: absolute; top: 18px; right: 20px; }
  .nav-close { display: inline-flex; }
  .cart-btn { margin-left: auto; }
}
@media (max-width: 899px) {
  .hero { padding: 36px 0 64px; }
  .hero-grid, .how-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-machine { justify-self: center; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-copy { grid-column: 1 / -1; order: -1; }
  .about-tall { max-width: 260px; justify-self: center; }
  .order { grid-template-columns: 1fr; }
}
@media (max-width: 759px) {
  .wrap, .nav { padding-left: 16px; padding-right: 16px; }
  .nav { min-height: 66px; }
  .bw-1 { font-size: 24px; }
  .brand-mark { width: 34px; height: 34px; }
  .tray-label { display: none; }
  .cart-btn { padding: 6px 6px 6px 8px; gap: 0; min-height: 50px; }
  .tray-count .tray-unit { display: none; }
  .tray-count::before { content: "\00d7"; margin-right: 1px; }
  .lede { font-size: 17px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li { border-right: 0; margin-right: 0; padding: 10px 0; border-bottom: 2px dashed rgba(34, 34, 59, .3); }
  .hero-facts li:last-child { border-bottom: 0; }
  .hero-machine { padding: 12px; border-radius: 30px 30px 16px 16px; }
  .hero-machine .m-feet { margin: 12px -12px -30px; }
  .hm-panel { padding: 12px 16px; margin-top: 12px; }
  .big-knob { width: 112px; height: 112px; }
  .hm-chute { width: 96px; height: 46px; }
  .hm-chute::after { height: 16px; }
  .hm-slot { height: 48px; width: 22px; }
  .row { grid-template-columns: 1fr; padding: 0 16px; gap: 34px; }
  .machine, .machine:nth-child(4) { grid-column: auto; }
  .globe { height: 150px; }
  .capsules { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 12px; }
  .capsule { flex: 0 0 calc(50% - 6px); min-width: 0; }
  .half { padding: 10px 8px 14px; }
  .half h4 { font-size: 17px; }
  .cap-desc { font-size: 13px; }
  .cap-price { font-size: 26px; }
  .turn { font-size: 13px; padding: 8px 8px; gap: 5px; }
  .turn .icon-knob { width: 18px; height: 18px; }
  .stepper button { width: 40px; }
  .steps { grid-template-columns: 1fr; }
  .how, .about, .questions, .contact { padding: 64px 0; }
  .maker { padding: 40px 20px 28px; }
  .facts { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .order-form, .summary, .sent { padding: 20px; }
  .doc-head { padding: 28px 20px 22px; }
  .legal { padding: 22px 20px 30px; }
  .header--plain .back-link { font-size: 14px; padding: 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .knob-turn, .cart-btn.thunk .tray-flap { animation: none; }
  .cart-sidebar, .cart-overlay, .btn, .turn .icon-knob, .faq-list summary .icon { transition: none; }
}
