/* =====================================================================
   بيجر تِك — landing page («قُرص» brand)
   ---------------------------------------------------------------------
   Load order: /themes/common.css (Alexandria @font-face) → this file.
   1) DESIGN TOKENS (--color-*, --fs-*, …) drive the page itself.
   2) PRODUCT TOKENS (--pk-*) copy public/themes/puck/base.css so the
      mockups look like the real app. Change them only if the app changes.
   Contrast (WCAG): ink 13.4:1 / muted 5.0:1 on the deepest sand,
   clay-ink text ≥ 5.0:1 on every light surface, cream on clay 5.1:1.
   ===================================================================== */
:root {
  /* ---- Font ---- */
  --font: "Alexandria", "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* ---- Type scale (Alexandria is wide, so a little smaller than usual) ---- */
  --fs-xs: .8125rem;
  --fs-sm: .9063rem;
  --fs-base: 1rem;
  --fs-lg: clamp(1rem, .95rem + .25vw, 1.125rem);
  --fs-h3: 1.125rem;
  --fs-h2: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem);
  --fs-h1: clamp(2.15rem, 1.35rem + 3.6vw, 3.75rem);
  --lh-tight: 1.35;
  --lh-body: 1.8;

  /* ---- Colors: page (sand & cream) ---- */
  --color-bg: #F1E6D6;          /* sand */
  --color-bg-alt: #E8D9C4;      /* deeper sand */
  --color-surface: #FFF8EE;     /* cream */
  --color-line: #DDCBB3;
  --color-line-strong: #C4AC8E;
  --color-ink: #2B1B12;         /* coffee · 13.4:1 on sand */
  --color-ink-soft: #4A3427;    /* 9.4:1 */
  --color-muted: #6B5546;       /* 5.0:1 on deeper sand, 5.6:1 on sand */

  /* ---- Colors: brand (clay) & accents ---- */
  --color-brand: #B9441E;       /* clay: fills (buttons, puck) */
  --color-brand-hover: #A33B19;
  --color-brand-ink: #9E3815;   /* clay for text/icons on light surfaces */
  --color-brand-soft: #F6D8C8;
  --color-on-brand: #FFF8EE;    /* cream on clay 5.1:1 */
  --color-led: #FF9466;
  --color-warn: #A85806;        /* saffron */
  --color-warn-soft: #F8E5C6;
  --color-highlight: rgba(255, 148, 102, .34);
  --color-focus: #2B1B12;

  /* ---- Colors: dark (coffee) sections ---- */
  --color-dark: #2B1B12;
  --color-darker: #1E130D;
  --color-dark-text: #FFF8EE;
  --color-dark-muted: #D9C3AE;  /* 9.7:1 on coffee */
  --color-dark-accent: #FFB08A; /* 9.3:1 on coffee */
  --color-dark-line: rgba(255, 248, 238, .12);
  --color-focus-on-dark: #FFF8EE;

  /* ---- Radius (puck is soft and round) ---- */
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-pill: 999px;
  --radius-btn: var(--radius-pill);

  /* ---- Spacing ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-pad: clamp(56px, 8vw, 112px);
  --container: 1180px;
  --container-narrow: 860px;
  --header-h: 68px;

  /* ---- Shadows ---- */
  --shadow-sm: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 2px rgba(43, 27, 18, .06);
  --shadow: 0 14px 30px -16px rgba(43, 27, 18, .4);
  --shadow-lg: 0 40px 70px -28px rgba(30, 19, 13, .6);
  --shadow-press: inset 0 -4px 0 rgba(0, 0, 0, .2);

  /* ---- Product tokens (= public/themes/puck/base.css) ---- */
  --pk-bg: #F1E6D6;
  --pk-surface: #FFF8EE;
  --pk-surface-2: #E8D9C4;
  --pk-line: #DDCBB3;
  --pk-text: #2B1B12;
  --pk-muted: #76604F;
  --pk-prep: #6E5444;
  --pk-prep-soft: #E8D9C4;
  --pk-ready: #B9441E;
  --pk-ready-soft: #F6D8C8;
  --pk-on-ready: #FFF4E8;
  --pk-led: #FF9466;
  --pk-bezel: #1A100B;
}

/* =====================================================================
   Base
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: var(--lh-tight); font-weight: var(--fw-bold); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
a { color: var(--color-brand-ink); }
.num { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 6px; }
.section-dark :focus-visible, .final-cta :focus-visible, .site-footer :focus-visible { outline-color: var(--color-focus-on-dark); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; inset-inline-start: var(--space-2); z-index: 100;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
  background: var(--color-ink); color: var(--color-surface); font-weight: var(--fw-semibold); text-decoration: none;
}
.skip-link:focus { top: var(--space-2); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); }

.ico { width: 1.25em; height: 1.25em; flex: none; }

/* =====================================================================
   Buttons (pill, tactile — like the app)
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-5);
  border: 1px solid transparent; border-radius: var(--radius-btn);
  font: inherit; font-weight: var(--fw-bold); line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(2px); }
.btn-sm { min-height: 40px; padding: 0 var(--space-4); font-size: var(--fs-sm); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: var(--fs-base); }

.btn-primary { background: var(--color-brand); color: var(--color-on-brand); box-shadow: var(--shadow-press); }
.btn-primary:hover { background: var(--color-brand-hover); }
.btn-sm.btn-primary { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); }

.btn-ghost { background: var(--color-surface); color: var(--color-ink); border-color: var(--color-line); }
.btn-ghost:hover { border-color: var(--color-line-strong); }

/* on the clay final CTA */
.btn-cream { background: var(--color-surface); color: var(--color-brand-ink); box-shadow: inset 0 -4px 0 rgba(120, 40, 10, .18); }
.btn-cream:hover { background: #fff; }
.btn-outline-cream { background: transparent; color: var(--color-on-brand); border-color: rgba(255, 248, 238, .6); }
.btn-outline-cream:hover { background: rgba(255, 248, 238, .1); border-color: var(--color-on-brand); }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 230, 214, .9);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--color-ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
/* «بيجر تِك» outlined (#pt-wordmark): letters take color, letter dots take fill. 3.095 = width / height */
.brand-word { height: 1.45rem; width: calc(1.45rem * 3.095); flex: none; color: var(--color-ink); fill: var(--color-brand); }

