/* Landing page - the owner portal's look (panel/assets/css/style.css tokens):
   soft grey page, white cards with 16 px corners, the logo colours (teal accent
   on light, cyan on dark, amber second), Inter for
   Latin and Readex Pro for Arabic (both self-hosted: the site CSP blocks
   external fonts). Light/dark follow the system unless the visitor picked one
   in the panel (localStorage panel_theme -> data-theme). Smooth scrolling and
   reveal animations run only when the system allows motion. Layout uses
   logical properties, so the Arabic page mirrors without extra rules. */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(fonts/inter-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;
}
@font-face {
    font-family: 'Readex Pro';
    font-style: normal;
    font-display: swap;
    font-weight: 160 700;
    src: url(fonts/readex-pro-arabic.woff2) format('woff2-variations');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Readex Pro';
    font-style: normal;
    font-display: swap;
    font-weight: 160 700;
    src: url(fonts/readex-pro-latin-ext.woff2) format('woff2-variations');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Readex Pro';
    font-style: normal;
    font-display: swap;
    font-weight: 160 700;
    src: url(fonts/readex-pro-latin.woff2) format('woff2-variations');
    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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Logo wordmark only (brand/ holds the logo files) */
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url(fonts/unbounded-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;
}

/* ---------------------------------------------------------------- tokens */
:root {
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bg: #f5f6fa;
    --surface: #ffffff;
    --surface-2: #f8f9fc;
    --surface-3: #f1f3f8;
    --border: #e5e7ef;
    --border-strong: #d3d7e3;
    --text: #101828;
    --text-2: #475467;
    --muted: #8a93a6;
    --accent: #0e6f86;
    --accent-hover: #0b5a6d;
    --accent-soft: #e2f6fa;
    --accent-ink: #0a5568;
    --accent-2: #22d3ee;
    --on-accent: #ffffff;
    --amber: #ffb020;
    --success: #067647;
    --success-bg: #ecfdf3;
    --glow-1: rgba(34, 211, 238, .2);
    --glow-2: rgba(255, 176, 32, .12);
    --glow-3: rgba(14, 111, 134, .1);
    --bg-line: rgba(14, 111, 134, .2);
    --scan: #0e6f86;
    --scan-glow: rgba(14, 111, 134, .35);
    --spot: rgba(34, 211, 238, .12);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-md: 0 8px 24px -6px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .05);
    --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, .22);
    --ring: 0 0 0 4px rgba(14, 111, 134, .2);
    --nav-h: 68px;
    --ease: cubic-bezier(.16, 1, .3, 1);
    color-scheme: light;
}
html[dir="rtl"] { --font: 'Readex Pro', 'Inter', system-ui, Tahoma, sans-serif; }
:root[data-theme="dark"] {
    --bg: #0b0d16;
    --surface: #131726;
    --surface-2: #171c2e;
    --surface-3: #1d2338;
    --border: #252c43;
    --border-strong: #323a55;
    --text: #eef0f7;
    --text-2: #b3bad0;
    --muted: #7c849e;
    --accent: #22d3ee;
    --accent-hover: #67e8f9;
    --accent-soft: rgba(34, 211, 238, .13);
    --accent-ink: #67e8f9;
        --accent-2: #ffb020;
        --on-accent: #0b0d16;
        --ring: 0 0 0 4px rgba(34, 211, 238, .25);
    --success: #47cd89;
    --success-bg: rgba(23, 178, 106, .14);
    --glow-1: rgba(34, 211, 238, .16);
    --glow-2: rgba(255, 176, 32, .08);
    --glow-3: rgba(14, 111, 134, .3);
    --bg-line: rgba(34, 211, 238, .2);
    --scan: #22d3ee;
    --scan-glow: rgba(34, 211, 238, .55);
    --spot: rgba(34, 211, 238, .08);
    --shadow-md: 0 8px 24px -6px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg: #0b0d16;
        --surface: #131726;
        --surface-2: #171c2e;
        --surface-3: #1d2338;
        --border: #252c43;
        --border-strong: #323a55;
        --text: #eef0f7;
        --text-2: #b3bad0;
        --muted: #7c849e;
        --accent: #22d3ee;
        --accent-hover: #67e8f9;
        --accent-soft: rgba(34, 211, 238, .13);
        --accent-ink: #67e8f9;
        --accent-2: #ffb020;
        --on-accent: #0b0d16;
        --ring: 0 0 0 4px rgba(34, 211, 238, .25);
        --success: #47cd89;
        --success-bg: rgba(23, 178, 106, .14);
        --glow-1: rgba(34, 211, 238, .16);
        --glow-2: rgba(255, 176, 32, .08);
        --glow-3: rgba(14, 111, 134, .3);
        --bg-line: rgba(34, 211, 238, .2);
        --scan: #22d3ee;
        --scan-glow: rgba(34, 211, 238, .55);
        --spot: rgba(34, 211, 238, .08);
        --shadow-md: 0 8px 24px -6px rgba(0, 0, 0, .5);
        --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .6);
        color-scheme: dark;
    }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
