/* Nqta landing: the brand palette (near-white page, ink, stamp orange) and page CSS. Loaded after the kit's CSS.
   No warm tints anywhere: the grounds are neutral cool greys, so the orange is the only strong colour. */
:root {
  --p-bg: #fafafa; --p-surface: #f1f2f4; --p-ink: #0e1116; --p-muted: #4a505c;
  --p-accent: #ff5b2e; --p-accent-ink: #0e1116; --p-action: #ff5b2e; --p-action-ink: #0e1116;
  --p-inv-bg: #0e1116; --p-inv-surface: #1b1e22; --p-inv-ink: #f5f6f7; --p-inv-muted: #a3a8b0;
  --p-inv-accent: #ff5b2e; --p-inv-accent-ink: #0e1116; --p-inv-action: #ff5b2e; --p-inv-action-ink: #0e1116;
  --font-display: "IBM Plex Sans", var(--font-arabic), system-ui, sans-serif;
  --font-text: "IBM Plex Sans", var(--font-arabic), system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.025em;
  --display-tracking-xl: -0.035em;
  --ly-scale: 0.98;
}
/* The kit's lit ground (behind every UI mock-up) defaults to sand, and system.js then picks sand, sky or sage by hash and
   writes it to <html data-ground>. Pin all of them to one cool neutral grey so no warm or blue ground can appear. */
:root, html[data-ground] {
  --ground-bg: #e4e7eb; --ground-surface: #f3f4f6; --ground-ink: #14171c; --ground-muted: #454b55; --ground-accent: #c9ced6;
}
/* the hero's media ground: the same soft grey mesh the feature panels get from cards.css */
.nqta-stage {
  background-color: var(--ground-bg);
  background-image:
    radial-gradient(70% 90% at 12% 0%, color-mix(in oklab, var(--ground-surface) 92%, white), transparent 70%),
    radial-gradient(60% 80% at 100% 100%, color-mix(in oklab, var(--ground-accent) 34%, var(--ground-bg)), transparent 72%);
}

/* the close and the footer: one dark ink ground. The primary button keeps its orange (system.css gives it on a light page) at the
   hero's size, not the full-width bar the flex column would make it. */
footer.footer--statement {
  background: var(--p-inv-bg); color: var(--p-inv-ink);
  --bg: var(--p-inv-bg); --surface: var(--p-inv-surface); --ink: var(--p-inv-ink); --muted: var(--p-inv-muted); --accent: var(--p-inv-accent);
  --line: color-mix(in oklab, var(--p-inv-ink) 14%, transparent); --line-strong: color-mix(in oklab, var(--p-inv-ink) 28%, transparent);
}
.closing__cta > .btn { align-self: flex-start; }
footer.footer--statement .closing__links { padding-top: var(--s-8); border-top: 1px solid var(--line); }
/* the logo kit's horizontal lockup: 80px wide at the least (guidelines), and its clear space is in the file */
.nav__logo.nqta-logo img { height: 40px; }
@media (max-width: 639px) { .nav__logo.nqta-logo img { height: 36px; } }
.footer__legal { align-items: center; }
.footer__legal .nqta-lang { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; }
.footer__legal .nqta-lang:hover { color: var(--action); }

/* Arabic is never tracked; the kit sets letter-spacing on headings, buttons and labels. */
:lang(ar), :lang(ar) * { letter-spacing: 0 !important; }

/* hero: the real card renderer on the hero's lit ground; the card is the only box on it (two levels, never three) */
.nqta-stage { position: relative; container-type: size; }
.nqta-pass { position: absolute; top: var(--s-7); inset-inline-start: 50%; translate: -50% 0; width: min(340px, 80cqw); }
[dir="rtl"] .nqta-pass { translate: 50% 0; }
/* a phone: the ground is short, so the card is smaller and starts near its top and its stamps show */
@media (max-width: 639px) { .nqta-pass { top: var(--s-4); width: min(230px, 80cqw); zoom: 0.8; } }

/* app-frame (sections-library): the customer list beside the open customer, one window */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-inline-start: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } .app .ui-win__side { display: none; } .app .ui-win__body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-inline-start: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}
/* the open customer: card progress above the history */
.nq-open { display: grid; align-content: start; }
.nq-open__card { display: grid; gap: var(--s-3); margin: 0 var(--s-4) var(--s-4); padding: var(--s-4); border: 1px solid var(--u-line); border-radius: var(--u-r2); background: var(--u-fill); }
.nq-open__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.nq-stamps { display: grid; grid-template-columns: repeat(10, minmax(0, 28px)); justify-content: space-between; gap: 6px; }
.nq-stamps i { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--u-line-2); }
.nq-stamps i.is-on { background: var(--u-accent); border-color: var(--u-accent); }
.nq-stamps i.is-reward { border-color: var(--u-accent); border-style: dashed; }
.nq-open .ui-notify { width: auto; padding: 0 var(--s-4); }