.main-nav { display: none; }
.main-nav a {
  color: var(--color-ink-soft); text-decoration: none; font-weight: var(--fw-medium);
  font-size: var(--fs-sm); padding-block: var(--space-2);
}
.main-nav a:hover { color: var(--color-brand-ink); }

.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.link-staff {
  color: var(--color-ink-soft); font-weight: var(--fw-semibold); font-size: var(--fs-sm);
  text-decoration: none; white-space: nowrap; padding-block: 10px;
}
.link-staff:hover { color: var(--color-brand-ink); }
.header-actions .btn { white-space: nowrap; }

@media (min-width: 1000px) {
  .main-nav { display: flex; gap: 26px; }
}
@media (max-width: 420px) {
  .header-inner { gap: var(--space-2); }
  .brand { gap: var(--space-2); }
  .brand-mark { width: 30px; height: 30px; }
  .brand-word { height: 1.27rem; width: calc(1.27rem * 3.095); }
  .header-actions { gap: var(--space-3); }
  .link-staff { font-size: .8125rem; }
  .header-actions .btn-sm { padding: 0 var(--space-3); font-size: .8125rem; }
}

section[id], main[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative; overflow: clip;
  padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px);
  background:
    radial-gradient(60% 55% at 12% 40%, var(--color-brand-soft) 0, transparent 70%),
    radial-gradient(45% 40% at 95% 0%, var(--color-surface) 0, transparent 70%),
    var(--color-bg);
}
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }

.hero-copy { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px; margin-bottom: var(--space-5);
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-ink-soft);
  box-shadow: var(--shadow-sm);
}
.eyebrow-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--color-brand); box-shadow: 0 0 0 0 rgba(255, 148, 102, .7);
  animation: live-dot 2s ease-out infinite;
}
@keyframes live-dot { 0% { box-shadow: 0 0 0 0 rgba(255, 148, 102, .7); } 80%, 100% { box-shadow: 0 0 0 9px rgba(255, 148, 102, 0); } }

.hero h1 { font-size: var(--fs-h1); font-weight: var(--fw-black); line-height: 1.25; margin-bottom: var(--space-5); }
.hl {
  color: var(--color-brand-ink);
  background: linear-gradient(to top, var(--color-highlight) 0 .26em, transparent .26em);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: .06em;
}
.lead { font-size: var(--fs-lg); color: var(--color-ink-soft); max-width: 34em; margin-inline: auto; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); justify-content: center; }
.cta-row .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .cta-row .btn { flex: 0 0 auto; } }

.hero-points {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-5);
  list-style: none; padding: 0; margin: var(--space-5) 0 0;
  font-size: var(--fs-sm); color: var(--color-muted); font-weight: var(--fw-medium);
}
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .ico { color: var(--color-brand-ink); width: 18px; height: 18px; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: var(--space-6); }
  .hero-copy { text-align: start; }
  .lead { margin-inline: 0; }
  .cta-row, .hero-points { justify-content: flex-start; }
}

/* ---- Hero visual ---- */
.hero-visual {
  --pw: clamp(236px, 66vw, 300px);
  position: relative; display: grid; place-items: center;
  padding-block: var(--space-5);
}
.rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.rings i {
  grid-area: 1 / 1; aspect-ratio: 1; border-radius: 50%;
  border: 2px dotted rgba(185, 68, 30, .2);
  animation: ring 9s ease-out infinite;
}
.rings i:nth-child(1) { width: calc(var(--pw) * 1.3); }
.rings i:nth-child(2) { width: calc(var(--pw) * 1.75); animation-delay: .15s; }
.rings i:nth-child(3) { width: calc(var(--pw) * 2.2); animation-delay: .3s; }
@keyframes ring {
  0%, 46% { border-color: rgba(185, 68, 30, .2); transform: scale(1); }
  52% { border-color: rgba(255, 148, 102, .8); transform: scale(1.04); }
  70%, 100% { border-color: rgba(185, 68, 30, .2); transform: scale(1); }
}

/* =====================================================================
   The puck: a disc with a ring of 24 LED dots (same technique as
   public/themes/puck/base.css). Size it with --d.
   ::after  = LED colours (dim dots + a lit "comet" that chases)
   ::before = a grille in the face colour that cuts the ring into dots
   ===================================================================== */
