/* Endler POS website. Follows the "Endler POS Homepage v2" design: dark green-black, Space Grotesk, one green accent. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/space-grotesk-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/space-grotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/space-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #101513; --card: #161c1a; --panel: #16241e; --chip: #153a2a; --inset: #111614; --bar: #131917;
  --text: #e6ebe8; --muted: #aab3ae; --dim: #8a948f; --faint: #6d7772;
  --line: #232b28; --line-2: #2c3531; --line-g: #235a40;
  --green: #4fd08b; --btn: #2fbf7a; --btn-hover: #3fd08b; --on-btn: #0d1a13; --amber: #f0b44c;
  --gutter: clamp(20px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Space Grotesk", system-ui, sans-serif; text-wrap: pretty; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; }
a:hover { color: #7fe0aa; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.page { min-height: 100vh; overflow-x: clip; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; font: 700 15px "Space Grotesk", sans-serif; cursor: pointer; border: 0; }
.btn-primary { background: var(--btn); color: var(--on-btn); }
.btn-primary:hover { background: var(--btn-hover); color: var(--on-btn); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); font-weight: 600; background: transparent; }
.btn-ghost:hover { background: #1d2522; color: var(--text); }
.btn-lg { height: 48px; padding: 0 22px; }
.btn-ghost.btn-lg { padding: 0 20px; }
.btn-md { height: 46px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(16, 21, 19, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; margin-right: auto; }
.brand:hover { color: var(--text); }
.mark { width: 26px; height: 26px; border-radius: 7px; background: var(--btn); display: flex; align-items: center; justify-content: center; color: var(--on-btn); font-size: 15px; font-weight: 700; }
.nav { display: flex; gap: 24px; font-size: 14px; font-weight: 500; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 8px; background: var(--btn); color: var(--on-btn); font-weight: 700; font-size: 14px; }
.nav-cta:hover { background: var(--btn-hover); color: var(--on-btn); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px clamp(32px, 5vw, 72px); align-items: center; padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); }
/* northern lights behind the hero (aurora.js): full width, reaching up behind the header, fading out at the bottom */
.hero { position: relative; isolation: isolate; }
.aurora { position: absolute; z-index: -1; pointer-events: none; top: -64px; bottom: -40px; left: 50%; width: 100vw; transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%); }
@media (max-width: 720px) { .aurora { bottom: auto; height: 620px; } }
.aurora canvas { width: 100%; height: 100%; display: block; filter: blur(5px) saturate(1.2); opacity: .85; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.pill { display: flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green); background: var(--chip); padding: 5px 12px; border-radius: 999px; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
h1 { font-weight: 700; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -0.025em; }
h1 em { font-style: normal; color: var(--green); }
.lead { font-size: 18px; line-height: 1.6; max-width: 50ch; color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

.sale { background: var(--card); border: 1px solid var(--line-g); border-radius: 14px; box-shadow: inset 3px 0 0 var(--green), 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden; }
.sale-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.sale-head .label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-right: auto; }
.who { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--green); }
.who b { width: 22px; height: 22px; border-radius: 50%; background: var(--btn); color: var(--on-btn); display: flex; align-items: center; justify-content: center; font-size: 11px; }
.sale-lines { padding: 6px 18px; }
.sale-line { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid #202825; font-size: 14px; font-variant-numeric: tabular-nums; }
.sale-line:last-child { border-bottom: 0; }
.sale-line .q { color: var(--dim); }
.sale-line .a { font-weight: 600; }
.sale-foot { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px 18px; }
.sale-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 10px; font-weight: 700; font-size: 16px; }
.pay .card { background: var(--btn); color: var(--on-btn); }
.pay .cash { background: #1a2320; border: 1px solid #2f6a4c; }
.due { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; }
.due span:first-child { font-size: 13px; color: var(--dim); }
.due span:last-child { font-size: 30px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }

/* sections */
section { scroll-margin-top: 76px; }
.sec { padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
h2 { font-weight: 700; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.02em; }
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 40px; }
.sec-head p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* tour */
.tour { padding: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.tour-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 28px; }
.tour-head p { font-size: 16px; line-height: 1.6; max-width: 52ch; color: var(--muted); }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab { height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer; font: 600 14px "Space Grotesk", sans-serif; background: transparent; color: var(--muted); border: 1px solid var(--line-2); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--panel); color: var(--green); border-color: var(--green); }
.window { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px rgba(79, 208, 139, .08), 0 40px 120px rgba(47, 191, 122, .18), 0 30px 80px rgba(0, 0, 0, .5); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bar); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4440; }
.window-bar span { margin: 0 auto; font-size: 12px; color: var(--dim); }
.shot { position: relative; width: 100%; aspect-ratio: 1280 / 800; overflow: hidden; background: var(--bg); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.shot iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; transform: scale(.5); }
.caption { text-align: center; font-size: 14px; color: var(--dim); margin: 16px auto 0; max-width: 60ch; }

