/*
 * Floosi landing page.
 * Brand tokens: Floosi_Brand_Kit_v1/09_Developer (teal #007199, orange #FF6500, ink #12313F,
 * surface #F4F8FA, Montserrat for Latin, Cairo for Arabic, radius 10px buttons / 16px cards).
 * Layout uses logical properties only, so one stylesheet serves both RTL and LTR.
 */

/* ---------- Fonts ---------------------------------------------------------
 * "Floosi AR": Cairo for Arabic script, Montserrat for Latin letters and digits
 * (slightly reduced so its wide digits sit evenly next to Cairo).
 * "Floosi EN": Montserrat, with Cairo only for Arabic characters.
 */
@font-face {
    font-family: "Floosi AR";
    src: url("../fonts/cairo.woff2") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+2010-2011, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: "Floosi AR";
    src: url("../fonts/montserrat.woff2") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
    size-adjust: 94%;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-200B, U+2012-206F, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Floosi EN";
    src: url("../fonts/montserrat.woff2") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Floosi EN";
    src: url("../fonts/cairo.woff2") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

/* ---------- Tokens -------------------------------------------------------- */
:root {
    --teal: #007199;
    --teal-hover: #00658a;
    --teal-deep: #005a7a;
    --teal-50: #eaf4f8;
    --teal-100: #d3e9f1;
    --teal-200: #a9d4e4;
    --teal-300: #6cc4e4; /* teal that stays readable on ink */
    --orange: #ff6500;
    --orange-hover: #ff7b26;
    --orange-50: #fff0e5;
    --orange-ink: #a33f00; /* orange for small text on light surfaces (AA) */
    --ink: #12313f;
    --ink-2: #1a4253;
    --text: #12313f;
    --muted: #536d7c;
    --line: rgba(18, 49, 63, .1);
    --line-2: rgba(18, 49, 63, .17);
    --surface: #f4f8fa;
    --white: #ffffff;

    --radius-btn: 10px;
    --radius-card: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 1px 2px rgba(18, 49, 63, .06), 0 1px 1px rgba(18, 49, 63, .03);
    --shadow-md: 0 14px 34px -14px rgba(18, 49, 63, .22), 0 3px 8px -3px rgba(18, 49, 63, .08);
    --shadow-lg: 0 48px 90px -36px rgba(4, 35, 48, .55), 0 14px 30px -14px rgba(4, 35, 48, .3);

    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --header-h: 76px;
    --ease: cubic-bezier(.16, 1, .3, 1);

    /* "Omani Rial Sign" (public/omani-rial/omani-rial.css) only covers U+20C4. */
    --font: "Omani Rial Sign", "Floosi AR", "Segoe UI", Tahoma, system-ui, sans-serif;
    --lh: 1.85;
    --lh-tight: 1.3;
    --track: 0;
    --to-end: left;
    --origin-start: right;
}
/* Latin-script typography for every non-Arabic page (the login page offers all app languages). */
:root:not(:lang(ar)) {
    --font: "Omani Rial Sign", "Floosi EN", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --lh: 1.6;
    --lh-tight: 1.1;
    --track: -0.025em;
}
:root[dir="ltr"] {
    --to-end: right;
    --origin-start: left;
}

/* ---------- Base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
    margin: 0;
    min-width: 320px;
    overflow-x: clip;
    font-family: var(--font);
    font-size: 17px;
    line-height: var(--lh);
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
html:not(:lang(ar)) body { font-size: 16px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
::selection { background: var(--teal); color: var(--white); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
    position: absolute; inset-inline-start: 16px; top: -80px; z-index: 100;
    padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--white); font-weight: 700;
}
.skip:focus { top: 12px; }
.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.num { font-variant-numeric: tabular-nums lining-nums; }
/* An amount in Omani Rials: <span class="money" dir="ltr"><span class="money__sign">SIGN</span> 1.000</span>.
 * dir="ltr" keeps the sign left of the number on Arabic pages too, as the Central Bank's
 * guidelines require. The sign is as tall as the digits; Arabic pages draw digits at 94%. */
.money { white-space: nowrap; }
:root:lang(ar) .money__sign { font-size: 94%; }
.nowrap { white-space: nowrap; }

/* Icons */
.i {
    width: 20px; height: 20px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.tick { width: 18px; height: 18px; flex: none; fill: var(--orange); }
[dir="rtl"] .i--dir { transform: scaleX(-1); }

/* ---------- Buttons ------------------------------------------------------- */
.btn {
    --h: 48px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: var(--h); padding-inline: 22px;
    border: 1px solid transparent; border-radius: var(--radius-btn);
    font-size: 16px; font-weight: 700; line-height: 1.2; white-space: nowrap;
    transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .i { width: 18px; height: 18px; }
.btn--sm { --h: 40px; padding-inline: 16px; font-size: 15px; }
.btn--lg { --h: 56px; padding-inline: 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--orange-hover); box-shadow: 0 10px 24px -12px rgba(255, 101, 0, .7); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-2); }
.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: var(--teal-hover); }
.btn--light { background: rgba(255, 255, 255, .1); color: var(--white); border-color: rgba(255, 255, 255, .38); }
.btn--light:hover { background: rgba(255, 255, 255, .18); }
.btn[disabled] { border-color: var(--line-2); background: var(--surface); color: rgba(18, 49, 63, .45); cursor: not-allowed; box-shadow: none; transform: none; }

/* Chips */
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 26px; padding-inline: 10px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--white);
    font-size: 12.5px; font-weight: 700; line-height: 1; white-space: nowrap; color: var(--ink);
}
.chip .i { width: 14px; height: 14px; }
.chip .tick { width: 12px; height: 12px; }
.chip--ok { border-color: transparent; background: var(--teal-50); color: var(--teal-deep); }
.chip--warn { border-color: transparent; background: var(--orange-50); color: var(--orange-ink); }
.chip--warn .i { color: var(--orange-ink); }
.chip--accent { border-color: transparent; background: var(--orange); color: var(--ink); }

/* Check lists */
.checks { display: grid; gap: 14px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }
.checks .tick { width: 16px; height: 16px; margin-top: .42em; }