.pk-disc {
  --d: 120px;
  --ring: calc(var(--d) * .045);
  --led: rgba(43, 27, 18, .14);
  --led-on: var(--pk-prep);
  --face: var(--pk-surface);
  position: relative; isolation: isolate; flex: none;
  width: var(--d); height: var(--d); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--face); color: var(--pk-text);
  box-shadow:
    0 0 0 calc(var(--d) * .035) var(--pk-surface-2),
    0 calc(var(--d) * .075) calc(var(--d) * .15) calc(var(--d) * -.06) rgba(43, 27, 18, .55),
    inset 0 calc(var(--d) * -.028) 0 rgba(43, 27, 18, .05);
}
.pk-disc::before, .pk-disc::after {
  content: ""; position: absolute; inset: calc(var(--d) * .045); border-radius: 50%; z-index: -1;
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - var(--ring)), #000 calc(100% - var(--ring) + 1px));
          mask: radial-gradient(farthest-side, #0000 calc(100% - var(--ring)), #000 calc(100% - var(--ring) + 1px));
}
.pk-disc::after {
  background: conic-gradient(var(--led) 0 270deg, color-mix(in srgb, var(--led-on) 45%, transparent) 270deg 315deg, var(--led-on) 315deg 360deg);
  animation: led-chase 2.4s steps(24) infinite;
}
.pk-disc::before { z-index: 0; background: repeating-conic-gradient(var(--face) 0 4deg, #0000 4deg 11deg, var(--face) 11deg 15deg); }
.pk-disc > * { position: relative; z-index: 1; }
.pk-num {
  font-size: calc(var(--d) * .43); font-weight: var(--fw-black); line-height: 1;
  letter-spacing: -.02em; direction: ltr; font-variant-numeric: tabular-nums;
  transform: translateY(.03em);
}
.pk-disc.is-ready { --led-on: var(--pk-led); color: var(--pk-ready); }
.pk-disc.is-ready::after { background: var(--led-on); animation: led-blink .9s steps(2, jump-none) infinite; }
@keyframes led-chase { to { transform: rotate(360deg); } }
@keyframes led-blink { 0% { opacity: 1; } 100% { opacity: .25; } }
@keyframes puck-pulse {
  0% { box-shadow: 0 0 0 calc(var(--d) * .035) rgba(255, 248, 238, .28), 0 0 0 calc(var(--d) * .035) rgba(255, 248, 238, .35), 0 calc(var(--d) * .09) calc(var(--d) * .17) calc(var(--d) * -.06) rgba(60, 14, 0, .65); }
  100% { box-shadow: 0 0 0 calc(var(--d) * .035) rgba(255, 248, 238, .28), 0 0 0 calc(var(--d) * .16) rgba(255, 248, 238, 0), 0 calc(var(--d) * .09) calc(var(--d) * .17) calc(var(--d) * -.06) rgba(60, 14, 0, .65); }
}

/* =====================================================================
   Phone mockup (customer order page, «قُرص» theme)
   ===================================================================== */
.phone {
  --pw: 290px;
  position: relative; width: var(--pw); aspect-ratio: 9 / 18.6;
  padding: calc(var(--pw) * .032);
  border-radius: calc(var(--pw) * .15);
  background: linear-gradient(150deg, #4A382D 0%, var(--pk-bezel) 38%, var(--pk-bezel) 70%, #3A2B22 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 248, 238, .1), var(--shadow-lg);
  container-type: inline-size;
}
.phone-hero { --pw: inherit; animation: phone-ring 9s ease-in-out infinite; }

.phone-screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: calc(var(--pw) * .12);
  background: var(--pk-bg); color: var(--pk-text);
  font-family: var(--font);
  font-size: 5.2cqi; line-height: 1.45;
}
.phone-bar {
  position: absolute; inset: 0 0 auto; z-index: 3; height: 2.7em;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: 1.7em; direction: ltr; font-size: .8em; font-weight: var(--fw-semibold);
}
.phone-island {
  position: absolute; top: .6em; left: 50%; transform: translateX(-50%);
  width: 33%; height: 1.75em; border-radius: 99px; background: #000;
}
.phone-sig { display: inline-flex; align-items: flex-end; gap: .18em; height: .9em; }
.phone-sig i { width: .26em; background: currentColor; border-radius: 1px; }
.phone-sig i:nth-child(1) { height: 40%; }
.phone-sig i:nth-child(2) { height: 70%; }
.phone-sig i:nth-child(3) { height: 100%; }

.op {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: .7em;
  padding: 3em 1.05em 1.2em; text-align: center;
}
.op-head { display: flex; align-items: center; justify-content: space-between; gap: .6em; min-height: 1.9em; }
.op-shop { font-size: 1.05em; font-weight: var(--fw-black); }
.op-chip {
  display: inline-flex; align-items: center; gap: .45em;
  height: 2.1em; padding: 0 .85em 0 .75em; border-radius: 99px;
  background: var(--pk-prep-soft); color: var(--pk-prep);
  font-size: .72em; font-weight: var(--fw-black); white-space: nowrap;
}
.op-chip::before { content: ""; width: .7em; height: .7em; border-radius: 50%; border: .14em dotted currentColor; }
.op-mark { display: inline-flex; align-items: center; gap: .45em; font-size: .8em; font-weight: var(--fw-black); white-space: nowrap; }
.op-mark::before {
  content: ""; width: 1.1em; height: 1.1em; border-radius: 50%; flex: none;
  background: radial-gradient(circle closest-side, var(--pk-ready) 0 50%, var(--pk-on-ready) 53%);
}
/* mini wordmark inside the mocks (mirrors .wordmark in the app themes) */
.op-mark .wm, .sb-mark .wm, .tv-mark .wm { height: 1.25em; width: calc(1.25em * 3.095); flex: none; fill: var(--pk-ready); }
.op-mark .wm { fill: currentColor; }

.op-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75em; }
.op-label { font-size: .85em; font-weight: var(--fw-medium); color: var(--pk-muted); }
.op .pk-disc { --d: 60cqi; }
.op-status { font-size: 1.3em; font-weight: var(--fw-black); line-height: 1.3; }
.op-sub { font-size: .8em; color: var(--pk-muted); line-height: 1.55; max-width: 22em; }
.op-ok {
  display: flex; align-items: center; justify-content: center; min-height: 3.3em; padding: .4em 1em;
  border-radius: 99px; background: var(--pk-surface); box-shadow: inset 0 0 0 1.5px var(--pk-line);
  font-size: .74em; font-weight: var(--fw-black); line-height: 1.4;
}
.op-conn { display: flex; align-items: center; justify-content: center; gap: .5em; color: var(--pk-muted); font-size: .7em; }
.op-conn::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--pk-prep); }

/* ready: the whole page turns clay and the puck flashes */
.op-ready { background: var(--pk-ready); color: var(--pk-on-ready); opacity: 0; animation: op-swap 9s ease-in-out infinite; }
.op-ready .op-hero { gap: 1.05em; }
.op-title { font-size: 2.05em; font-weight: 900; line-height: 1.15; }
.op-title span { display: block; font-size: .56em; font-weight: var(--fw-black); margin-top: .25em; }
.op-ready .pk-disc { --face: var(--pk-surface); animation: puck-pulse 1.8s ease-out infinite; }
.op-ready .op-sub { color: var(--pk-on-ready); font-size: .9em; font-weight: var(--fw-medium); }
.op-ack {
  display: flex; align-items: center; justify-content: center; min-height: 3.3em;
  border-radius: 99px; background: var(--pk-surface); color: var(--pk-ready);
  font-size: 1.1em; font-weight: var(--fw-black); box-shadow: inset 0 -.25em 0 rgba(120, 40, 10, .18);
}