svg { flex-shrink: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }
::selection { background: var(--accent-soft); color: var(--accent-ink); }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.skip {
    position: fixed; inset-inline-start: 16px; top: -60px; z-index: 100;
    padding: 10px 16px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-weight: 600;
    transition: top .2s;
}
.skip:focus { top: 12px; }

/* Reading progress (scroll-driven; browsers without it just don't show the bar) */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
        .progress {
            display: block; position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 60;
            background: linear-gradient(90deg, var(--accent), var(--accent-2));
            transform-origin: 0 50%; transform: scaleX(0);
            animation: progress linear both; animation-timeline: scroll(root);
        }
        html[dir="rtl"] .progress { transform-origin: 100% 50%; }
    }
}
@keyframes progress { to { transform: scaleX(1); } }

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding-inline: 20px; border-radius: var(--radius);
    background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; white-space: nowrap;
    box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255, 255, 255, .12);
    transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { height: 38px; padding-inline: 14px; font-size: 14px; }
.btn-lg { height: 52px; padding-inline: 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-soft { background: var(--accent-soft); color: var(--accent-ink); box-shadow: none; }
.btn-soft:hover { background: var(--accent); color: var(--on-accent); }
.btn-light { background: #22d3ee; color: #0b0d16; }
.btn-light:hover { background: #67e8f9; }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); box-shadow: none; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.icon-btn {
    display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius);
    color: var(--text-2); transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.when-dark { display: none; }
:root[data-theme="dark"] .when-light { display: none; }
:root[data-theme="dark"] .when-dark { display: inline-flex; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .when-light { display: none; }
    :root:not([data-theme]) .when-dark { display: inline-flex; }
}

/* ---------------------------------------------------------------- header */
.nav {
    position: sticky; top: 0; z-index: 50; height: var(--nav-h);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); background: color-mix(in srgb, var(--surface) 86%, transparent); }
.nav-inner { display: flex; align-items: center; gap: 16px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
/* Logo colours: cream / cyan on dark, ink / teal on light (cyan is too pale on white) */
.brand-mark { display: block; width: 36px; height: 36px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand-name {
    font-family: 'Unbounded', var(--font); font-weight: 700; font-size: 16px; letter-spacing: -.03em;
    text-transform: lowercase; white-space: nowrap; direction: ltr;
}
.brand-name > span { color: #0e6f86; }
:root[data-theme="dark"] .brand-name > span { color: #22d3ee; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .brand-name > span { color: #22d3ee; } }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-links a:not(.btn) {
    padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 15px; font-weight: 500;
    transition: color .2s, background .2s;
}
.nav-links a:not(.btn):hover { color: var(--text); background: var(--surface-3); }
.nav-links a.is-active { color: var(--accent-ink); background: var(--accent-soft); }
.nav-sep, .nav-only-panel { display: none; }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-lang {
    display: inline-flex; align-items: center; gap: 6px; height: 38px; padding-inline: 10px; border-radius: var(--radius);
    color: var(--text-2); font-size: 14px; font-weight: 500; transition: background .2s, color .2s;
}
.nav-lang:hover { background: var(--surface-3); color: var(--text); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-grid; }
    .nav-wide { display: none; }
    .nav-actions { margin-inline-start: auto; }
    .js .nav-links {
        position: absolute; inset-inline: 12px; top: calc(var(--nav-h) - 4px);
        flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
        opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; visibility: hidden;
        transition: opacity .2s, transform .25s var(--ease), visibility .25s;
    }
    .js .nav.is-open .nav-links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
    .js .nav-links a:not(.btn) { padding: 12px 14px; font-size: 16px; }
    .js .nav-sep { display: block; height: 1px; margin: 6px 4px; background: var(--border); }
    .js .nav-only-panel { display: flex; }
    .js .nav-links .btn { margin-top: 4px; height: 44px; }
    /* Without JavaScript the links simply wrap under the bar */
    html:not(.js) .nav { height: auto; }
    html:not(.js) .nav-inner { flex-wrap: wrap; padding-block: 10px; }
    html:not(.js) .nav-links { order: 3; width: 100%; overflow-x: auto; margin: 0; }
    html:not(.js) .nav-toggle { display: none; }
}
@media (max-width: 420px) { .nav-lang span { display: none; } .brand-name { font-size: 13px; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px); }

/* Page backdrop (fixed behind every section), in the logo's colours: a
   dot-matrix texture toward the edges, three drifting light pools (cyan,
   amber, teal) that also turn as the page scrolls, a grid floor in
   perspective rolling toward the visitor, a barcode-scanner beam sweeping
   down now and then, and a soft light that follows the pointer (landing.js
   sets --mx / --my). Still, with no beam, when the system asks for reduced motion. */
.page-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; contain: strict; will-change: transform; }
.page-bg::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(var(--bg-line) 1px, transparent 1.6px); background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 35%, #000 100%);
    mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 35%, #000 100%);
}
.bg-aurora { position: absolute; inset: 0; }
.bg-aurora i { position: absolute; border-radius: 50%; will-change: transform; }
.bg-aurora i:nth-child(1) { width: min(60vw, 760px); aspect-ratio: 1; top: -22%; inset-inline-start: -14%; background: radial-gradient(closest-side, var(--glow-1), transparent); }
.bg-aurora i:nth-child(2) { width: min(48vw, 600px); aspect-ratio: 1; top: -16%; inset-inline-end: -12%; background: radial-gradient(closest-side, var(--glow-2), transparent); }
.bg-aurora i:nth-child(3) { width: min(56vw, 700px); aspect-ratio: 1; bottom: -24%; inset-inline-start: 26%; background: radial-gradient(closest-side, var(--glow-3), transparent); }
.bg-grid {
    position: absolute; inset-inline: -40%; bottom: -4%; height: 46%; overflow: hidden;
    transform: perspective(480px) rotateX(64deg); transform-origin: 50% 100%;
    -webkit-mask-image: radial-gradient(ellipse 65% 100% at 50% 100%, #000 30%, transparent 78%);
    mask-image: radial-gradient(ellipse 65% 100% at 50% 100%, #000 30%, transparent 78%);
}
.bg-grid::before {
    content: ''; position: absolute; inset: -56px 0 0; will-change: transform;
    background-image: linear-gradient(var(--bg-line) 1px, transparent 1px), linear-gradient(90deg, var(--bg-line) 1px, transparent 1px);
    background-size: 56px 56px; background-position: 50% 0;
}
/* The light is drawn once and moved (transform only): landing.js sets its position. */
.bg-spot {
    position: absolute; top: -420px; left: -420px; width: 840px; height: 840px; opacity: 0;
    background: radial-gradient(closest-side, var(--spot), transparent); transition: opacity .5s; will-change: transform, opacity;
}
.page-bg.is-lit .bg-spot { opacity: 1; }
.bg-scan { position: absolute; inset: 0; opacity: 0; transform: translateY(-100%); will-change: transform, opacity; }
.bg-scan::before {
    content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 260px;
    background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--scan) 3%, transparent));
}
.bg-scan::after {
    content: ''; position: absolute; inset-inline: 8%; bottom: 0; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--scan) 20%, var(--scan) 80%, transparent);
    box-shadow: 0 0 16px 2px var(--scan-glow);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
    color: var(--text-2); font-size: 13px; font-weight: 500;
}
html[dir="rtl"] .chip { padding: 6px 10px 6px 14px; }
.chip-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-bg); }
.chip-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: var(--success-bg); opacity: 0; }
.hero h1 { margin-top: 20px; font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; letter-spacing: -.035em; }
html[dir="rtl"] .hero h1 { font-weight: 700; }
.lead { margin-top: 18px; max-width: 34em; font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--text-2); font-size: 14px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { color: var(--success); }

