/* Niogin Edge POS pitch deck. Slides are authored on a fixed 1920x1080 stage that deck.js scales to fit. */
:root {
  --ink: #15110e;
  --ink2: #1e1915;
  --ink3: #2b241e;
  --cream: #f5eee2;
  --paper: #faf6ee;
  --mute: #a99d8e;
  --line: rgba(245, 238, 226, .14);
  --card: rgba(245, 238, 226, .045);
  --amber: #e0802f;
  --amber2: #f6a65c;
  --green: #9ccc4f;
  --green-d: #4c7a2a;
  --rose: #e98b7a;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: #0a0806; overflow: hidden; }
body { font-family: var(--sans); color: var(--cream); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }

.deck { position: fixed; inset: 0; }
.stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }

/* ---------- slide shell ---------- */
.slide {
  position: absolute; inset: 0; padding: 92px 128px 112px;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--ink); color: var(--cream);
  opacity: 0; visibility: hidden; transform: translateX(70px) scale(.985);
  transition: opacity .55s ease, transform .8s var(--ease), visibility 0s .55s;
}
.slide.past { transform: translateX(-70px) scale(.985); }
.slide.active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.slide::before { /* soft drifting glow */
  content: ""; position: absolute; width: 1100px; height: 1100px; right: -380px; top: -480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 128, 47, .2), transparent 62%);
  animation: drift 16s ease-in-out infinite alternate; pointer-events: none;
}
.slide > * { position: relative; }
@keyframes drift { to { transform: translate(-140px, 120px) scale(1.15); } }

.slide.light { background: var(--paper); color: var(--ink); --mute: #74685a; --line: rgba(21, 17, 14, .1); --card: #fff; }
.slide.light::before { background: radial-gradient(circle, rgba(224, 128, 47, .16), transparent 62%); }
.slide.shop { background: #0d1a10; --card: rgba(156, 204, 79, .06); --line: rgba(190, 230, 150, .16); --mute: #9fb394; }
.slide.shop::before { background: radial-gradient(circle, rgba(156, 204, 79, .2), transparent 62%); }

.foot {
  position: absolute; left: 128px; right: 128px; bottom: 44px; display: flex; justify-content: space-between;
  font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); opacity: .8;
}
.foot b { font-weight: 600; color: inherit; cursor: pointer; transition: color .2s; }
.foot b:hover { color: var(--amber2); }

/* ---------- type ---------- */
.eyebrow { font-size: 21px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--amber2); margin: 0 0 26px; }
.light .eyebrow { color: #b8601a; }
.shop .eyebrow { color: var(--green); }
h1, h2, h3 { font-family: var(--serif); font-weight: 480; margin: 0; letter-spacing: -.02em; }
h1 { font-size: 138px; line-height: .98; }
h2 { font-size: 74px; line-height: 1.06; max-width: 1500px; }
h3 { font-size: 34px; line-height: 1.15; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--amber2); }
.light h2 em { color: #c0651c; }
.shop h1 em, .shop h2 em { color: var(--green); }
p { margin: 0; font-size: 26px; line-height: 1.45; }
.lede { font-size: 33px; line-height: 1.42; color: var(--mute); max-width: 1250px; margin-top: 28px; }
.mute { color: var(--mute); }
.body { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; margin-top: 44px; }
.center { align-items: center; text-align: center; justify-content: center; }

/* ---------- entrance + step reveals ---------- */
.slide.active [data-a] { animation: rise .85s var(--ease) both; animation-delay: calc(var(--i, 0) * 85ms + 180ms); }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } }
[data-step] { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .7s var(--ease); }
[data-step].on { opacity: 1; transform: none; }

