/* الورشة — the public site.
 *
 * One stylesheet, no framework, no build step. The whole page is a few
 * kilobytes over the wire because it is read on Iraqi mobile data, where a
 * megabyte of JavaScript is a second of blank screen and a visitor who left.
 *
 * Everything that moves does so with transform and opacity only — the two
 * properties a browser can animate without laying the page out again — and
 * every one of them is switched off for a reader who asked for less motion.
 */

@font-face {
  font-family: 'Cairo';
  font-weight: 400;
  font-display: swap;
  src: url('cairoRegular.ttf') format('truetype');
}
@font-face {
  font-family: 'Cairo';
  font-weight: 600;
  font-display: swap;
  src: url('cairoSemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Cairo';
  font-weight: 700;
  font-display: swap;
  src: url('cairoBold.ttf') format('truetype');
}

:root {
  --brand: #2563EB;
  --brandDark: #1D4ED8;
  --brandSoft: #EFF4FF;
  --ink: #0B1220;
  --inkSoft: #475069;
  --line: #E4E8F0;
  --paper: #FFFFFF;
  --mist: #F7F9FC;
  --amber: #F59E0B;
  --danger: #DC2626;
  --good: #16A34A;

  --shell: min(1180px, 92vw);
  --radius: 20px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Cairo', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.shell { width: var(--shell); margin-inline: auto; }

/* Fluid type: one scale that works from a 320px phone to a 27" monitor
 * without a single breakpoint deciding what "big" means. */
.display { font-size: clamp(2.1rem, 6.4vw, 4.4rem); }
.h2 { font-size: clamp(1.6rem, 3.6vw, 2.7rem); }
.h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.lead { font-size: clamp(1rem, 1.7vw, 1.22rem); color: var(--inkSoft); }
.small { font-size: .92rem; color: var(--inkSoft); }

section { padding: clamp(64px, 9vw, 130px) 0; }

/* ── the bar ──────────────────────────────────────────────────────────── */
header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
header.scrolled { border-bottom-color: var(--line); }
header .shell { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.brand svg { width: 42px; height: auto; display: block; }
nav { display: flex; gap: 26px; margin-inline-start: auto; }
nav a { color: var(--inkSoft); font-size: .97rem; transition: color .2s; }
nav a:hover { color: var(--brand); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--brand); color: #fff; box-shadow: 0 10px 26px -10px var(--brand); }
.button.primary:hover { background: var(--brandDark); box-shadow: 0 16px 34px -12px var(--brand); }
.button.ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.button.ghost:hover { border-color: var(--brand); color: var(--brand); }
.button svg { width: 19px; height: 19px; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(120px, 16vw, 190px); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset-inline-start: 50%; top: -280px;
  width: 900px; height: 900px; transform: translateX(50%);
  background: radial-gradient(circle, rgba(37, 99, 235, .13), transparent 62%);
  pointer-events: none;
}
.heroGrid { display: grid; gap: clamp(36px, 5vw, 70px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .heroGrid { grid-template-columns: 1.05fr .95fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brandSoft); color: var(--brandDark);
  padding: 7px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600;
}
.hero h1 { margin: 22px 0 18px; }
.hero .lead { max-width: 34ch; }
.heroActions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.heroProof { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; }
.heroProof div { min-width: 92px; }
.heroProof strong { display: block; font-size: 1.55rem; color: var(--brand); }
.heroProof span { font-size: .88rem; color: var(--inkSoft); }

/* the phone, drawn rather than photographed */
.phone {
  position: relative; width: min(330px, 78vw); margin-inline: auto;
  aspect-ratio: 9 / 18.6; border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #1B2436, #0B1220);
  box-shadow: 0 40px 80px -30px rgba(11, 18, 32, .55), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.screen {
  height: 100%; border-radius: 32px; background: var(--paper); overflow: hidden;
  display: flex; flex-direction: column; gap: 10px; padding: 20px 16px;
}
.screenBar { height: 5px; width: 44%; border-radius: 999px; background: var(--line); margin-inline: auto; }
.verdict { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 14px; padding: 12px 14px; }
.verdict b { color: #15803D; font-size: .98rem; }
.verdict span { display: block; font-size: .78rem; color: var(--inkSoft); }
.row {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: .82rem;
}
.row b { font-variant-numeric: tabular-nums; }
.row.warn { background: #FFFBEB; border-color: #FDE68A; }
.row.warn b { color: #B45309; }

/* ── shared blocks ────────────────────────────────────────────────────── */
.sectionHead { max-width: 62ch; margin-bottom: clamp(34px, 5vw, 60px); }
.sectionHead .h2 { margin: 12px 0 14px; }
.kicker { color: var(--brand); font-weight: 700; font-size: .92rem; letter-spacing: .04em; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-5px); border-color: #CFDBF7; box-shadow: 0 22px 48px -28px rgba(11,18,32,.35); }
.card .icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brandSoft); color: var(--brand); margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--inkSoft); font-size: .96rem; }

.mist { background: var(--mist); }

/* steps */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.step { position: relative; padding-top: 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; inset-inline-start: 0;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 1.1rem;
  box-shadow: 0 10px 22px -10px var(--brand);
}
.step h3 { margin: 30px 0 8px; }
.step p { color: var(--inkSoft); font-size: .97rem; }

/* the one claim that sells */
.spotlight {
  background: linear-gradient(150deg, #0B1220, #16233E 60%, #1D3A78);
  color: #fff; border-radius: clamp(20px, 3vw, 34px); padding: clamp(34px, 6vw, 76px);
  position: relative; overflow: hidden;
}
.spotlight::after {
  content: ''; position: absolute; inset-inline-end: -120px; bottom: -180px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.42), transparent 68%);
}
.spotlight .h2 { max-width: 20ch; }
.spotlight p { color: #C3CCE0; max-width: 56ch; margin-top: 18px; }
.spotlightRow { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 44px; position: relative; }
.spotlightRow div { border-top: 2px solid rgba(255,255,255,.16); padding-top: 16px; }
.spotlightRow b { display: block; font-size: 1.06rem; }
.spotlightRow span { color: #9FB0CE; font-size: .92rem; }

/* pricing */
.tiers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.tier { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--paper); }
.tier.featured { border-color: var(--brand); box-shadow: 0 18px 44px -26px var(--brand); }
.tier span { font-size: .95rem; color: var(--inkSoft); }
.tier strong { display: block; font-size: 1.75rem; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.tier em { font-style: normal; font-size: .84rem; color: var(--inkSoft); }

/* faq */
details {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px;
  background: var(--paper); margin-bottom: 12px; transition: border-color .25s;
}
details[open] { border-color: #CFDBF7; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--brand); font-size: 1.5rem; line-height: 1; transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--inkSoft); font-size: .97rem; }

/* contact + footer */
.contactGrid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contactCard { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: border-color .25s, transform .25s var(--ease); }
.contactCard:hover { border-color: var(--brand); transform: translateY(-3px); }
.contactCard svg { width: 24px; height: 24px; color: var(--brand); flex: none; margin-top: 3px; }
.contactCard b { display: block; }
.contactCard span { font-size: .93rem; color: var(--inkSoft); word-break: break-word; }

footer { background: var(--ink); color: #93A0BA; padding: 56px 0 34px; }
footer .shell { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
footer .brand { color: #fff; }
footer a:hover { color: #fff; }
footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .94rem; }
.legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; padding-top: 22px; font-size: .86rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* the floating WhatsApp button: the way this market actually gets in touch */
.whatsapp {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7);
  transition: transform .2s var(--ease);
}
.whatsapp:hover { transform: scale(1.08); }
.whatsapp svg { width: 30px; height: 30px; }

/* ── scroll animation ─────────────────────────────────────────────────── */
/* Scoped to a class the script sets on <html> before first paint. A page
 * whose content is hidden until JavaScript says otherwise is a blank page for
 * anyone whose JavaScript failed to load — on a bad connection, that is a
 * real visitor seeing nothing at all. */
html.animate [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
html.animate [data-reveal].shown { opacity: 1; transform: none; }

/* The car draws itself as the page arrives at it: one path, its own length
 * as the dash, and the offset animated from full to nothing. */
html.animate .drawing path { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.drawing.shown path { animation: draw 1.5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.animate [data-reveal] { opacity: 1; transform: none; transition: none; }
  .drawing path { stroke-dashoffset: 0; }
  .drawing.shown path { animation: none; }
  .button:hover, .card:hover, .contactCard:hover, .whatsapp:hover { transform: none; }
}

@media (max-width: 760px) {
  nav { display: none; }
  header .shell { height: 64px; }
  .heroProof { gap: 18px; }
}