/* Demo till */
.till {
    position: relative; padding: 20px; border-radius: var(--radius-xl);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.till-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.till-title { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; }
.till-title svg { color: var(--accent); }
.till-hint { color: var(--muted); font-size: 13px; }
.till-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.product {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; text-align: start;
    border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border);
    transition: border-color .2s, background .2s, transform .15s var(--ease);
}
.product:hover { border-color: var(--accent); background: var(--accent-soft); }
.product.is-tapped { transform: scale(.96); }
.product-name { font-size: 14px; font-weight: 600; }
.product-price { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.till-order { margin-top: 16px; padding: 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px dashed var(--border-strong); min-height: 112px; }
.till-order-title { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
html[dir="rtl"] .till-order-title { text-transform: none; letter-spacing: 0; }
.till-lines { margin-top: 8px; display: grid; gap: 6px; }
.till-lines:not(:empty) + .till-empty { display: none; }
.till-empty { margin-top: 10px; color: var(--muted); font-size: 14px; }
.till-line { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; font-size: 14px; animation: line-in .3s var(--ease); }
.till-line-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.till-line-total { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 84px; text-align: end; }
.qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.qty button { width: 28px; height: 28px; border-radius: 7px; font-size: 16px; color: var(--text-2); }
.qty button:hover { background: var(--surface-3); color: var(--text); }
.qty output { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.till-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.till-total { display: flex; flex-direction: column; color: var(--muted); font-size: 13px; }
.till-total strong { color: var(--text); font-size: 22px; font-variant-numeric: tabular-nums; }
.till-charge { min-width: 120px; }
.till-paid {
    position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px;
    border-radius: inherit; background: color-mix(in srgb, var(--surface) 94%, transparent);
    color: var(--success); font-weight: 600; font-size: 17px; animation: fade-in .25s ease;
}
.till-paid svg { animation: pop .45s var(--ease); }
@keyframes line-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); } }