@keyframes op-swap { 0%, 44% { opacity: 0; } 49%, 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes phone-ring {
  0%, 47% { transform: rotate(0); }
  48.5% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); }
  51.5% { transform: rotate(-2deg); } 53% { transform: rotate(1.5deg); }
  54.5%, 100% { transform: rotate(0); }
}

/* Notification banner (same text as the real web-push payload) */
.notif {
  position: absolute; z-index: 4; top: 11%; inset-inline: 0; margin-inline: auto;
  width: min(calc(var(--pw) + 40px), 100%);
  display: flex; align-items: center; gap: var(--space-3);
  padding: 12px 14px; border-radius: 22px;
  background: rgba(255, 248, 238, .95); color: var(--color-ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -14px rgba(43, 27, 18, .5), 0 0 0 1px rgba(43, 27, 18, .06);
  font-size: .875rem; line-height: 1.45;
  opacity: 0; animation: notif-in 9s ease-in-out infinite;
}
.notif-icon { width: 38px; height: 38px; flex: none; }
.notif-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.notif-text b { font-weight: var(--fw-black); }
.notif-text span { color: var(--color-ink-soft); font-size: var(--fs-xs); }
.notif-time { align-self: flex-start; color: var(--color-muted); font-size: .75rem; }
@keyframes notif-in {
  0%, 47% { opacity: 0; transform: translateY(-14px) scale(.97); }
  52%, 88% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: translateY(-14px) scale(.97); }
}

@media (prefers-reduced-motion: reduce) {
  .op-ready, .notif { animation: none; opacity: 1; transform: none; }
  .phone-hero, .rings i, .eyebrow-dot, .pk-disc, .pk-disc::after { animation: none; }
}

/* =====================================================================
   Sections
   ===================================================================== */
.section { padding-block: var(--section-pad); }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 46rem; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.kicker {
  display: inline-block; margin-bottom: 14px; padding: 4px 14px;
  border-radius: var(--radius-pill); background: var(--color-brand-soft);
  color: var(--color-brand-ink); font-size: .8125rem; font-weight: var(--fw-bold);
}
.section-head h2, .pilot h2 { font-size: var(--fs-h2); margin-bottom: var(--space-3); }
.section-lead { font-size: var(--fs-lg); color: var(--color-muted); }

/* ---- Cards ---- */
.cards {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.card {
  display: flex; flex-direction: column; gap: 10px;
  padding: var(--space-5); border-radius: var(--radius-lg);
  background: var(--color-surface); border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: var(--fs-h3); }
.card p { color: var(--color-muted); }
.card-ico {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 4px;
  border-radius: 50%; background: var(--color-brand-soft); color: var(--color-brand-ink);
}
.card-ico svg { width: 24px; height: 24px; }
.card-ico.ico-warn { background: var(--color-warn-soft); color: var(--color-warn); }

/* =====================================================================
   How it works
   ===================================================================== */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.step {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--color-surface);
  border: 1px solid var(--color-line); box-shadow: var(--shadow-sm);
}
.step-visual {
  position: relative; height: 260px; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 120%, var(--color-brand-soft), transparent 65%),
    var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}
.step-body { padding: var(--space-5); }
.step-num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: var(--space-3);
  border-radius: 50%; background: var(--color-ink); color: var(--color-surface); font-weight: var(--fw-black);
  outline: 2px dotted var(--color-led); outline-offset: -7px;
}
.step-body h3 { font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.step-body p { color: var(--color-muted); }

/* Step 1: order QR panel (mirrors the staff side panel) */
.mini-qr {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  width: 196px; padding: 12px 16px 14px; border-radius: 22px;
  background: var(--pk-surface); color: var(--pk-text);
  box-shadow: var(--shadow), inset 0 0 0 1.5px var(--pk-line);
  text-align: center; line-height: 1.4;
}
.mq-kicker { color: var(--pk-muted); font-size: .75rem; font-weight: var(--fw-medium); }
.mq-num {
  width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%;
  background: var(--pk-bg); outline: 2px dotted var(--pk-line); outline-offset: -6px;
  font-size: 1.375rem; font-weight: var(--fw-black); line-height: 1; direction: ltr;
}
.mq-frame { padding: 6px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--pk-line); }
.mq-qr { width: 78px; height: 78px; color: var(--pk-text); }
.mq-hint { color: var(--pk-muted); font-size: .6875rem; }

/* Step 2: phone peeking from the bottom */
.sv-phone { place-items: start center; }
.phone-step { --pw: 200px; margin-top: 28px; box-shadow: inset 0 0 0 1.5px rgba(255, 248, 238, .1), var(--shadow); }
.op-static .op-hero { flex: none; justify-content: flex-start; margin-top: .4em; }
.op-static .pk-disc { --d: 56cqi; }

/* Step 3: staff card + ready alert */
.sv-ready { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.mini-card {
  display: flex; align-items: center; gap: 10px;
  width: min(280px, 90%); padding: 7px;
  border-radius: 99px; background: var(--pk-surface); color: var(--pk-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), var(--shadow);
  line-height: 1.3;
}
.mc-mini {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--pk-surface); outline: 3px dotted var(--pk-line); outline-offset: -8px;
  box-shadow: inset 0 0 0 1.5px var(--pk-line);
  font-size: 1.3rem; font-weight: var(--fw-black); direction: ltr;
}
.mc-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mc-info small { color: var(--pk-muted); font-size: .6875rem; }
.mc-info b { font-size: 1rem; font-weight: var(--fw-black); font-variant-numeric: tabular-nums; }
.mc-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 50px; padding: 0 20px; border-radius: 99px;
  background: var(--pk-ready); color: var(--pk-on-ready); font-weight: var(--fw-black);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2);
}
.mc-btn .ico { width: 18px; height: 18px; }
.tap {
  position: absolute; top: 50%; left: 40%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; border: 2.5px solid rgba(255, 248, 238, .95);
  animation: tap 2.4s ease-out infinite;
}
@keyframes tap { 0% { transform: scale(.4); opacity: 0; } 15% { opacity: 1; } 60%, 100% { transform: scale(1.6); opacity: 0; } }
.mini-alert {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--radius-pill);
  background: var(--pk-ready); color: var(--pk-on-ready);
  font-size: .875rem; font-weight: var(--fw-black); box-shadow: var(--shadow);
}
.mini-alert svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .tap { animation: none; opacity: 1; transform: scale(1); } }

