/* All Star Vending
   One light system drawn from the logo: paper ground, brown ink, antique gold accent,
   and a single dark band for the smart cooler. Two faces: Fraunces (headings) and DM Sans (text). */

:root {
  --bg: #FBF8F1;
  --surface: #F2EBDC;
  --ink: #2A2010;
  --ink-hover: #47381F;
  --muted: #54483A;
  --label: #6A5C48;
  --line: rgba(42, 32, 16, .16);
  --line-strong: rgba(42, 32, 16, .38);
  --gold: #B8922F;
  --gold-ink: #86661A;
  --gold-hi: #D9B75B;
  --teal: #2B7A82;
  --error: #9C3418;
  --dark: #2B2013;
  --on-dark: #F6EFDF;
  --on-dark-muted: rgba(246, 239, 223, .86);
  --line-dark: rgba(246, 239, 223, .18);
  /* translucent paper: chrome floats over content; bigger surfaces read thicker */
  --glass: rgba(251, 248, 241, .72);
  --glass-thick: rgba(251, 248, 241, .9);
  --blur: blur(20px) saturate(180%);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 14px;
  --r-s: 10px;
  --nav: 72px;
  --gut: 80px;
  --pad: 120px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-enter: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav); }
body {
  margin: 0;
  font: 400 16px/26px var(--body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, dt, figure, fieldset, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, input, select, textarea, label { touch-action: manipulation; }
/* the html padding already clears the bar; sections land flush under it, smaller targets get a little air */
[id] { scroll-margin-top: 16px; }
section[id] { scroll-margin-top: 0; }
.sprite { position: absolute; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.star-a { fill: #C9A545; }
.star-b { fill: #6E5215; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.section--dark :focus-visible { outline-color: var(--gold-hi); }

.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: var(--r-s); font-weight: 500; }
.skip:focus { top: calc(var(--nav) + 8px); }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.split > :first-child { grid-column: 1 / span 5; }
.split > :last-child { grid-column: 7 / span 6; }
.split--top { align-items: start; }
.section { padding: var(--pad) 0; }
.section--sand { background: var(--surface); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.head { max-width: 760px; margin-bottom: 56px; }
.stage { background: var(--surface); border-radius: var(--r); }
.section--sand .stage { background: var(--bg); }

/* Star field: painted over the section backgrounds, under the content */
.stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main .wrap, .closing .wrap { position: relative; z-index: 1; }

/* ---------- Type ---------- */
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.06; }
h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; }
h3 { font: 500 20px/28px var(--body); }
/* size-specific tracking: 20px titles tighten slightly, small labels open up */
h3, .rows--facts dt, .finder legend, .finder__names, .faq dt { letter-spacing: -.01em; }
.label, .notice, .field label, .compare thead th { letter-spacing: .01em; }
.lead { font-size: 20px; line-height: 30px; color: var(--muted); max-width: 31em; text-wrap: pretty; }
h2 + .lead, h1 + .lead { margin-top: 20px; }
.section--dark .lead { color: var(--on-dark-muted); }
.label { font: 500 13px/20px var(--body); color: var(--label); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-s); border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg); font: 500 16px/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
}
.btn--line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.section--dark .btn { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.btn:active { transform: translateY(1px) scale(.985); transition-duration: .09s; }
.btn:disabled { opacity: .5; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink-hover); border-color: var(--ink-hover); transform: translateY(-1px); }
  .btn--line:hover { background: rgba(42, 32, 16, .06); border-color: var(--ink); }
  .section--dark .btn:hover { background: #fff; border-color: #fff; }
  .btn:active { transform: translateY(1px) scale(.985); }
}
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
/* material lives on a pseudo-element: backdrop-filter on .nav itself would trap the fixed phone menu inside it */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
/* scroll edge: the hairline appears only once content passes under the bar */
@media (prefers-reduced-motion: no-preference) and (prefers-contrast: no-preference) {
  @supports (animation-timeline: scroll()) {
    .nav { animation: nav-edge linear both; animation-timeline: scroll(); animation-range: 0 48px; }
    @keyframes nav-edge { from { border-bottom-color: transparent; } }
  }
}
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav); }
.brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.brand img { height: 50px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a:not(.btn) { position: relative; padding: 10px 0; font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .15s var(--ease);
}
.nav__links a:not(.btn):hover::after, .nav__links a:not(.btn):focus-visible::after { transform: scaleX(1); }
.nav__links .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.nav__toggle { display: none; width: 44px; height: 44px; padding: 13px 10px; background: none; border: 1px solid var(--line-strong); border-radius: var(--r-s); cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav__toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), opacity .12s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { min-height: calc(100svh - var(--nav)); padding: 64px 0; display: grid; }
.hero .split { align-items: stretch; }
.hero .split > :first-child { grid-column: 1 / span 6; }
.notice { font-size: 14px; line-height: 20px; color: var(--muted); margin-bottom: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.section .actions { margin-top: 48px; }
.assure { margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--muted); }
/* checkable facts under the hero: only what the page already promises */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts b { display: block; font: 400 28px/1.15 var(--display); letter-spacing: -.02em; color: var(--gold-ink); }
.facts span { display: block; margin-top: 6px; font-size: 15px; line-height: 22px; color: var(--muted); }
.hero__stage { min-height: 460px; display: flex; align-items: flex-end; overflow: hidden; }
.lineup { display: flex; align-items: flex-end; justify-content: center; width: 100%; padding: 0 7% 9%; }
.lineup .machine { width: 35%; flex: none; filter: drop-shadow(0 14px 12px rgba(42, 32, 16, .22)); }
.lineup .machine--front { width: 42%; margin: 0 -5%; position: relative; z-index: 1; }

/* the hero arrives once: words rise, the picture settles (never hidden) */
@keyframes enter { from { opacity: 0; transform: translateY(12px); } }
@keyframes settle { from { transform: scale(.98); } }
.js .hero__text > * { animation: enter .52s var(--ease-enter) both; }
.js .hero__text > :nth-child(2) { animation-delay: .06s; }
.js .hero__text > :nth-child(3) { animation-delay: .18s; }
.js .hero__text > :nth-child(4), .js .hero__text > :nth-child(5) { animation-delay: .24s; }
.js .hero__stage .lineup { animation: settle .9s var(--ease-enter) both; transform-origin: 50% 100%; }

/* ---------- Rows ---------- */
.rows--facts > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.rows--facts > div:first-child { padding-top: 6px; }
.rows--facts dt { font: 500 20px/28px var(--body); }
.rows--facts dd { margin-top: 6px; color: var(--muted); max-width: 34em; }

/* ---------- Smart cooler demo ----------
   Three columns: what the steps are, the cooler you operate, what ends up in your hands.
   The stage always shows the one next move: a line above the cooler, a gold control on or under it. */
.demo { display: grid; grid-template-columns: minmax(0, 5fr) calc(340px + var(--door)) minmax(0, 3fr); column-gap: 56px; align-items: start; --door: 72px; --now: 116px; }
.demo .head { margin-bottom: 44px; }
#smart { overflow-x: hidden; overflow-x: clip; } /* the stage glow may run past the gutter, never the page */

/* steps: numbered and joined by a line; done ones tick, the current one is gold */
.tgg li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 16px; padding-bottom: 28px; }
.tgg li:last-child { padding-bottom: 0; }
.tgg li:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 40px; bottom: 8px; width: 1px; background: var(--line-dark); transition: background-color .2s var(--ease); }
.tgg__n { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(246, 239, 223, .4); font: 500 14px/1 var(--body); color: var(--on-dark-muted); transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.tgg h3 { line-height: 32px; transition: color .2s var(--ease); }
.tgg p { margin-top: 2px; color: var(--on-dark-muted); max-width: 28em; }
.tgg li.is-active .tgg__n { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--ink); }
.tgg li.is-active h3 { color: var(--gold-hi); }
.tgg li.is-done .tgg__n { border-color: var(--gold-hi); color: var(--gold-hi); font-size: 0; }
.tgg li.is-done .tgg__n::before { content: ""; width: 12px; height: 7px; margin-top: -3px; border-left: 2px solid; border-bottom: 2px solid; transform: rotate(-45deg); }
.tgg li.is-done:not(:last-child)::after { background: var(--gold-hi); }