/* ---------------------------------------------------------------- made for */
.madefor { text-align: center; padding-bottom: clamp(40px, 6vw, 72px); }
.madefor h2 { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.madefor-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.madefor-list li {
    padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
    box-shadow: var(--shadow-xs); font-size: 15px; font-weight: 500; color: var(--text-2);
}

/* ---------------------------------------------------------------- sections */
.section { padding-block: clamp(44px, 6vw, 80px); }
.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(32px, 4vw, 48px); }
.kicker {
    display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
    font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.section-head h2 { margin-top: 14px; font-size: clamp(28px, 3.6vw, 42px); }
.section-lead { margin-top: 14px; color: var(--text-2); font-size: 17px; }
.card {
    background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 26px; }
.feature:hover, .step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.feature-icon {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius);
    background: var(--accent-soft); color: var(--accent); transition: transform .3s var(--ease);
}
.feature:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
.feature h3, .step h3 { margin-top: 18px; font-size: 18px; }
.feature p, .step p { margin-top: 8px; color: var(--text-2); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; position: relative; }
.step { padding: 26px; position: relative; }
.step-num {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--accent); color: var(--on-accent); font-weight: 700; box-shadow: var(--shadow-sm);
}

.devices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(24px, 4vw, 44px); }
.devices h2 { font-size: clamp(24px, 3vw, 32px); }
.devices p { margin-top: 12px; color: var(--text-2); }
.devices-list { display: grid; gap: 12px; }
.devices-list li {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius);
    background: var(--surface-2); border: 1px solid var(--border); font-weight: 600;
}