/* =====================================================================
   Product screens (coffee)
   ===================================================================== */
.section-dark {
  background:
    radial-gradient(50% 60% at 85% 0%, rgba(185, 68, 30, .3), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(255, 148, 102, .12), transparent 70%),
    var(--color-dark);
  color: var(--color-dark-text);
}
.section-dark .kicker { background: rgba(255, 148, 102, .14); color: var(--color-dark-accent); }
.section-dark .section-lead { color: var(--color-dark-muted); }

.screens-grid { display: grid; gap: var(--space-7) var(--space-6); align-items: start; }
@media (min-width: 960px) { .screens-grid { grid-template-columns: 1.3fr 1fr; align-items: center; } }

.mock { margin: 0; display: flex; flex-direction: column; gap: var(--space-4); container-type: inline-size; min-width: 0; }
.mock figcaption { color: var(--color-dark-muted); font-size: var(--fs-sm); text-align: center; }
.mock figcaption b { color: var(--color-dark-text); }
.mock-note { margin-top: var(--space-6); text-align: center; color: var(--color-dark-muted); font-size: var(--fs-xs); }

/* ---- Tablet: staff dashboard («قُرص») ---- */
.tablet {
  padding: 2.2cqi; border-radius: 3.4cqi;
  background: linear-gradient(150deg, #4A382D, var(--pk-bezel) 30%, var(--pk-bezel) 75%, #3A2B22);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 238, .1), var(--shadow-lg);
}
.tablet-screen {
  overflow: hidden; border-radius: 1.6cqi;
  padding: 1em 1.1em 1.3em;
  background: var(--pk-bg); color: var(--pk-text);
  font-family: var(--font);
  font-size: 1.45cqi; line-height: 1.35;
}
.tablet-screen .ico { width: 1.2em; height: 1.2em; }

.sb-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  height: 4.6em; padding-inline: 1.5em .6em;
  background: var(--pk-surface); border-radius: 99px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 .7em 1.4em -1em rgba(43, 27, 18, .45);
}
.sb-brand { display: flex; align-items: center; gap: 1em; min-width: 0; }
.sb-mark { display: inline-flex; align-items: center; gap: .5em; font-size: 1.1em; font-weight: var(--fw-black); white-space: nowrap; }
.sb-mark::before {
  content: ""; width: 1.15em; height: 1.15em; border-radius: 50%; flex: none;
  background: radial-gradient(circle closest-side, var(--pk-on-ready) 0 50%, var(--pk-ready) 53%);
}
.sb-sep { width: 1.5px; height: 2.2em; background: var(--pk-line); }
.sb-titles { display: flex; flex-direction: column; min-width: 0; }
.sb-titles b { font-size: 1.2em; font-weight: var(--fw-black); white-space: nowrap; }
.sb-titles small { display: flex; align-items: center; gap: .45em; font-size: .85em; color: var(--pk-muted); white-space: nowrap; }
.sb-dot { width: .6em; height: .6em; border-radius: 50%; background: var(--pk-prep); }
.sb-actions { display: flex; align-items: center; gap: .35em; }
.sb-btn {
  display: inline-flex; align-items: center; gap: .45em; height: 3.3em; padding: 0 1em;
  border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--pk-line);
  font-weight: var(--fw-black); white-space: nowrap;
}
.sb-quiet { padding: 0 .9em; color: var(--pk-text); font-weight: var(--fw-medium); white-space: nowrap; }

.sb-entry {
  display: grid; grid-template-columns: auto auto minmax(6em, 10em) minmax(0, 1fr) auto;
  align-items: center; gap: .7em; padding: 1em 0 .3em;
}
.sb-new {
  display: inline-flex; align-items: center; gap: .7em; height: 4.4em; padding: 0 .6em 0 1.4em;
  border-radius: 99px; background: var(--pk-text); color: var(--pk-surface);
  font-size: 1.1em; font-weight: var(--fw-black); white-space: nowrap;
  box-shadow: inset 0 -.25em 0 rgba(0, 0, 0, .25);
}
.sb-new b {
  display: grid; place-items: center; width: 3em; height: 3em; border-radius: 50%;
  background: var(--pk-ready); color: var(--pk-on-ready);
  outline: .13em dotted var(--pk-led); outline-offset: -.4em; direction: ltr;
}
.sb-or { color: var(--pk-muted); font-size: .9em; }
.sb-field {
  display: flex; align-items: center; height: 4.8em; padding: 0 1.3em; min-width: 0;
  border-radius: 99px; background: var(--pk-surface); color: var(--pk-muted);
  box-shadow: inset 0 0 0 1.5px var(--pk-line), inset 0 .2em .4em rgba(43, 27, 18, .06);
  white-space: nowrap; overflow: hidden;
}
.sb-field-num { justify-content: center; }
.sb-add {
  display: inline-flex; align-items: center; height: 4.8em; padding: 0 1.3em;
  border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--pk-line);
  font-weight: var(--fw-black); white-space: nowrap;
}

.sb-board { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; align-items: start; padding-top: .9em; }
.sb-col { display: flex; flex-direction: column; gap: .6em; min-width: 0; padding: .5em .7em .9em; border-radius: 2em; background: var(--pk-surface-2); }
.sb-col-ready { background: var(--pk-ready-soft); }
.sb-col-head { display: flex; align-items: center; justify-content: space-between; height: 3.2em; padding: 0 .5em; font-size: 1.2em; font-weight: var(--fw-black); }
.sb-col-head span { display: inline-flex; align-items: center; gap: .55em; }
.sb-col-head span::before { content: ""; width: .8em; height: .8em; border-radius: 50%; border: .18em dotted var(--pk-prep); }
.sb-col-ready .sb-col-head span { color: var(--pk-ready); }
.sb-col-ready .sb-col-head span::before { border: 0; background: var(--pk-ready); box-shadow: 0 0 0 .18em var(--pk-ready-soft), 0 0 0 .3em var(--pk-led); }
.sb-col-head em {
  display: grid; place-items: center; min-width: 2.3em; height: 1.9em; padding: 0 .6em;
  border-radius: 99px; background: var(--pk-surface); font-size: .8em; font-style: normal;
}
.sb-col-ready .sb-col-head em { background: var(--pk-ready); color: var(--pk-on-ready); }

