/* 047 · Wingspan (جَناح البريد) — 1:1 Reference-Faithful Transactional Email Stylesheet */
:root {
  --ws-sky: #1e5fd6;
  --ws-cloud: #f5f9ff;
  --ws-ink: #0a1020;
  --ws-yellow: #ffd23f;
  --ws-green: #6be3a5;
  --ws-muted: rgba(10, 16, 32, 0.66);
  --ws-line: rgba(10, 16, 32, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ws-cloud); color: var(--ws-ink); }

body {
  margin: 0;
  background: var(--ws-cloud);
  color: var(--ws-ink);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  line-height: 1.68;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, a, button, span, input { letter-spacing: 0; }
[dir="ltr"] { font-family: 'JetBrains Mono', monospace; }

.ws-pill-yellow {
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: var(--ws-yellow);
  color: var(--ws-ink);
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.ws-pill-ghost-light {
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
}

/* Section 1: Cobalt Sky Hero (#1E5FD6) + Frosted Nav + Live Code Card */
.ws-hero {
  position: relative;
  min-height: 100dvh;
  background: var(--ws-sky);
  color: #ffffff;
  padding: 24px clamp(20px, 4vw, 56px) 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.ws-hero-bg { position: absolute; inset: 0; z-index: 0; }
.ws-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }

.ws-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(30, 95, 214, 0.92) 0%, rgba(30, 95, 214, 0.62) 55%, rgba(16, 56, 138, 0.88) 100%);
}

.ws-watermark {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: 'Readex Pro', sans-serif;
  font-weight: 800;
  font-size: 16vw;
  line-height: 0.82;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 249, 255, 0.22);
  pointer-events: none;
}

.ws-nav {
  position: relative;
  z-index: 10;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ws-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Readex Pro', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.ws-nav-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  display: flex;
  gap: 6px;
}

.ws-nav-pill a {
  padding: 5px 14px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.84rem;
  white-space: nowrap;
}

.ws-hero-body {
  position: relative;
  z-index: 10;
  max-width: 1320px;
  width: 100%;
  margin: auto 0 0;
  margin-inline: auto;
  padding-top: 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: end;
}

.ws-h1 {
  margin: 0 0 16px;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.04;
}

.ws-serif-yellow {
  font-family: 'Amiri', Georgia, serif;
  font-style: italic;
  color: var(--ws-yellow);
  font-weight: 400;
}

.ws-code-card {
  background: rgba(10, 16, 32, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 20px;
  color: #e2e8f0;
  box-shadow: 0 30px 65px -24px rgba(5, 15, 60, 0.65);
}

/* Light #reasons Bento */
.ws-sec {
  scroll-margin-top: 32px;
  padding: clamp(72px, 8vw, 108px) clamp(20px, 4vw, 56px);
}

.ws-wrap { max-width: 1300px; margin: 0 auto; }

.ws-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.ws-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ws-yellow);
}

.ws-h2 {
  margin: 0 0 14px;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.14;
}

.ws-grid-3 {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ws-white-card {
  background: #ffffff;
  border: 1px solid var(--ws-line);
  border-radius: 26px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ws-white-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -20px rgba(30, 95, 214, 0.22);
}

/* Dark #delivery Metrics Band */
.ws-dark-band {
  background: var(--ws-ink);
  color: #ffffff;
  padding: clamp(76px, 8.5vw, 112px) clamp(20px, 4vw, 56px);
}

.ws-kpis-4 {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ws-kpi-box {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
}

/* #pricing Interactive Volume Calculator + Flock Grid */
.ws-calc-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.ws-calc-panel {
  background: var(--ws-cloud);
  border: 1px solid var(--ws-line);
  border-radius: 28px;
  padding: 30px;
}

.ws-flock-grid {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 4px;
}

.ws-flock-grid i {
  height: 12px;
  border-radius: 3px;
  background: #dbeafe;
}

.ws-flock-grid i.is-lit {
  background: var(--ws-sky);
}

.ws-summary-card {
  background: var(--ws-ink);
  color: #ffffff;
  border-radius: 28px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* #send Cobalt Blueprint Grid Quickstart + Live Delivery Timeline Toast */
.ws-blue-grid-band {
  background-color: var(--ws-sky);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  color: #ffffff;
  padding: clamp(72px, 8vw, 104px) clamp(20px, 4vw, 56px);
}

.ws-toast {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 80;
  width: min(340px, 92vw);
  background: var(--ws-ink);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 24px 55px rgba(10, 16, 32, 0.55);
  display: none;
}

.ws-toast.is-open { display: block; }

.ws-footer {
  background: var(--ws-ink);
  color: #ffffff;
  padding: 40px clamp(20px, 4vw, 56px);
}

@media (max-width: 720px) {
  .ws-nav-pill { display: none; }
  .ws-hero-body, .ws-grid-3, .ws-kpis-4, .ws-calc-grid { grid-template-columns: 1fr; }
}