/* Prices: cards like the portal's duration choice */
.pricing-trial {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 14px; border-radius: 999px;
    background: var(--success-bg); color: var(--success); font-size: 14px; font-weight: 600;
}
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.price {
    position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px 20px 20px;
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.price.is-best { border: 2px solid var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 60%); box-shadow: var(--shadow-md); }
.price-badge {
    position: absolute; top: -12px; inset-inline-start: 50%; transform: translateX(-50%);
    padding: 3px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; white-space: nowrap;
}
html[dir="rtl"] .price-badge { transform: translateX(50%); }
.price-months { font-weight: 600; color: var(--text-2); }
.price-total { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-per { color: var(--muted); font-size: 14px; }
.price-save { color: var(--success); font-size: 14px; font-weight: 600; }
.price .btn { margin-top: auto; }
.price-save + .btn { margin-top: 14px; }
.pricing-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; color: var(--muted); font-size: 14px; text-align: center; }

/* FAQ: native details, opening smoothly where the browser can animate it */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq-item { overflow: hidden; }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.faq-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); color: var(--text-2); transition: transform .3s var(--ease), background .2s, color .2s; }
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq-item[open] .faq-mark { transform: rotate(180deg); background: var(--accent-soft); color: var(--accent); }
.faq-item p { padding: 0 22px 20px; color: var(--text-2); }
@supports (interpolate-size: allow-keywords) {
    @media (prefers-reduced-motion: no-preference) {
        :root { interpolate-size: allow-keywords; }
        .faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
        .faq-item[open]::details-content { block-size: auto; }
    }
}

/* Closing band */
.band {
    position: relative; overflow: hidden; text-align: center; padding: clamp(36px, 6vw, 64px) 24px; border-radius: var(--radius-xl);
    background: radial-gradient(600px 300px at 100% 0%, rgba(34, 211, 238, .28), transparent 70%), radial-gradient(500px 260px at 0% 100%, rgba(255, 176, 32, .14), transparent 70%), #0b0d16; color: #f4f1ea; border: 1px solid rgba(34, 211, 238, .18); box-shadow: var(--shadow-lg);
}
.band::before {
    content: ''; position: absolute; inset: -40% -20% auto auto; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, .12), transparent 65%); pointer-events: none;
}
.band h2 { font-size: clamp(26px, 3.4vw, 38px); position: relative; }
.band p { margin: 12px auto 0; max-width: 36em; color: rgba(255, 255, 255, .86); font-size: 17px; position: relative; }
.band-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; position: relative; }

/* ---------------------------------------------------------------- footer */
.footer { margin-top: clamp(24px, 4vw, 48px); border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 82%, transparent); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-block: 48px 28px; }
.footer-brand p { margin-top: 12px; color: var(--text-2); max-width: 26em; font-size: 15px; }
.footer-brand .footer-maker { margin-top: 18px; }

/* "Wonzilla product" plate: the plate under the register in the logo, with the
   display's amber light and a slow shine (same as the panel's .maker-plate). */