.sb-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; column-gap: .7em;
  padding: .55em; border-radius: 99px; background: var(--pk-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 .6em 1.2em -.9em rgba(43, 27, 18, .45);
}
.sb-mini {
  display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%;
  background: var(--pk-surface); outline: .12em dotted var(--pk-line); outline-offset: -.36em;
  box-shadow: inset 0 0 0 1.5px var(--pk-line);
  font-size: 1.7em; font-weight: var(--fw-black); line-height: 1; direction: ltr;
}
.sb-info { display: flex; flex-direction: column; min-width: 0; }
.sb-info small { color: var(--pk-muted); font-size: .85em; white-space: nowrap; }
.sb-info b { font-size: 1.15em; font-weight: var(--fw-black); font-variant-numeric: tabular-nums; }
.sb-ready {
  display: inline-flex; align-items: center; justify-content: center; gap: .35em;
  height: 3.6em; min-width: 6.5em; padding: 0 1.1em; border-radius: 99px;
  background: var(--pk-ready); color: var(--pk-on-ready);
  font-size: 1.05em; font-weight: var(--fw-black); white-space: nowrap;
  box-shadow: inset 0 -.25em 0 rgba(0, 0, 0, .2);
}
.sb-round {
  display: grid; place-items: center; width: 3.9em; height: 3.9em; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--pk-line); font-size: .9em; font-weight: var(--fw-black);
}
.sb-card.is-ready { grid-template-columns: auto minmax(0, 1fr); row-gap: .6em; padding: .7em .7em .8em; border-radius: 1.6em; }
.sb-card.is-ready .sb-mini { background: var(--pk-ready); color: var(--pk-on-ready); outline-color: var(--pk-led); box-shadow: none; }
.sb-row { grid-column: 1 / -1; display: flex; gap: .45em; }
.sb-ghost, .sb-done {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  height: 3.5em; padding: 0 .6em; border-radius: 99px; font-weight: var(--fw-black); white-space: nowrap;
}
.sb-ghost { box-shadow: inset 0 0 0 1.5px var(--pk-line); }
.sb-done { background: var(--pk-text); color: var(--pk-surface); box-shadow: inset 0 -.25em 0 rgba(0, 0, 0, .25); }

/* Narrow containers (phones): bigger type, fewer details */
@container (max-width: 560px) {
  .tablet-screen { font-size: 2.25cqi; padding: .8em .8em 1em; }
  .sb-top { padding-inline: 1.2em .5em; }
  .sb-mark, .sb-sep, .sb-titles small, .sb-quiet, .sb-btn:not(:first-child),
  .sb-or, .sb-field-label, .sb-round, .sb-ghost { display: none; }
  .sb-entry { grid-template-columns: auto minmax(0, 1fr) auto; }
  .sb-col .sb-card:nth-of-type(n+3) { display: none; }
  .sb-card { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: .5em; }
  .sb-ready { min-width: 0; padding: 0 .9em; }
  .sb-ready .ico { display: none; }
}

/* ---- TV: display screen («قُرص») ---- */
.tv {
  padding: 1.7cqi; border-radius: 2.2cqi;
  background: linear-gradient(160deg, #4A382D, var(--pk-bezel) 35%);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 238, .1), var(--shadow-lg);
}
.tv-screen {
  display: flex; flex-direction: column; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: .9cqi; background: var(--pk-bg); color: var(--pk-text);
  font-family: var(--font); font-size: 2.3cqi; line-height: 1.3;
}
.tv-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .7em 1.2em .35em; }
.tv-title { display: flex; align-items: center; gap: .8em; }
.tv-title b { font-size: 1.4em; font-weight: var(--fw-black); }
.tv-mark { display: inline-flex; align-items: center; gap: .4em; font-size: .75em; font-weight: var(--fw-black); }
.tv-mark::before {
  content: ""; width: 1.1em; height: 1.1em; border-radius: 50%;
  background: radial-gradient(circle closest-side, var(--pk-on-ready) 0 50%, var(--pk-ready) 53%);
}
.tv-side { display: flex; align-items: center; gap: 1em; }
.tv-live { display: inline-flex; align-items: center; gap: .4em; color: var(--pk-muted); font-size: .8em; }
.tv-live::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--pk-prep); }
.tv-clock { font-size: 1.3em; font-weight: var(--fw-black); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tv-board { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.9fr 1fr; gap: .8em; padding: .45em 1.2em 1.1em; }
.tv-col { display: flex; flex-direction: column; min-height: 0; padding: .65em .9em .9em; border-radius: 1.3em; }
.tv-ready { background: var(--pk-ready); color: var(--pk-on-ready); }
.tv-prep { background: var(--pk-surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 .6em 1.2em -.9em rgba(43, 27, 18, .4); }
.tv-col-head { display: flex; align-items: center; gap: .5em; margin-bottom: .45em; font-size: 1.05em; font-weight: var(--fw-black); }
.tv-ready .tv-col-head::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--pk-led); box-shadow: 0 0 0 .15em var(--pk-ready), 0 0 0 .27em var(--pk-on-ready); }
.tv-prep .tv-col-head::before { content: ""; width: .55em; height: .55em; border-radius: 50%; border: .13em dotted var(--pk-prep); }
.tv-grid {
  flex: 1; min-height: 0; display: grid; place-items: center; gap: .4em;
  grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr));
}
.tv-grid .pk-disc {
  --d: 5.5em; --led: rgba(185, 68, 30, .22); --face: var(--pk-surface);
  box-shadow: 0 0 0 calc(var(--d) * .03) rgba(255, 248, 238, .18), 0 calc(var(--d) * .08) calc(var(--d) * .14) calc(var(--d) * -.06) rgba(60, 14, 0, .55);
}
.tv-grid .pk-disc::after { animation: none; opacity: .55; }
.tv-grid .pk-disc.is-newest { --d: 5.9em; animation: tv-pulse 1.8s ease-out infinite; }
.tv-grid .pk-disc.is-newest::after { opacity: 1; animation: led-blink .9s steps(2, jump-none) infinite; }
@keyframes tv-pulse {
  0% { box-shadow: 0 0 0 calc(var(--d) * .03) rgba(255, 248, 238, .3), 0 0 0 calc(var(--d) * .03) rgba(255, 248, 238, .4); }
  100% { box-shadow: 0 0 0 calc(var(--d) * .03) rgba(255, 248, 238, .3), 0 0 0 calc(var(--d) * .18) rgba(255, 248, 238, 0); }
}
.tv-pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55em .3em; justify-items: center; }
.tv-pgrid span {
  display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%;
  background: var(--pk-bg); outline: .09em dotted var(--pk-line); outline-offset: -.28em;
  font-size: 1.25em; font-weight: var(--fw-black); line-height: 1; direction: ltr;
}
.tv-stand {
  width: 24%; height: 16px; margin: calc(-1 * var(--space-4)) auto 0;
  background: linear-gradient(#3A2B22, var(--pk-bezel));
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
}

/* =====================================================================
   Theme choice — three mini previews built from each theme's colours
   (public/themes/{puck,receipt,neon}/base.css)
   ===================================================================== */
.themes {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.theme-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px 10px var(--space-5); border-radius: var(--radius-lg);
  background: var(--color-surface); border: 1px solid var(--color-line); box-shadow: var(--shadow-sm);
}
.theme-card h3, .theme-card p { padding-inline: 12px; }
.theme-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: 1.25rem; font-weight: var(--fw-black); }
.theme-card p { color: var(--color-muted); }
.theme-badge {
  padding: 2px 10px; border-radius: var(--radius-pill);
  background: var(--color-brand-soft); color: var(--color-brand-ink);
  font-size: .75rem; font-weight: var(--fw-bold); line-height: 1.6;
}