/* features */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pillar { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.pillar .num { width: 40px; height: 40px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line-g); display: flex; align-items: center; justify-content: center; color: var(--green); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.pillar h3 { font-weight: 700; font-size: 20px; line-height: 1.2; margin-top: 4px; }
.pillar p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* split sections */
.split { display: grid; gap: 40px clamp(32px, 5vw, 72px); align-items: center; }
.split-stock { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.split-margins { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.copy { display: flex; flex-direction: column; gap: 18px; }
.copy h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; }
.copy p { font-size: 16px; line-height: 1.65; max-width: 46ch; color: var(--muted); }
.ticks { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; margin: 0; }
.ticks li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.t { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--chip); display: flex; align-items: center; justify-content: center; }
.frame { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.stk-tabs { display: inline-flex; width: max-content; padding: 4px; gap: 4px; border-radius: 999px; background: var(--inset); border: 1px solid var(--line-2); }
.stk-tabs button { height: 34px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font: 600 14px "Space Grotesk", sans-serif; cursor: pointer; }
.stk-tabs button[aria-selected="true"] { background: var(--chip); color: var(--green); }
.stk-tabs button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.stk-pane { display: flex; flex-direction: column; gap: 18px; }
.stk-pane[hidden], .shot[hidden] { display: none; }

.margin-table { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.mt-head, .mt-row { display: grid; grid-template-columns: minmax(0, 1.5fr) 1fr 1fr 1fr; gap: 12px; }
.mt-head { padding: 11px 20px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid #202825; background: var(--bar); }
.mt-head span:not(:first-child) { text-align: right; }
.mt-row { align-items: center; padding: 16px 20px; font-size: 15px; font-variant-numeric: tabular-nums; background: #1b1f17; box-shadow: inset 3px 0 0 var(--amber); }
.mt-name { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-weight: 600; }
.badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #3a2a10; color: var(--amber); }
.mt-col { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.mt-col.gap4 { gap: 4px; }
.mt-col b { font-weight: 600; }
.old { font-size: 12px; color: var(--faint); text-decoration: line-through; }
.was { font-size: 12px; padding: 2px 7px; border-radius: 999px; background: #1f2623; color: #c9d1cd; }
.mt-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid #202825; }
.mt-foot > span:first-child { font-size: 14px; color: var(--muted); }
.mg-visuals { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pc-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.pc-head { display: flex; align-items: baseline; gap: 10px; padding: 11px 20px; background: var(--bar); border-bottom: 1px solid #202825; }
.pc-head span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.pc-head b { font-size: 14px; font-weight: 600; }
.pc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 20px 12px; }
.pc-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; }
.pc-fields small { font-weight: 400; color: var(--dim); }
.pc-in { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px; border-radius: 8px; background: var(--inset); border: 1px solid var(--line-2); color: var(--muted); font-size: 15px; }
.pc-in:focus-within, .pc-fields select:focus { border-color: var(--green); outline: none; }
.pc-in input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--text); font: 600 15px "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; outline: none; }
.pc-fields select { height: 40px; padding: 0 8px; border-radius: 8px; background: var(--inset); border: 1px solid var(--line-2); color: var(--text); font: 600 14px "Space Grotesk", sans-serif; min-width: 0; }
.pc-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 20px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--inset); }
.pc-strip > div { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; min-width: 0; }
.pc-strip > div + div { border-left: 1px solid var(--line-2); }
.pc-strip span { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.pc-strip b { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-strip .pc-acc { color: var(--green); }
.pc-strip .pc-neg { color: #f87171; }
.pc-hint { padding: 10px 20px 14px; font-size: 12.5px; color: var(--dim); }
@media (max-width: 760px) {
  .pc-head, .pc-hint { padding-left: 14px; padding-right: 14px; }
  .pc-fields { grid-template-columns: 1fr 1fr; padding: 14px 14px 10px; }
  .pc-fields label:nth-child(2) { grid-column: 1 / -1; order: 3; }
  .pc-strip { margin: 0 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pc-strip > div:nth-child(4) { border-left: 0; }
  .pc-strip > div:nth-child(n + 4) { border-top: 1px solid var(--line-2); }
}
.keep { display: flex; gap: 10px; align-items: center; height: 36px; padding: 0 14px; background: var(--panel); border: 1px solid var(--line-g); border-radius: 8px; color: var(--green); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }

/* setup */
.setup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.opt { display: flex; flex-direction: column; gap: 18px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.opt.hot { background: radial-gradient(80% 70% at 100% 0%, rgba(79, 208, 139, .22), transparent 65%), var(--panel); border-color: var(--line-g); box-shadow: inset 3px 0 0 var(--green); }
.opt-head { display: flex; align-items: center; gap: 12px; }
.opt-icon { width: 44px; height: 44px; border-radius: 10px; background: #1d2522; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--text); flex: none; }
.hot .opt-icon { background: var(--chip); border-color: var(--line-g); color: var(--green); }
.opt-kind { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); display: block; }
.hot .opt-kind { color: var(--green); }
.opt-title { font-weight: 700; font-size: 20px; display: block; margin-top: 2px; }
.opt p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.opt ul { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; list-style: none; padding: 0; margin: 0; }
.opt li { display: flex; gap: 10px; align-items: center; }
.opt li .t { width: 20px; height: 20px; background: #1d2522; }
.opt .btn { margin-top: auto; }
.kit { display: flex; flex-wrap: wrap; gap: 8px; }
.kit span { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--inset); border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; }
.kit span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.soon-badge { display: inline-block; margin-left: 8px; vertical-align: 1px; line-height: 1.3; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #f2c46d; background: rgba(242, 196, 109, .1); border: 1px solid rgba(242, 196, 109, .35); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.opt.soon .kit span { color: var(--muted); }
.opt.soon .kit span::before { background: var(--dim); }
.hw-check { margin-top: 14px; padding: 24px 28px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.hw-top { display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.hw-top h3 { font-size: 18px; margin: 0 0 6px; }
.hw-top p { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 640px; margin: 0; }
.hw-top .btn { flex: none; padding: 0 18px; }
.hw-list { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.hw-list summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--green); list-style: none; display: flex; align-items: center; gap: 8px; }
.hw-list summary::-webkit-details-marker { display: none; }
.hw-list summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.hw-list[open] summary::before { transform: rotate(45deg); }
.hw-rows { margin-top: 14px; display: flex; flex-direction: column; }
.hw-row { display: grid; grid-template-columns: 150px 250px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; }
.hw-row:first-child { border-top: 0; }
.hw-item { font-weight: 700; }
.hw-works { font-weight: 600; color: var(--text); }
.hw-note { color: var(--muted); }
@media (max-width: 760px) {
  .hw-check { padding: 22px 20px; }
  .hw-top { flex-direction: column; align-items: stretch; }
  .hw-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* small features */
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; }
.small { display: flex; flex-direction: column; gap: 8px; }
.small i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-bottom: 6px; }
.small h3 { font-weight: 700; font-size: 17px; line-height: 1.25; }
.small p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* demo */
.demo { margin: clamp(24px, 4vw, 48px) 0 clamp(56px, 7vw, 88px); background: var(--panel); border: 1px solid var(--line-g); border-radius: 16px; box-shadow: inset 3px 0 0 var(--green); }
.demo-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px 48px; align-items: center; padding: clamp(28px, 5vw, 56px); }
.demo-in .copy { gap: 14px; }
.demo-in .copy p { max-width: 52ch; }
.demo-form { display: flex; gap: 10px; flex-wrap: wrap; }
.demo-form input { flex: 1; min-width: 200px; height: 50px; background: var(--inset); border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px; color: var(--text); font: 15px "Space Grotesk", sans-serif; }
.demo-form input::placeholder { color: var(--faint); }
.demo-form .btn { height: 50px; padding: 0 22px; }
.thanks { display: flex; gap: 10px; align-items: center; font-size: 16px; font-weight: 600; color: var(--green); }
[hidden] { display: none !important; }

footer { border-top: 1px solid var(--line); }
footer .wrap { padding-top: 24px; padding-bottom: 40px; display: flex; gap: 14px 28px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--dim); }
footer .brand { font-size: 15px; }
footer .mark { width: 20px; height: 20px; border-radius: 5px; font-size: 12px; }
footer a { color: var(--dim); }
footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .hero, .split-stock, .split-margins, .setup-grid, .demo-in { grid-template-columns: minmax(0, 1fr); }
  .three { grid-template-columns: minmax(0, 1fr); }
  .four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-margins .mg-visuals { order: 2; }
}
@media (max-width: 560px) {
  .four { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; }
  .mt-head, .mt-row { gap: 8px; padding-left: 14px; padding-right: 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Hero: an animated till ringing up a sale (hero.js). Same look as the real till. ---------- */
@font-face { font-family: "Manrope"; font-weight: 500 800; font-display: swap; src: url("fonts/manrope-latin.woff2") format("woff2"); }
.hd { position: relative; overflow: hidden; background: #0d1210; border: 1px solid var(--line-g); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(79, 208, 139, .06); font-family: "Manrope", "Space Grotesk", sans-serif; color: #eef2f0; user-select: none; }
.hd-top { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-bottom: 1px solid #1e2521; background: #111714; font-size: 14px; }
.hd-open { font-size: 10.5px; font-weight: 700; color: #34d399; background: rgba(52, 211, 153, .12); padding: 2px 8px; border-radius: 999px; }
.hd-who { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #34d399; }
.hd-who i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: #34d399; color: #0b1410; display: flex; align-items: center; justify-content: center; font-size: 10.5px; }
.hd-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 330px; }
.hd-left { padding: 12px; }
.hd-head { display: flex; align-items: center; gap: 8px; height: 26px; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.hd-back { height: 24px; padding: 0 8px; border-radius: 7px; border: 1px solid #232b27; background: #161c19; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; }
.hd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hd-key { position: relative; aspect-ratio: 1; border-radius: 10px; padding: 7px; background: #121613; border: 1px solid transparent; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; transition: transform .12s; }
.hd-key .n { font-size: 10.5px; font-weight: 700; line-height: 1.15; }
.hd-key .p { font-size: 11px; font-weight: 700; color: #34d399; margin-top: 2px; }
.hd-key .pic { flex: 1; min-height: 0; border-radius: 5px; background: #1c2521; color: #34d399; display: flex; align-items: center; justify-content: center; margin-bottom: 5px; }
.hd-key.mb { justify-content: flex-start; background: rgba(var(--rgb), .16); box-shadow: inset 0 0 40px rgba(var(--rgb), .18); }
.hd-key.mb .n { font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.hd-key.mb svg { position: absolute; right: 7px; bottom: 7px; color: rgb(var(--rgb)); width: 20px; height: 20px; }
.hd-key.empty { background: transparent; border: 1px dashed #232b27; }
.hd-key.pressed { transform: scale(.94); }
.hd-right { border-left: 1px solid #232b27; background: #121613; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hd-label { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: #93a099; font-weight: 700; }
.hd-lines { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.hd-empty { margin: auto; color: #93a099; font-size: 12px; text-align: center; }
.hd-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 0; border-bottom: 1px solid #232b27; font-size: 12.5px; font-weight: 700; animation: hd-in .3s ease-out; }
.hd-line .q { color: #93a099; font-weight: 600; margin-right: 6px; }
.hd-line .a { font-variant-numeric: tabular-nums; }
.hd-line.bump { animation: hd-bump .35s ease-out; }
@keyframes hd-in { from { opacity: 0; transform: translateY(-4px); background: rgba(52, 211, 153, .1); } to { opacity: 1; transform: none; background: transparent; } }
@keyframes hd-bump { 0% { background: rgba(52, 211, 153, .14); } 100% { background: transparent; } }
.hd-complete { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 14px; border: 0; border-radius: 11px; background: #34d399; color: #0b1410; font: 700 13px "Manrope", sans-serif; transition: transform .12s, opacity .2s; }
.hd-complete span { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hd-complete.off { background: #161c19; color: #93a099; }
.hd-complete.pressed { transform: scale(.96); }
/* The three screens fill the picture; one morphs into the next (hero.js). */
.hd { height: 440px; }
.hd-scene { position: absolute; inset: 0; display: flex; flex-direction: column; background: #0d1210; }
.hd-till .hd-body { flex: 1; min-height: 0; }
.hd-stage { display: block; overflow: hidden; }
.hd-stage.hd-paying { background: #171d1a; }
.hd-stage.hd-receipt { background: linear-gradient(180deg, #1b2a23 0%, #171d1a 200px); }
.hd-fit { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.hd-enter { animation: hd-enter .42s cubic-bezier(.2, .8, .2, 1); z-index: 2; }
.hd-leave { animation: hd-leave .42s ease forwards; z-index: 1; }
@keyframes hd-enter { from { opacity: 0; transform: scale(.6); border-radius: 24px; } to { opacity: 1; transform: none; } }
@keyframes hd-leave { to { opacity: 0; transform: scale(1.04); } }
@keyframes hd-rise { from { translate: 0 8px; opacity: .5; } to { translate: 0 0; opacity: 1; } }
/* Inside the picture the boxes are the screen itself: no frame of their own, a little narrower to read larger. */
.hd-stage .rp-modal { width: 640px; border: 0; border-radius: 0; box-shadow: none; animation: none; background: transparent; }
.hd-stage .rp-body { grid-template-columns: minmax(0, 1fr) 236px; }
.hd-stage .rp-add, .hd-stage .rp-other small { white-space: nowrap; }
.hd-stage .rp-right { padding: 22px 18px; }
.hd-stage .rp-due { font-size: 64px; }
.hd-stage .rr { border: 0; border-radius: 0; box-shadow: none; animation: none; background: transparent; padding-top: 26px; }
.rp-wait { justify-content: center; }
@keyframes hd-spin { to { transform: rotate(360deg); } }

/* The real "Take payment" box (apps/admin pages/till/PaymentModal.tsx), drawn at full size and scaled to fit. */
.rp-modal { width: 780px; background: #171d1a; border: 1px solid #2a332e; border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); color: #eef2f0; font-family: "Manrope", sans-serif; text-align: left; animation: hd-rise .2s ease-out; }
.rp-head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 24px; border-bottom: 1px solid #232b27; font-size: 18px; font-weight: 700; }
.rp-x { color: #93a099; display: flex; }
.rp-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
.rp-left { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 18px; }
.rp-right { border-left: 1px solid #232b27; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.rp-lab { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: #93a099; font-weight: 700; }
.rp-duerow { display: flex; align-items: baseline; gap: 14px; margin-top: 4px; }
.rp-due { font-size: 72px; line-height: 1; font-weight: 800; color: #34d399; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rp-note { color: #93a099; font-size: 13px; font-family: "Work Sans", sans-serif; }
.rp-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rp-method { height: 78px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 19px; font-weight: 700; border: 1px solid #2d5a45; background: #121a16; transition: transform .12s; }
.rp-method svg { width: 22px; height: 22px; }
.rp-method.rp-card { background: #34d399; color: #0b1410; border-color: transparent; }
.rp-method.on { box-shadow: 0 0 0 2px rgba(52, 211, 153, .55); }
.rp-method.pressed { transform: scale(.96); }
.rp-panel { border: 1px solid #232b27; border-radius: 12px; padding: 18px 16px; background: #131815; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-height: 150px; justify-content: center; }
.rp-panel b { font-size: 16px; }
.rp-panel p { margin: 0; color: #93a099; font-size: 13.5px; font-family: "Work Sans", sans-serif; }
.rp-panel .rp-pay { font-size: 28px; font-weight: 800; color: #34d399; }
.rp-ghost { width: 100%; height: 44px; border-radius: 10px; border: 1px solid #232b27; background: #161c19; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.rp-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(52, 211, 153, .2); border-top-color: #34d399; animation: hd-spin .8s linear infinite; }
.rp-ok { width: 44px; height: 44px; border-radius: 50%; background: #34d399; color: #0b1410; display: flex; align-items: center; justify-content: center; }
.rp-walkin { display: flex; align-items: center; gap: 12px; border: 1px dashed #232b27; border-radius: 12px; padding: 12px 14px; font-family: "Work Sans", sans-serif; color: #93a099; }
.rp-walkin b { display: block; font: 700 14px "Manrope", sans-serif; color: #eef2f0; }
.rp-walkin small { font-size: 12.5px; }
.rp-walkin .rp-add { margin-left: auto; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid #232b27; background: #0d1210; color: #34d399; font: 700 13.5px "Manrope", sans-serif; display: flex; align-items: center; }
.rp-other { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid #232b27; border-radius: 10px; background: #131815; color: #93a099; }
.rp-other b { display: block; font-size: 14px; color: #eef2f0; }
.rp-other small { font-size: 12px; font-family: "Work Sans", sans-serif; }
.rp-other.locked { opacity: .55; }
.rp-other .rp-tag { font-size: 12px; }

/* The real "Sale complete" receipt (pages/till/ReceiptModal.tsx). */
.rr { width: 440px; background: linear-gradient(180deg, #1b2a23 0%, #171d1a 120px); border: 1px solid #2a332e; border-radius: 16px; padding: 22px 22px 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); text-align: center; color: #eef2f0; font-family: "Manrope", sans-serif; animation: hd-rise .2s ease-out; }
.rr-tick { width: 62px; height: 62px; margin: 0 auto; border-radius: 50%; background: #34d399; color: #0b1410; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 7px rgba(52, 211, 153, .16); animation: hd-pop .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes hd-pop { from { transform: scale(.4); } to { transform: none; } }
.rr-kick { margin-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #34d399; }
.rr-shop { font-size: 20px; font-weight: 800; margin-top: 2px; }
.rr-change { margin-top: 14px; padding: 13px; border-radius: 12px; background: #131815; border: 1px solid #232b27; font-size: 16px; font-weight: 700; }
.rr-meta { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #232b27; border-radius: 10px; text-align: left; }
.rr-meta div { padding: 7px 10px; font-size: 11.5px; color: #93a099; font-family: "Work Sans", sans-serif; }
.rr-meta div + div { border-left: 1px solid #232b27; }
.rr-meta b { display: block; color: #eef2f0; font: 700 13px "Manrope", sans-serif; }
.rr-items { margin-top: 10px; text-align: left; }
.rr-item { display: flex; justify-content: space-between; gap: 12px; padding: 6px 4px; font-size: 14px; font-weight: 700; }
.rr-item small { display: block; color: #93a099; font: 400 12px "Work Sans", sans-serif; }
.rr-sums { border-top: 1px dashed #232b27; margin-top: 6px; padding: 8px 4px; font-size: 13px; color: #93a099; font-family: "Work Sans", sans-serif; }
.rr-sums div, .rr-total { display: flex; justify-content: space-between; }
.rr-total { border-top: 1px solid #232b27; padding: 12px 4px 4px; align-items: baseline; font-size: 18px; font-weight: 700; }
.rr-total span:last-child { font-size: 32px; font-weight: 800; color: #34d399; }
.rr-paid { margin-top: 10px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid #2d5a45; background: #142019; text-align: left; }
.rr-paid .rr-pi { width: 34px; height: 34px; border-radius: 8px; background: #1d3529; color: #34d399; display: flex; align-items: center; justify-content: center; }
.rr-paid b { display: block; font-size: 14px; }
.rr-paid small { color: #93a099; font-size: 12px; font-family: "Work Sans", sans-serif; }
.rr-acts { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rr-acts span { height: 44px; border-radius: 10px; border: 1px solid #232b27; background: #161c19; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 700; }
.rr-done { margin-top: 10px; height: 48px; border-radius: 10px; background: #34d399; color: #0b1410; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; transition: transform .12s; }
.rr-done.pressed { transform: scale(.97); }

/* The mouse pointer: its tip is the point it clicks. */
.hd-cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 22px; height: 22px; opacity: 0; transition: transform .7s cubic-bezier(.45, .05, .25, 1), opacity .3s; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55)); }
.hd-cursor.on { opacity: 1; }
.hd-cursor svg { display: block; width: 22px; height: 22px; transition: transform .12s; transform-origin: 3px 2px; }
.hd-cursor.down svg { transform: scale(.86); }
.hd-click { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(52, 211, 153, .9); opacity: 0; pointer-events: none; }
.hd-cursor.down .hd-click { animation: hd-click .45s ease-out; }
@keyframes hd-click { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(1.8); } }
.hd-key .n { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; }
.hd-complete { white-space: nowrap; gap: 8px; }
@media (max-width: 560px) {
  .hd-top { height: 40px; padding: 0 12px; font-size: 12.5px; }
  .hd { height: 400px; }
  .hd-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 270px; }
  .hd-left { padding: 9px; }
  .hd-right { padding: 10px; }
  .hd-grid { gap: 5px; }
  .hd-key { padding: 5px; border-radius: 8px; }
  .hd-key.mb .n { font-size: 10.5px; }
  .hd-key.mb svg { width: 14px; height: 14px; right: 5px; bottom: 5px; }
  .hd-key .n { font-size: 8.5px; }
  .hd-key .p { font-size: 9px; }
  .hd-key .pic { display: none; }
  .hd-line { font-size: 11px; padding: 6px 0; }
  .hd-complete { height: 40px; padding: 0 9px; gap: 4px; font-size: 10.5px; }
  .hd-complete span { font-size: 14px; }
  .hd-cursor, .hd-cursor svg { width: 18px; height: 18px; }
}