.maker-plate {
    position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 9px; background: #0b0d16; border: 1.5px solid #22d3ee; color: #22d3ee;
    font-family: 'Readex Pro', var(--font); font-size: 11.5px; font-weight: 600; line-height: 1.2;
    letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; direction: ltr;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .08), 0 6px 18px -8px rgba(34, 211, 238, .5);
    transition: transform .3s var(--ease), box-shadow .3s;
}
a.maker-plate:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(34, 211, 238, .14), 0 10px 24px -8px rgba(34, 211, 238, .6); }
html[dir="rtl"] .maker-plate { letter-spacing: .16em; }
.maker-plate i { width: 6px; height: 6px; border-radius: 50%; background: #ffb020; box-shadow: 0 0 6px #ffb020; }
.maker-plate::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%) no-repeat;
    background-size: 250% 100%; background-position: 160% 0;
}
@media (prefers-reduced-motion: no-preference) {
    .maker-plate::after { animation: plate-shine 6s ease-in-out infinite; }
    .maker-plate i { animation: plate-led 3s ease-in-out infinite; }
}
@keyframes plate-shine { 0%, 55% { background-position: 160% 0; } 85%, 100% { background-position: -60% 0; } }
@keyframes plate-led { 50% { opacity: .45; box-shadow: none; } }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
html[dir="rtl"] .footer-col h2 { text-transform: none; letter-spacing: 0; }
.footer-col a { color: var(--text-2); font-size: 15px; width: fit-content; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-copy { padding-block: 18px 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

.to-top {
    position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40;
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-md);
    opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .2s;
}
.to-top svg { transform: rotate(180deg); }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s); }
    .js .reveal.is-in { opacity: 1; transform: none; }
    .bg-aurora i:nth-child(1) { animation: aurora-a 17s ease-in-out infinite alternate; }
    .bg-aurora i:nth-child(2) { animation: aurora-b 21s ease-in-out infinite alternate; }
    .bg-aurora i:nth-child(3) { animation: aurora-c 25s ease-in-out infinite alternate; }
    .bg-grid::before { animation: grid-roll 3.5s linear infinite; }
    .bg-scan { animation: scan 11s cubic-bezier(.45, 0, .55, 1) 1.5s infinite; }
    @supports (animation-timeline: scroll()) {
        .bg-aurora { animation: aurora-scroll linear both; animation-timeline: scroll(root); }
    }
    .till.is-in { animation: float 7s ease-in-out 1s infinite; }
    .chip-dot::after { animation: pulse 2.4s ease-out infinite; }
}
@keyframes aurora-a { to { transform: translate3d(14%, 10%, 0) scale(1.12); } }
@keyframes aurora-b { to { transform: translate3d(-12%, 16%, 0) scale(.9); } }
@keyframes aurora-c { to { transform: translate3d(-18%, -12%, 0) scale(1.18); } }
@keyframes aurora-scroll { to { transform: rotate(28deg) scale(1.15); } }
@keyframes grid-roll { to { transform: translateY(56px); } }
@keyframes scan {
    0% { transform: translateY(-100%); opacity: 0; }
    4% { opacity: 1; }
    30% { transform: translateY(0); opacity: 1; }
    34%, 100% { transform: translateY(0); opacity: 0; }
}
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(1.8); opacity: 0; } }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; }
    .till { max-width: 560px; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: 1fr; }
    .devices { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .wrap { padding-inline: 16px; }
    .feature-grid { grid-template-columns: 1fr; }
    .hero-cta .btn { flex: 1 1 100%; }
    .till { padding: 16px; border-radius: var(--radius-lg); }
    .till-line-total { min-width: 72px; }
    .price-grid { grid-template-columns: 1fr 1fr; }
    .price-total { font-size: 24px; }
}
@media (max-width: 340px) { .price-grid { grid-template-columns: 1fr; } }
@media print { .nav, .to-top, .progress, .page-bg { display: none !important; } }
