/* BarStock site: a back bar at night. One dark look on purpose (the bar after close, lit by the shelf),
   warm whiskey amber as the accent, the app's orange for actions. Layout: a wide stage per section,
   text in a ~62ch column beside a working visual (bottles, sheets, tickets) built from the app's real units. */
:root {
  --night: #0e1117;        /* page */
  --shelf: #161a22;        /* panels */
  --shelf-2: #1d2230;      /* raised panels */
  --rule: #2b3140;         /* hairlines */
  --chalk: #ede6d8;        /* text */
  --smoke: #a3a8b4;        /* secondary text */
  --dim: #6f7684;          /* captions */
  --whiskey: #f2a541;      /* accent: liquid, highlights */
  --whiskey-deep: #b86b17;
  --flame: #f0662a;        /* actions (the app's orange) */
  --lime: #8fd19e;         /* good */
  --cherry: #f07167;       /* short / over target */
  --glass: rgba(237, 230, 216, .08);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --paper: #f7f4ee;        /* white tiles */
  --paper-ink: #1b1f27;
  --paper-muted: #5b6270;
  --paper-accent: #b86b17;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--chalk);
  background: var(--night);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
a { color: var(--whiskey); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffc46e; }
:focus-visible { outline: 2px solid var(--whiskey); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ---- type ---- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
p { margin: 0; max-width: 62ch; }
.lede { font-size: 1.2rem; color: var(--smoke); }
.eyebrow { font: 600 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--whiskey); }
.mono { font-family: var(--mono); }
.muted { color: var(--smoke); }
.small { font-size: .88rem; }
.num { font-variant-numeric: tabular-nums; }
em.pour { font-style: normal; color: var(--whiskey); }

/* ---- header ---- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(14, 17, 23, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 1.25rem/1 var(--display); color: var(--chalk); text-decoration: none; letter-spacing: -.02em; }
.brand svg { width: 26px; height: 32px; }
.brand:hover { color: var(--chalk); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a { color: var(--smoke); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--chalk); background: var(--glass); }
.nav a[aria-current="page"] { color: var(--chalk); background: var(--shelf-2); }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem/1 var(--body); padding: 13px 20px; border-radius: 999px; border: 1px solid var(--rule); color: var(--chalk); background: var(--shelf); text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--chalk); border-color: var(--smoke); }
.btn.go { background: var(--flame); border-color: var(--flame); color: #1a0d05; }
.btn.go:hover { background: #ff7a3d; color: #1a0d05; }
.nav .btn { padding: 9px 16px; font-size: .92rem; margin-left: 6px; }

/* ---- sections ---- */
section { padding-block: clamp(56px, 9vw, 110px); }
section + section { border-top: 1px solid var(--rule); }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.stage.flip > :first-child { order: 2; }
.stage > * { min-width: 0; }
.stack { display: grid; gap: 18px; align-content: start; }
.points { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; }
.points li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; color: var(--smoke); }
.points li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 2px; background: var(--whiskey); transform: rotate(45deg); }
.points b { color: var(--chalk); font-weight: 600; }
@media (max-width: 860px) { .stage { grid-template-columns: 1fr; } .stage.flip > :first-child { order: 0; } }

/* page hero (feature pages) */
.phero { padding-block: clamp(48px, 8vw, 96px) clamp(36px, 6vw, 64px); }
.phero .stack { gap: 20px; }
.crumbs { font: 500 .85rem var(--mono); color: var(--dim); }
.crumbs a { color: var(--smoke); }

