/* tasdeeq.net — the design tokens of the application (edition brand #1d4ed8; IBM Plex), written as plain CSS. */
:root {
  --primary: 224 76% 48%;
  --primary-foreground: 0 0% 100%;
  --secondary: 224 80% 90%;
  --secondary-foreground: 224 86% 17%;
  --background: 224 50% 97%;
  --foreground: 224 60% 14%;
  --card: 0 0% 100%;
  --muted: 224 30% 94%;
  --muted-foreground: 224 22% 36%;
  --accent: 192 91% 36%;
  --border: 224 25% 88%;
  --ring: 224 76% 48%;
  --depth: 224 84% 12%;
  --depth-foreground: 224 81% 96%;
  --depth-border: 224 35% 24%;
  --chart-3: 32 95% 44%;
  --radius: 1rem;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); background: hsl(var(--background)); color: hsl(var(--foreground)); line-height: 1.5; -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { font-family: var(--font-arabic); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
b { font-weight: 600; }
svg.i { width: 1rem; height: 1rem; flex-shrink: 0; }
svg.icon { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); }
svg.big { width: 1.5rem; height: 1.5rem; color: hsl(var(--primary)); }

.container { max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }

/* visually hidden until focused; clip-based so it adds no scrollable overflow in either text direction */
.skip { position: absolute; top: 0; inset-inline-start: 0; z-index: 50; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: .75rem; border-radius: .5rem; background: hsl(var(--card)); padding: .5rem .75rem; box-shadow: 0 1px 3px rgb(0 0 0 / .2); }
.skip:focus { width: auto; height: auto; clip-path: none; overflow: visible; }

/* ── Header ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid hsl(var(--border) / .7); background: hsl(var(--background) / .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header .container { height: 4rem; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .625rem; min-width: 0; font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em; }
.brand span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 2.25rem; width: 2.25rem; border-radius: .75rem; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); box-shadow: 0 0 0 1px hsl(var(--accent) / .4); flex-shrink: 0; }
.tile svg { width: 1.25rem; height: 1.25rem; }
.tile.lg { height: 2.75rem; width: 2.75rem; border-radius: 1rem; }
.tile.lg svg { width: 1.5rem; height: 1.5rem; }
.nav { display: none; align-items: center; gap: 1.5rem; margin-inline: auto; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.nav a { transition: color .15s; }
.nav a:hover { color: hsl(var(--foreground)); }
@media (min-width: 768px) { .nav { display: flex; } }
.actions { display: flex; align-items: center; gap: .375rem; margin-inline-start: auto; }
@media (min-width: 640px) { .actions { gap: .5rem; } }
@media (min-width: 768px) { .actions { margin-inline-start: 0; } }
.hide-sm { display: none !important; }
@media (min-width: 640px) { .hide-sm { display: inline-flex !important; } span.hide-sm { display: inline !important; } }

/* ── Buttons ────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap; border-radius: calc(var(--radius) - 2px); font: inherit; font-size: .875rem; font-weight: 500; height: 2.25rem; padding-inline: 1rem; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s, transform .15s; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring)); }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 2rem; padding-inline: .75rem; font-size: .8125rem; }
.btn-lg { height: 2.5rem; padding-inline: 1.5rem; }
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-primary:hover { background: hsl(var(--primary) / .9); }
.btn-outline { border-color: hsl(var(--border)); background: hsl(var(--card) / .7); }
.btn-outline:hover { background: hsl(var(--muted)); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: hsl(var(--muted)); }
.btn-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.btn-secondary:hover { background: hsl(var(--secondary) / .85); }

/* ── Aurora backdrop (two slow organic shapes, brand + accent) ── */
.aurora { position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 60% 80% at 10% 0%, hsl(var(--primary) / .16) 0%, transparent 60%),
              radial-gradient(ellipse 50% 70% at 92% 12%, hsl(var(--accent) / .14) 0%, transparent 60%),
              linear-gradient(180deg, hsl(224 81% 96%) 0%, hsl(var(--card)) 100%); }
.aurora::before, .aurora::after { content: ""; position: absolute; z-index: -1; pointer-events: none; filter: blur(18px); }
.aurora::before { width: 46%; height: 140%; top: -35%; inset-inline-end: -8%; border-radius: 42% 58% 55% 45% / 48% 40% 60% 52%; background: hsl(var(--primary) / .14); animation: drift 22s ease-in-out infinite alternate; }
.aurora::after { width: 34%; height: 110%; bottom: -45%; inset-inline-start: 18%; border-radius: 60% 40% 45% 55% / 55% 60% 40% 45%; background: hsl(var(--accent) / .10); animation: drift 26s ease-in-out infinite alternate-reverse; }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); } 100% { transform: translate3d(3%, -4%, 0) rotate(6deg) scale(1.06); } }