/* ---------- Header -------------------------------------------------------- */
.hdr {
    position: sticky; top: 0; z-index: 50;
    transition: background-color .3s, box-shadow .3s;
}
.hdr.is-scrolled {
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 var(--line);
}
/* backdrop-filter would make the header the containing block of the fixed menu, so drop it while open. */
.menu-open .hdr, .menu-open .hdr.is-scrolled {
    background: var(--white);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 1px 0 var(--line);
}
.hdr__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.hdr__brand { flex: none; }
.hdr__logo { width: 148px; height: auto; }
.hdr__nav { flex: 1; }
.hdr__nav ul { display: flex; justify-content: center; gap: 2px; }
.hdr__nav a {
    display: block; padding: 8px 13px; border-radius: 8px;
    font-size: 15px; font-weight: 700; color: var(--muted);
    transition: color .2s, background-color .2s;
}
.hdr__nav a:hover { color: var(--ink); background: rgba(18, 49, 63, .05); }
.hdr__actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.hdr__lang, .hdr__login {
    display: inline-flex; align-items: center; gap: 7px;
    height: 40px; padding-inline: 11px; border-radius: 8px;
    font-size: 15px; font-weight: 700; color: var(--muted);
    transition: color .2s, background-color .2s;
}
.hdr__lang .i { width: 18px; height: 18px; }
.hdr__login { color: var(--ink); }
.hdr__lang:hover, .hdr__login:hover { color: var(--ink); background: rgba(18, 49, 63, .05); }
.hdr__cta { margin-inline-start: 6px; }
.hdr__burger {
    display: none; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px;
    border: 1px solid var(--line-2); background: var(--white);
}

.mnav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 49;
    display: flex; flex-direction: column; gap: 28px;
    padding: 12px var(--gutter) 32px; overflow-y: auto;
    background: var(--white); border-top: 1px solid var(--line);
}
.mnav__link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 2px; border-bottom: 1px solid var(--line);
    font-size: 21px; font-weight: 800;
}
.mnav__link .i { color: var(--muted); }
.mnav__actions { display: grid; gap: 10px; }
.mnav__lang {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; font-weight: 700; color: var(--muted);
}
.menu-open { overflow: hidden; }

@media (max-width: 1060px) {
    .hdr__nav, .hdr__login { display: none; }
    .hdr__burger { display: inline-flex; }
}
@media (max-width: 600px) {
    .hdr__cta { display: none; }
    .hdr__lang span { display: none; }
    .hdr__lang { width: 44px; justify-content: center; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; }
}

/* ---------- Section scaffolding ------------------------------------------ */
.sec { padding-block: clamp(80px, 9vw, 124px); }
.sec-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-label {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 14.5px; font-weight: 800; color: var(--teal);
}
.sec-label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }
.sec-label .num { color: var(--muted); font-weight: 700; }
.sec-label .num::after { content: "/"; margin-inline-start: 10px; color: var(--line-2); }
:not(:lang(ar)) .sec-label { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.sec-title {
    margin-top: 16px;
    font-size: clamp(2.05rem, 1.25rem + 2.7vw, 3.55rem);
    font-weight: 800; line-height: var(--lh-tight); letter-spacing: var(--track);
    color: var(--ink); text-wrap: balance;
}
.sec-lead {
    margin-top: 18px; max-width: 40em;
    font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); color: var(--muted); text-wrap: pretty;
}
.sec-head--light .sec-label { color: var(--teal-300); }
.sec-head--light .sec-label .num { color: rgba(255, 255, 255, .55); }
.sec-head--light .sec-label .num::after { color: rgba(255, 255, 255, .25); }
.sec-head--light .sec-title { color: var(--white); }
.sec-head--light .sec-lead { color: rgba(255, 255, 255, .72); }

