/* DOREK public home page (/ and /en).
   Idea: the restaurant pager, moved onto the customer's phone. The one loud element is the pager
   in the hero (amber LEDs, a short buzz); everything else stays quiet.
   Type: Readex Pro for words, Handjet (dot-matrix, like a queue board) only for numbers and times.
   Both are self-hosted (the CSP allows no other origin) under the SIL Open Font License. */

@font-face { font-family: 'Readex'; font-weight: 160 700; font-display: swap; src: url('/fonts/readex-pro-arabic-full-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Readex'; font-weight: 160 700; font-display: swap; src: url('/fonts/readex-pro-latin-full-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2190-2199, U+2212; }
@font-face { font-family: 'Handjet'; font-weight: 100 900; font-display: swap; src: url('/fonts/handjet-arabic-full-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Handjet'; font-weight: 100 900; font-display: swap; src: url('/fonts/handjet-latin-full-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F; }

.page-landing {
  --counter: #0b3b39;       /* the counter: hero and contact field */
  --counter-hi: #12504c;
  --led: #f2a93b;           /* amber LED, the brand saffron */
  --led-glow: rgba(242, 169, 59, 0.55);
  --sheet: #f7f8f5;         /* receipt paper */
  --surface: #ffffff;
  --ink: #0f2120;
  --quiet: #586764;
  --rule: #dce2df;
  --teal: #0e5e5b;
  --ready: #1e9e58;         /* the real lock-screen card's "ready" green */
  --words: 'Readex', 'SF Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --dots: 'Handjet', ui-monospace, monospace;
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--words);
  font-size: 1.0625rem;
  line-height: 1.8;
}
.page-landing[lang='en'], .page-landing :lang(en) { line-height: 1.6; }
@media (prefers-color-scheme: dark) {
  .page-landing {
    --counter: #092f2d; --counter-hi: #0f4440;
    --sheet: #0c1615; --surface: #121f1d; --ink: #e8efed; --quiet: #9db0ac; --rule: #22322f; --teal: #5cc0b6;
  }
}

:root { color-scheme: light dark; }
.page-landing a, .page-landing summary { color: inherit; touch-action: manipulation; -webkit-tap-highlight-color: rgba(242, 169, 59, 0.25); }
.page-landing h1, .page-landing h2 { text-wrap: balance; }
.page-landing p { text-wrap: pretty; }
.lp-skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 10; background: var(--led); color: #1d1406 !important; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.lp-skip:focus { top: 12px; }
#journey, #main { scroll-margin-top: 16px; }
.page-landing :focus-visible { outline: 3px solid var(--led); outline-offset: 3px; border-radius: 6px; }
.lp-wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .lp-wrap { padding-inline: 32px; } }
.lp-dots { font-family: var(--dots); font-variation-settings: 'ELSH' 10, 'ELGR' 1; font-weight: 600; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* ---------- the counter (hero) ---------- */
.lp-counter { background: radial-gradient(90% 70% at 15% 40%, var(--counter-hi) 0%, var(--counter) 60%); color: #eaf3f1; }
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; text-decoration: none; }
.lp-brand svg { width: 30px; height: 30px; flex: none; }
.lp-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.lp-nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: 0.95rem; color: rgba(234, 243, 241, 0.78); }
.lp-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.lp-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 48px; padding-block: 40px 96px; }
.lp-hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); font-weight: 700; line-height: 1.1; margin: 0 0 24px; color: #fff; }
.lp-hero h1 span { color: var(--led); }
.page-landing[lang='en'] .lp-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
.lp-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(234, 243, 241, 0.82); max-width: 33rem; margin: 0 0 32px; }
.lp-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.lp-cta {
  display: inline-flex; align-items: center; min-height: 52px; padding-inline: 26px; border-radius: 14px;
  background: var(--led); color: #1d1406 !important; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 30px rgba(242, 169, 59, 0.25);
}
.lp-cta:hover { filter: brightness(1.06); }
.lp-more { font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(234, 243, 241, 0.35); padding-bottom: 2px; }
.lp-more:hover { border-color: var(--led); }

/* The pager: a coaster pager seen from above, twelve LEDs on the rim and a display in the middle. */
.lp-pager { --size: clamp(250px, 32vw, 400px); margin: 0; justify-self: center; display: grid; justify-items: center; gap: 18px; }
.lp-disc {
  position: relative; width: var(--size); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #23302f 0%, #121b1b 58%, #0b1212 100%);
  box-shadow: inset 0 0 0 calc(var(--size) * 0.028) #2b3a39, inset 0 calc(var(--size) * 0.006) 0 calc(var(--size) * 0.03) rgba(255, 255, 255, 0.1),
    0 calc(var(--size) * 0.1) calc(var(--size) * 0.22) rgba(0, 0, 0, 0.45);
  animation: lp-buzz 5.2s 3;
}
.lp-leds i {
  --i: 0; position: absolute; top: 50%; left: 50%;
  width: calc(var(--size) * 0.046); height: calc(var(--size) * 0.046); margin: calc(var(--size) * -0.023);
  border-radius: 50%; background: var(--led); opacity: 1; box-shadow: 0 0 calc(var(--size) * 0.03) var(--led-glow);
  transform: rotate(calc(var(--i) * 30deg)) translateY(calc(var(--size) * -0.405));
  animation: lp-led 5.2s 3 both; animation-delay: calc(var(--i) * 60ms);
}
.lp-leds i:nth-child(2) { --i: 1; } .lp-leds i:nth-child(3) { --i: 2; } .lp-leds i:nth-child(4) { --i: 3; }
.lp-leds i:nth-child(5) { --i: 4; } .lp-leds i:nth-child(6) { --i: 5; } .lp-leds i:nth-child(7) { --i: 6; }
.lp-leds i:nth-child(8) { --i: 7; } .lp-leds i:nth-child(9) { --i: 8; } .lp-leds i:nth-child(10) { --i: 9; }
.lp-leds i:nth-child(11) { --i: 10; } .lp-leds i:nth-child(12) { --i: 11; }
.lp-window {
  position: absolute; inset: 24%; border-radius: 24%; background: #041b1a;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: grid; place-content: center; text-align: center; gap: calc(var(--size) * 0.012);
}
.lp-num { font-size: calc(var(--size) * 0.25); line-height: 0.9; color: var(--led); text-shadow: 0 0 calc(var(--size) * 0.05) var(--led-glow); }
.lp-msg { font-family: var(--dots); font-variation-settings: 'ELSH' 10, 'ELGR' 1; font-weight: 600; font-size: calc(var(--size) * 0.074); line-height: 1.1; color: var(--led); opacity: 0.92; }

@keyframes lp-led {
  0%, 3% { opacity: 0.18; }
  6%, 30% { opacity: 1; }
  33%, 36% { opacity: 0.25; }
  39%, 62% { opacity: 1; }
  65%, 68% { opacity: 0.25; }
  71%, 100% { opacity: 1; }
}
@keyframes lp-buzz {
  0%, 6%, 18%, 100% { transform: none; }
  7%, 11%, 15% { transform: translateX(1.5px) rotate(0.5deg); }
  9%, 13%, 17% { transform: translateX(-1.5px) rotate(-0.5deg); }
}

/* ---------- sections on paper ---------- */
.lp-section { padding-block: 88px; }
.lp-section + .lp-section { border-top: 1px solid var(--rule); }
.lp-section h2 { font-size: clamp(1.7rem, 3.4vw, 2.55rem); font-weight: 650; line-height: 1.25; margin: 0 0 12px; max-width: 30ch; }
.lp-intro { color: var(--quiet); max-width: 38rem; margin: 0 0 48px; }

/* Both ends of one call: the staff screen and the customer's lock screen. */
.lp-ends { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); align-items: center; gap: 8px; }
.lp-end { margin: 0; display: grid; gap: 16px; justify-items: center; }
.lp-end figcaption { text-align: center; color: var(--quiet); max-width: 22rem; font-size: 0.98rem; }
.lp-end figcaption b { color: var(--ink); font-weight: 600; }