/* the stage: instruction, cooler, button, stacked on the cooler's own axis (the door needs room to swing left) */
.demo__stage { position: relative; display: grid; justify-items: center; }
.demo__stage > * { margin-left: var(--door); }
.demo__stage::before { content: ""; position: absolute; z-index: -1; left: calc(var(--door) - 110px); right: -110px; top: 40px; bottom: -20px; margin: 0; background: radial-gradient(closest-side, rgba(217, 183, 91, .2), rgba(217, 183, 91, 0)); pointer-events: none; }
.demo__now { width: min(340px, 100%); min-height: calc(var(--now) - 20px); margin-bottom: 20px; display: grid; align-content: end; gap: 6px; text-align: center; }
.demo__now .label { color: var(--gold-hi); }
.demo__now b { font: 400 24px/30px var(--display); letter-spacing: -.02em; text-wrap: balance; }
#demo-action { width: min(340px, 100%); min-height: 56px; margin-top: 24px; font-size: 17px; }
.section--dark .btn--gold { background: var(--gold-hi); border-color: var(--gold-hi); }
.section--dark .btn--ghost { background: transparent; color: var(--on-dark); border-color: rgba(246, 239, 223, .4); }
.btn[aria-disabled="true"] { opacity: .6; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .section--dark .btn--gold:hover { background: #E8CD7E; border-color: #E8CD7E; }
  .section--dark .btn--ghost:hover { background: rgba(246, 239, 223, .08); border-color: var(--on-dark); }
  .btn[aria-disabled="true"]:hover { transform: none; }
}

/* the cooler. Shelves give up height on a short screen so instruction, cooler and button stay in one view:
   364px is everything in that stack except the three shelves. */
.dc { --shelf: clamp(72px, calc((100svh - var(--nav) - var(--pad) - 364px) / 3), 108px); width: min(340px, 100%); padding: 10px; border-radius: 20px; background: linear-gradient(90deg, #CFC8BA, #F7F4EE 45%, #D9D3C7); box-shadow: 0 30px 40px rgba(0, 0, 0, .35); }
.dc-head { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #1C140D; }
.dc-screen { flex: 1; min-width: 0; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; border-radius: 8px; background: #0A0705; border: 1px solid rgba(143, 211, 218, .7); color: #CFEFF2; font-weight: 500; font-size: 14px; line-height: 18px; }
/* locked: the screen points at the reader beside it */
[data-state="locked"] .dc-screen::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 2px; border-top: 2px solid var(--gold-hi); border-right: 2px solid var(--gold-hi); transform: rotate(45deg); }
.dc-reader { position: relative; flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; cursor: pointer; background: var(--gold-hi); color: var(--ink); border: 0; box-shadow: 0 0 0 4px rgba(217, 183, 91, .3); transition: background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .09s var(--ease); }
.dc-reader svg { width: 26px; height: 26px; }
.dc-reader:active { transform: scale(.94); }
/* two rings leave the reader three times, then rest on the still halo; hovering the cooler sends them again */
.dc-reader::before, .dc-reader::after { content: ""; position: absolute; inset: -4px; border-radius: 16px; border: 2px solid var(--gold-hi); opacity: 0; pointer-events: none; }
@keyframes ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
@keyframes ring-again { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
.demo.is-seen[data-state="locked"] .dc-reader::before { animation: ring 1.6s var(--ease) 3; }
.demo.is-seen[data-state="locked"] .dc-reader::after { animation: ring 1.6s var(--ease) .5s 3; }
@media (hover: hover) and (pointer: fine) {
  .demo.is-seen[data-state="locked"] .dc:hover .dc-reader::before, .demo.is-seen[data-state="locked"] .dc:hover .dc-reader::after { animation-name: ring-again; }
}
.demo:not([data-state="locked"]) .dc-reader { background: #4A3826; color: var(--gold-hi); box-shadow: none; cursor: default; }
.dc-cam { flex: none; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, #8FD3DA 0 3px, #0A0705 4px); transition: box-shadow .2s var(--ease); }
[data-state="scan"] .dc-cam { box-shadow: 0 0 0 4px rgba(143, 211, 218, .35); }
.dc-cab { position: relative; margin-top: 10px; border-radius: 8px; background: #0E0906; }
/* the cabinet light: low behind a locked door, up when it opens */
.dc-cab::before { content: ""; position: absolute; inset: 0 0 50% 0; border-radius: 8px 8px 0 0; background: linear-gradient(rgba(207, 239, 242, .3), rgba(207, 239, 242, 0)); opacity: .25; transition: opacity .5s var(--ease); pointer-events: none; }
[data-state="open"] .dc-cab::before { opacity: 1; }
.dc-shelves { position: relative; padding: 4px 10px 12px; filter: brightness(.8) saturate(.85); transition: filter .5s var(--ease); }
[data-state="open"] .dc-shelves { filter: none; }
.dc-shelf { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; height: var(--shelf); border-bottom: 4px solid rgba(232, 226, 214, .4); }
.dc-item { appearance: none; border: 0; background: none; padding: 0; height: calc(var(--shelf) - 24px); display: grid; place-items: end center; color: var(--c); cursor: pointer; border-radius: 6px; transition: transform .15s var(--ease); }
.dc-item svg { height: calc(var(--shelf) - 24px); width: auto; transition: opacity .2s var(--ease); }
.dc-item:disabled { cursor: default; }
/* door open: every item gives one small hop, corner to corner, to say "these are yours to take" */
@keyframes nudge { 40% { transform: translateY(-7px); } }
[data-state="open"] .dc-item { animation: nudge .5s var(--ease) backwards; animation-delay: calc(.45s + var(--i, 0) * .05s); }
@media (hover: hover) and (pointer: fine) { .dc-item:not(:disabled):hover { transform: translateY(-3px); } }
.dc-item:not(:disabled):active { transform: scale(.94); transition-duration: .08s; }
.dc-item.is-taken svg { opacity: .14; }
/* door shut again: one camera sweep down the shelves */
.dc-scan { position: absolute; left: 6px; right: 6px; top: 2%; height: 3px; border-radius: 2px; background: #8FD3DA; box-shadow: 0 0 14px 4px rgba(143, 211, 218, .55); opacity: 0; pointer-events: none; }
@keyframes scan { 0% { top: 2%; opacity: 0; } 12%, 88% { opacity: 1; } 100% { top: 96%; opacity: 0; } }
[data-state="scan"] .dc-scan { animation: scan 1s var(--ease) .55s both; }
.dc-door {
  position: absolute; inset: 0; border-radius: 8px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .22), rgba(207, 239, 242, .04) 28%, rgba(207, 239, 242, .07) 72%, rgba(255, 255, 255, .12));
  border: 3px solid rgba(232, 226, 214, .85);
  transform-origin: left center; transform: perspective(1600px) rotateY(0deg);
  transition: transform .7s var(--ease-enter);
}
.dc-handle { position: absolute; right: 10px; top: 34%; width: 8px; height: 32%; border-radius: 4px; background: linear-gradient(90deg, #F7F4EE, #B5AC9A); }
[data-state="open"] .dc-door { transform: perspective(1600px) rotateY(-103deg); }
.dc-base { height: 24px; margin-top: 10px; border-radius: 6px; background: repeating-linear-gradient(180deg, transparent 0 5px, rgba(35, 26, 18, .22) 5px 7px) center / 34% 100% no-repeat; }

/* your hands: a tray that fills as you take things, then the paper receipt */
.demo__panel { padding-top: var(--now); }
.tray { min-height: 168px; padding: 18px; border: 1px dashed rgba(246, 239, 223, .34); border-radius: var(--r); }
.tray[hidden], .slip[hidden], .receipt[hidden] { display: none; }
.tray .label { display: flex; justify-content: space-between; color: var(--on-dark-muted); }
#hand-count { color: var(--gold-hi); }
#hand-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#hand-list li, #hand-list button { max-width: 100%; }
#hand-list .empty { color: var(--on-dark-muted); }
#hand-list button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px 4px 8px; border-radius: 22px; background: rgba(246, 239, 223, .06); border: 1px solid var(--line-dark); color: var(--on-dark); font-weight: 500; font-size: 14px; line-height: 18px; text-align: left; cursor: pointer; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
#hand-list svg { flex: none; height: 28px; width: auto; color: var(--c); }
#hand-list button::after { content: "\00D7"; font-size: 18px; line-height: 1; color: var(--on-dark-muted); }
@media (hover: hover) and (pointer: fine) { #hand-list button:not(:disabled):hover { border-color: var(--gold-hi); background: rgba(246, 239, 223, .1); } }
#hand-list button:disabled { cursor: default; }
#hand-list button:disabled::after { content: none; }
@keyframes chip-in { from { opacity: 0; transform: translateY(-6px) scale(.92); } }
#hand-list .is-new { animation: chip-in .28s var(--ease-enter) both; }
/* paper, torn off along the bottom edge */
@keyframes slip-in { from { opacity: 0; transform: translateY(-10px); } }
.slip {
  padding: 18px 18px 30px; background: var(--on-dark); color: var(--ink); border-radius: 6px 6px 0 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  animation: slip-in .5s var(--ease-enter) both;
}
.slip__head { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px dashed var(--line-strong); font: 500 13px/20px var(--body); letter-spacing: .01em; color: var(--label); }
.receipt li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.receipt li span:last-child { flex: none; color: var(--gold-ink); font-weight: 500; }
.receipt__foot { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--muted); }

.table-scroll { margin-top: 88px; overflow-x: auto; }
.compare { width: 100%; min-width: 600px; border-collapse: collapse; }
.compare th, .compare td { padding: 18px 24px 18px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-dark); }
.compare thead th { font: 500 13px/20px var(--body); color: var(--on-dark-muted); }
.compare tbody th { font-weight: 500; width: 24%; }
.compare td { color: var(--on-dark-muted); }
.compare td:last-child { color: var(--on-dark); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { padding-top: 24px; border-top: 1px solid var(--ink); }
.steps__n { display: block; font: 400 48px/1 var(--display); color: var(--gold-ink); margin-bottom: 20px; }
.steps p { margin-top: 8px; color: var(--muted); max-width: 26em; }

/* ---------- Photos (real installs, from the company's own page) ---------- */
.photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--line); }
.steps .photo { margin-bottom: 24px; }
.steps:has(.photo) li { border-top: 0; padding-top: 0; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
/* one wide lead photo, then the row of four */
.feature { margin: 0 0 40px; }
.photo--wide { aspect-ratio: 1500 / 770; }
.gallery figure, .closing__photo { margin: 0; }
.gallery .photo { aspect-ratio: 3 / 4; }
.gallery figcaption, .feature figcaption, .closing__photo figcaption { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--muted); }
.closing__photo { margin-top: 40px; max-width: 320px; }

/* ---------- Finder ---------- */
.finder { display: grid; gap: 36px; }
.finder legend { font: 500 20px/28px var(--body); margin-bottom: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { display: block; cursor: pointer; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); font-weight: 500; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease); }
/* press feedback on pointer-down, not on release */
.pills label:active span, .cities button:active, #hand-list button:active { transform: scale(.96); transition-duration: .08s; }
.pills input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pills input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .pills label:hover input:not(:checked) + span { border-color: var(--ink); } }
.finder__result { padding: 48px; display: grid; gap: 24px; justify-items: start; }
.finder__machines { display: flex; align-items: stretch; justify-content: flex-start; gap: 20px; width: 100%; min-height: 250px; }
.finder__machines figure { flex: 0 1 124px; margin: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.finder__machines .machine { filter: drop-shadow(0 10px 8px rgba(42, 32, 16, .2)); }
.finder__empty { align-self: center; color: var(--muted); }
.finder__names { font: 500 20px/28px var(--body); }
.finder__names:empty { display: none; }
.finder__why { color: var(--muted); max-width: 32em; }
.finder__why:empty { display: none; }

/* ---------- Service area ---------- */
.cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.cities button { min-height: 44px; padding: 0 16px; border-radius: var(--r-s); border: 1px solid var(--line-strong); background: transparent; font-weight: 500; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease); }
.cities button.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .cities button:hover:not(.is-on) { border-color: var(--ink); } }
.map { overflow: hidden; }
/* the street map: hidden until its script has loaded, then it takes the drawn map's place at the same size */
.map__live { display: none; aspect-ratio: 480 / 550; background: #EDE8DC; }
.map.is-live .map__live { display: block; }
.map.is-live > svg { display: none; }
.map .leaflet-container { font: 500 13px/18px var(--body); }
.map .leaflet-container a { color: var(--ink); }
.map .leaflet-bar { border: 0; border-radius: var(--r-s); overflow: hidden; box-shadow: 0 1px 4px rgba(42, 32, 16, .3); }
.map .leaflet-bar a { width: 36px; height: 36px; line-height: 36px; color: var(--ink); }
.map .leaflet-tooltip { padding: 4px 10px; border: 0; border-radius: 8px; background: var(--ink); color: var(--bg); font: 500 14px/20px var(--body); box-shadow: 0 2px 8px rgba(42, 32, 16, .3); }
.map .leaflet-tooltip-top::before { border-top-color: var(--ink); }
/* pins: red on the map; the picked one grows from its point and turns to the brand ink and gold */
.pin svg { width: 30px; height: 40px; overflow: visible; filter: drop-shadow(0 2px 2px rgba(42, 32, 16, .4)); transform-origin: 50% 100%; transition: transform .15s var(--ease); }
.pin path { fill: #DC4632; transition: fill .15s var(--ease); }
.pin circle { fill: #6E1C12; transition: fill .15s var(--ease); }
.pin.is-on svg { transform: scale(1.35); }
.pin.is-on path { fill: var(--ink); }
.pin.is-on circle { fill: var(--gold-hi); }
.map svg { width: 100%; height: auto; }
.river { fill: none; stroke: var(--teal); stroke-width: 9; stroke-linecap: round; opacity: .32; }
.road { fill: none; stroke: rgba(42, 32, 16, .32); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.road-label { fill: var(--label); font: 500 12px var(--body); }
/* Austin is drawn as an area, not a point, so the whole city reads as served */
.metro { fill: var(--gold); fill-opacity: .16; stroke: var(--gold-ink); stroke-opacity: .5; stroke-width: 1.5; stroke-dasharray: 5 6; transition: fill-opacity .15s var(--ease); }
.city--area.is-on .metro { fill-opacity: .3; }
.district { fill: var(--label); font: 500 11px var(--body); letter-spacing: .12em; }
.city .dot { transform-box: fill-box; transform-origin: center; transition: transform .15s var(--ease); }
.city circle { fill: var(--ink); transition: fill .15s var(--ease); }
.city text { fill: var(--ink); font: 500 15px var(--body); transition: fill .15s var(--ease); }
.city--big text { font: 400 28px var(--display); letter-spacing: -.02em; }
.city--home text { fill: var(--gold-ink); }
.city.is-on .dot { transform: scale(1.5); }
.city.is-on circle { fill: var(--gold-ink); }
.city.is-on text { fill: var(--gold-ink); }

/* ---------- Questions (every answer open) ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.faq > div { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.faq dt { font: 500 20px/28px var(--body); }
.faq dd { margin-top: 8px; color: var(--muted); max-width: 34em; }
.faq a { color: var(--ink); text-underline-offset: 4px; }

/* ---------- Close and footer ---------- */
.closing { background: var(--surface); padding: var(--pad) 0 0; }
.closing--foot { padding: 0 0 40px; }
.phone { display: flex; align-items: center; min-height: 48px; width: fit-content; margin-top: 32px; font: 400 clamp(32px, 3.4vw, 46px)/1.1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.mail { display: flex; align-items: center; min-height: 44px; width: fit-content; margin-top: 2px; font-size: 18px; text-underline-offset: 5px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .phone:hover { color: var(--gold-ink); } }
.open-line { margin-top: 28px; color: var(--ink); }
.open-line[hidden] { display: none; }
.rows--hours { margin-top: 16px; max-width: 420px; font-variant-numeric: tabular-nums; }
.rows--hours > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows--hours > div:first-child { border-top: 1px solid var(--line); }
.rows--hours dt { color: var(--muted); }
.rows--hours dd { font-weight: 500; text-align: right; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding: 32px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font: 500 14px/20px var(--body); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-s);
  background-color: #fff; color: var(--ink); font-size: 16px; line-height: 26px;
  transition: border-color .14s var(--ease), box-shadow .14s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(42, 32, 16, .18); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { font-size: 14px; line-height: 20px; color: var(--error); }
.field__error[hidden] { display: none; }
.form .btn { justify-self: start; }
.form__status { font-size: 14px; line-height: 20px; color: var(--muted); }

.closing__foot { margin-top: 96px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; font-size: 14px; line-height: 20px; color: var(--muted); }
.closing__foot .brand img { height: 56px; }
.legal a, .form__status a { text-underline-offset: 4px; }
/* a button that reads as a footer link (the star-field pause) */
.linkbtn { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ---------- Plain document page (privacy.html) ---------- */
.doc { max-width: 720px; }
.doc h1 { font-size: clamp(32px, 3.6vw, 48px); }
.doc h2 { margin-top: 56px; font: 500 22px/30px var(--body); letter-spacing: -.01em; }
.doc p, .doc ul { margin-top: 14px; color: var(--muted); max-width: 38em; }
.doc .lead { margin-top: 20px; }
.doc ul { list-style: disc; padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc b { color: var(--ink); font-weight: 500; }
.doc a { color: var(--ink); text-underline-offset: 4px; }

/* ---------- Phone action bar ---------- */
.actionbar { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1099px) {
  :root { --gut: 48px; --pad: 96px; }
}
@media (max-width: 1439px) { .nav__links { gap: 22px; } }
/* six links plus the button need about 1270px; below that the menu folds into the toggle */
@media (max-width: 1279px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: var(--nav) 0 0 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--glass-thick); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
    padding: 16px var(--gut) 32px; overflow-y: auto; overscroll-behavior: contain;
    /* emerges from under the bar and returns the same way; a reopen mid-close reverses from where it is */
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .32s var(--ease-enter), visibility 0s .32s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .32s var(--ease-enter); }
  .nav__links a:not(.btn) { padding: 18px 0; font-size: 20px; border-bottom: 1px solid var(--line); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 24px; min-height: 48px; font-size: 16px; }
}
/* two columns: the receipt tucks under the steps, the cooler keeps the right */
@media (max-width: 1319px) {
  .demo { grid-template-columns: minmax(0, 1fr) calc(340px + var(--door)); grid-template-rows: auto 1fr; grid-template-areas: "text stage" "panel stage"; column-gap: 40px; row-gap: 40px; }
  .demo__text { grid-area: text; }
  .demo__stage { grid-area: stage; }
  .demo__panel { grid-area: panel; padding-top: 0; }
}
@media (max-width: 1023px) {
  .split > :first-child, .split > :last-child, .hero .split > :first-child { grid-column: 1 / -1; }
  .split { row-gap: 40px; }
  .hero { min-height: 0; padding: 48px 0 64px; }
  .hero__text { padding-top: 0; }
  .hero__stage { min-height: 0; aspect-ratio: 4 / 3; }
  .lineup .machine { width: 27%; }
  .lineup .machine--front { width: 32%; }
  /* one column: heading, then the cooler straight away; the tray and the step notes follow it */
  .demo { display: flex; flex-direction: column; --door: 56px; }
  .demo__text { display: contents; }
  .demo .head { margin-bottom: 0; }
  .demo__stage { order: 1; }
  .demo__now { min-height: 0; margin-top: 32px; }
  .demo__panel { order: 2; width: 100%; max-width: 420px; margin: 40px auto 0; }
  .tray { min-height: 120px; }
  .tgg { order: 3; margin-top: 48px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .steps .photo { aspect-ratio: 4 / 3; max-width: 560px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 639px) {
  :root { --gut: 24px; --pad: 80px; --nav: 64px; }
  .brand img { height: 42px; }
  .lead { font-size: 18px; line-height: 28px; }
  .head { margin-bottom: 40px; }
  .actions .btn { width: 100%; }
  .hero__stage { aspect-ratio: 1 / 1; }
  .lineup .machine { width: 35%; }
  .lineup .machine--front { width: 42%; }
  /* only the cooler leaves room for its door; the instruction and the button run the full width */
  .demo__stage > * { margin-left: 0; }
  .demo__stage > .dc { margin-left: 40px; width: min(264px, 100% - 40px); }
  .demo__stage::before { left: -70px; right: -70px; }
  .demo__now, #demo-action { width: 100%; }
  .demo__now b { font-size: 22px; line-height: 28px; }
  .dc { --shelf: 88px; }
  .dc-item, .dc-item svg { height: 66px; }
  [data-state="open"] .dc-door { transform: perspective(1600px) rotateY(-98deg); }
  .table-scroll { margin-top: 64px; }
  /* the compare table stacks into cards instead of scrolling sideways */
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
  .compare th, .compare td { display: block; padding: 4px 0; border: 0; width: auto; }
  .compare tbody th { width: auto; margin-bottom: 4px; }
  .compare td::before { content: attr(data-label) ": "; color: var(--on-dark-muted); font-weight: 500; }
  /* installs scroll sideways inside their own row, never the page */
  .gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .gallery li { scroll-snap-align: start; }
  .feature { margin-bottom: 24px; }
  .photo--wide { aspect-ratio: 4 / 3; }
  .closing__photo { max-width: 260px; }
  .finder__result { padding: 24px; }
  .finder__result .btn { width: 100%; }
  .finder__machines { gap: 12px; min-height: 200px; }
  .facts { margin-top: 40px; }
  .facts b { font-size: 24px; }
  .form { grid-template-columns: 1fr; padding: 20px; }
  .form .btn { width: 100%; }
  .closing--foot { padding-bottom: 112px; }
  .closing__foot { margin-top: 64px; flex-direction: column; align-items: flex-start; }

  .actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
    background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    transform: translateY(100%); visibility: hidden; transition: transform .24s var(--ease), visibility 0s .24s;
  }
  .actionbar.is-up { transform: none; visibility: visible; transition: transform .24s var(--ease); }
  .actionbar .btn { flex: 1; padding: 0 12px; }
  .actionbar .btn--line { flex: 0 0 auto; padding: 0 18px; }
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* reduced motion keeps gentle cross-fades; only movement (transforms, keyframes) goes */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-property: opacity, color, background-color, border-color, visibility !important; }
}
/* no translucency where it costs legibility: solid paper and a firmer edge */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav::before, .nav__links, .actionbar { background: var(--bg); }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .nav::before, .nav__links, .actionbar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .nav, .actionbar { border-color: var(--line-strong); }
}
