/* =====================================================================
   Trings design tokens
   Brand    #F05A28  primary buttons, links, accents
   Ink      #1C1B1F  text, dark surfaces
   Paper    #ffffff  main background
   Grey     #5f6368  secondary text
   Line     #e6e6e8  borders and dividers
   Ready    #22c55e / #15803d  ONLY for the "order ready" state
   ===================================================================== */
:root {
  --brand: #F05A28;
  --brand-hover: #D94E22;
  --ink: #1C1B1F;
  --ink-2: #1c1c1e;
  --ink-3: #2c2c2e;
  --paper: #ffffff;
  --paper-2: #f6f6f7;
  --paper-3: #ececee;
  --grey: #5f6368;
  --grey-2: #8e8e93;
  --line: #e6e6e8;
  --line-dark: rgba(255,255,255,.12);
  --on-ink: #ffffff;
  --on-ink-dim: #a1a1a6;
  --ready: #22c55e;
  --ready-deep: #15803d;
  --ready-soft: #e7f8ee;

  --display: "Outfit", "IBM Plex Sans", -apple-system, sans-serif;
  --sans: "IBM Plex Sans", "IBM Plex Sans Arabic", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}
html[lang="ar"] {
  --display: "IBM Plex Sans Arabic", "Outfit", sans-serif;
  --sans: "IBM Plex Sans Arabic", "IBM Plex Sans", -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.pricing :focus-visible, .feat-hero :focus-visible, footer :focus-visible { outline-color: #fff; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums lining-nums; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--brand); color: var(--on-ink); font-weight: 600; }
.btn-primary:hover { background: var(--brand-hover); }
#payBtn:disabled { background: color-mix(in srgb, var(--brand) 42%, var(--paper-2)); cursor: not-allowed; }
.btn-outline { color: var(--ink); box-shadow: 0 0 0 1.5px var(--line) inset; }
.btn-outline:hover { box-shadow: 0 0 0 1.5px var(--brand) inset; color: var(--brand); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--paper-3); }

.nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-img { height: 30px; width: auto; }
.logo-mark { width: 28px; height: 28px; color: var(--brand); }
.logo-word { font-family: var(--display); font-weight: 600; font-size: 25px; letter-spacing: -.01em; line-height: 1; }
.nav-links { display: flex; gap: 26px; margin-inline-start: 18px; }
.nav-links a { color: var(--grey); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--brand); }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.nav-end .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.lang { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 999px; color: var(--grey); font-size: 14px; font-weight: 500; text-decoration: none; }
.lang:hover { color: var(--brand); background: var(--paper-2); }
.login-link { color: var(--grey); text-decoration: none; font-size: 15px; padding: 0 10px; }
.login-link:hover { color: var(--brand); }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; color: var(--ink); }

footer { background: var(--ink); color: var(--on-ink-dim); }
footer .logo { color: #fff; }
footer .logo-img { height: 26px; filter: none; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-block: 36px; font-size: 14.5px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }

/* Embedded payment box (mf-embedded.js): calm line while idle, skeleton until VIEW_READY. */
.mf-box { position: relative; min-height: 230px; padding: 12px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line) inset; overflow: hidden; }
.mf-skeleton { display: grid; gap: 12px; }
.mf-skeleton span { display: block; height: 44px; border-radius: 10px; background: linear-gradient(90deg, var(--paper-2) 25%, var(--paper-3) 37%, var(--paper-2) 63%); background-size: 400% 100%; animation: mf-shimmer 1.4s ease infinite; }
.mf-skeleton .mf-sk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mf-skeleton .mf-sk-short { width: 55%; }
.mf-box[data-state="error"] .mf-skeleton span { animation: none; opacity: .55; }
.mf-idle { display: none; margin: 0; font-size: 14px; color: var(--grey); text-align: center; }
.mf-box[data-state="idle"] { min-height: 0; display: flex; align-items: center; justify-content: center; padding: 28px 16px; }
.mf-box[data-state="idle"] .mf-idle { display: block; }
.mf-box[data-state="idle"] .mf-skeleton,
.mf-box[data-state="ready"] .mf-skeleton,
.mf-box[data-state="paying"] .mf-skeleton { display: none; }
.mf-box[data-state="loading"] .mf-mount { position: absolute; inset: 12px; opacity: 0; pointer-events: none; }
.mf-box[data-state="idle"] .mf-mount,
.mf-box[data-state="error"] .mf-mount { display: none; }
.mf-box[data-state="paying"] .mf-mount { opacity: .6; pointer-events: none; }
.mf-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.mf-status .mf-hint { flex: 1 1 100%; font-size: 13.5px; color: var(--grey); }
.mf-status .pay-err { flex: 1 1 220px; margin: 0; font-size: 13.5px; color: #b42318; }
.mf-retry { min-height: 36px; padding: 0 14px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--paper); border: 0; box-shadow: 0 0 0 1.5px var(--line) inset; cursor: pointer; }
.mf-retry:hover { box-shadow: 0 0 0 1.5px var(--ink) inset; }
@keyframes mf-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (max-width: 860px) {
  .nav-links, .login-link { display: none; }
  .nav.open .nav-links { display: flex; position: absolute; top: 72px; inset-inline: 0; flex-direction: column; gap: 0; margin: 0; background: #fff; padding: 8px var(--gutter) 18px; border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a { padding: 14px 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .menu-btn { display: grid; place-items: center; }
}
@media (max-width: 560px) {
  .nav-end .btn-primary { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