/* ---------- Hero ---------------------------------------------------------- */
.hero {
    position: relative; isolation: isolate;
    padding-block: clamp(28px, 5vw, 64px) clamp(80px, 9vw, 128px);
}
/* Ledger paper: faint ruled lines with a double margin rule, fading out downwards. */
.hero::before {
    content: ""; position: absolute; z-index: -2;
    inset: calc(var(--header-h) * -1) 0 0;
    background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(0, 113, 153, .075) 39px 40px);
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
    mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
}
.hero::after {
    content: ""; position: absolute; z-index: -1;
    top: calc(var(--header-h) * -1); bottom: 0; width: 5px;
    inset-inline-start: max(12px, calc((100% - var(--wrap)) / 2 - 36px));
    border-inline: 1px solid rgba(255, 101, 0, .35);
    -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 88%);
    mask-image: linear-gradient(to bottom, #000 25%, transparent 88%);
}
.hero__grid {
    display: grid; align-items: center;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    gap: clamp(40px, 5vw, 80px);
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    height: 34px; padding-inline: 12px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm);
    font-size: 14px; font-weight: 800; color: var(--teal);
}
.eyebrow__mark { width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }
.hero__title {
    margin-top: 22px;
    font-size: clamp(3.1rem, 1.5rem + 5.6vw, 6.1rem);
    font-weight: 900; line-height: 1.16; letter-spacing: var(--track);
    color: var(--ink);
}
:not(:lang(ar)) .hero__title {
    font-size: clamp(2.7rem, 1.3rem + 4vw, 4.5rem);
    font-weight: 800; line-height: 1.04; letter-spacing: -.045em;
}
.hero__line { display: block; }
.hero__line--accent { color: var(--teal); }
.hero__tick {
    display: inline-block; vertical-align: baseline;
    width: .6em; height: .6em; margin-inline-start: .14em;
}
.hero__lead {
    margin-top: 26px; max-width: 32em;
    font-size: clamp(1.07rem, 1rem + .35vw, 1.22rem); color: var(--muted); text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts {
    display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 34px;
    font-size: 14.5px; font-weight: 700; color: var(--ink);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .tick { width: 14px; height: 14px; }

/* The receipt scene */
.hero__visual { position: relative; }
/* Receipt on the reading-start side of the panel, insight cards overhanging the other side. */
.scene {
    --receipt-w: 280px;
    --receipt-inset: 9%;
    position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 1 / 1.12;
}
.scene__panel {
    position: absolute; inset-block: 0; inset-inline-start: 0; inset-inline-end: 9%; overflow: hidden;
    border-radius: 28px; box-shadow: var(--shadow-lg);
    background: radial-gradient(120% 70% at 60% 0%, #0a82ab 0%, var(--teal) 52%, #00618a 100%);
}
.scene__panel::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 30px 30px; background-position: -1px -1px;
    -webkit-mask-image: radial-gradient(90% 70% at 50% 40%, #000 30%, transparent 100%);
    mask-image: radial-gradient(90% 70% at 50% 40%, #000 30%, transparent 100%);
}
.printer {
    position: absolute; z-index: 2; top: 30px;
    inset-inline-start: calc(var(--receipt-inset) - 22px);
    width: calc(var(--receipt-w) + 44px); height: 24px; border-radius: 12px;
    background: linear-gradient(#103747, #0a2733);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 18px rgba(0, 0, 0, .28);
}
.printer__slot {
    position: absolute; top: 50%; left: 9%; right: 9%; height: 3px; translate: 0 -50%;
    border-radius: 3px; background: #03141b;
}
.feed {
    position: absolute; z-index: 1; top: 42px; bottom: 0;
    inset-inline-start: calc(var(--receipt-inset) - 24px);
    width: var(--receipt-w); padding-inline: 24px; overflow: hidden;
    box-sizing: content-box;
    filter: drop-shadow(0 22px 24px rgba(0, 0, 0, .3));
}

/* Thermal receipt (shared by the hero and the demo) */
.receipt {
    --zz: 8px;
    position: relative;
    padding: 24px 18px calc(18px + var(--zz));
    background: #fff; color: #1b2126;
    font-size: 12.5px; line-height: 1.6;
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 100%;
    mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 100%;
}
.receipt__head { display: grid; justify-items: center; gap: 1px; text-align: center; }
.receipt__logo { width: 104px; height: auto; margin-bottom: 10px; }
.receipt__store { font-size: 14px; font-weight: 800; }
.receipt__title { margin-top: 6px; padding: 1px 8px; border: 1px solid #1b2126; border-radius: 4px; font-size: 11px; font-weight: 800; }
.receipt__meta {
    display: flex; justify-content: space-between; gap: 8px;
    margin-top: 12px; padding-bottom: 10px; border-bottom: 1.5px dashed #9aa3a8;
    font-size: 11px; color: #4a545a;
}
/* One grid for all lines (subgrid), so quantities and amounts line up as columns. */
.receipt__lines {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 10px;
    padding-block: 8px; border-bottom: 1.5px dashed #9aa3a8;
}
.receipt__lines li {
    display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline;
    padding-block: 2px;
}
.receipt__name { overflow: hidden; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.receipt__qty { font-size: 11px; color: #5c666c; }
.receipt__amount { font-weight: 700; text-align: end; }
.receipt__totals { display: grid; gap: 1px; padding-block: 8px; }
.receipt__totals div { display: flex; justify-content: space-between; gap: 10px; }
.receipt__totals dt { color: #4a545a; }
.receipt__totals dd { font-weight: 700; }
.receipt__grand {
    margin-block: 6px; padding-block: 6px;
    border-block: 1.5px solid #1b2126;
    font-size: 15px;
}
.receipt__grand dt { color: #1b2126 !important; font-weight: 800; }
.receipt__grand dd { font-weight: 800; }
.receipt__barcode { width: 100%; height: 34px; margin-top: 10px; fill: #1b2126; }
.receipt__thanks { margin-top: 6px; text-align: center; font-size: 11.5px; font-weight: 700; color: #4a545a; }

/* Floating cards */
.fcard {
    position: absolute; z-index: 3;
    border: 1px solid var(--line); border-radius: 16px;
    background: var(--white); box-shadow: var(--shadow-md);
    padding: 14px 16px;
}
.fcard__label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.4; }
.fcard--sales { top: 15%; inset-inline-end: 0; width: 210px; }
.fcard__value {
    display: flex; align-items: baseline; gap: 5px; margin-top: 4px;
    font-size: 24px; font-weight: 800; line-height: 1.1; color: var(--ink); white-space: nowrap;
}
.spark { width: 100%; height: 40px; margin-top: 10px; overflow: visible; }
.spark__area { fill: rgba(0, 113, 153, .1); }
.spark__line { fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.fcard__delta { display: inline-flex; gap: 6px; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.3; }
.fcard__delta bdi { color: var(--teal); }
.fcard--stock {
    bottom: 13%; inset-inline-end: 0; width: 200px;
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center;
}
.fcard__icon {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
    background: var(--orange-50); color: var(--orange-ink);
}
.fcard__body { display: grid; line-height: 1.45; }
.fcard__item { font-size: 15px; font-weight: 800; color: var(--ink); }
.fcard__meta { font-size: 13px; font-weight: 700; color: var(--orange-ink); }
.fcard__action {
    grid-column: 1 / -1; justify-self: start;
    padding: 6px 12px; border-radius: 8px; background: var(--ink); color: var(--white);
    font-size: 12.5px; font-weight: 700; line-height: 1.4;
}

/* Hero motion (only with JS; final state is the static layout) */
.js .hero__tick { clip-path: inset(0 100% 0 0); animation: tick-draw .8s var(--ease) .6s forwards; }
.js .scene .receipt { transform: translateY(-101%); }
.js .scene.is-ready .receipt { animation: print 2.6s cubic-bezier(.5, 0, .3, 1) .3s forwards; }
.js .fcard { opacity: 0; transform: translateY(14px) scale(.97); }
.js .scene.is-ready .fcard { animation: rise .8s var(--ease) forwards; }
.js .scene.is-ready .fcard--sales { animation-delay: 1.15s; }
.js .scene.is-ready .fcard--stock { animation-delay: 2.6s; }
.js .spark__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .scene.is-ready .spark__line { animation: draw 1.4s var(--ease) 1.5s forwards; }
@keyframes tick-draw { to { clip-path: inset(0 0 0 0); } }
@keyframes print {
    0% { transform: translateY(-101%); }
    12%, 18% { transform: translateY(-82%); }
    32%, 38% { transform: translateY(-60%); }
    52%, 58% { transform: translateY(-37%); }
    72%, 78% { transform: translateY(-15%); }
    100% { transform: translateY(0); }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 980px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr); }
    .hero__copy { max-width: 640px; }
    .hero::after { display: none; }
}
@media (max-width: 480px) {
    .hero__actions .btn { flex: 1 1 100%; }
}
/* Phones: the receipt gets the full panel, the two cards sit side by side underneath it. */
@media (max-width: 560px) {
    .scene {
        --receipt-w: min(260px, calc(100% - 64px));
        --receipt-inset: calc((100% - var(--receipt-w)) / 2);
        display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px;
        aspect-ratio: auto;
    }
    .scene__panel { position: relative; inset: auto; grid-column: 1 / -1; padding-bottom: 24px; border-radius: 22px; }
    .feed { position: relative; top: auto; bottom: auto; inset-inline-start: auto; margin: 42px auto 0; }
    .receipt { font-size: 11.5px; padding-inline: 14px; }
    .receipt__logo { width: 88px; }
    .fcard { position: static; width: auto; padding: 12px; border-radius: 14px; }
    .fcard__value { font-size: 19px; }
    .spark { height: 26px; margin-top: 6px; }
    .fcard--stock { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; }
    .fcard__icon { display: none; }
    .fcard__item { font-size: 14px; }
    .fcard__action { margin-top: 2px; }
}

/* ---------- Statement ----------------------------------------------------- */
.statement {
    padding-block: clamp(88px, 11vw, 152px);
    background: var(--surface);
    border-block: 1px solid var(--line);
}
.statement__text {
    max-width: 20em;
    font-size: clamp(2rem, 1rem + 3.3vw, 3.9rem);
    font-weight: 800; line-height: 1.34; letter-spacing: var(--track); color: var(--ink);
}
:not(:lang(ar)) .statement__text { max-width: 17em; line-height: 1.12; letter-spacing: -.035em; }
.statement__line { display: block; opacity: var(--o, 1); transition: opacity .6s var(--ease); text-wrap: balance; }
.statement__line + .statement__line { margin-top: .12em; }
.js .statement__line { --o: .16; }
.js .statement__line.is-lit { --o: 1; }
.statement__line--accent { color: var(--teal); }
.statement__line .tick { display: inline-block; width: .56em; height: .56em; margin-inline-start: .14em; vertical-align: baseline; }
.statement__sub {
    margin-top: 40px; max-width: 33em;
    font-size: clamp(1.07rem, 1rem + .35vw, 1.25rem); color: var(--muted);
}

/* ---------- Features (bento) --------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 26px;
    grid-column: span 4;
    padding: clamp(22px, 2.4vw, 30px);
    border: 1px solid var(--line); border-radius: 22px; background: var(--surface);
}
.tile--wide { grid-column: span 7; }
.tile--narrow { grid-column: span 5; }
.tile__head { display: grid; gap: 10px; justify-items: start; }
.tile__icon {
    display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--white);
    color: var(--teal); box-shadow: var(--shadow-sm);
}
.tile__head h3 { font-size: 21px; font-weight: 800; line-height: 1.35; color: var(--ink); }
.tile__head p { max-width: 36em; font-size: 15.5px; color: var(--muted); }
.tile__visual { margin-top: auto; }

.ui {
    border: 1px solid var(--line); border-radius: 14px;
    background: var(--white); box-shadow: var(--shadow-sm);
    font-size: 13.5px; line-height: 1.5; color: var(--ink);
}
.ui-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding-inline: 14px; border: 1px solid var(--line-2); border-radius: 10px;
    background: var(--white); font-size: 13.5px; font-weight: 700;
}
.ui-btn .i { width: 17px; height: 17px; }
.ui-btn--ink { border-color: var(--ink); background: var(--ink); color: var(--white); }
.ui-btn--teal { border-color: var(--teal); background: var(--teal); color: var(--white); }
.ui-btn--teal .tick { fill: var(--white); width: 13px; height: 13px; }

/* Till tile */
.ui--pos { display: grid; gap: 12px; padding: 14px; }
.ui-search {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 10px;
    height: 44px; padding-inline: 12px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted);
}
.ui-search__beam {
    position: absolute; top: 7px; bottom: 7px; width: 2px; border-radius: 2px;
    inset-inline-start: 4%;
    background: var(--orange); box-shadow: 0 0 10px 2px rgba(255, 101, 0, .5);
    animation: beam 3.2s ease-in-out infinite;
}
@keyframes beam { 50% { inset-inline-start: 95%; } }
.ui-lines li {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px;
    padding: 10px 4px; border-bottom: 1px dashed var(--line-2);
}
.ui-lines li > span:first-child { font-weight: 700; }
.ui-lines li > span:nth-child(2) { color: var(--muted); font-size: 12.5px; }
.ui-lines__discount { color: var(--orange-ink); }
.ui-lines__discount > span:first-child { font-weight: 600 !important; }
.ui-total { display: flex; align-items: baseline; justify-content: space-between; padding-inline: 4px; font-weight: 800; }
.ui-total > b { font-size: 22px; }
.ui-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Stock tile */
.ui--stock { padding: 4px 16px; }
.stock-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px;
    padding-block: 13px; border-bottom: 1px solid var(--line);
}
.stock-row__name { font-weight: 700; }
.stock-row__qty { display: inline-flex; align-items: center; gap: 8px; }
.stock-row__qty b { min-width: 2ch; text-align: end; font-size: 15px; }
.stock-row__bar { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 6px; background: var(--teal-50); }
.stock-row__bar i {
    display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--teal);
    transform-origin: var(--origin-start) center;
}
.stock-row.is-low .stock-row__bar { background: var(--orange-50); }
.stock-row.is-low .stock-row__bar i { background: var(--orange); }
.ui-foot { display: flex; align-items: center; gap: 8px; padding-block: 12px 10px; font-size: 13px; font-weight: 700; color: var(--teal); }
.ui-foot .i { width: 17px; height: 17px; }

/* Branches tile */
.ui--branches { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; padding: 12px 16px 16px; }
.branch-list li {
    display: flex; align-items: center; gap: 8px;
    padding-block: 8px; border-bottom: 1px solid var(--line); font-weight: 700;
}
.branch-list .dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-50); }
.branch-list__state { margin-inline-start: auto; font-size: 11.5px; font-weight: 700; color: var(--teal); }
.role-list { display: grid; align-content: start; gap: 2px; }
.role-list li { display: flex; align-items: center; gap: 10px; padding-block: 6px; }
.role-list b { display: block; font-size: 13.5px; line-height: 1.3; }
.role-list small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.avatar {
    display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
    background: var(--teal-50); color: var(--teal); font-size: 13px; font-weight: 800; line-height: 1;
}
.ui-note {
    grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 8px;
    padding: 9px 12px; border-radius: 10px; background: var(--surface);
    font-size: 12.5px; font-weight: 700; color: var(--muted);
}
.ui-note .i { width: 16px; height: 16px; }

/* Reports tile */
.ui--chart { padding: 16px 16px 12px; }
.chart-kpis { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-bottom: 18px; }
.chart-kpis small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.chart-kpis b { font-size: 20px; font-weight: 800; line-height: 1.4; }
.bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; height: 150px; }
.bars__col { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; height: 100%; text-align: center; }
.bars__bar {
    align-self: end; height: var(--h); border-radius: 8px 8px 3px 3px; background: var(--teal-100);
    transform-origin: bottom;
}
.bars__col.is-peak .bars__bar { background: var(--teal); }
.bars__label { font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1; }

/* Purchasing tile */
.ui--po { padding: 14px 16px 6px; }
.po__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-weight: 800; }
.po__lines { margin-top: 8px; }
.po__lines li {
    display: flex; justify-content: space-between; gap: 12px;
    padding-block: 9px; border-top: 1px dashed var(--line-2); font-size: 13px;
}

/* Receipts & invoices tile */
.docs { display: flex; align-items: flex-end; justify-content: center; gap: 14px; height: 156px; padding-top: 6px; }
.doc { display: grid; align-content: start; gap: 6px; background: var(--white); box-shadow: var(--shadow-md); }
.doc i { display: block; height: 4px; border-radius: 2px; background: rgba(18, 49, 63, .13); }
.doc i.short { width: 60%; }
.doc--receipt {
    --zz: 5px;
    width: 96px; padding: 12px 10px calc(10px + var(--zz));
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 100%;
    mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 100%;
}
.doc__logo { width: 22px; margin: 0 auto 4px; }
.doc__qr { width: 44px; margin: 6px auto 0; fill: #1b2126; }
.doc--a4 { width: 132px; height: 150px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 6px 6px 0 0; border-bottom: 0; }
.doc__wordmark { width: 64px; margin-bottom: 8px; }
.doc__total { justify-self: end; width: 46%; height: 14px; margin-top: 6px; border-radius: 3px; background: var(--teal-100); }

/* Restaurant tile */
.ui--tables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.table-cell {
    display: grid; place-content: center; gap: 2px; min-height: 64px; padding: 6px;
    border: 1.5px dashed var(--line-2); border-radius: 10px; text-align: center; line-height: 1.3;
}
.table-cell b { font-size: 13px; }
.table-cell small { font-size: 11px; font-weight: 600; color: var(--muted); }
.table-cell.is-busy { border: 1.5px solid var(--teal); background: var(--teal); color: var(--white); }
.table-cell.is-busy small { color: rgba(255, 255, 255, .8); }
.table-cell.is-bill { border: 1.5px solid var(--orange); background: var(--orange-50); color: var(--orange-ink); }
.table-cell.is-bill small { color: var(--orange-ink); }

/* Add-on modules */
.modules {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
    margin-top: 16px; padding: 18px 22px;
    border: 1px dashed var(--line-2); border-radius: 18px;
}
.modules__label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.modules__label .i { color: var(--teal); }
.modules ul { display: flex; flex-wrap: wrap; gap: 8px; }
.modules li {
    display: inline-flex; align-items: center; height: 34px; padding-inline: 14px; border-radius: 999px;
    background: var(--surface); font-size: 14px; font-weight: 700; color: var(--muted);
}

/* Bento motion */
.js .tile[data-reveal] .bars__bar { transform: scaleY(.04); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms + 200ms); }
.js .tile[data-reveal].is-in .bars__bar { transform: none; }
.js .tile[data-reveal] .stock-row__bar i { transform: scaleX(0); transition: transform 1.1s var(--ease) .25s; }
.js .tile[data-reveal].is-in .stock-row__bar i { transform: none; }

@media (max-width: 1060px) {
    .tile--wide, .tile--narrow { grid-column: span 12; }
    .tile { grid-column: span 6; }
    .tile:last-child { grid-column: span 12; }
}
@media (max-width: 680px) {
    .tile, .tile:last-child { grid-column: span 12; }
    .ui--branches { grid-template-columns: 1fr; }
}

/* ---------- Interactive till --------------------------------------------- */
.demo {
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--ink); color: var(--white);
}
.demo::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(255, 255, 255, .035) 39px 40px);
}
.demo::after {
    content: ""; position: absolute; z-index: -1; inset-inline: 0; bottom: 0; height: 45%;
    background: linear-gradient(to bottom, transparent, rgba(0, 113, 153, .28));
}
.pos {
    overflow: hidden; border-radius: 22px;
    background: var(--white); color: var(--ink);
    box-shadow: 0 60px 110px -50px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08);
}
.pos__bar {
    display: flex; align-items: center; gap: 12px;
    height: 58px; padding-inline: 18px;
    border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.pos__logo { width: 28px; height: 28px; }
.pos__app { font-weight: 800; font-size: 14.5px; }
.pos__meta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); }
.pos__meta .i { width: 17px; height: 17px; }
.pos__branch { margin-inline-start: auto; }
.pos__user .avatar { width: 28px; height: 28px; font-size: 12.5px; }
.pos__body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(330px, 1fr); }
.pos__catalog { padding: 18px; background: var(--surface); }
.pos__cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.pos__cats::-webkit-scrollbar { display: none; }
.pos-cat {
    flex: none; height: 38px; padding-inline: 16px; border-radius: 999px;
    border: 1px solid var(--line-2); background: var(--white);
    font-size: 14px; font-weight: 700; color: var(--muted);
    transition: background-color .2s, color .2s, border-color .2s;
}
.pos-cat:hover { color: var(--ink); border-color: var(--ink); }
.pos-cat.is-active { border-color: var(--ink); background: var(--ink); color: var(--white); }
.pos__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.pos-item {
    position: relative; width: 100%; height: 100%; min-height: 138px;
    display: grid; align-content: start; justify-items: start; gap: 6px;
    padding: 14px; border: 1px solid var(--line); border-radius: 14px;
    background: var(--white); text-align: start;
    transition: border-color .15s, box-shadow .2s, transform .2s var(--ease);
}
.pos-item:hover { border-color: var(--teal); box-shadow: var(--shadow-md); }
.pos-item:active { transform: scale(.97); }
.pos-item.is-bump { animation: bump .4s var(--ease); }
@keyframes bump { 35% { transform: scale(.94); } }
.pos-item__icon {
    display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px;
    border-radius: 12px; background: var(--teal-50); color: var(--teal);
}
.pos-item__icon .i { width: 24px; height: 24px; stroke-width: 1.6; }
.pos-item--bakery .pos-item__icon { background: #eef2f4; color: var(--ink); }
.pos-item--sweets .pos-item__icon { background: var(--orange-50); color: var(--orange-ink); }
.pos-item__name { font-size: 14.5px; font-weight: 800; line-height: 1.35; }
.pos-item__price { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.pos-item__qty {
    position: absolute; top: 10px; inset-inline-end: 10px;
    display: grid; place-items: center; min-width: 26px; height: 26px; padding-inline: 7px;
    border-radius: 999px; background: var(--orange); color: var(--ink);
    font-size: 13px; font-weight: 800; line-height: 1;
}

.pos__cart { position: relative; display: flex; flex-direction: column; min-height: 600px; border-inline-start: 1px solid var(--line); }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cart__head h3 { font-size: 16px; font-weight: 800; }
.cart__count {
    display: grid; place-items: center; min-width: 30px; height: 30px; padding-inline: 8px;
    border-radius: 999px; background: var(--surface); font-size: 13.5px; font-weight: 800;
}
.cart__body { flex: 1; min-height: 190px; max-height: 300px; overflow-y: auto; padding-inline: 20px; overscroll-behavior: contain; }
.cart__empty {
    display: grid; place-content: center; justify-items: center; gap: 12px;
    min-height: 186px; padding: 16px; text-align: center; font-size: 14.5px; color: var(--muted);
}
.cart__empty .i { width: 34px; height: 34px; stroke-width: 1.4; color: var(--teal-200); }
.line {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px;
    padding-block: 12px; border-bottom: 1px solid var(--line);
}
.line.is-new { animation: line-in .35s var(--ease); }
@keyframes line-in { from { opacity: 0; transform: translateY(-6px); } }
.line__name { font-size: 14.5px; font-weight: 800; line-height: 1.4; }
.line__total { font-size: 14.5px; font-weight: 800; }
.line__unit { font-size: 12.5px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; height: 32px; border: 1px solid var(--line-2); border-radius: 9px; }
.stepper button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; }
.stepper button:hover { background: var(--surface); }
.stepper .i { width: 15px; height: 15px; stroke-width: 2; }
.stepper span { min-width: 24px; font-size: 14px; font-weight: 800; text-align: center; }
.cart__totals { display: grid; gap: 6px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 14px; }
.cart__totals div { display: flex; justify-content: space-between; align-items: baseline; }
.cart__totals dt { color: var(--muted); }
.cart__totals dd { font-weight: 700; }
.cart__grand { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.cart__grand dt { color: var(--ink) !important; font-size: 16px; font-weight: 800; }
.cart__grand b { font-size: 30px; font-weight: 800; line-height: 1; }
.cart__pay { display: grid; gap: 12px; padding: 4px 20px 20px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); }
.seg button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; border: 0; border-radius: 9px; background: none;
    font-size: 14px; font-weight: 700; color: var(--muted);
}
.seg button .i { width: 18px; height: 18px; }
.seg button[aria-checked="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.tender__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.tender__opt {
    height: 36px; padding-inline: 13px; border: 1px solid var(--line-2); border-radius: 9px;
    background: var(--white); font-size: 13.5px; font-weight: 700;
    transition: border-color .15s, background-color .15s;
}
.tender__opt:hover { border-color: var(--teal); }
.tender__opt[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-50); color: var(--teal-deep); }
.tender__row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-size: 14px; }
.tender__row span { color: var(--muted); }
.tender__row--change b { font-size: 18px; color: var(--teal); }