/* ---------- building blocks ---------- */
.grid { display: grid; gap: 28px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); } .g5 { grid-template-columns: repeat(5, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 36px 36px 38px; }
.light .card { box-shadow: 0 20px 50px -30px rgba(21, 17, 14, .25); }
.card h3 { margin-bottom: 14px; }
.card p { font-size: 24px; color: var(--mute); }
.num { font-family: var(--serif); font-size: 26px; color: var(--amber2); display: block; margin-bottom: 22px; font-style: italic; }
.light .num { color: #c0651c; } .shop .num { color: var(--green); }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 99px; border: 1px solid var(--line); font-size: 21px; background: var(--card); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.ticks li { position: relative; padding-left: 50px; font-size: 28px; line-height: 1.38; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 22px; height: 12px; border-left: 3px solid var(--amber2); border-bottom: 3px solid var(--amber2); transform: rotate(-45deg); }
.shop .ticks li::before { border-color: var(--green); }
.light .ticks li::before { border-color: #c0651c; }
.ticks small { display: block; font-size: 22px; color: var(--mute); margin-top: 4px; }
.tag { font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* ---------- 1 cover ---------- */
.cover { justify-content: center; }
.cover .brand { position: absolute; top: 58px; left: 128px; font-size: 24px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; }
.cover .brand i { font-style: normal; color: var(--amber2); }
.cover h1 { font-size: 150px; }
.cover .lede { font-size: 38px; max-width: 1150px; }
.cover .chips { margin-top: 56px; }
.orbit { position: absolute; right: 60px; top: 50%; width: 620px; height: 620px; margin-top: -310px; }
.orbit i { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 50%; animation: spin 40s linear infinite; }
.orbit i:nth-child(2) { inset: 90px; animation-duration: 28s; animation-direction: reverse; }
.orbit i:nth-child(3) { inset: 180px; animation-duration: 18s; }
.orbit i::after { content: ""; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--amber2); box-shadow: 0 0 30px var(--amber); }
.orbit i:nth-child(2)::after { background: var(--green); box-shadow: 0 0 30px var(--green); }
.orbit b { position: absolute; inset: 240px; border-radius: 50%; display: grid; place-items: center; text-align: center; font: 500 30px/1.1 var(--serif); background: radial-gradient(circle at 30% 30%, var(--amber2), var(--amber)); color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 2 pulse ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote { font-family: var(--serif); font-size: 31px; line-height: 1.3; padding: 34px; border-radius: 26px; background: #fff; border: 1px solid var(--line); }
.quote span { display: block; font: 600 17px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-top: 22px; }

/* ---------- 3 leaks ---------- */
.leak { border-top: 3px solid var(--rose); border-radius: 0 0 26px 26px; padding: 30px 28px 34px; background: var(--card); }
.leak h3 { font-size: 31px; margin-bottom: 14px; }
.leak p { font-size: 22px; color: var(--mute); }
.leak .tag { display: block; margin-bottom: 20px; color: var(--rose); }

/* ---------- 4 hub ---------- */
.hub { position: relative; height: 640px; }
.hub svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub path { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-dasharray: 8 12; animation: dash 1.4s linear infinite; opacity: .75; }
.hub path.out { stroke: #b8601a; animation-direction: reverse; }
@keyframes dash { to { stroke-dashoffset: -40; } }
.node { position: absolute; width: 370px; padding: 24px 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px -30px rgba(21, 17, 14, .3); }
.node b { display: block; font: 500 29px var(--serif); white-space: nowrap; }
.node span { font-size: 20px; color: var(--mute); }
.core { position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--ink); color: var(--cream); box-shadow: 0 0 0 18px rgba(224, 128, 47, .14), 0 0 0 44px rgba(224, 128, 47, .07); animation: pulse 3.2s ease-in-out infinite; }
.core b { font: 500 46px/1.05 var(--serif); }
.core span { font-size: 21px; color: var(--amber2); margin-top: 14px; line-height: 1.6; }
@keyframes pulse { 50% { box-shadow: 0 0 0 26px rgba(224, 128, 47, .16), 0 0 0 64px rgba(224, 128, 47, .05); } }

/* ---------- 6 sync ---------- */
.sync { display: grid; grid-template-columns: 340px 1fr 340px; gap: 36px; align-items: stretch; }
.sys { border-radius: 30px; padding: 40px 34px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); }
.sys.pos { background: linear-gradient(160deg, #3a2413, #1e1915); }
.sys.sfy { background: linear-gradient(160deg, #24401a, #12220f); }
.sys .tag { margin-bottom: 14px; }
.sys b { font: 500 44px/1.05 var(--serif); }
.sys p { font-size: 22px; color: var(--mute); margin-top: 18px; }
.flows { display: grid; gap: 14px; }
.flow { display: grid; grid-template-columns: 380px 1fr; gap: 26px; align-items: center; padding: 15px 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.flow em { font-style: normal; font-size: 25px; font-weight: 600; }
.flow small { display: block; font-size: 19px; color: var(--mute); font-weight: 400; margin-top: 3px; }
.track { position: relative; height: 2px; background: linear-gradient(90deg, rgba(246, 166, 92, .5), rgba(156, 204, 79, .5)); }
.track::before, .track::after { content: ""; position: absolute; top: -7px; border: 8px solid transparent; }
.flow.r .track::after, .flow.b .track::after { right: -10px; border-left-color: var(--green); }
.flow.l .track::before, .flow.b .track::before { left: -10px; border-right-color: var(--amber2); }
.track i { position: absolute; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 16px var(--green); animation: go 2.2s var(--ease) infinite; }
.flow.l .track i { animation-name: back; box-shadow: 0 0 16px var(--amber2); }
.flow.b .track i:nth-child(2) { animation-name: back; animation-delay: 1.1s; box-shadow: 0 0 16px var(--amber2); }
.flow:nth-child(2) i { animation-delay: .35s; } .flow:nth-child(3) i { animation-delay: .7s; } .flow:nth-child(5) i { animation-delay: .5s; }
@keyframes go { from { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } to { left: calc(100% - 14px); opacity: 0; } }
@keyframes back { from { left: calc(100% - 14px); opacity: 0; } 15%, 85% { opacity: 1; } to { left: 0; opacity: 0; } }

/* ---------- 7 live stock demo ---------- */
.demo { display: grid; grid-template-columns: 1fr 380px 1fr; gap: 34px; align-items: stretch; }
.side { border-radius: 30px; padding: 34px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 22px; }
.prod { display: flex; gap: 22px; align-items: center; }
.swatch { width: 104px; height: 124px; border-radius: 18px; background: linear-gradient(150deg, #d9c3a0, #b89468); flex: none; position: relative; overflow: hidden; }
.swatch::after { content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 30px; border-radius: 0 0 40px 40px; background: rgba(21, 17, 14, .28); }
.prod b { font: 500 30px var(--serif); display: block; }
.prod span { font-size: 21px; color: var(--mute); }
.avail { font-size: 24px; display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-radius: 16px; background: rgba(0, 0, 0, .25); }
.avail b { font: 500 40px var(--serif); transition: color .3s; }
.avail.out b { color: var(--rose); font-size: 30px; }
.btn { border: 0; border-radius: 16px; padding: 20px 24px; font-size: 24px; font-weight: 600; background: var(--amber); color: #1a0f05; transition: transform .15s, filter .2s, opacity .2s; }
.btn.g { background: var(--green); color: #10200a; }
.btn:hover { filter: brightness(1.1); } .btn:active { transform: scale(.97); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--cream); font-weight: 500; font-size: 20px; padding: 12px 20px; }
.ledger { border-radius: 30px; background: var(--cream); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.ledger .tag { color: #74685a; }
.ledger b { font: 500 200px/1 var(--serif); margin: 6px 0; display: block; }
.ledger b.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); color: var(--amber); } }
.ledger span { font-size: 22px; color: #74685a; }
.log { margin-top: 26px; height: 92px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; font-size: 22px; color: var(--mute); }
.log div { animation: rise .5s var(--ease) both; }
.log div:first-child { color: var(--cream); }
.log b { color: var(--green); font-weight: 600; }

/* ---------- 9 pipeline ---------- */
.pipe { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; position: relative; padding-top: 46px; }
.pipe::before { content: ""; position: absolute; left: 20px; right: 20px; top: 14px; height: 3px; background: var(--line); }
.pipe::after { content: ""; position: absolute; left: 20px; top: 14px; height: 3px; width: 0; background: var(--green); }
.slide.active .pipe::after { animation: fill 3.6s .6s ease-out forwards; }
@keyframes fill { to { width: calc(100% - 40px); } }
.stagebox { position: relative; }
.stagebox::before { content: ""; position: absolute; top: -44px; left: 20px; width: 26px; height: 26px; border-radius: 50%; background: #0d1a10; border: 3px solid var(--green); z-index: 1; }
.stagebox .card { height: 100%; padding: 28px 26px; }
.stagebox h3 { font-size: 29px; } .stagebox p { font-size: 21px; }

/* ---------- 10 POS mock ---------- */
.device { border-radius: 34px; background: #0c0a08; padding: 16px; box-shadow: 0 50px 90px -40px rgba(21, 17, 14, .6); }
.screen { border-radius: 22px; background: #f3ede2; color: var(--ink); height: 600px; display: grid; grid-template-columns: 1.25fr 1fr; overflow: hidden; }
.tiles { padding: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-content: start; }
.search { grid-column: 1 / -1; background: #fff; border-radius: 14px; padding: 14px 18px; font-size: 18px; color: #8a7d6d; border: 1px solid rgba(21, 17, 14, .08); }
.tile { background: #fff; border-radius: 16px; padding: 12px; font-size: 16px; line-height: 1.25; }
.tile i { display: block; height: 78px; border-radius: 10px; margin-bottom: 10px; }
.tile b { display: block; font-weight: 600; } .tile span { color: #8a7d6d; }
.cart { background: #fff; padding: 24px; display: flex; flex-direction: column; border-left: 1px solid rgba(21, 17, 14, .08); }
.cart h4 { margin: 0 0 14px; font: 500 24px var(--serif); }
.line { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; padding: 11px 0; border-bottom: 1px dashed rgba(21, 17, 14, .12); }
.line small { display: block; color: #8a7d6d; font-size: 14px; }
.slide.active .cart .line { animation: rise .5s var(--ease) both; animation-delay: calc(var(--n) * .45s + .9s); }
.total { margin-top: auto; display: flex; justify-content: space-between; font: 500 34px var(--serif); padding-top: 14px; }
.pays { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pays span { font-size: 14px; padding: 7px 12px; border-radius: 99px; background: #f3ede2; }
.pays span.on { background: var(--ink); color: var(--cream); }
.paybtn { margin-top: 14px; text-align: center; background: var(--amber); border-radius: 14px; padding: 15px; font-weight: 700; font-size: 19px; color: #1a0f05; }

/* ---------- 11 offline ---------- */
.wifi { width: 400px; height: 400px; border-radius: 50%; margin: 0 auto; position: relative; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); }
.wifi i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--rose); opacity: 0; animation: ring 3s ease-out infinite; }
.wifi i:nth-child(2) { animation-delay: 1s; } .wifi i:nth-child(3) { animation-delay: 2s; }
@keyframes ring { from { transform: scale(.6); opacity: .7; } to { transform: scale(1.5); opacity: 0; } }
.wifi b { font: 500 46px/1.1 var(--serif); text-align: center; }
.wifi b small { display: block; font: 600 18px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--rose); margin-bottom: 12px; }

/* ---------- 12 tabs ---------- */
.tabs { display: flex; gap: 12px; margin-bottom: 30px; }
.tab { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: 14px 30px; font-size: 24px; color: var(--mute); transition: .25s; }
.tab.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.panel { display: none; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.panel.on { display: grid; animation: rise .6s var(--ease) both; }
.sheet { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 30px; box-shadow: 0 30px 60px -40px rgba(21, 17, 14, .35); }
.sheet h4 { margin: 0 0 6px; font: 500 28px var(--serif); }
.sheet > span { font-size: 19px; color: var(--mute); }
.matrix { width: 100%; border-collapse: separate; border-spacing: 8px; margin-top: 18px; font-size: 22px; text-align: center; }
.matrix th { font-weight: 500; color: var(--mute); font-size: 18px; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix td { background: #f3ede2; border-radius: 12px; padding: 14px 0; font-weight: 600; }
.matrix td:first-child { background: none; font-weight: 500; }
.matrix td.low { background: #fde3c8; color: #a04e0d; } .matrix td.zero { background: #fbd9d3; color: #a33423; }
.rows { margin-top: 18px; display: grid; gap: 10px; }
.rowi { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; background: #f3ede2; border-radius: 14px; padding: 15px 20px; font-size: 21px; }
.rowi small { color: var(--mute); font-size: 18px; }
.pill { font-size: 16px; font-weight: 600; padding: 6px 14px; border-radius: 99px; background: #e2efd0; color: #3d6a1d; }
.pill.warn { background: #fde3c8; color: #a04e0d; }

/* ---------- 13 promos ---------- */
.promo { border-radius: 26px; padding: 30px; background: var(--card); border: 1px solid var(--line); }
.promo .big { font: 500 54px/1 var(--serif); color: var(--amber2); display: block; margin-bottom: 16px; }
.promo p { font-size: 22px; color: var(--mute); }

/* ---------- 14 customer ---------- */
.profile { background: var(--cream); color: var(--ink); border-radius: 30px; padding: 38px; }
.who { display: flex; gap: 22px; align-items: center; margin-bottom: 26px; }
.who i { width: 84px; height: 84px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; font: 500 34px var(--serif); font-style: normal; color: #fff; }
.who b { font: 500 34px var(--serif); display: block; } .who span { font-size: 20px; color: #74685a; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.stats div { background: #fff; border-radius: 16px; padding: 18px; font-size: 17px; color: #74685a; }
.stats b { display: block; font: 500 34px var(--serif); color: var(--ink); }
.hist { display: grid; gap: 10px; font-size: 20px; }
.hist div { display: flex; justify-content: space-between; padding: 13px 18px; background: #fff; border-radius: 14px; }
.hist em { font-style: normal; font-size: 15px; font-weight: 600; padding: 4px 12px; border-radius: 99px; background: #e2efd0; color: #3d6a1d; margin-left: 12px; }
.hist em.s { background: #fde3c8; color: #a04e0d; }

/* ---------- 16 dashboard ---------- */
.dash { background: #fff; border-radius: 30px; border: 1px solid var(--line); padding: 32px; box-shadow: 0 40px 80px -50px rgba(21, 17, 14, .4); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { background: #f6f1e7; border-radius: 18px; padding: 22px; font-size: 18px; color: var(--mute); }
.kpi b { display: block; font: 500 46px var(--serif); color: var(--ink); margin-top: 4px; }
.kpi small { font-size: 16px; color: #3d6a1d; font-weight: 600; }
.charts { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-top: 16px; }
.chart, .list { background: #f6f1e7; border-radius: 18px; padding: 24px; }
.chart h4, .list h4 { margin: 0 0 16px; font: 600 18px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.bars { display: flex; align-items: flex-end; gap: 18px; height: 210px; }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; height: 100%; font-size: 15px; text-align: center; color: var(--mute); }
.bar i { display: block; border-radius: 6px; height: 0; transition: height 1s var(--ease); }
.bar i.s { background: var(--ink); } .bar i.o { background: #7fae3c; }
.slide.active .bar i { height: var(--h); transition-delay: calc(var(--n) * 70ms + .5s); }
.legend { display: flex; gap: 22px; font-size: 16px; color: var(--mute); margin-top: 12px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; }
.list div { display: flex; justify-content: space-between; font-size: 19px; padding: 9px 0; border-bottom: 1px dashed rgba(21, 17, 14, .12); color: var(--ink); }
.list div span { color: var(--mute); }

/* ---------- 18 money ---------- */
.money { border-radius: 30px; padding: 44px; border: 1px solid var(--line); background: var(--card); }
.money h3 { font-size: 52px; margin-bottom: 28px; }
.money.earn { background: linear-gradient(160deg, rgba(156, 204, 79, .16), rgba(156, 204, 79, .03)); border-color: rgba(156, 204, 79, .3); }
.money.earn .ticks li::before { border-color: var(--green); }
.money.save { background: linear-gradient(160deg, rgba(224, 128, 47, .18), rgba(224, 128, 47, .03)); border-color: rgba(224, 128, 47, .3); }
.money .ticks li { font-size: 26px; }

/* ---------- 19 estimator ---------- */
.est { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: stretch; }
.inputs { display: grid; gap: 20px; align-content: center; }
.field label { display: flex; justify-content: space-between; font-size: 23px; margin-bottom: 8px; }
.field output { font-weight: 700; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; height: 34px; accent-color: #c0651c; cursor: pointer; margin: 0; }
.result { background: var(--ink); color: var(--cream); border-radius: 30px; padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.result .tag { color: var(--amber2); }
.result .sum { font: 500 104px/1 var(--serif); margin: 14px 0 26px; font-variant-numeric: tabular-nums; }
.result .rowr { display: flex; justify-content: space-between; font-size: 23px; padding: 14px 0; border-top: 1px solid rgba(245, 238, 226, .14); }
.result .rowr b { font-variant-numeric: tabular-nums; }
.fine { font-size: 18px; color: var(--mute); margin-top: 20px; line-height: 1.45; }

/* ---------- 20 rollout ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.stepc { counter-increment: s; }
.stepc::before { content: "0" counter(s); font: italic 500 60px var(--serif); color: var(--amber2); display: block; margin-bottom: 16px; }

/* ---------- 21 close ---------- */
.cta { display: inline-block; margin-top: 54px; padding: 26px 54px; border-radius: 99px; background: var(--amber); color: #1a0f05; font-size: 30px; font-weight: 700; text-decoration: none; transition: transform .2s, filter .2s; }
.cta:hover { transform: translateY(-3px); filter: brightness(1.08); }

.home-link { margin-top: 30px; background: none; border: 1px solid var(--line); border-radius: 99px; padding: 14px 30px; font-size: 21px; color: var(--mute); transition: color .2s, border-color .2s; }
.home-link:hover { color: var(--cream); border-color: var(--amber2); }

/* ---------- chrome: progress, controls, help ---------- */
.progress { position: fixed; left: 0; bottom: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--amber), var(--amber2)); transition: width .5s var(--ease); z-index: 20; }
.controls { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 99px; background: rgba(20, 16, 13, .82); border: 1px solid rgba(245, 238, 226, .16); backdrop-filter: blur(12px); z-index: 30; transition: opacity .4s, transform .4s; }
.idle .controls { opacity: 0; transform: translateX(-50%) translateY(14px); pointer-events: none; }
.idle { cursor: none; }
.controls button { background: none; border: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--cream); font-size: 18px; }
.controls button:hover { background: rgba(245, 238, 226, .14); }
.controls svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-pause, .i-muted, .playing .i-play, .muted .i-sound { display: none; }
.playing .i-pause, .muted .i-muted { display: block; }
.playing [data-nav=play] { background: var(--amber); color: #1a0f05; }
.count { font-size: 14px; letter-spacing: .1em; padding: 0 12px; color: var(--cream); font-variant-numeric: tabular-nums; min-width: 78px; text-align: center; }
.help { position: fixed; inset: 0; display: none; place-items: center; background: rgba(10, 8, 6, .8); z-index: 40; }
.help.on { display: grid; }
.help div { background: var(--ink2); border: 1px solid rgba(245, 238, 226, .16); border-radius: 22px; padding: 34px 40px; font-size: 17px; line-height: 2.1; }
.help h4 { margin: 0 0 10px; font: 500 26px var(--serif); }
kbd { display: inline-block; min-width: 30px; text-align: center; padding: 0 8px; margin-right: 6px; border-radius: 7px; border: 1px solid rgba(245, 238, 226, .3); font: 600 13px var(--sans); line-height: 24px; }

/* ---------- overview grid ---------- */
body.overview { overflow: auto; }
body.overview .deck { position: static; }
body.overview .stage { position: static; width: auto; height: auto; transform: none !important; display: grid; grid-template-columns: repeat(auto-fill, 384px); gap: 26px; justify-content: center; padding: 44px 24px 110px; }
body.overview .slide { position: relative; inset: auto; width: 1920px; height: 1080px; zoom: .2; opacity: 1; visibility: visible; transform: none; transition: none; cursor: pointer; border-radius: 50px; outline: 0 solid var(--amber2); }
body.overview .slide.active { outline-width: 14px; }
body.overview .slide * { pointer-events: none; }
body.overview [data-a] { animation: none !important; }
body.overview [data-step] { opacity: 1; transform: none; }
body.overview .progress { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- print / save as PDF: one slide per page ---------- */
@media print {
  @page { size: 1920px 1080px; margin: 0; }
  html, body { overflow: visible; height: auto; background: none; }
  .deck { position: static; }
  .stage { position: static; transform: none !important; }
  .slide { position: relative; opacity: 1; visibility: visible; transform: none; break-after: page; width: 1920px; height: 1080px; }
  [data-a] { animation: none !important; } [data-step] { opacity: 1; transform: none; }
  .bar i { height: var(--h); } .pipe::after { width: calc(100% - 40px); }
  .controls, .progress, .help { display: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
