/* rasdpos.com: Rasd identity (design/tokens.json, design/BRAND.md). No external resources. */

@font-face {
  font-family: "Alexandria";
  src: url("/fonts/Alexandria-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Alexandria";
  src: url("/fonts/Alexandria-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Alexandria";
  src: url("/fonts/Alexandria-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #0B1B3F;
  --navy-2: #13275A;
  --on-navy: #FFFFFF;
  --navy-muted: #9AA6BD;
  --green: #22C55E;
  --on-green: #0B1B3F;
  --green-ink: #15803D;
  --green-soft: #DCFCE7;
  --amber: #F2A93B;
  --amber-soft: #FDF0D8;
  --amber-ink: #8A5A12;
  --surface: #F4F6F9;
  --raised: #FFFFFF;
  --sunken: #EBEEF2;
  --line: #E2E6EC;
  --ink: #0B1B3F;
  --ink-muted: #5A6275;
  --focus: #15803D;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow: 0 1px 2px rgba(11, 27, 63, .06), 0 8px 24px rgba(11, 27, 63, .08);
  --shadow-lg: 0 24px 60px rgba(3, 10, 28, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Alexandria", "Segoe UI", Tahoma, sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.75;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0; }
figure { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50;
  background: var(--green); color: var(--on-green); padding: 8px 14px; border-radius: var(--r-md);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Icons: Tabler style, stroke 1.75 */
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: var(--r-md);
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green); color: var(--on-green); }
.btn-green:hover { background: #2fd36b; }
.btn-ghost { color: var(--on-navy); border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: 14px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; flex: none; }
.brand img { height: 34px; width: auto; }
.nav { display: none; gap: 22px; margin-inline-start: auto; }
.nav a { color: var(--navy-muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--on-navy); }
.top .btn { margin-inline-start: auto; }
@media (min-width: 1000px) {
  .nav { display: flex; }
  .top .btn { margin-inline-start: 0; }
}

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, #1C3A7A 0%, rgba(28, 58, 122, 0) 60%), var(--navy);
  color: var(--on-navy);
  padding: 40px 0 56px;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow { color: var(--green); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.hero h1 { font-size: clamp(32px, 7.6vw, 54px); font-weight: 700; letter-spacing: 0; }
.lead { color: #C9D2E3; font-size: 17px; margin-top: 16px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--navy-muted); font-size: 14px; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--green); }

.hero-media { position: relative; padding-bottom: 28px; }
.frame { border-radius: var(--r-lg); overflow: hidden; background: var(--raised); box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero .frame { border-color: rgba(255, 255, 255, .12); box-shadow: var(--shadow-lg); }
.frame-desk { border-radius: 14px; }
.frame-phone {
  position: absolute; inset-inline-start: -6px; bottom: 0; width: 28%; max-width: 170px;
  border-radius: 22px; border: 4px solid #050D21 !important;
}
@media (min-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1fr 1.15fr; gap: 56px; }
  .frame-phone { inset-inline-start: -28px; bottom: -8px; }
}

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--raised); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(26px, 5vw, 36px); font-weight: 700; }
.sub { color: var(--ink-muted); font-size: 17px; margin-top: 10px; max-width: 40em; }
.note { color: var(--ink-muted); margin-top: 24px; }
.small { color: var(--ink-muted); font-size: 14px; margin-top: 20px; }

.cards { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 640px) { .cards-4, .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: 0 1px 2px rgba(11, 27, 63, .05); }
.card h3 { font-size: 19px; font-weight: 600; margin: 14px 0 8px; }
.card p { color: var(--ink-muted); }
.card ul { margin: 0; padding: 0; list-style: none; color: var(--ink-muted); font-size: 15px; }
.card li { position: relative; padding-inline-start: 16px; margin-top: 6px; }
.card li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 6px; height: 6px; border-radius: 2px; background: var(--green); }
.ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--green-ink); }

.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1.05fr; gap: 56px; }
  .split-rev { grid-template-columns: .7fr 1.3fr; }
}
.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { position: relative; padding-inline-start: 34px; margin-top: 14px; color: var(--ink-muted); }
.ticks li strong { color: var(--ink); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* One-time purchase band */
.band { background: var(--navy); color: var(--on-navy); }
.band h2 { color: var(--on-navy); }
.band .sub { color: #C9D2E3; }
.buy { display: grid; gap: 24px; align-items: center; }
@media (min-width: 960px) { .buy { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.ticks-light { margin-top: 0; }
.ticks-light li { color: var(--on-navy); }
.ticks-light li::before { background-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1B3F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l9-10'/%3E%3C/svg%3E"); }

/* Rasd Smart: amber is reserved for AI */
.pill-ai { display: inline-block; background: var(--amber-soft); color: var(--amber-ink); border: 1px solid var(--amber); font-size: 13px; font-weight: 600; padding: 2px 12px; border-radius: 999px; margin-bottom: 12px; }
.ticks-ai li::before { background-color: var(--amber-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A5A12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2-2a2 2 0 0 1-2-2a2 2 0 0 1-2 2zm0-12a2 2 0 0 1 2 2a2 2 0 0 1 2-2a2 2 0 0 1-2-2a2 2 0 0 1-2 2zM9 18a6 6 0 0 1 6-6a6 6 0 0 1-6-6a6 6 0 0 1-6 6a6 6 0 0 1 6 6z'/%3E%3C/svg%3E"); background-size: 15px; }
.frame-phone-solo { width: min(300px, 78%); margin-inline: auto; border-radius: 28px; border: 6px solid var(--navy); box-shadow: var(--shadow); }

/* Screenshots */
.gallery { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } .shot-wide { grid-column: 1 / -1; } }
.shot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.shot img { border-bottom: 1px solid var(--line); }
.shot figcaption { padding: 12px 16px 14px; font-size: 14px; color: var(--ink-muted); }

/* Final call */
.final { background: linear-gradient(180deg, var(--surface), #E9EEF6); }
.final-box {
  background: var(--navy); color: var(--on-navy); border-radius: var(--r-xl); padding: 48px 24px; text-align: center;
  background-image: radial-gradient(600px 240px at 50% -20%, #1C3A7A, rgba(28, 58, 122, 0));
}
.final-box h2 { color: var(--on-navy); }
.final-box > p { color: #C9D2E3; margin-top: 10px; }
.cta-center { justify-content: center; }
.small-light { font-size: 14px; color: var(--navy-muted) !important; margin-top: 20px !important; }
.small-light a { color: var(--on-navy); }

/* Footer */
.foot { padding: 28px 0 40px; color: var(--ink-muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot img { height: 30px; width: auto; }
.foot a { color: var(--ink-muted); }

@media (max-width: 420px) {
  .top .btn-sm { padding: 6px 12px; font-size: 13px; }
  .brand img { height: 30px; }
  .btn { width: 100%; }
  .top .btn { width: auto; }
  .section { padding: 48px 0; }
  .card { padding: 20px; }
}

/* On a phone the words of «رصد الذكي» come before its picture. */
@media (max-width: 959px) { .split-rev .frame-phone-solo { order: 2; } }
