/* Quầy Ơi — awning-stripe & price-card identity. One accent (awning blue), amber only for “low stock”. */
:root {
  --paper: #F4EFE6;
  --card: #FFFDF8;
  --sunk: #EBE4D7;
  --ink: #1B1F24;
  --ink-2: #5A5E64;
  --ink-3: #75787D;
  --line: rgba(27, 31, 36, .09);
  --accent: #1F4F86;
  --accent-2: #173E6B;
  --accent-soft: #DCE6F1;
  --on-accent: #FFFFFF;
  --amber: #D86E14;
  --amber-soft: #FBE7D2;
  --red: #B23A2A;
  --green: #2F7A4B;
  --kraft: #C9A877;
  --display: 'Bricolage Grotesque', 'Be Vietnam Pro', system-ui, sans-serif;
  --body: 'Be Vietnam Pro', system-ui, sans-serif;
  --e: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --r: 14px;
  --r-s: 10px;
  --sb: 248px;
  color-scheme: light;
}
[data-theme="dark"] {
  --paper: #15171A;
  --card: #1E2125;
  --sunk: #26292E;
  --ink: #F2EDE4;
  --ink-2: #B4AFA6;
  --ink-3: #9A958C;
  --line: rgba(242, 237, 228, .1);
  --accent: #7FAEE6;
  --accent-2: #9CC1EE;
  --accent-soft: #23344A;
  --on-accent: #0F1A28;
  --amber: #F29A4A;
  --amber-soft: #3A2A1B;
  --red: #E67563;
  --green: #6CC08C;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.btn { --bg: var(--sunk); --fg: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--bg); color: var(--fg); font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s var(--e), background .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { background: color-mix(in srgb, var(--bg) 88%, var(--ink)); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.pri { --bg: var(--accent); --fg: var(--on-accent); }
.btn.pri:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--sunk); }
.btn.danger { --bg: var(--red); --fg: #fff; }
.btn.lg { min-height: 60px; font-size: 17px; padding: 0 28px; border-radius: 14px; }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.ico { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icb { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); transition: background .2s, color .2s, transform .2s var(--e); }
.icb:hover { background: var(--sunk); color: var(--ink); }
.icb:active { transform: scale(.94); }

/* ---------- awning stripe motif ---------- */
.awning { height: 22px; background: repeating-linear-gradient(90deg, var(--accent) 0 28px, #F4EFE6 28px 56px); -webkit-mask: linear-gradient(#000, #000) 0 0 / 100% 11px no-repeat, radial-gradient(14px 11px at 14px 11px, #000 98%, transparent 100%) 0 0 / 28px 22px repeat-x; mask: linear-gradient(#000, #000) 0 0 / 100% 11px no-repeat, radial-gradient(14px 11px at 14px 11px, #000 98%, transparent 100%) 0 0 / 28px 22px repeat-x; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo b { font: 800 22px/1 var(--display); letter-spacing: -.03em; }

/* ================= APP SHELL ================= */
.app { display: grid; grid-template-columns: var(--sb) 1fr; min-height: 100vh; min-height: 100dvh; }
.sb { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 0 16px 20px; background: var(--card); }
.sb .awning { margin: 0 -16px 22px; }
.sb .logo { padding: 0 8px 22px; }
.sb .store { display: flex; gap: 12px; align-items: center; padding: 10px; margin-bottom: 22px; border-radius: 12px; background: var(--sunk); }
.sb .store img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }
.sb .store b { display: block; font-size: 15px; line-height: 1.3; }
.sb .store span { font-size: 13px; color: var(--ink-2); }
.nav-h { font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 0 12px; margin: 6px 0 6px; }
.nav a { position: relative; display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15.5px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--sunk); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.nav a .cnt { margin-left: auto; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 99px; background: var(--amber-soft); color: var(--amber); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
[data-theme="dark"] .nav a .cnt { color: var(--amber); }
.sb .foot { margin-top: auto; display: flex; gap: 4px; align-items: center; padding-top: 16px; }
.sb .foot .btn { flex: 1; min-height: 44px; font-size: 14px; }
.main { min-width: 0; padding: 32px 40px 56px; outline: none; }
.tabbar, .mtop { display: none; }

.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.page-h h1 { font-size: clamp(30px, 3vw, 40px); }
.page-h p { color: var(--ink-2); margin-top: 6px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* banner with real photo */
.banner { position: relative; display: grid; align-items: end; min-height: 220px; border-radius: 18px; overflow: hidden; margin-bottom: 32px; color: #fff; isolation: isolate; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); transition: transform 1.2s var(--e); }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 18, 24, .8) 0%, rgba(14, 18, 24, .38) 50%, rgba(14, 18, 24, .7) 100%), linear-gradient(0deg, rgba(14, 18, 24, .45), transparent 60%); }
.banner .in { padding: 28px 32px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.banner h1 { font-size: clamp(30px, 3vw, 40px); }
.banner p { opacity: .88; margin-top: 6px; max-width: 46ch; }
.banner .big { text-align: right; }
.banner .big b { display: block; font: 700 clamp(40px, 4.2vw, 60px)/1 var(--display); letter-spacing: -.03em; }
.banner .big span { font-size: 14px; opacity: .85; }

/* ---------- POS ---------- */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.pos .banner { margin-bottom: 28px; }
.pos .banner .big { text-align: left; }
.rowi.r3 { grid-template-columns: 56px 1fr auto; }
.pos-top { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 16px; min-width: 0; }
.search kbd { font: 600 13px var(--body); color: var(--ink-3); background: var(--sunk); border-radius: 6px; padding: 3px 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 18px; border-radius: 99px; border: 0; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 15px; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .2s, color .2s, transform .2s var(--e); }
.chip:hover { color: var(--ink); background: var(--sunk); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip:active { transform: scale(.96); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; border: 0; border-radius: 16px; background: var(--card); overflow: hidden; transform-style: preserve-3d; transition: transform .35s var(--e), box-shadow .35s var(--e); will-change: transform; }
.tile:hover { box-shadow: 0 14px 30px -18px rgba(30, 30, 20, .35); }
.tile:active { transform: scale(.97) !important; }
.tile .shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 48%, transparent 66%); background-size: 260% 100%; background-position: 120% 0; opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light; }
.tile:hover .shine { opacity: 1; background-position: var(--sx, 50%) 0; }
.tile .meta { padding: 14px 18px 18px; display: grid; gap: 2px; }
.tile .nm { font-weight: 600; font-size: 15.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.tile .pr { font: 700 20px/1.2 var(--display); letter-spacing: -.01em; margin-top: 6px; }
.tile .pr small { font: 500 13px var(--body); color: var(--ink-3); }
.flag { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 5px 10px; border-radius: 99px; background: var(--amber); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.2; }
[data-theme="dark"] .flag { color: #1b1206; }
.flag.out { background: var(--ink); color: var(--paper); }
.tile .qty { position: absolute; top: 12px; right: 12px; z-index: 3; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-weight: 700; display: grid; place-items: center; font-size: 15px; animation: pop .35s var(--spring); }
@keyframes pop { from { transform: scale(.4); } }

/* ---------- product pack (photo + printed label) ---------- */
.pk { position: relative; aspect-ratio: 1; container-type: inline-size; background: #EEE8DD; overflow: hidden; }
.pk > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--e); }
.tile:hover .pk > img { transform: scale(1.04); }
.lbl { position: absolute; display: grid; place-items: center; align-content: center; text-align: center; pointer-events: none; overflow: hidden; line-height: 1.05; transition: transform .6s var(--e); }
.tile:hover .lbl { transform: scale(1.04); }
.lbl b, .lbl i, .lbl em { display: block; font-style: normal; white-space: nowrap; }
/* fish sauce — fills the blank cream label */
.pk-fishsauce .lbl { left: 40.6%; top: 47.5%; width: 18.8%; height: 30%; background: #F5EEDC; border-radius: 1cqw; mix-blend-mode: multiply; box-shadow: inset 1.2cqw 0 1.4cqw rgba(0,0,0,.12), inset -1.2cqw 0 1.4cqw rgba(0,0,0,.12); }
.pk-fishsauce .lbl::before { content: ""; position: absolute; inset: 1cqw; border: .3cqw solid #8C2A1C; border-radius: .6cqw; }
.pk-fishsauce .lbl em { font: 600 1.5cqw var(--body); color: #8C2A1C; letter-spacing: .08em; }
.pk-fishsauce .lbl b { font: 800 3.2cqw/1 var(--display); color: #1F3550; margin: .8cqw 0; white-space: normal; }
.pk-fishsauce .lbl i { font: 700 2.4cqw var(--display); color: #8C2A1C; }
/* cooking oil — wrap label */
.pk-oil .lbl { left: 43.2%; top: 46%; width: 15%; height: 25%; background: linear-gradient(90deg, #0d3b2a, #1d6447 45%, #0d3b2a); border-radius: .4cqw; box-shadow: inset 0 0 0 .5cqw #E9C56C; }
.pk-oil .lbl b { font: 800 2.6cqw/1 var(--display); color: #F6E7B8; white-space: normal; }
.pk-oil .lbl i { font: 600 1.6cqw var(--body); color: #E9C56C; margin-top: .8cqw; }
.pk-oil .lbl em { font: 500 1.3cqw var(--body); color: #F6E7B8; opacity: .8; letter-spacing: .1em; margin-bottom: .6cqw; }
/* milk — printed kraft tag */
.pk-milk .lbl { left: 45.6%; top: 37.5%; width: 11.6%; height: 17%; transform: rotate(4deg); mix-blend-mode: multiply; }
.tile:hover .pk-milk .lbl { transform: rotate(4deg) scale(1.04); }
.pk-milk .lbl b { font: 800 2cqw/1.05 var(--display); color: #2B4A2F; white-space: normal; }
.pk-milk .lbl i { font: 600 1.5cqw var(--body); color: #5B3B1A; margin-top: .6cqw; }
/* water — band label */
.pk-water .lbl { left: 40%; top: 42%; width: 20.5%; height: 18%; background: linear-gradient(90deg, rgba(14,74,112,.85), #2A86B8 50%, rgba(14,74,112,.85)); }
.pk-water .lbl b { font: 800 2.7cqw/1 var(--display); color: #fff; white-space: normal; }
.pk-water .lbl i { font: 600 1.6cqw var(--body); color: #CFEAF7; margin-top: .6cqw; }
/* coffee — kraft bag sticker */
.pk-coffee .lbl { left: 36%; top: 40%; width: 28%; height: 25%; background: #1E1A17; border-radius: 1cqw; transform: rotate(-.5deg); }
.pk-coffee .lbl em { font: 600 1.4cqw var(--body); color: #D8B27A; letter-spacing: .14em; }
.pk-coffee .lbl b { font: 800 4cqw/1 var(--display); color: #F3E6CF; margin: .8cqw 0; }
.pk-coffee .lbl i { font: 600 1.8cqw var(--body); color: #D8B27A; }
/* tea — tin band */
.pk-tea .lbl { left: 30.6%; top: 44%; width: 32.2%; height: 20%; background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(255,255,255,.08) 35%, rgba(0,0,0,.08) 70%, rgba(0,0,0,.3)), #F1E7D0; }
.pk-tea .lbl b { font: 800 3.4cqw/1 var(--display); color: #2E4B3E; }
.pk-tea .lbl i { font: 600 1.9cqw var(--body); color: #8A5A2B; margin-top: .6cqw; }
.pk-tea .lbl::after { content: ""; position: absolute; left: 0; right: 0; top: 12%; border-top: .3cqw solid #8A5A2B; box-shadow: 0 calc(76% * 1) 0 0 transparent; }
/* rice — ink stamp on cotton sack */
.pk-rice .lbl { left: 38.5%; top: 56%; width: 25%; height: 17%; border: .5cqw solid #7A2A20; border-radius: 1.2cqw; mix-blend-mode: multiply; transform: rotate(-3deg); opacity: .86; }
.tile:hover .pk-rice .lbl { transform: rotate(-3deg) scale(1.04); }
.pk-rice .lbl b { font: 800 3.1cqw/1 var(--display); color: #7A2A20; }
.pk-rice .lbl i { font: 700 1.9cqw var(--body); color: #7A2A20; margin-top: .6cqw; letter-spacing: .08em; }
/* noodles — paper band */
.pk-noodles .lbl { left: 37.5%; top: 44%; width: 19%; height: 22%; mix-blend-mode: multiply; transform: rotate(-4deg) skewY(-3deg); }
.tile:hover .pk-noodles .lbl { transform: rotate(-4deg) skewY(-3deg) scale(1.04); }
.pk-noodles .lbl b { font: 800 2.6cqw/1 var(--display); color: #7A2A20; }
.pk-noodles .lbl i { font: 600 1.7cqw var(--body); color: #3C4A2E; margin-top: .6cqw; }
/* candy — box belly band */
.pk-candy .lbl { left: 26.5%; top: 50.5%; width: 47%; height: 9.5%; background: #F3EAD6; mix-blend-mode: multiply; grid-auto-flow: column; gap: 1.4cqw; box-shadow: inset 0 .4cqw 0 #3F7A4E, inset 0 -.4cqw 0 #3F7A4E; }
.pk-candy .lbl b { font: 800 2.8cqw/1 var(--display); color: #3F7A4E; }
.pk-candy .lbl i { font: 600 1.6cqw var(--body); color: #7A4A20; }
/* cashew — jar label */
.pk-cashew .lbl { left: 35.5%; top: 45%; width: 29%; height: 18%; background: #F5EBD7; border-radius: .6cqw; box-shadow: inset 0 0 0 .4cqw #A6371F; }
.pk-cashew .lbl b { font: 800 3.4cqw/1 var(--display); color: #A6371F; }
.pk-cashew .lbl i { font: 600 1.8cqw var(--body); color: #4A3A2A; margin-top: .6cqw; }
/* eggs — lid stamp */
.pk-eggs .lbl { left: 33%; top: 31%; width: 34%; height: 8%; mix-blend-mode: multiply; grid-auto-flow: column; gap: 1.2cqw; }
.pk-eggs .lbl b { font: 800 2.6cqw/1 var(--display); color: #2F6B3F; }
.pk-eggs .lbl i { font: 600 1.7cqw var(--body); color: #6A4A2A; }

/* ---------- cart ---------- */
.cart { position: sticky; top: 32px; display: flex; flex-direction: column; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); border-radius: 20px; background: var(--card); padding: 28px; }
.cart-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cart-h h2 { font-size: 24px; }
.cust { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; border: 0; border-radius: 12px; background: var(--sunk); text-align: left; margin-bottom: 18px; transition: background .2s; }
.cust:hover { background: color-mix(in srgb, var(--sunk) 85%, var(--ink)); }
.cust span { flex: 1; font-weight: 600; }
.cust small { display: block; color: var(--ink-2); font-weight: 400; font-size: 13px; }
.lines { flex: 1; overflow-y: auto; margin: 0 -8px; padding: 0 8px; min-height: 120px; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; animation: lineIn .4s var(--e) both; }
.line + .line { box-shadow: 0 -1px 0 var(--line); }
@keyframes lineIn { from { opacity: 0; transform: translateX(16px); } }
.line .th { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; }
.line .th .pk { width: 56px; }
.line .nm { font-weight: 600; font-size: 15px; line-height: 1.35; }
.line .sub { font-size: 14px; color: var(--ink-2); }
.step { display: flex; align-items: center; gap: 2px; background: var(--sunk); border-radius: 10px; }
.step button { width: 36px; height: 44px; border: 0; background: transparent; border-radius: 10px; font-size: 20px; color: var(--ink-2); display: grid; place-items: center; }
.step button:hover { color: var(--ink); background: color-mix(in srgb, var(--sunk) 80%, var(--ink)); }
.step b { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.tot { margin-top: 18px; padding-top: 20px; box-shadow: 0 -1px 0 var(--line); }
.tot .row { display: flex; justify-content: space-between; color: var(--ink-2); font-size: 15px; }
.tot .grand { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 20px; }
.tot .grand span { font-weight: 600; }
.tot .grand b { font: 700 44px/1 var(--display); letter-spacing: -.03em; }
.tot .btn { width: 100%; }
.empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 24px 8px; color: var(--ink-2); }
.empty img { width: 168px; height: 120px; object-fit: cover; border-radius: 12px; opacity: .92; }
.empty b { color: var(--ink); font-size: 17px; }
.mcart { display: none; }

/* ---------- lists / rows ---------- */
.card { background: var(--card); border-radius: 18px; padding: 28px; }
.rows { display: grid; }
.rowi { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 18px; align-items: center; min-height: 76px; padding: 10px 14px; margin: 0 -14px; border-radius: 12px; text-decoration: none; color: inherit; border: 0; background: transparent; text-align: left; width: calc(100% + 28px); transition: background .2s; }
.rowi:hover { background: var(--sunk); }
.rowi + .rowi { box-shadow: 0 -1px 0 var(--line); }
.rowi:hover + .rowi, .rowi:hover { box-shadow: none; }
.rowi .t { font-weight: 600; font-size: 16px; }
.rowi .s { font-size: 14px; color: var(--ink-2); }
.rowi .amt { font: 700 19px var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.rowi .th { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; }
.av { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 700 18px var(--display); background: var(--accent-soft); color: var(--accent); }
.av.b { background: var(--amber-soft); color: var(--amber); }
.av.c { background: #E3EDE2; color: #2F6B3F; }
[data-theme="dark"] .av.c { background: #22332A; color: #8FD0A5; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--sunk); color: var(--ink-2); white-space: nowrap; }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.blue { background: var(--accent-soft); color: var(--accent); }
.pill.green { background: #E3EDE2; color: #2F6B3F; }
[data-theme="dark"] .pill.green { background: #22332A; color: #8FD0A5; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chev { color: var(--ink-3); }

.two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 32px; align-items: start; }
.statline { display: flex; gap: 48px; flex-wrap: wrap; margin-bottom: 32px; }
.stat b { display: block; font: 700 clamp(40px, 4vw, 56px)/1 var(--display); letter-spacing: -.03em; }
.stat span { color: var(--ink-2); font-size: 15px; }
.stat.amber b { color: var(--amber); }

/* ---------- shelf 3D ---------- */
.stage { position: relative; border-radius: 20px; overflow: hidden; background: #2A2018; aspect-ratio: 16 / 10; }
.stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.7); transition: opacity .8s var(--e); }
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .8s var(--e); cursor: grab; }
.stage.ready canvas { opacity: 1; }
.stage.ready .poster { opacity: 0; }
.stage .cap { z-index: 2; position: absolute; left: 20px; bottom: 20px; right: 20px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; color: #fff; pointer-events: none; }
.stage .cap span { background: rgba(20, 16, 12, .6); padding: 8px 14px; border-radius: 99px; font-size: 14px; backdrop-filter: blur(6px); }
.stage .cap .glow::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #FF9A3C; box-shadow: 0 0 10px #FF9A3C; margin-right: 8px; }
.stage .pick { z-index: 3; text-decoration: none; position: absolute; top: 20px; left: 20px; display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4); animation: pop .35s var(--spring); }
.stage .pick .th { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; }

/* ---------- detail ---------- */
.det { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.det .dhero { border-radius: 22px; overflow: hidden; position: sticky; top: 32px; }
.det h1 { font-size: clamp(30px, 3.2vw, 44px); margin: 10px 0 8px; }
.det .price { font: 700 48px/1 var(--display); letter-spacing: -.03em; margin: 18px 0 28px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; margin-bottom: 32px; }
.kv span { display: block; color: var(--ink-2); font-size: 14px; }
.kv b { font: 700 24px var(--display); }
.meter { height: 10px; border-radius: 99px; background: var(--sunk); overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--green); transform-origin: left; animation: grow .8s var(--e) both; }
.meter i.low { background: var(--amber); }
@keyframes grow { from { transform: scaleX(0); } }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; min-height: 44px; }
.back:hover { color: var(--ink); }
.barcode { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px; background: var(--sunk); margin-bottom: 28px; }
.barcode svg { height: 44px; width: 150px; color: var(--ink); }
.fld { display: grid; gap: 8px; margin-bottom: 18px; }
.fld label { font-weight: 600; font-size: 14px; }
.fld input, .fld select, .fld textarea { min-height: 52px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--sunk); font-size: 16px; outline: none; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s; }
.fld textarea { padding: 14px 16px; min-height: 96px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.fld .err { color: var(--red); font-size: 14px; }
.fld.bad input { box-shadow: inset 0 0 0 2px var(--red); }
.acts { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- PO ---------- */
.po-l { display: grid; grid-template-columns: 56px 1fr 130px 120px; gap: 16px; align-items: center; padding: 12px 0; }
.po-l + .po-l { box-shadow: 0 -1px 0 var(--line); }
.po-l .th { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; }
.po-l .amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--sunk); gap: 4px; }
.seg button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

/* ---------- overlays ---------- */
#layer { position: relative; z-index: 60; }
.scrim { position: fixed; inset: 0; background: rgba(15, 17, 20, .42); animation: fade .25s var(--e); }
@keyframes fade { from { opacity: 0; } }
.dlg { position: fixed; left: 50%; top: 50%; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; transform: translate(-50%, -50%); background: var(--card); border-radius: 22px; padding: 32px; animation: dlgIn .42s var(--spring); }
.dlg.wide { width: min(720px, calc(100vw - 32px)); }
@keyframes dlgIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }
.dlg h2 { font-size: 28px; margin-bottom: 8px; }
.dlg .lead { color: var(--ink-2); margin-bottom: 24px; }
.dlg .x { position: absolute; top: 16px; right: 16px; }
.pay-big { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 24px; border-radius: 16px; background: var(--sunk); margin: 20px 0 24px; }
.pay-big b { font: 700 48px/1 var(--display); letter-spacing: -.03em; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 20px; }
.quick button { min-height: 52px; border: 0; border-radius: 12px; background: var(--sunk); font-weight: 600; }
.quick button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.change { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; margin-bottom: 24px; }
.change b { font: 700 32px var(--display); color: var(--green); }
.qr { display: grid; grid-template-columns: 168px 1fr; gap: 24px; align-items: center; margin-bottom: 24px; }
.qr svg { width: 168px; height: 168px; background: #fff; border-radius: 12px; padding: 10px; }
.cpick { display: grid; gap: 4px; max-height: 300px; overflow-y: auto; margin-bottom: 20px; }
.cpick .rowi { min-height: 64px; grid-template-columns: 44px 1fr auto; }
.cpick .rowi[aria-pressed="true"] { background: var(--accent-soft); }
.cpick .av { width: 44px; height: 44px; font-size: 15px; }
/* receipt */
.receipt { width: min(380px, calc(100vw - 32px)); padding: 0; background: transparent; overflow: visible; }
.paper { position: relative; background: #FBF8F1; color: #23262A; padding: 30px 28px 28px; font-size: 15px; border-radius: 6px 6px 0 0; animation: printOut .7s var(--e) both; }
.paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; background: radial-gradient(circle at 8px -2px, transparent 9px, #FBF8F1 10px) 0 0 / 16px 12px repeat-x; }
@keyframes printOut { from { clip-path: inset(0 0 100% 0); transform: translateY(-20px); } to { clip-path: inset(0 0 -20px 0); } }
.paper .ok { width: 56px; height: 56px; border-radius: 50%; background: #2F7A4B; color: #fff; display: grid; place-items: center; margin: 0 auto 12px; }
.paper h2 { text-align: center; font-size: 24px; }
.paper .c { text-align: center; color: #5E6166; font-size: 14px; }
.paper .dash { border-top: 2px dashed #CFC8BA; margin: 16px 0; }
.paper .r { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.paper .r.g { font: 700 24px var(--display); margin-top: 6px; }
.receipt .acts { margin-top: 28px; justify-content: center; }
.receipt .acts .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
/* drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--card); padding: 32px; overflow-y: auto; animation: drIn .45s var(--e); }
@keyframes drIn { from { transform: translateX(40px); opacity: 0; } }
.drawer .x { position: absolute; top: 16px; right: 16px; }
.hist { display: grid; gap: 0; margin: 12px 0 28px; }
.hist div { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; }
.hist div + div { box-shadow: 0 -1px 0 var(--line); }
.hist small { color: var(--ink-2); grid-column: 1; }
.hist b { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-variant-numeric: tabular-nums; }
.hist b.pay { color: var(--green); }
/* palette */
.pal { position: fixed; left: 50%; top: 14vh; transform: translateX(-50%); width: min(620px, calc(100vw - 24px)); background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); animation: palIn .3s var(--e); }
@keyframes palIn { from { opacity: 0; transform: translate(-50%, -10px) scale(.98); } }
.pal .search { border-radius: 0; height: 64px; box-shadow: 0 1px 0 var(--line); background: transparent; }
.pal ul { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.pal li button { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; }
.pal li button[aria-selected="true"] { background: var(--sunk); }
.pal li .th { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex: none; }
.pal li span { flex: 1; font-weight: 500; }
.pal li small { color: var(--ink-3); font-size: 13px; }
/* toast */
#toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 80; display: grid; gap: 10px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 10px 8px 20px; border-radius: 14px; background: var(--ink); color: var(--paper); font-weight: 500; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); pointer-events: auto; animation: toastIn .45s var(--spring); max-width: calc(100vw - 32px); }
.toast.out { animation: toastOut .3s var(--e) forwards; }
.toast .btn { min-height: 40px; background: color-mix(in srgb, var(--paper) 16%, transparent); color: var(--paper); }
.toast.warn::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
/* fly-to-cart */
.fly { position: fixed; z-index: 90; border-radius: 14px; overflow: hidden; pointer-events: none; transition: transform .6s cubic-bezier(.5, -.2, .3, 1), opacity .6s; }
.bump { animation: bump .4s var(--spring); }
@keyframes bump { 40% { transform: scale(1.12); } }
/* skeleton */
.sk { background: var(--sunk); border-radius: 16px; position: relative; overflow: hidden; }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--card) 70%, transparent) 50%, transparent 70%); transform: translateX(-100%); animation: shim 1.2s infinite; }
@keyframes shim { to { transform: translateX(100%); } }
/* stagger */
.st > * { animation: rise .55s var(--e) both; }
.st > *:nth-child(1) { animation-delay: 0ms; } .st > *:nth-child(2) { animation-delay: 50ms; } .st > *:nth-child(3) { animation-delay: 100ms; } .st > *:nth-child(4) { animation-delay: 150ms; } .st > *:nth-child(5) { animation-delay: 200ms; } .st > *:nth-child(6) { animation-delay: 250ms; } .st > *:nth-child(7) { animation-delay: 300ms; } .st > *:nth-child(8) { animation-delay: 350ms; } .st > *:nth-child(n+9) { animation-delay: 400ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.concept { margin-top: 48px; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.concept a { color: var(--ink-2); }

/* ================= LANDING ================= */
#land { --lp: clamp(20px, 5vw, 72px); background: var(--paper); }
.lnav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--lp); color: #fff; transition: background .35s var(--e), color .35s, padding .35s var(--e); }
.lnav.solid { background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.lnav nav { display: flex; gap: 6px; align-items: center; }
.lnav nav a.l { padding: 10px 14px; text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 10px; opacity: .9; }
.lnav nav a.l:hover { opacity: 1; background: rgba(127, 127, 127, .14); }
.lnav .icb { color: inherit; }
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; color: #fff; display: grid; align-items: end; }
.hero .bg { position: absolute; inset: -4% 0 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; animation: kb 22s ease-out both; }
@keyframes kb { from { transform: scale(1.16) translate(1.5%, 1%); } to { transform: scale(1.02); } }
.hero .shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 14, 20, .55) 0%, rgba(10, 14, 20, 0) 26%, rgba(10, 14, 20, .1) 50%, rgba(10, 14, 20, .88) 100%), linear-gradient(90deg, rgba(10, 14, 20, 0) 50%, rgba(10, 14, 20, .55) 100%); }
.hero .in { position: relative; z-index: 2; padding: 0 var(--lp) clamp(36px, 7vh, 80px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(56px, 10.4vw, 176px); line-height: .9; letter-spacing: -.045em; font-weight: 800; }
.hero h1 span { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 span i { display: block; font-style: normal; animation: lineUp 1s var(--e) both; }
.hero h1 span:nth-child(2) i { animation-delay: .12s; }
@keyframes lineUp { from { transform: translateY(105%); } }
.hero .side { max-width: 440px; display: grid; gap: 22px; animation: rise .9s .4s var(--e) both; }
.hero .side p { font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.hero .side .acts .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.hero .side .acts .btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.hero .btn.pri { --bg: #fff; --fg: #10233B; }
.hero .btn.pri:hover { background: #E9EEF5; }
.hero .meta { position: absolute; z-index: 2; top: 120px; right: var(--lp); writing-mode: vertical-rl; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.sec { padding: clamp(80px, 12vw, 160px) var(--lp); }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.big-t { font-size: clamp(40px, 6vw, 96px); line-height: .98; letter-spacing: -.04em; font-weight: 800; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.intro p { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 46ch; }
.intro p + p { margin-top: 16px; }
/* pinned story */
.story { position: relative; padding: 0 var(--lp); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.story .stick { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; }
.device { position: relative; border-radius: 18px; background: #101317; padding: 12px 12px 14px; box-shadow: 0 40px 80px -40px rgba(20, 20, 10, .55); }
.device::before { content: ""; position: absolute; top: 5px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #2A2F36; }
.device .scr { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--sunk); }
.device .scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; clip-path: inset(0 0 0 100%); transition: clip-path .9s var(--e), transform 1.2s var(--e); transform: scale(1.04); }
.device .scr img.on { clip-path: inset(0 0 0 0); transform: none; }
.device .scr img.was { clip-path: inset(0 0 0 0); }
.device-base { height: 16px; margin: 0 -5%; border-radius: 0 0 18px 18px; background: linear-gradient(#C9C3B8, #9E988D); }
[data-theme="dark"] .device-base { background: linear-gradient(#3A3D42, #26282C); }
.chap { min-height: 100vh; display: grid; align-content: center; gap: 18px; padding: 10vh 0; opacity: .28; transition: opacity .5s var(--e); }
.chap.on { opacity: 1; }
.chap .time { font: 700 clamp(48px, 5vw, 80px)/1 var(--display); letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.chap h3 { font-size: clamp(28px, 2.8vw, 42px); }
.chap p { font-size: 18px; color: var(--ink-2); max-width: 40ch; }
.chap .shot-m { display: none; }
/* counters */
.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(48px, 6vw, 96px); }
.counts div { padding-top: 24px; box-shadow: 0 -2px 0 var(--ink); }
.counts b { display: block; font: 800 clamp(64px, 8vw, 128px)/.95 var(--display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.counts span { display: block; margin-top: 14px; color: var(--ink-2); font-size: 17px; max-width: 28ch; }
/* reveal photo */
.reveal { clip-path: inset(18% 12% 18% 12% round 24px); transition: clip-path 1.2s var(--e); }
.reveal.in { clip-path: inset(0 0 0 0 round 0px); }
.wide-ph { position: relative; height: min(88vh, 820px); overflow: hidden; }
.wide-ph img { position: absolute; left: 0; right: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.wide-ph .q { position: absolute; left: var(--lp); bottom: clamp(28px, 6vw, 72px); right: var(--lp); max-width: 820px; color: #fff; font: 700 clamp(28px, 3.6vw, 56px)/1.08 var(--display); letter-spacing: -.03em; text-shadow: 0 2px 30px rgba(0, 0, 0, .4); }
.wide-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10, 12, 16, .7)); }
.wide-ph .q { z-index: 2; }
/* features with mock */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feat + .feat { margin-top: clamp(80px, 10vw, 140px); }
.feat.flip > :first-child { order: 2; }
.feat h3 { font-size: clamp(32px, 3.6vw, 56px); letter-spacing: -.035em; margin-bottom: 20px; }
.feat p { font-size: 18px; color: var(--ink-2); max-width: 44ch; }
.feat ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.feat li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.feat li .ico { color: var(--accent); margin-top: 2px; }
.phone { width: min(320px, 78vw); margin: 0 auto; border-radius: 46px; background: #101317; padding: 12px; box-shadow: 0 50px 80px -40px rgba(20, 20, 10, .6); }
.phone .scr { border-radius: 36px; overflow: hidden; aspect-ratio: 390 / 844; position: relative; }
.phone .scr img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .scr::before { content: ""; position: absolute; top: 10px; left: 50%; width: 90px; height: 26px; margin-left: -45px; border-radius: 20px; background: #101317; z-index: 2; }
.mock-tab { border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -44px rgba(20, 20, 10, .6); background: #101317; padding: 10px; }
.mock-tab img { border-radius: 8px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
/* voices */
.voices { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.voices .ph { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; }
.voices .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.voices blockquote { margin: 0; font: 600 clamp(26px, 2.8vw, 42px)/1.18 var(--display); letter-spacing: -.025em; }
.voices blockquote::before { content: "“"; display: block; font-size: 1.8em; line-height: .6; color: var(--accent); margin-bottom: 12px; }
.who { display: flex; gap: 14px; align-items: center; margin-top: 28px; }
.who .av { width: 52px; height: 52px; }
.who b { display: block; }
.who span { color: var(--ink-2); font-size: 15px; }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; padding-top: 32px; box-shadow: 0 -1px 0 var(--line); }
.minis p { font-size: 16px; color: var(--ink-2); }
.minis b { display: block; margin-top: 12px; font-size: 15px; }
/* pricing */
.price-h { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { background: var(--card); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; transition: transform .35s var(--e); }
.plan:hover { transform: translateY(-4px); }
.plan.hot { background: var(--accent); color: var(--on-accent); }
.plan.hot .muted, .plan.hot li { color: color-mix(in srgb, var(--on-accent) 82%, transparent); }
.plan.hot .btn { --bg: var(--on-accent); --fg: var(--accent); }
.plan h3 { font-size: 24px; }
.plan .muted { color: var(--ink-2); font-size: 15px; }
.plan .amt { font: 800 52px/1 var(--display); letter-spacing: -.04em; }
.plan .amt small { font: 500 15px var(--body); letter-spacing: 0; opacity: .75; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink-2); font-size: 15px; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 16px; height: 9px; margin-top: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) scale(.8); }
.plan .btn { width: 100%; }
.fine { margin-top: 24px; color: var(--ink-3); font-size: 14px; }
/* final CTA */
.cta { position: relative; overflow: hidden; color: #fff; display: grid; min-height: 80vh; align-items: center; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: rgba(12, 22, 36, .7); }
.cta .in { position: relative; z-index: 2; padding: 0 var(--lp); }
.cta h2 { font-size: clamp(48px, 8vw, 132px); line-height: .92; letter-spacing: -.045em; font-weight: 800; max-width: 12ch; }
.cta p { margin: 28px 0 36px; font-size: 19px; max-width: 46ch; opacity: .9; }
.cta .btn.pri { --bg: #fff; --fg: #10233B; }
.lfoot { padding: 64px var(--lp) 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.lfoot h4 { font-size: 15px; font-family: var(--body); font-weight: 600; margin-bottom: 14px; }
.lfoot p, .lfoot a { color: var(--ink-2); font-size: 15px; }
.lfoot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lfoot .note { grid-column: 1 / -1; padding-top: 28px; box-shadow: 0 -1px 0 var(--line); font-size: 13px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.up { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--e), transform .7s var(--e); }
.up.in { opacity: 1; transform: none; }

/* ---------- calm / reduced motion ---------- */
.calm *, .calm *::before, .calm *::after, .shot *, .shot *::before, .shot *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
.calm .up, .shot .up { opacity: 1; transform: none; }
.calm .reveal, .shot .reveal { clip-path: none; }
.shot .toast { display: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1280px) {
  .pos { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
  .main { padding: 28px 28px 48px; }
}
@media (max-width: 1080px) {
  :root { --sb: 92px; }
  .sb { padding: 0 12px 16px; align-items: center; }
  .sb .logo b, .sb .store, .nav-h, .nav a span, .sb .foot .btn { display: none; }
  .sb .logo { padding: 0 0 20px; }
  .nav a { justify-content: center; padding: 0; width: 56px; }
  .nav a .cnt { position: absolute; top: 2px; right: 0; min-width: 22px; height: 20px; font-size: 12px; padding: 0 6px; }
  .sb .foot { flex-direction: column; }
  .two, .det { grid-template-columns: minmax(0, 1fr); }
  .det .dhero { position: relative; top: 0; max-width: 520px; }
  .story { grid-template-columns: 1fr; }
  .story .stick { display: none; }
  .chap { min-height: 0; opacity: 1; padding: 48px 0; }
  .chap .shot-m { display: block; margin-top: 12px; }
  .feat, .voices, .intro { grid-template-columns: 1fr; }
  .feat.flip > :first-child { order: 0; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 860px) {
  .pos { grid-template-columns: minmax(0, 1fr); }
  .cart { display: none; }
  .mcart { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 30; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 8px 8px 8px 20px; border-radius: 16px; background: var(--ink); color: var(--paper); border: 0; text-align: left; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); animation: rise .4s var(--e); }
  .mcart b { font: 700 20px var(--display); }
  .mcart small { display: block; opacity: .75; font-size: 13px; }
  .mcart .btn { --bg: var(--accent); --fg: var(--on-accent); }
  [data-theme="dark"] .mcart .btn { --bg: var(--accent); }
  .cart.sheet { display: flex; position: fixed; inset: auto 0 0 0; top: auto; max-height: 88dvh; border-radius: 22px 22px 0 0; z-index: 70; animation: sheetIn .45s var(--e); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  @keyframes sheetIn { from { transform: translateY(40%); opacity: 0; } }
}
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sb { display: none; }
  .mtop { display: flex; position: sticky; top: 0; z-index: 35; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
  .mtop .logo svg { width: 34px; height: 34px; }
  .mtop .logo b { font-size: 19px; }
  .mtop > div { display: flex; }
  .main { padding: 20px 16px calc(170px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--card); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--line); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; min-height: 56px; padding-top: 6px; text-decoration: none; color: var(--ink-3); font-size: 13px; font-weight: 600; border-radius: 12px; position: relative; }
  .tabbar a[aria-current="page"] { color: var(--accent); }
  .tabbar a .cnt { position: absolute; top: 2px; left: 56%; min-width: 20px; height: 18px; border-radius: 99px; background: var(--amber); color: #fff; font-size: 12px; display: grid; place-items: center; padding: 0 5px; }
  .banner { min-height: 168px; border-radius: 16px; margin-bottom: 24px; }
  .banner .in { padding: 20px; }
  .banner .big { text-align: left; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile .meta { padding: 12px 14px 14px; }
  .tile .nm { font-size: 15px; }
  .tile .pr { font-size: 18px; }
  .pos-top .btn { display: none; }
  .card { padding: 20px; }
  .rowi { grid-template-columns: 48px 1fr auto; gap: 14px; }
  .rowi .th, .rowi .av { width: 48px; height: 48px; }
  .rowi .chev, .rowi .hide-m { display: none; }
  .po-l { grid-template-columns: 48px 1fr auto; }
  .po-l .th { width: 48px; height: 48px; }
  .po-l .c-cost { display: none; }
  .kv { grid-template-columns: 1fr 1fr; gap: 18px; }
  .statline { gap: 28px; }
  .dlg { padding: 24px 20px; top: auto; bottom: 0; left: 0; transform: none; width: 100%; border-radius: 22px 22px 0 0; animation: sheetIn .45s var(--e); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .receipt { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: calc(100vw - 32px); padding: 0; animation: none; background: transparent; }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .qr { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pay-big b { font-size: 38px; }
  #toasts { bottom: calc(160px + env(safe-area-inset-bottom)); }
  .lnav nav a.l, .lnav nav .icb { display: none; }
  .lnav { padding: 14px 16px; }
  .lnav .btn { min-height: 44px; padding: 0 16px; }
  .hero .in { grid-template-columns: 1fr; gap: 24px; }
  .hero .meta { display: none; }
  .hero h1 { font-size: clamp(44px, 13.4vw, 80px); }
  .hero .side p { font-size: 16px; }
  .counts { grid-template-columns: 1fr; }
  .minis { grid-template-columns: 1fr; }
  .lfoot { grid-template-columns: 1fr; }
  .wide-ph { height: 70vh; }
}
@media (max-width: 400px) {
  .hero .side .acts .btn { flex: 1; }
}
@media print { .sb, .tabbar, .main, #land { display: none !important; } }
