/* وين landing — tokens, reset, type, buttons, nav, footer.
   Same system as the app (lib/utils/app_theme.dart): white surfaces, hairline
   borders, one teal accent, dark titles, Tajawal. */
:root {
  --teal: #0891B2;
  --teal-dark: #0E7490;
  --teal-light: #22D3EE;
  --teal-soft: #E6F6FA;
  --ink: #111827;
  --ink-2: #1E293B;
  --text-2: #6B7280;
  --text-3: #9CA3AF;
  --border: #E2E6EB;
  --divider: #ECEEF1;
  --surface: #F6F8FA;
  --canvas: #F4F6F8;
  --white: #fff;
  --open: #059669;  --open-bg: #E7F6F0;
  --closed: #DC2626; --closed-bg: #FCEAEA;
  --slow: #D97706;  --slow-bg: #FBF1E3;
  --r-sm: 10px; --r-md: 12px; --r-lg: 14px; --r-xl: 20px; --r-2xl: 28px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px -12px rgba(17, 24, 39, .12);
  --shadow-lg: 0 2px 4px rgba(17, 24, 39, .05), 0 30px 60px -24px rgba(8, 145, 178, .35);
  --wrap: 1140px;
  --font: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--white);
  line-height: 1.7; font-size: 17px; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5.2vw, 3.6rem); font-weight: 900; }
h1 em { font-style: normal; color: var(--teal); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 36rem; }
.muted { color: var(--text-3); font-size: .92rem; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem;
  color: var(--teal-dark); background: var(--teal-soft); border: 1px solid #CDEBF3;
  border-radius: 999px; padding: 4px 12px; margin-bottom: 14px;
}
.section__head { max-width: 40rem; margin-bottom: 36px; }
.section__head h2 { margin-top: 2px; }

/* dots & status chips (same colours as the app) */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); display: inline-block; }
.dot--live { background: var(--open); box-shadow: 0 0 0 0 rgba(5, 150, 105, .5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(5,150,105,.45);} 70% { box-shadow: 0 0 0 9px rgba(5,150,105,0);} 100% { box-shadow: 0 0 0 0 rgba(5,150,105,0);} }
.status { font-weight: 800; font-size: .82rem; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status--open { color: var(--open); background: var(--open-bg); }
.status--closed { color: var(--closed); background: var(--closed-bg); }
.status--slow { color: var(--slow); background: var(--slow-bg); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; border-radius: var(--r-md); padding: 12px 22px; font-size: 1rem;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 6px 16px -8px rgba(8,145,178,.7); }
.btn--primary:hover { background: var(--teal-dark); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn--lg { padding: 14px 26px; font-size: 1.08rem; }
.btn--sm { padding: 8px 16px; font-size: .95rem; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--divider); }
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.35rem; color: var(--ink); }
.brand img { border-radius: 10px; }
.brand--sm { font-size: 1.1rem; }
.nav__links { display: flex; align-items: center; gap: 26px; font-weight: 700; color: var(--ink-2); }
.nav__links a:not(.btn):hover { color: var(--teal-dark); }
.nav__toggle, .nav__burger { display: none; }

/* footer */
.footer { border-top: 1px solid var(--divider); padding: 28px 0; background: #fff; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 20px; font-weight: 700; color: var(--text-2); font-size: .95rem; }
.footer nav a:hover { color: var(--teal-dark); }

/* scroll reveal (no-JS safe: visible by default, JS adds .js) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal--late { transition-delay: .15s; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .dot--live { animation: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__burger { display: flex; flex-direction: column; gap: 5px; padding: 10px; cursor: pointer; }
  .nav__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav__links {
    display: none; position: absolute; inset-inline: 0; top: 66px; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--divider); padding: 12px 16px 18px; gap: 4px;
  }
  .nav__links a { padding: 10px 6px; }
  .nav__links .btn { margin-top: 8px; }
  .nav__toggle:checked ~ .nav__links { display: flex; }
}