/* card groups: one panel height per group (cards.md) */
#features .panel, #how .panel, #pricing .panel { --p-h: 336px; }
@media (max-width: 639px) { #features .panel, #pricing .panel { --p-h: 180px; } #how .panel { --p-h: 300px; } }

/* pricing, privacy, terms: Tailwind pages under the kit's header. The kit styles bare headings and lists; give them back their own look. */
.nqta-legacy { padding-top: calc(var(--nav) + 3rem); width: 100%; }
.nqta-legacy :is(h1, h2, h3, h4, p, ul, ol, li, figure, blockquote) { all: revert-layer; }
/* the kit's unlayered .grid (12 columns, children span the row) would beat Tailwind's grid-cols-* on older pages */
.nqta-legacy .grid { grid-template-columns: revert-layer; column-gap: revert-layer; row-gap: revert-layer; }
.nqta-legacy .grid > * { grid-column: revert-layer; min-width: revert-layer; }
.nqta-footer-short { padding: var(--s-9) 0 var(--s-7); }
.footer__legal a { margin-inline-start: var(--s-4); }

/* the window inside the app frame: filter names stay on one line */
.app .ui-win__body { grid-template-columns: 148px minmax(0, 1fr); }
.app .ui-win__nav { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .ui-win__search { min-width: 0; }

/* "everything else": one panel (a feature list window), four columns by who uses them, a glyph tile and a name per feature */
.more-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--s-6); }
.more-col { min-width: 0; padding: var(--s-6) var(--s-5); }
.more-col + .more-col { border-inline-start: 1px solid var(--u-line); }
.more-list { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.more-list .ic-row { padding: var(--s-4) 0; }
@media (max-width: 1023px) {
  .more-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-col:nth-child(3) { border-inline-start: 0; }
  .more-col:nth-child(n + 3) { border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .more-panel { grid-template-columns: minmax(0, 1fr); }
  .more-col + .more-col { border-inline-start: 0; border-top: 1px solid var(--u-line); }
  .more-col { padding: var(--s-4); }
  .more-list .ic-row { padding: var(--s-2) 0; }
}

/* the statement's stamp row: the brand motif, nine stamps and the reward ring, still */
.nq-stamps--lg { margin-top: var(--s-8); grid-template-columns: repeat(10, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 20px); }
.nq-stamps--lg i { display: grid; place-items: center; font: 500 clamp(12px, 2vw, 28px) / 1 var(--font-mono); font-style: normal; border: 2px solid var(--ink); }
.nq-stamps--lg i.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.nq-stamps--lg i.is-reward { border-style: dashed; border-color: var(--accent); color: var(--ink); }
@media (max-width: 639px) { .nq-stamps--lg { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); } .nq-stamps--lg i { font-size: 20px; } }

/* a question with its glyph tile beside it */
.faq .faq__item { grid-template-columns: minmax(0, 1fr) 40px; column-gap: var(--s-4); }
.faq .faq__item > .ic-tile { grid-column: 2; grid-row: 1 / span 2; }

/* a diagram held still never plays (pulse "none"): its nodes do not fade either, so nothing starts when it scrolls into view */
.dg[data-dg-still] *, .dg[data-dg-still] *::before, .dg[data-dg-still] *::after { transition-duration: 0ms !important; animation: none !important; }

/* Tailwind's .start-N utility (inset-inline-start) collides with the kit's grid column classes and shifts a relative item sideways. */
.start-5, .start-6, .start-7 { inset-inline-start: auto; }

/* the kit ring is the brand orange, under 3:1 on the near-white ground; the ink ring (light ink on the dark close) clears 3:1 */
:focus-visible { outline-color: var(--ink); }

/* the stamp notice sits on the phone's own width, not out past its frame */
.nqta-stage .ly-float { left: calc(50% - min(150px, 40cqw) + var(--s-4)); right: auto; width: calc(min(300px, 80cqw) - 2 * var(--s-4)); }
@media (max-width: 1023px) { .nqta-stage .ly-float { display: none; } }
/* group names are h3s at the card heading size, like every other h3 on the page */
#more h3, .faq .faq__item > h3 { font-family: var(--font-text); font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
/* pricing: the grid takes the section's height, so the card ends where the other sections' content ends (one gap between sections) */
#pricing > .wrap > .grid { flex: 1 1 auto; }
#pricing .card--plan { height: 100%; }
#pricing .card--plan > .panel { flex: 1 1 auto; }