.tp {
  display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: calc(var(--radius-lg) - 8px); container-type: inline-size;
  font-family: var(--font); line-height: 1.2;
}
.tp-half { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5cqi; min-width: 0; }
.tp-half small { font-size: 4.2cqi; font-weight: var(--fw-black); white-space: nowrap; }

/* قُرص */
.tp-puck .tp-prep { background: var(--pk-bg); color: var(--pk-prep); }
.tp-puck .tp-ready { background: var(--pk-ready); color: var(--pk-on-ready); }
.tp-puck .pk-disc { --d: 25cqi; }
.tp-puck .tp-ready .pk-disc {
  box-shadow: 0 0 0 calc(var(--d) * .045) rgba(255, 248, 238, .28), 0 calc(var(--d) * .08) calc(var(--d) * .16) calc(var(--d) * -.06) rgba(60, 14, 0, .6);
}

/* إيصال */
.tp-receipt { --r-paper: #F2EEE5; --r-sheet: #FFFDF8; --r-ink: #1A1916; --r-yellow: #FFD60A; }
.tp-receipt .tp-prep { background: var(--r-paper); color: var(--r-ink); }
.tp-receipt .tp-ready { background: var(--r-yellow); color: var(--r-ink); }
.tp-ticket {
  --notch: 1.4cqi;
  display: block; padding: 4.5cqi 6.5cqi 5cqi;
  background: var(--r-sheet); color: var(--r-ink);
  font-size: 13cqi; font-weight: var(--fw-black); line-height: 1; letter-spacing: -.02em; direction: ltr;
  -webkit-mask:
    radial-gradient(circle at 50% 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) 50% 0 / 4cqi 51% repeat-x,
    radial-gradient(circle at 50% 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) 50% 100% / 4cqi 51% repeat-x;
          mask:
    radial-gradient(circle at 50% 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) 50% 0 / 4cqi 51% repeat-x,
    radial-gradient(circle at 50% 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) 50% 100% / 4cqi 51% repeat-x;
}
.tp-receipt small { padding: .8cqi 2.4cqi; border: .5cqi solid var(--r-ink); border-radius: .6cqi; }
.tp-receipt .tp-prep small { background: repeating-linear-gradient(-45deg, transparent 0 1.2cqi, rgba(26, 25, 22, .1) 1.2cqi 1.8cqi); }
.tp-receipt .tp-ready small { background: var(--r-sheet); border-width: .7cqi; transform: rotate(-6deg); }

/* نيون (dark espresso; numbers glow turquoise when ready) */
.tp-neon { --n-bg: #15110E; --n-surface: #201A16; --n-latte: #D9C0A0; --n-turq: #3BE0C8; background: var(--n-bg); }
.tp-neon .tp-prep { color: var(--n-latte); }
.tp-neon .tp-ready {
  color: var(--n-turq);
  background: radial-gradient(closest-side, rgba(59, 224, 200, .16), transparent);
  border-inline-start: 1px solid rgba(243, 233, 220, .1);
}
.tp-big { font-size: 19cqi; font-weight: var(--fw-black); line-height: 1; direction: ltr; }
.tp-neon .tp-prep .tp-big { color: var(--n-surface); -webkit-text-stroke: .55cqi var(--n-latte); paint-order: stroke fill; }
.tp-neon .tp-ready .tp-big { text-shadow: 0 0 .1em rgba(59, 224, 200, .9), 0 0 .35em rgba(59, 224, 200, .5); }

.applies {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px;
  margin-top: var(--space-6); text-align: center;
}
.applies p { font-weight: var(--fw-bold); color: var(--color-ink-soft); }
.applies ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.applies li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  border-radius: var(--radius-pill); background: var(--color-surface); border: 1px solid var(--color-line);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
}
.applies .ico { width: 18px; height: 18px; color: var(--color-brand-ink); }

/* =====================================================================
   Comparison
   ===================================================================== */
.compare-wrap {
  overflow: hidden; border-radius: var(--radius-lg);
  background: var(--color-surface); border: 1px solid var(--color-line); box-shadow: var(--shadow);
}
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: var(--space-4) var(--space-5); text-align: start; vertical-align: top; border-bottom: 1px solid var(--color-line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { background: var(--color-bg); font-size: var(--fs-sm); color: var(--color-ink-soft); }
.compare thead .col-us { color: var(--color-brand-ink); background: var(--color-brand-soft); }
.compare tbody th { font-weight: var(--fw-semibold); width: 24%; }
.compare td { color: var(--color-ink-soft); }
.compare td:last-child { background: rgba(246, 216, 200, .4); color: var(--color-ink); }
.compare .ico { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin-inline-end: var(--space-2); }
.compare .pro .ico { color: var(--color-brand-ink); }
.compare .con .ico { color: var(--color-muted); }
.compare .neutral .ico { color: var(--color-ink-soft); }

@media (max-width: 639px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody { display: block; }
  .compare tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--color-line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare th, .compare td { border-bottom: 0; }
  .compare tbody th { grid-column: 1 / -1; width: auto; padding: var(--space-4) var(--space-4) var(--space-1); }
  .compare td { padding: var(--space-2) var(--space-4) var(--space-4); font-size: var(--fs-sm); line-height: 1.65; }
  .compare td:last-child { background: transparent; }
  .compare td::before {
    display: block; margin-bottom: 2px;
    font-size: .75rem; font-weight: var(--fw-semibold); color: var(--color-muted);
  }
  .compare td:nth-of-type(1)::before { content: "البيجر التقليدي"; }
  .compare td:nth-of-type(2)::before { content: "بيجر تِك"; color: var(--color-brand-ink); }
}

/* =====================================================================
   Who it's for
   ===================================================================== */
.chips {
  list-style: none; padding: 0; margin: 0 0 var(--space-7);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.chips li {
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--color-surface); border: 1px solid var(--color-line);
  font-weight: var(--fw-semibold); font-size: var(--fs-sm); box-shadow: var(--shadow-sm);
}
.fit { display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .fit { grid-template-columns: 1.25fr 1fr; } }
.fit-box { padding: var(--space-6) var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--color-line); background: var(--color-surface); }
.fit-box h3 { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-h3); margin-bottom: var(--space-3); }
.fit-box ul { margin: 0; padding-inline-start: 1.2em; color: var(--color-ink-soft); }
.fit-box li + li { margin-top: 6px; }
.fit-yes { background: var(--color-brand-soft); border-color: rgba(185, 68, 30, .22); }
.fit-yes h3 { color: var(--color-brand-ink); }
.fit-no h3 { color: var(--color-ink-soft); }