.lp-staff { width: min(360px, 100%); background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; padding: 20px; box-shadow: 0 18px 40px rgba(15, 33, 32, 0.08); }
.lp-staff-head { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--quiet); margin-bottom: 14px; }
.lp-staff-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.lp-field { border: 1.5px solid var(--rule); border-radius: 12px; padding: 8px 14px; display: grid; }
.lp-field small { font-size: 0.75rem; color: var(--quiet); line-height: 1.3; }
.lp-field span { font-size: 1.6rem; font-weight: 650; line-height: 1.2; }
.lp-ready-btn { display: grid; place-items: center; padding-inline: 26px; border-radius: 12px; background: var(--teal); color: #fff; font-weight: 700; font-size: 1.15rem; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.lp-chips span { font-size: 0.78rem; padding: 3px 10px; border-radius: 999px; background: rgba(30, 158, 88, 0.12); color: var(--ready); font-weight: 600; }
@media (prefers-color-scheme: dark) { .lp-ready-btn { color: #062221; } }

.lp-wire { position: relative; height: 2px; background-image: linear-gradient(to left, var(--quiet) 50%, transparent 0); opacity: 0.6; background-size: 10px 2px; }
.lp-wire { --dir: 1; }
[dir='rtl'] .lp-wire { --dir: -1; }
.lp-wire::after {
  content: ''; position: absolute; top: -4px; inset-inline-start: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--led); box-shadow: 0 0 10px var(--led-glow); opacity: 0; animation: lp-travel 5.2s 3;
}
@keyframes lp-travel {
  0%, 2% { transform: translateX(0); opacity: 0; }
  4% { opacity: 1; }
  10% { transform: translateX(calc(var(--dir) * 110px)); opacity: 1; }
  13%, 100% { transform: translateX(calc(var(--dir) * 110px)); opacity: 0; }
}

/* The customer's lock screen; the card mirrors ios/ClipCard/LockScreenCard.swift. */
.lp-phone { width: min(300px, 100%); aspect-ratio: 9 / 12; border-radius: 44px; padding: 10px; background: #0b0f0f; box-shadow: 0 24px 50px rgba(15, 33, 32, 0.22), inset 0 0 0 2px #2a3331; }
.lp-screen {
  position: relative; height: 100%; border-radius: 35px; overflow: hidden; padding: 46px 10px 10px; display: flex; flex-direction: column; gap: 8px;
  background: radial-gradient(120% 80% at 80% 0%, #3b6f86 0%, #1d3946 50%, #0f1c22 100%); color: #fff;
}
.lp-island { position: absolute; top: 11px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 20px; background: #000; }
.lp-time { text-align: center; font-size: 3rem; font-weight: 500; line-height: 1; direction: ltr; }
.lp-date { text-align: center; font-size: 0.8rem; opacity: 0.85; margin-bottom: 6px; line-height: 1.4; }
.lp-banner { display: flex; gap: 8px; align-items: center; background: rgba(240, 240, 240, 0.2); border-radius: 16px; padding: 8px 10px; line-height: 1.35; }
.lp-banner img { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.lp-banner b { display: block; font-size: 0.8rem; font-weight: 600; }
.lp-banner span { display: block; font-size: 0.72rem; opacity: 0.85; }
.lp-card { background: #fff; color: #142423; border-radius: 20px; padding: 10px 12px 12px; text-align: center; line-height: 1.35; }
.lp-card-top { display: flex; justify-content: space-between; font-size: 0.76rem; font-weight: 600; margin-bottom: 6px; }
.lp-card-top em { font-style: normal; color: #7d8785; letter-spacing: 0.16em; font-size: 0.64rem; direction: ltr; }
.lp-card-top em::before { content: '● '; color: var(--led); letter-spacing: 0; }
.lp-ring {
  position: relative; width: 58px; height: 58px; margin: 4px auto 6px; border-radius: 50%; border: 2.5px solid var(--ready);
  display: grid; place-items: center; font-weight: 700; font-size: 1.35rem; color: var(--ready);
  box-shadow: 0 0 0 5px rgba(30, 158, 88, 0.13), 0 0 0 10px rgba(30, 158, 88, 0.06);
}
.lp-ring i { --i: 0; position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--ready); transform: rotate(calc(var(--i) * 45deg)) translateY(-29px); }
.lp-ring i:nth-of-type(2) { --i: 1; } .lp-ring i:nth-of-type(3) { --i: 2; } .lp-ring i:nth-of-type(4) { --i: 3; }
.lp-ring i:nth-of-type(5) { --i: 4; } .lp-ring i:nth-of-type(6) { --i: 5; } .lp-ring i:nth-of-type(7) { --i: 6; } .lp-ring i:nth-of-type(8) { --i: 7; }
.lp-status { color: var(--ready); font-weight: 700; font-size: 0.9rem; }
.lp-detail { font-size: 0.76rem; }

/* A quarter of an hour, in order: the times are real steps of one visit. */
.lp-times { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.lp-times li { border-top: 2px solid var(--ink); padding-top: 18px; }
.lp-times li:nth-child(3) { border-color: var(--led); }
.lp-times time { display: block; font-size: 3rem; font-weight: 800; line-height: 1; color: var(--ink); margin-bottom: 14px; text-align: start; }
.lp-times li:nth-child(3) time { color: #c9821a; }
.lp-times p { margin: 0; color: var(--quiet); }
.lp-times b { display: block; color: var(--ink); font-weight: 600; }
@media (prefers-color-scheme: dark) { .lp-times li:nth-child(3) time { color: var(--led); } }

/* Pager vs DOREK. */
.lp-vs { width: 100%; border-collapse: collapse; }
.lp-vs th, .lp-vs td { text-align: start; vertical-align: top; padding: 18px 16px; border-bottom: 1px solid var(--rule); }
.lp-vs thead th { font-size: 0.9rem; font-weight: 600; color: var(--quiet); border-bottom: 2px solid var(--ink); }
.lp-vs thead th:last-child { color: var(--teal); }
.lp-vs tbody th { font-weight: 600; width: 22%; padding-inline-start: 0; }
.lp-vs td:nth-child(2) { color: var(--quiet); }
.lp-vs td:last-child { font-weight: 500; }

/* Questions owners ask. */
.lp-faq { max-width: 46rem; }
.lp-faq details { border-bottom: 1px solid var(--rule); }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding-block: 20px; font-weight: 600; font-size: 1.1rem; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary:hover { color: var(--teal); }
.lp-faq summary::after { content: '+'; font-family: var(--dots); font-size: 1.8rem; line-height: 1; color: var(--teal); transition: transform 0.2s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { margin: 0 0 22px; color: var(--quiet); max-width: 40rem; }

/* Contact, back at the counter. */
.lp-contact { background: var(--counter); color: #eaf3f1; }
.lp-contact .lp-wrap { padding-block: 88px; display: grid; justify-items: start; gap: 18px; }
.lp-contact h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; margin: 0; color: #fff; }
.lp-contact p { margin: 0; color: rgba(234, 243, 241, 0.8); max-width: 36rem; }
.lp-mail { font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--led); text-decoration: none; text-shadow: 0 0 18px rgba(242, 169, 59, 0.35); }

.lp-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 28px 40px; font-size: 0.9rem; color: var(--quiet); }
.lp-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.lp-foot a { text-decoration: none; }
.lp-foot a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; padding-block: 16px 72px; gap: 56px; }
  .lp-ends { grid-template-columns: 1fr; gap: 0; }
  .lp-wire { width: 2px; height: 72px; justify-self: center; background-image: linear-gradient(to bottom, var(--quiet) 50%, transparent 0); background-size: 2px 10px; }
  .lp-wire::after { top: 0; inset-inline-start: -4px; animation-name: lp-travel-down; }
  [dir='rtl'] .lp-wire::after { inset-inline-start: -4px; }
  .lp-times { grid-template-columns: 1fr 1fr; }
  .lp-section { padding-block: 64px; }
}
@keyframes lp-travel-down {
  0%, 2% { transform: translateY(0); opacity: 0; }
  4% { opacity: 1; }
  10% { transform: translateY(62px); opacity: 1; }
  13%, 100% { transform: translateY(62px); opacity: 0; }
}
@media (max-width: 560px) {
  .lp-nav .lp-nav-how { display: none; }
  .lp-times { grid-template-columns: 1fr; gap: 24px; }
  .lp-times li { display: grid; grid-template-columns: 5.2rem 1fr; gap: 12px; align-items: baseline; }
  .lp-times time { margin: 0; font-size: 2.1rem; }
  .lp-vs thead { display: none; }
  .lp-vs tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; padding-block: 16px; border-bottom: 1px solid var(--rule); }
  .lp-vs tbody th { grid-column: 1 / -1; width: auto; padding: 0; border: 0; }
  .lp-vs td { padding: 0; border: 0; font-size: 0.95rem; }
  .lp-vs td::before { content: attr(data-label); display: block; font-size: 0.75rem; color: var(--quiet); font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-disc, .lp-wire::after { animation: none; }
  .lp-leds i { animation: none; }
  .lp-wire::after { display: none; }
}