.cart__done {
    position: absolute; inset: 0; z-index: 2; overflow-y: auto;
    background: var(--surface);
    animation: fade-in .25s ease;
}
.done { display: grid; justify-items: center; gap: 16px; padding: 22px 20px; }
.done__badge { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--teal); }
.done__badge .tick { width: 20px; height: 20px; }
.done__paper { width: 100%; max-width: 290px; overflow: hidden; filter: drop-shadow(0 16px 22px rgba(18, 49, 63, .2)); }
.done__paper .receipt { animation: print-short .9s var(--ease); }
.receipt--sm { font-size: 12px; }
.receipt--sm .receipt__logo { width: 92px; }
.done .btn { max-width: 290px; }
@keyframes print-short { from { transform: translateY(-40%); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

.demo__note { margin-top: 18px; font-size: 13.5px; color: rgba(255, 255, 255, .55); text-align: center; }

@media (max-width: 920px) {
    .pos__body { grid-template-columns: minmax(0, 1fr); }
    .pos__cart { min-height: 0; border-inline-start: 0; border-top: 1px solid var(--line); }
    .cart__body { max-height: none; }
}
/* Phones: compact horizontal product tiles keep the cart close to the products. */
@media (max-width: 560px) {
    .pos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
    .pos-item {
        min-height: 0; padding: 10px; gap: 0 10px; border-radius: 12px;
        grid-template-columns: auto minmax(0, 1fr); align-items: center;
    }
    .pos-item__icon { grid-row: span 2; width: 38px; height: 38px; margin: 0; border-radius: 10px; }
    .pos-item__icon .i { width: 21px; height: 21px; }
    .pos-item__name { font-size: 13px; }
    .pos-item__price { font-size: 12.5px; }
    .pos-item__qty { top: -7px; inset-inline-end: -5px; min-width: 22px; height: 22px; font-size: 12px; }
    .pos__user, .pos__app { display: none; }
    .pos__catalog { padding: 12px; }
    .cart__head, .cart__totals { padding-inline: 16px; }
    .cart__body { padding-inline: 16px; min-height: 0; }
    .cart__empty { min-height: 120px; }
    .cart__pay { padding-inline: 16px; }
}

/* ---------- Industries ---------------------------------------------------- */
.ind__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px -3px 26px; }
.ind__tabs::-webkit-scrollbar { display: none; }
.ind__tab {
    flex: none; display: inline-flex; align-items: center; gap: 9px;
    height: 48px; padding-inline: 18px; border: 1px solid var(--line-2); border-radius: 999px;
    background: var(--white); font-size: 15px; font-weight: 700; color: var(--muted);
    transition: background-color .2s, color .2s, border-color .2s;
}
.ind__tab .i { width: 19px; height: 19px; }
.ind__tab:hover { border-color: var(--ink); color: var(--ink); }
.ind__tab[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.ind__panel {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
    gap: clamp(28px, 5vw, 72px);
    padding: clamp(24px, 4.5vw, 56px);
    border: 1px solid var(--line); border-radius: 26px; background: var(--surface);
}
.js .ind__panel:not([hidden]) { animation: panel-in .5s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.ind__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--teal); }
.ind__kicker .i { width: 18px; height: 18px; }
.ind__copy h3 {
    margin-top: 12px;
    font-size: clamp(1.75rem, 1.15rem + 1.8vw, 2.6rem);
    font-weight: 800; line-height: var(--lh-tight); letter-spacing: var(--track); text-wrap: balance;
}
.ind__copy .checks { margin-top: 28px; }
.ind__visual { display: grid; place-items: center; min-height: 320px; }
.ui--card { width: min(100%, 380px); padding: 20px; display: grid; gap: 14px; box-shadow: var(--shadow-md); border-radius: 18px; }
.ui-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.ui-card__head b { font-weight: 800; }
.ui-card__head small, .ui-card__head > span:not(.chip):not(.device__icon) { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ui-card__head--icon { justify-content: flex-start; }
.kv div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { font-weight: 800; }
.kv__big dd { font-size: 24px; line-height: 1.2; }
.scale-code { display: grid; justify-items: center; gap: 4px; padding: 10px; border: 1px dashed var(--line-2); border-radius: 10px; }
.scale-code__bars { width: 74%; height: 38px; fill: var(--ink); }
.scale-code span { font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.ui--scale .chip { justify-self: start; }
.ticket li { display: flex; gap: 12px; padding-block: 10px; border-top: 1px dashed var(--line-2); }
.ticket__qty { flex: none; min-width: 32px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--teal-50); color: var(--teal-deep); font-weight: 800; font-size: 13px; }
.ticket b { display: block; font-size: 14.5px; }
.ticket small { display: block; font-size: 12.5px; font-weight: 700; color: var(--orange-ink); }
.ui--ticket .ui-btn { width: 100%; }
.matrix { width: 100%; font-size: 13.5px; }
.matrix th, .matrix td { height: 40px; padding-inline: 6px; text-align: center; border-bottom: 1px solid var(--line); }
.matrix thead th { font-size: 12.5px; color: var(--muted); font-weight: 800; }
.matrix tbody th { text-align: start; font-weight: 700; white-space: nowrap; }
.matrix td { font-weight: 800; }
.matrix td.is-low { color: var(--orange-ink); }
.matrix td.is-out { color: var(--orange-ink); background: var(--orange-50); }
.swatch { display: inline-block; width: 12px; height: 12px; margin-inline-end: 8px; vertical-align: -1px; border-radius: 4px; border: 1px solid var(--line-2); }
.swatch--0 { background: #ffffff; }
.swatch--1 { background: #15191c; }
.swatch--2 { background: #1d3557; }
.device__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--teal-50); color: var(--teal); }
.meter { height: 8px; overflow: hidden; border-radius: 8px; background: var(--teal-50); }
.meter i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--teal); }
.units { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.units__label { font-size: 13px; font-weight: 700; color: var(--muted); margin-inline-end: 4px; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prices div { padding: 12px 14px; border-radius: 12px; background: var(--surface); }
.prices small { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.prices b { font-size: 22px; font-weight: 800; }
.credit { display: grid; gap: 8px; padding-top: 4px; }
.credit__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.credit small { font-size: 12.5px; color: var(--muted); font-weight: 600; }

.no-js .ind__tabs { display: none; }
.no-js .ind__panel[hidden] { display: grid !important; margin-top: 16px; }

@media (max-width: 860px) {
    .ind__panel { grid-template-columns: minmax(0, 1fr); }
    .ind__visual { min-height: 0; }
}

/* ---------- Steps --------------------------------------------------------- */
.steps { background: var(--surface); border-block: 1px solid var(--line); }
.steps__list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
/* Teal rule ending in orange: the bar from the brand's social covers. */
.steps__list::before {
    content: ""; position: absolute; top: 27px; inset-inline: 28px 0; height: 2px;
    background: linear-gradient(to var(--to-end), var(--teal) 0 84%, var(--orange) 84% 100%);
}
.step { position: relative; padding-top: 84px; }
.step__num {
    position: absolute; top: 0; inset-inline-start: 0;
    display: grid; place-items: center; width: 56px; height: 56px;
    border-radius: 14px; background: var(--teal); color: var(--white);
    box-shadow: 0 0 0 8px var(--surface);
    font-size: 21px; font-weight: 800;
}
.step h3 { font-size: 23px; font-weight: 800; line-height: 1.35; }
.step p { margin-top: 10px; max-width: 24em; color: var(--muted); }
@media (max-width: 780px) {
    .steps__list { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .steps__list::before {
        top: 28px; bottom: 28px; inset-inline: 27px auto; width: 2px; height: auto;
        background: linear-gradient(to bottom, var(--teal) 0 84%, var(--orange) 84% 100%);
    }
    .step { padding-top: 0; padding-inline-start: 84px; min-height: 56px; }
}

/* ---------- Pricing ------------------------------------------------------- */
.plans { display: grid; gap: 16px; align-items: stretch; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.plans--1 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.plan {
    display: flex; flex-direction: column; gap: 20px;
    padding: clamp(24px, 3vw, 40px);
    border: 1px solid var(--line-2); border-radius: 26px; background: var(--white);
}
.plan--dark { position: relative; overflow: hidden; border-color: var(--ink); background: var(--ink); color: var(--white); }
.plan--dark::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(255, 255, 255, .04) 39px 40px);
}
.plan > * { position: relative; }
.plan__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.plan__name { font-size: 26px; font-weight: 800; line-height: 1.3; }
.plan__desc { color: var(--muted); }
/* Admin-entered names and descriptions keep dir="auto" for correct ordering but follow the page alignment. */
[dir="rtl"] .plan__name, [dir="rtl"] .plan__desc { text-align: right; }
[dir="ltr"] .plan__name, [dir="ltr"] .plan__desc { text-align: left; }
.plan--dark .plan__desc { color: rgba(255, 255, 255, .7); }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plan__amount { font-size: clamp(3.2rem, 2.6rem + 2vw, 4.6rem); font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.plans--3 .plan__amount, .plans--4 .plan__amount { font-size: clamp(2.8rem, 2.3rem + 1.2vw, 3.4rem); }
.plan__fraction { font-size: .42em; letter-spacing: 0; }
.plan__unit { font-size: 18px; font-weight: 800; color: var(--muted); }
.plan__period { font-size: 15px; font-weight: 700; color: var(--muted); }
.plan--dark .plan__unit, .plan--dark .plan__period { color: rgba(255, 255, 255, .7); }
.plan__features { padding-top: 22px; border-top: 1px solid var(--line); }
.plan--dark .plan__features { border-top-color: rgba(255, 255, 255, .14); }
.plan > .btn { margin-top: auto; }
.plan--empty { justify-content: center; }
.plan--empty .btn { align-self: flex-start; margin-top: 8px; }
.included {
    padding: clamp(24px, 3vw, 40px);
    border: 1px solid var(--line); border-radius: 26px; background: var(--surface);
}
.included h3 { font-size: 21px; font-weight: 800; }
.included .checks { margin-top: 22px; }
.included--wide { grid-column: 1 / -1; }
.included--wide .checks { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 860px) {
    .plans--1 { grid-template-columns: minmax(0, 1fr); }
    .included .checks { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* ---------- FAQ ----------------------------------------------------------- */
.faq { background: var(--surface); border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); align-items: start; gap: clamp(32px, 6vw, 96px); }
.faq__side { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__side .sec-head { margin-bottom: 32px; }
.contact-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.contact-card h3 { font-size: 18px; font-weight: 800; }
.contact-card p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.contact-card__links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; }
/* When label and number don't fit on one line, the number wraps under the label instead of widening the page. */
.contact-card .btn { flex-wrap: wrap; align-content: center; row-gap: 2px; justify-content: flex-start; height: auto; min-height: var(--h); padding-block: 8px; }
.contact-card__value { margin-inline-start: auto; font-weight: 600; opacity: .85; }
.qa { border-bottom: 1px solid var(--line-2); }
.qa:first-child { border-top: 1px solid var(--line-2); }
.qa summary {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding-block: 22px; cursor: pointer; list-style: none;
    font-size: 18px; font-weight: 800; line-height: 1.5;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--teal); }
.qa__icon {
    display: grid; place-items: center; flex: none; width: 34px; height: 34px;
    border: 1px solid var(--line-2); border-radius: 10px; background: var(--white);
    transition: background-color .2s, color .2s, border-color .2s;
}
.qa__icon .i { width: 16px; height: 16px; stroke-width: 2; transition: transform .35s var(--ease); }
.qa[open] .qa__icon { border-color: var(--ink); background: var(--ink); color: var(--white); }
.qa[open] .qa__icon .i { transform: rotate(45deg); }
.qa__a { padding-bottom: 24px; max-width: 40em; color: var(--muted); }
@supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .qa::details-content { height: 0; overflow: clip; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
    .qa[open]::details-content { height: auto; }
}
@media (max-width: 900px) {
    .faq__grid { grid-template-columns: minmax(0, 1fr); }
    .faq__side { position: static; }
}

/* ---------- Closing call to action --------------------------------------- */
.cta { padding-block: clamp(72px, 9vw, 128px); }
.cta__panel {
    position: relative; isolation: isolate; overflow: hidden;
    padding: clamp(40px, 7vw, 96px) clamp(28px, 6vw, 88px);
    border-radius: 32px; background: var(--teal); color: var(--white);
}
.cta__panel::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(255, 255, 255, .07) 39px 40px);
}
.cta__copy { max-width: 640px; }
.cta__panel h2 {
    font-size: clamp(2.4rem, 1.2rem + 4vw, 4.8rem);
    font-weight: 900; line-height: 1.22; letter-spacing: var(--track); text-wrap: balance;
}
:not(:lang(ar)) .cta__panel h2 { font-weight: 800; line-height: 1.04; letter-spacing: -.04em; }
.cta__panel p { margin-top: 18px; max-width: 30em; font-size: clamp(1.07rem, 1rem + .3vw, 1.22rem); color: rgba(255, 255, 255, .86); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta__mark {
    position: absolute; z-index: -1;
    width: clamp(240px, 32vw, 440px); height: auto; aspect-ratio: 117 / 118;
    inset-inline-end: 4%; bottom: -14%;
    fill: var(--orange);
}
@media (max-width: 760px) {
    .cta__mark { width: 190px; inset-inline-end: -40px; bottom: -48px; opacity: .9; }
    .cta__copy { padding-bottom: 72px; }
}

/* ---------- Footer -------------------------------------------------------- */
.ftr { padding-top: 76px; background: var(--ink); color: rgba(255, 255, 255, .7); font-size: 15px; }
.ftr__top {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 48px;
    padding-bottom: 52px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.ftr__logo { width: 156px; height: auto; }
.ftr__brand p { max-width: 24em; margin-top: 20px; text-wrap: balance; }
.ftr__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; }
.ftr__cols h3 { margin-bottom: 16px; font-size: 14.5px; font-weight: 800; color: var(--white); }
.ftr__cols li + li { margin-top: 10px; }
.ftr__cols a { transition: color .2s; }
.ftr__cols a:hover { color: var(--white); }
.ftr__cols .num { white-space: nowrap; } /* a phone number never splits across lines */
.ftr__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 26px 30px; font-size: 14px; }
.ftr__lang { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.ftr__lang:hover { color: var(--white); }
.ftr__lang .i { width: 18px; height: 18px; }
.brandbar { height: 6px; background: linear-gradient(to var(--to-end), var(--teal) 0 82%, var(--orange) 82% 100%); }
.ftr :focus-visible, .demo :focus-visible, .cta :focus-visible { outline-color: var(--white); }
.pos :focus-visible { outline-color: var(--teal); }
@media (max-width: 860px) { .ftr__top { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Scroll reveal ------------------------------------------------- */
.js [data-reveal] {
    opacity: 0; transform: translateY(20px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0ms !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; }
    .js .statement__line { --o: 1; }
    .ui-search__beam { display: none; }
}