/* =====================================================================
   Pilot / pricing
   ===================================================================== */
.pilot {
  display: grid; gap: var(--space-6);
  padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-xl);
  background: var(--color-surface); border: 1px solid var(--color-line); box-shadow: var(--shadow);
}
@media (min-width: 960px) { .pilot { grid-template-columns: 1.4fr 1fr; gap: var(--space-7); align-items: start; } }
.pilot-main > p { color: var(--color-ink-soft); font-size: var(--fs-lg); }
.checks { list-style: none; padding: 0; margin: var(--space-5) 0 var(--space-6); display: grid; gap: var(--space-3); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { color: var(--color-brand-ink); width: 22px; height: 22px; margin-top: 4px; }

.pilot-side { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--color-bg); }
.pilot-side h3 { font-size: 1.125rem; }
.needs { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); color: var(--color-ink-soft); font-size: var(--fs-sm); }
.needs li { display: flex; gap: 10px; align-items: flex-start; }
.needs .ico { color: var(--color-brand-ink); width: 20px; height: 20px; margin-top: 3px; }

.price-box { padding: var(--space-4); border-radius: var(--radius); border: 2px solid var(--color-line-strong); background: var(--color-surface); }
.pp-label { font-weight: var(--fw-bold); margin-bottom: var(--space-1); }
.pp-price { font-size: var(--fs-h2); font-weight: var(--fw-black); line-height: 1.25; margin: 0 0 var(--space-2); }
.pp-per { font-size: var(--fs-sm); font-weight: var(--fw-regular); color: var(--color-muted); }
.pp-text { color: var(--color-muted); font-size: var(--fs-sm); }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { display: grid; gap: var(--space-3); }
.faq details { border-radius: var(--radius); background: var(--color-surface); border: 1px solid var(--color-line); transition: border-color .15s ease; }
.faq details[open] { border-color: rgba(185, 68, 30, .45); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 60px; padding: var(--space-3) var(--space-5);
  font-weight: var(--fw-semibold); font-size: var(--fs-base); line-height: 1.5;
  cursor: pointer; list-style: none; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: -5px;
  border: solid var(--color-brand-ink); border-width: 0 2px 2px 0;
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 5px; }
.faq-a { padding: 0 var(--space-5) var(--space-5); color: var(--color-ink-soft); }
.faq-a p + p { margin-top: var(--space-3); }
.faq-a strong { color: var(--color-ink); }

/* =====================================================================
   Final CTA (clay = "ready") & footer (coffee)
   ===================================================================== */
.final-cta {
  padding-block: var(--section-pad); text-align: center; color: var(--color-on-brand);
  background:
    radial-gradient(70% 90% at 50% -25%, rgba(255, 148, 102, .22), transparent 70%),
    var(--color-brand);
}
.final-puck { --d: 84px; margin: 0 auto var(--space-5); color: var(--pk-ready); animation: puck-pulse 1.8s ease-out infinite; }
.final-puck svg { width: 34px; height: 34px; }
.final-cta h2 { font-size: clamp(1.75rem, 1.15rem + 2.5vw, 2.75rem); font-weight: var(--fw-black); margin-bottom: var(--space-3); }
.final-cta p { color: var(--color-on-brand); font-size: var(--fs-lg); }
.final-cta .cta-row { justify-content: center; }

.site-footer { background: var(--color-darker); color: var(--color-dark-muted); padding-block: var(--space-7) var(--space-6); font-size: var(--fs-sm); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); }
.site-footer .brand { color: var(--color-dark-text); }
.footer-brand p { margin-top: var(--space-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.footer-nav a { color: var(--color-dark-text); text-decoration: none; padding-block: 10px; }
.footer-nav a:hover { text-decoration: underline; }
.footer-copy { flex-basis: 100%; padding-top: var(--space-5); border-top: 1px solid var(--color-dark-line); font-size: var(--fs-xs); }