/* ── Hero ───────────────────────────────────────────────── */
.hero { border-bottom: 1px solid hsl(var(--border) / .6); }
.hero .container { padding-block: 3.5rem; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 640px) { .hero .container { padding-block: 5rem; } }
@media (min-width: 1024px) { .hero .container { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; } }
.kicker { font-size: .6875rem; text-transform: uppercase; letter-spacing: .22em; color: hsl(var(--primary) / .9); font-weight: 600; }
html[lang="ar"] .kicker, html[lang="ar"] .sample-kicker { letter-spacing: 0; }
h1 { margin-top: .75rem; font-weight: 600; letter-spacing: -.02em; font-size: 2.25rem; line-height: 1.1; }
@media (min-width: 640px) { h1 { font-size: 3rem; } }
html[lang="ar"] h1, html[lang="ar"] .title, html[lang="ar"] .brand, html[lang="ar"] .audience h2 { letter-spacing: 0; }
.gradient-text { background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.lead { margin-top: 1.25rem; font-size: 1rem; color: hsl(var(--muted-foreground)); max-width: 36rem; line-height: 1.65; }
@media (min-width: 640px) { .lead { font-size: 1.125rem; } }
.lead b { font-weight: 500; color: hsl(var(--foreground)); }
.cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.hint { margin-top: .75rem; font-size: .75rem; color: hsl(var(--muted-foreground)); }

/* the hero's product picture: a sample issued report, drawn in markup */
.sample { position: relative; }
.sample-glow { position: absolute; inset: -1rem; border-radius: 2rem; background: hsl(var(--primary) / .1); filter: blur(24px); }
.sample-card { position: relative; border-radius: 1rem; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); padding: 1.25rem; }
@media (min-width: 640px) { .sample-card { padding: 1.5rem; } }
.sample-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.sample-kicker { font-size: .6875rem; text-transform: uppercase; letter-spacing: .18em; color: hsl(var(--muted-foreground)); font-weight: 600; }
.sample-client { font-size: .875rem; font-weight: 500; margin-top: .125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-flex; align-items: center; gap: .25rem; border-radius: 9999px; border: 1px solid hsl(var(--primary) / .3); background: hsl(var(--primary) / .1); padding: .25rem .625rem; font-size: .6875rem; font-weight: 600; white-space: nowrap; }
.pill svg { width: .875rem; height: .875rem; color: hsl(var(--primary)); }
.sample-body { margin-top: 1.25rem; display: flex; align-items: flex-end; gap: 1.25rem; }
.grade-label { font-size: .6875rem; color: hsl(var(--muted-foreground)); }
.grade { font-size: 3.75rem; font-weight: 600; line-height: 1; }
.bars { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .625rem; padding-bottom: .25rem; }
.bar-label { font-size: .6875rem; color: hsl(var(--muted-foreground)); margin-bottom: .25rem; }
.bar { height: .5rem; border-radius: 9999px; background: hsl(var(--muted)); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 9999px; }
.w38 { width: 38%; } .w72 { width: 72%; } .w16 { width: 16%; }
.c-amber { background: hsl(var(--chart-3)); } .c-primary { background: hsl(var(--primary)); } .c-accent { background: hsl(var(--accent)); }
.sample-verify { margin-top: 1.25rem; display: flex; align-items: center; gap: .5rem; border-radius: .75rem; border: 1px solid hsl(var(--border)); background: hsl(var(--muted) / .4); padding: .5rem .75rem; font-size: .75rem; }
.sample-verify svg { color: hsl(var(--primary)); }
.sample-verify p { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sample-verify code { font-family: var(--font-mono); font-size: .6875rem; color: hsl(var(--muted-foreground)); flex-shrink: 0; }

/* ── Sections ───────────────────────────────────────────── */
.section { padding-block: 3.5rem; }
@media (min-width: 640px) { .section { padding-block: 4rem; } }
.facts { padding-block: 2.5rem; }
@media (min-width: 640px) { .facts { padding-block: 3rem; } }
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-sm-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .grid-md-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-lg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { border-radius: 1rem; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); padding: 1.25rem; }
.card h2, .card h3 { font-weight: 600; font-size: 1rem; }
.fact h2 { margin-top: .75rem; font-size: .875rem; }
.fact p, .step p, .trust p { margin-top: .375rem; font-size: .875rem; color: hsl(var(--muted-foreground)); line-height: 1.65; }
.band { border-block: 1px solid hsl(var(--border) / .6); background: hsl(var(--muted) / .3); }
.title { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
@media (min-width: 640px) { .title { font-size: 1.875rem; } }
.sub { margin-top: .5rem; color: hsl(var(--muted-foreground)); }
.steps { margin-top: 2rem; }
.step-head { display: flex; align-items: center; gap: .75rem; }
.icon-box { display: inline-flex; align-items: center; justify-content: center; height: 2.25rem; width: 2.25rem; border-radius: .75rem; background: hsl(var(--primary) / .1); color: hsl(var(--primary)); flex-shrink: 0; }
.icon-box svg { width: 1.25rem; height: 1.25rem; }
.icon-box.lg { height: 2.5rem; width: 2.5rem; }
.step-n { font-size: .75rem; font-weight: 600; color: hsl(var(--muted-foreground)); font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 1rem; }

/* ── Two audiences ──────────────────────────────────────── */
.audiences { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.audience { border-radius: 1rem; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); padding: 1.5rem; display: flex; flex-direction: column; scroll-margin-top: 5rem; }
@media (min-width: 640px) { .audience { padding: 2rem; } }
.audience h2 { margin-top: 1rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
@media (min-width: 640px) { .audience h2 { font-size: 1.5rem; } }
.audience .sub { margin-top: .25rem; }
.checks { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.checks li { display: flex; gap: .625rem; font-size: .875rem; line-height: 1.65; }
.checks svg { color: hsl(var(--primary)); margin-top: .2rem; }
.audience > .btn { margin-top: 1.75rem; align-self: flex-start; }
.audience.depth { background: hsl(var(--depth)); color: hsl(var(--depth-foreground)); border-color: hsl(var(--depth-border)); }
.audience.depth svg.big, .audience.depth .checks svg { color: hsl(var(--accent)); }
.audience.depth .sub { color: hsl(var(--depth-foreground) / .75); }
.audience.depth .note { font-size: .75rem; color: hsl(var(--depth-foreground) / .7); }
.audience-cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }

/* ── Trust ──────────────────────────────────────────────── */
section[id] { scroll-margin-top: 5rem; }
.trust-grid { margin-top: 2rem; }
.trust { display: flex; gap: 1rem; }
.verify { margin-top: 1.25rem; border-radius: 1rem; border: 1px dashed hsl(var(--border)); background: hsl(var(--card) / .6); padding: 1.25rem; display: flex; gap: 1rem; align-items: flex-start; }
.verify svg { color: hsl(var(--primary)); margin-top: .2rem; width: 1.25rem; height: 1.25rem; }
.verify h3 { font-size: .875rem; font-weight: 600; }
.verify p { margin-top: .25rem; font-size: .875rem; color: hsl(var(--muted-foreground)); line-height: 1.65; }

/* ── Closing call ───────────────────────────────────────── */
.closing { border-radius: 1.5rem; border: 1px solid hsl(var(--border) / .6); padding: 2.5rem 1.5rem; text-align: center; }
@media (min-width: 640px) { .closing { padding: 3rem; } }
.closing .sub { max-width: 36rem; margin-inline: auto; }
.closing .cta { justify-content: center; margin-top: 1.5rem; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid hsl(var(--border) / .7); }
.site-footer .container { padding-block: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }
@media (min-width: 640px) { .site-footer .container { flex-direction: row; } }
.foot-brand { display: flex; align-items: center; gap: .625rem; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.25rem; }
.foot-links a { transition: color .15s; }
.foot-links a:hover { color: hsl(var(--foreground)); }

/* ── 404 ────────────────────────────────────────────────── */
.nf-main { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.nf-card { max-width: 28rem; width: 100%; padding: 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.nf-title { margin-top: 1rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
.nf-card .cta { margin-top: 1.25rem; }

@media (prefers-reduced-motion: reduce) { .aurora::before, .aurora::after { animation: none; } html { scroll-behavior: auto; } .btn { transition: none; } }
@media print { .site-header, .site-footer, .cta, .actions { display: none !important; } .aurora, .aurora::before, .aurora::after { background: #fff !important; animation: none; } }