/* ---- panels the visuals sit in ---- */
.panel { background: var(--shelf); border: 1px solid var(--rule); border-radius: var(--r); padding: 22px; }
.panel.raised { background: var(--shelf-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.panel h4 { margin: 0 0 12px; font: 600 .8rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.ex { font: 500 .72rem var(--mono); color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }

/* mini table like the app's */
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font: 600 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 0 8px 8px; border-bottom: 1px solid var(--rule); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--rule); }
.tbl .n { text-align: right; }
.tbl tr.band td { background: rgba(242, 165, 65, .07); color: var(--whiskey); font-weight: 600; }
.tbl tfoot td { border-bottom: 0; font-weight: 700; border-top: 2px solid var(--smoke); }
.tblwrap { overflow-x: auto; }
.chip { display: inline-block; font: 600 .68rem/1 var(--body); padding: 4px 7px; border-radius: 6px; background: rgba(120, 160, 255, .14); color: #a9c2ff; margin-left: 6px; vertical-align: 2px; }
.chip.amber { background: rgba(242, 165, 65, .14); color: var(--whiskey); }
.chip.lime { background: rgba(143, 209, 158, .14); color: var(--lime); }
.chip.cherry { background: rgba(240, 113, 103, .15); color: var(--cherry); }
.neg { color: var(--cherry); } .pos { color: var(--lime); }

/* the 80 mm receipt ticket */
.ticket { width: min(300px, 100%); background: #f6f1e7; color: #1b1b1b; font: 500 .82rem/1.45 var(--mono); padding: 18px 18px 26px; border-radius: 4px 4px 0 0; position: relative; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8); transform: rotate(-1.5deg); }
.ticket::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: linear-gradient(-45deg, transparent 6px, #f6f1e7 0) 0 0 / 12px 12px, linear-gradient(45deg, transparent 6px, #f6f1e7 0) 0 0 / 12px 12px; }
.ticket h5 { margin: 0; font: 700 1rem var(--mono); text-align: center; }
.ticket .c { text-align: center; } .ticket hr { border: 0; border-top: 1px dashed #777; margin: 10px 0; }
.ticket .ln { display: flex; gap: 8px; align-items: flex-end; margin: 7px 0; } .ticket .ln span:first-child { flex: 1; } .ticket .ln i { width: 64px; border-bottom: 1px solid #222; height: 1em; }

/* phone / tablet frame */
.device { border: 10px solid #04060a; border-radius: 30px; background: var(--shelf-2); overflow: hidden; box-shadow: 0 0 0 1px #2b3140, 0 40px 80px -40px rgba(0, 0, 0, .9); }
.device .bar { height: 26px; background: #04060a; }

/* feature cards on home */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.fcard { display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: var(--r); background: var(--shelf); border: 1px solid var(--rule); color: var(--chalk); text-decoration: none; transition: border-color .2s, transform .2s; }
.fcard:hover { border-color: var(--whiskey-deep); transform: translateY(-3px); color: var(--chalk); }
.fcard p { color: var(--smoke); font-size: .97rem; }
.fcard .more { font: 600 .85rem var(--mono); color: var(--whiskey); }

/* steps (a real sequence: the weekly loop) */
.loop { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: s; }
.loop li { list-style: none; position: relative; padding: 18px 16px; background: var(--shelf); border: 1px solid var(--rule); border-radius: var(--r); display: grid; gap: 6px; }
.loop li b { font: 700 1.05rem var(--display); }
.loop li span { color: var(--smoke); font-size: .9rem; }
.loop li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 600 .75rem var(--mono); color: var(--whiskey); }
@media (max-width: 900px) { .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .loop { grid-template-columns: 1fr; } }

/* big stat line (illustrative) */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.facts div { background: var(--shelf); padding: 22px; display: grid; gap: 6px; }
.facts b { font: 800 2.2rem/1 var(--display); color: var(--whiskey); font-variant-numeric: tabular-nums; }
.facts span { color: var(--smoke); font-size: .92rem; }

/* call to action band */
.cta { background: radial-gradient(120% 140% at 0% 0%, rgba(242, 165, 65, .18), transparent 55%), var(--shelf); border: 1px solid var(--rule); border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: grid; gap: 18px; }
.cta form { display: flex; gap: 10px; flex-wrap: wrap; }
.cta input { flex: 1 1 220px; min-width: 0; font: 400 1rem var(--body); padding: 13px 16px; border-radius: 999px; border: 1px solid var(--rule); background: var(--night); color: var(--chalk); }
.cta .note { color: var(--dim); font-size: .88rem; }

footer { border-top: 1px solid var(--rule); padding-block: 36px; color: var(--dim); font-size: .9rem; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; } footer a { color: var(--smoke); text-decoration: none; }

/* bottles drawn by site.js */
.shelfsvg { width: 100%; height: auto; display: block; }
.shelfsvg .liq { transition: y 1.4s cubic-bezier(.2, .8, .2, 1), height 1.4s cubic-bezier(.2, .8, .2, 1); }
.fade-up { animation: up .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes up { from { transform: translateY(14px); } to { transform: none; } }  /* fully visible from the first frame */
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; }
.float-card { position: absolute; right: -28px; bottom: -118px; width: min(300px, 76%); box-shadow: 0 30px 60px -30px #000; }
@media (max-width: 860px) { .float-card { position: static; width: 100%; margin-top: 14px; } }

/* ---- home: the real app on a laptop, the bar iPad in front ---- */
.appshot { position: relative; padding-bottom: 40px; }
.laptop .lid { background: #04060a; border-radius: 16px 16px 0 0; padding: 10px; border: 1px solid #2b3140; box-shadow: 0 40px 80px -40px #000; }
.laptop .base { height: 14px; margin: 0 -4%; background: linear-gradient(#2b3140, #161a22); border-radius: 0 0 14px 14px; }
.app { display: grid; grid-template-columns: 30% 70%; background: #f5f6f8; border-radius: 6px; overflow: hidden; font-family: var(--body); color: #1b1f27; font-size: 10.5px; line-height: 1.35; min-height: 290px; }
.a-side { background: #141922; color: #c9cfda; padding: 10px 8px; display: grid; gap: 5px; align-content: start; }
.a-brand { display: flex; align-items: center; gap: 6px; font: 800 12px var(--display); color: #fff; margin-bottom: 4px; } .a-brand i { width: 8px; height: 8px; background: #f97316; transform: rotate(45deg); border-radius: 1px; }
.a-bar { background: #1f2734; border-radius: 6px; padding: 6px; display: grid; } .a-bar b { color: #fff; font-size: 10.5px; } .a-bar span { font-size: 9px; color: #8a93a6; }
.a-nav { padding: 4px 6px; border-radius: 4px; display: flex; gap: 4px; align-items: center; white-space: nowrap; overflow: hidden; } .a-nav.on { background: #1f2734; color: #fff; box-shadow: inset 2px 0 #f97316; }
.a-nav em { margin-left: auto; font-style: normal; font-size: 8.5px; background: #b45309; color: #fff; border-radius: 99px; padding: 0 5px; } .a-nav em.hot { background: #b91c1c; }
.a-today { margin-top: 6px; display: grid; gap: 4px; font-size: 9.5px; } .a-today span { font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: #8a93a6; }
.a-main { padding: 10px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.a-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; } .a-head b { font: 700 13px var(--display); } .a-btn { background: #c2410c; color: #fff; border-radius: 6px; padding: 3px 7px; font-size: 9px; font-weight: 600; white-space: nowrap; }
.a-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; } .a-kpis div { background: #fff; border: 1px solid #e4e7ec; border-radius: 6px; padding: 5px 6px; display: grid; min-width: 0; }
.a-kpis span { font-size: 8px; color: #667085; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .a-kpis b { font: 700 13px var(--display); }
.a-kpis .warn b { color: #b45309; } .a-kpis .bad b { color: #b42318; }
.a-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 6px; }
.a-card { background: #fff; border: 1px solid #e4e7ec; border-radius: 6px; padding: 6px; display: grid; gap: 5px; align-content: start; min-width: 0; } .a-ch { font-weight: 700; font-size: 10px; }
.a-req { border-left: 3px solid #7c3aed; background: #faf8ff; border-radius: 0 4px 4px 0; padding: 4px 5px; display: grid; } .a-req.q { border-left-color: #dc2626; background: #fff7f7; } .a-req span { font-size: 9px; color: #667085; }
.a-row { display: grid; grid-template-columns: minmax(0, 1fr) 26px 28px; gap: 4px; padding: 3px 0; border-bottom: 1px solid #f0f1f3; align-items: center; } .a-row span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-row i { font-style: normal; font-size: 8px; font-weight: 600; color: #1d4ed8; background: #eaf0ff; border-radius: 3px; padding: 0 3px; } .a-row span:nth-child(2) { color: #667085; text-align: right; } .a-row b { text-align: right; color: #c2410c; }
.tablet { position: absolute; right: -34px; bottom: -14px; width: 31%; min-width: 150px; background: #04060a; border-radius: 16px; padding: 8px; border: 1px solid #2b3140; box-shadow: 0 30px 60px -20px #000; }
.t-screen { background: #1d2230; border-radius: 9px; padding: 8px; display: grid; gap: 6px; } .t-top { display: flex; justify-content: space-between; font: 600 8.5px var(--mono); color: #a3a8b4; }
.t-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; } .t-tiles div { background: #161a22; border: 1px solid #2b3140; border-radius: 7px; padding: 6px; font-size: 12px; display: grid; gap: 2px; color: #ede6d8; } .t-tiles b { font: 600 9px var(--body); } .t-tiles .hot { border-color: #f0662a; background: rgba(240, 102, 42, .12); }
.appnote { position: absolute; left: 4px; bottom: 6px; }
@media (max-width: 860px) { .tablet { right: 0; } }
@media (max-width: 520px) { .app { grid-template-columns: 1fr; } .a-side { display: none; } .a-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .a-cols { grid-template-columns: 1fr; } .tablet { position: static; width: 70%; margin: 14px auto 0; } .appnote { position: static; } }

/* ---- white tiles on the dark page ---- */
.fcard { background: var(--paper); border-color: transparent; color: var(--paper-ink); }
.fcard:hover { border-color: var(--whiskey); color: var(--paper-ink); }
.fcard p { color: var(--paper-muted); } .fcard .more { color: var(--paper-accent); }
.loop li { background: var(--paper); border-color: transparent; }
.loop li b { color: var(--paper-ink); } .loop li span { color: var(--paper-muted); } .loop li::before { color: var(--paper-accent); }
.facts { background: #ddd6c9; border-color: transparent; }
.facts div { background: var(--paper); } .facts b { color: var(--paper-accent); } .facts span { color: var(--paper-muted); }

/* ---- scanning: a phone camera finding a barcode ---- */
.scanphone { width: min(250px, 100%); background: #04060a; border-radius: 30px; padding: 10px; box-shadow: 0 0 0 1px #2b3140, 0 40px 80px -40px #000; justify-self: center; }
.scancam { position: relative; height: 380px; border-radius: 22px; overflow: hidden; background: radial-gradient(120% 80% at 50% 40%, #2b3347, #161a22); }
.scancam .label { position: absolute; left: 50%; top: 70px; width: 150px; height: 190px; transform: translateX(-50%) rotate(-4deg); background: #e9d9a8; border-radius: 16px 16px 10px 10px; box-shadow: inset 0 -30px 40px rgba(0, 0, 0, .15); }
.scancam .bars { position: absolute; left: 50%; top: 150px; width: 110px; height: 46px; transform: translateX(-50%) rotate(-4deg); background: #fff; border-radius: 4px; padding: 6px 8px; }
.scancam .bars i { display: block; height: 100%; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 13px); }
.scancam .vf { position: absolute; left: 34px; right: 34px; top: 136px; height: 76px; border-radius: 12px; box-shadow: 0 0 0 999px rgba(4, 6, 10, .45); border: 2px solid var(--whiskey); }
.scancam .beam { position: absolute; left: 40px; right: 40px; top: 172px; height: 2px; background: var(--cherry); box-shadow: 0 0 12px var(--cherry); animation: beam 2.2s ease-in-out infinite; }
@keyframes beam { 0%, 100% { transform: translateY(-26px); } 50% { transform: translateY(26px); } }
.scancam .hit { position: absolute; left: 12px; right: 12px; bottom: 12px; background: var(--paper); color: var(--paper-ink); border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.scancam .hit b { display: block; font: 700 .95rem var(--display); } .scancam .hit span { font-size: .78rem; color: var(--paper-muted); }
.scancam .hit .ok { width: 34px; height: 34px; border-radius: 50%; background: #15803d; color: #fff; display: grid; place-items: center; font-weight: 700; }

/* the photo library: white cards with a bottle each */
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.pcard { margin: 0; background: var(--paper); border-radius: 12px; padding: 12px 8px 10px; display: grid; justify-items: center; gap: 8px; }
.pcard svg { height: 96px; width: auto; }
.pcard figcaption { text-align: center; display: grid; justify-items: center; gap: 4px; }
.pcard b { font: 600 .78rem/1.2 var(--body); color: var(--paper-ink); }
.pcard .chip { margin: 0; background: #eaf0ff; color: #1d4ed8; }
/* white tiles: what a scan does on each screen */
.wtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.wtile { background: var(--paper); color: var(--paper-ink); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; align-content: start; }
.wtile .ico { font-size: 1.5rem; } .wtile b { font: 700 1.1rem var(--display); } .wtile p { color: var(--paper-muted); font-size: .95rem; }
.wtile .what { font: 600 .74rem var(--mono); color: var(--paper-accent); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 560px) { .scanpair { grid-template-columns: 1fr !important; } }
/* the week strip: nightly spot checks and the scheduled full count */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.week > div { background: var(--paper); color: var(--paper-ink); border-radius: 10px; padding: 8px 6px; display: grid; gap: 4px; justify-items: center; text-align: center; min-height: 78px; align-content: start; }
.week b { font: 700 .8rem var(--display); }
.week .spot { font-size: .72rem; color: var(--paper-muted); } .week .spot.ok { color: #15803d; font-weight: 600; }
.week .flag { font-size: .66rem; font-weight: 700; color: #b42318; background: #fdecec; border-radius: 6px; padding: 1px 5px; }
.week .today { outline: 2px solid var(--whiskey); }
.week .full { background: var(--whiskey); } .week .full .spot, .week .full .small { color: #3b2400; font-weight: 600; }
@media (max-width: 520px) { .week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.week i { font-style: normal; font-size: 1.3rem; line-height: 1; } .week i.ok { color: #15803d; font-weight: 800; }
.week span { font-size: .68rem; color: var(--paper-muted); white-space: nowrap; } .week .full span { color: #3b2400; font-weight: 700; }

/* the pilot form */
.pilot-form { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.pilot-form label { display: grid; gap: 6px; font-size: .85rem; color: var(--smoke); }
.pilot-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pilot-form .btn { justify-content: center; }

/* ---- phones ---- */
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--rule); background: var(--shelf); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--chalk); transition: transform .2s, opacity .2s; }
.top.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.top.open .menu-btn span:nth-child(2) { opacity: 0; }
.top.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .top .wrap { flex-wrap: nowrap; min-height: 58px; }
  .menu-btn { display: flex; }
  .nav { display: none; }
  .top.open .wrap { flex-wrap: wrap; }
  .top.open .nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin: 4px 0 10px; gap: 2px; }
  .top.open .nav a { padding: 12px 10px; font-size: 1.05rem; border-radius: 10px; }
  .top.open .nav .btn { margin: 8px 0 0; justify-content: center; padding: 14px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding-block: 44px; }
  .phero { padding-block: 32px 28px; }
  .hero { padding-bottom: 40px !important; padding-top: 28px !important; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.75rem; }
  .lede { font-size: 1.05rem; }
  .stack { gap: 14px; }
  .appshot { padding-bottom: 0; }
  .appshot .appnote { display: none; }
  /* feature cards: compact rows, small picture on the left */
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .fcard { grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 14px 16px; align-items: center; }
  .fcard svg { grid-row: 1 / span 3; width: 64px; height: auto; }
  .fcard h3 { font-size: 1.1rem; } .fcard p { font-size: .9rem; } .fcard .more { font-size: .78rem; }
  .cta { padding: 22px; border-radius: 18px; }
  .panel { padding: 16px; }
  .points li { font-size: .95rem; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
.top.open { background: var(--night); }
.tbl td.mono { white-space: nowrap; }
