/* Sarafa Book — marketing site. No external requests (fonts, scripts, analytics). */
:root {
  --navy-1: #0a3170;
  --navy-2: #06295a;
  --navy-3: #00112b;
  --gold: #c8a24b;
  --gold-soft: #e6cb86;
  --gold-deep: #785a02;
  --ivory: #fff8f2;
  --paper: #ffffff;
  --sand: #f7f6f3;
  --ink: #1a1c1e;
  --muted: #5d5e61;
  --line: #e6dfd3;
  --radius: 20px;
  --shadow: 0 18px 50px -18px rgba(0, 17, 43, 0.35);
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ur: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Alvi Nastaleeq", "Noto Naskh Arabic", "Geeza Pro", serif;
  --max: 1120px;
}

* { 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(--ivory);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-deep); }
.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* ---- language switching: one inline copy per language ---- */
html:not(.is-ur) .ur { display: none !important; }
html.is-ur .en { display: none !important; }
html.is-ur body { font-family: var(--font-ur); line-height: 2.05; }
html.is-ur h1, html.is-ur h2, html.is-ur h3 { line-height: 1.7; }
.num { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---- header ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 242, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(200, 162, 75, 0.25);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
.brand img { width: 38px; height: auto; }
.nav-links { display: flex; gap: 22px; margin-inline-start: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.lang {
  border: 1.5px solid var(--gold); background: transparent; color: var(--gold-deep);
  font: inherit; font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.lang:hover { background: var(--gold); color: var(--navy-3); }
.nav .btn { padding: 9px 18px; font-size: 14px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px; border: 0; cursor: pointer;
  font: inherit; font-weight: 800; text-decoration: none; letter-spacing: -0.005em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-gold { background: var(--gold); color: var(--navy-3); box-shadow: 0 10px 24px -10px rgba(200, 162, 75, .9); }
.btn-gold:hover { transform: translateY(-2px); background: var(--gold-soft); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1.5px solid rgba(230, 203, 134, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-soon { background: rgba(255,255,255,.1); color: #fff; border: 1.5px dashed rgba(230,203,134,.7); cursor: default; }
.btn-soon small { font-weight: 600; opacity: .8; }

/* ---- hero ---- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(200, 162, 75, .28), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(10, 49, 112, .9), transparent 60%),
    linear-gradient(160deg, var(--navy-1), var(--navy-2) 45%, var(--navy-3));
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: 76px 84px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 14px; }
html.is-ur .eyebrow { letter-spacing: 0; font-size: 15px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.07; margin: 0 0 20px; letter-spacing: -0.03em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero p.lead { font-size: 19px; color: #d9e1ef; max-width: 34em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 22px; font-size: 14px; color: #aab7cf; }

.phones { position: relative; height: 560px; }
.phone {
  position: absolute; width: 250px; border-radius: 38px; padding: 9px;
  background: linear-gradient(145deg, #2b2f38, #0c0e12);
  box-shadow: var(--shadow), 0 0 0 1.5px rgba(255,255,255,.12) inset;
}
.phone img { border-radius: 30px; width: 100%; height: auto; background: #fff; }
.phone.p1 { inset-inline-start: 0; top: 40px; transform: rotate(-4deg); z-index: 1; }
.phone.p2 { inset-inline-end: 0; top: 0; transform: rotate(3deg); z-index: 2; }
html.is-ur .phone.p1 { transform: rotate(4deg); }
html.is-ur .phone.p2 { transform: rotate(-3deg); }

/* ---- strip ---- */
.strip { background: var(--navy-3); color: var(--gold-soft); }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 38px; padding-block: 18px; font-weight: 700; font-size: 15px; }
.strip span::before { content: "◆"; font-size: 9px; margin-inline-end: 10px; color: var(--gold); vertical-align: middle; }

/* ---- sections ---- */
section { padding-block: 88px; }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.025em; font-weight: 800; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }
.kicker { color: var(--gold-deep); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; display: block; }
html.is-ur .kicker { letter-spacing: 0; font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(0, 17, 43, .45); }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(145deg, #f3e4b8, #e0bd68); color: var(--navy-3);
}
.icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.showcase { background: var(--sand); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 96px; }
.row:last-child { margin-bottom: 0; }
.row.flip .row-art { order: 2; }
.row-art { display: grid; place-items: center; }
.row-art .phone { position: relative; width: 270px; inset: auto; transform: none; }
.row-art .halo { position: relative; padding: 38px; border-radius: 40px; background: radial-gradient(circle at 50% 40%, rgba(200,162,75,.25), transparent 65%); }
.row h3 { font-size: clamp(25px, 3vw, 34px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.02em; font-weight: 800; }
.row p { color: var(--muted); font-size: 18px; margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-inline-start: 32px; position: relative; font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .42em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%2300112b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
html.is-ur .ticks li::before { top: 1em; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-2); color: var(--gold-soft); font-weight: 800; margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---- directions band ---- */
.directions { background: linear-gradient(160deg, var(--navy-2), var(--navy-3)); color: #fff; }
.directions .section-head p { color: #c3cee2; }
.directions .kicker { color: var(--gold-soft); }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 30px; }
.node { background: rgba(255,255,255,.06); border: 1px solid rgba(230,203,134,.3); border-radius: var(--radius); padding: 26px; }
.node b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--navy-3); margin-bottom: 12px; font-weight: 800; }
.node h3 { margin: 0 0 6px; font-size: 18px; }
.node p { margin: 0; color: #c3cee2; font-size: 15.5px; }
.fine { text-align: center; color: #9eacc5; font-size: 14px; max-width: 700px; margin: 0 auto; }

/* ---- trust ---- */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.trust .card { display: flex; gap: 18px; }
.trust .icon { flex: none; margin: 0; }

/* ---- faq ---- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 12px; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
summary { cursor: pointer; font-weight: 800; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; color: var(--gold-deep); line-height: 1; flex: none; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; color: var(--muted); }

/* ---- final cta + footer ---- */
.final { text-align: center; color: #fff; background: radial-gradient(700px 300px at 50% 0, rgba(200,162,75,.28), transparent 60%), var(--navy-3); }
.final h2 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 14px; letter-spacing: -0.025em; font-weight: 800; }
.final p { color: #c3cee2; max-width: 36em; margin: 0 auto 28px; font-size: 18px; }
.final .cta { justify-content: center; }
footer { background: #000a1c; color: #9eacc5; padding-block: 38px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; }
footer a { color: var(--gold-soft); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---- document pages (privacy, delete account) ---- */
.doc-hero { background: linear-gradient(160deg, var(--navy-2), var(--navy-3)); color: #fff; padding-block: 56px; }
.doc-hero h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.025em; }
.doc-hero p { margin: 8px 0 0; color: #c3cee2; }
.doc { max-width: 780px; margin-inline: auto; padding-block: 56px 80px; }
.doc h2 { font-size: 21px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.doc ul, .doc ol { padding-inline-start: 24px; }
.doc li { margin-bottom: 8px; }
.doc .callout { background: var(--paper); border: 1px solid var(--line); border-inline-start: 5px solid var(--gold); border-radius: 14px; padding: 18px 22px; margin-block: 22px; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 52px 60px; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .cta { justify-content: center; }
  .phones { height: 500px; max-width: 420px; margin-inline: auto; width: 100%; }
  .phone { width: 220px; }
  .grid, .steps, .flow { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; gap: 36px; text-align: center; margin-bottom: 72px; }
  .row.flip .row-art { order: 0; }
  .ticks { justify-items: start; max-width: 360px; margin-inline: auto; text-align: start; }
  .trust { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav .lang { margin-inline-start: auto; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding-block: 64px; }
  .grid, .steps, .flow { grid-template-columns: 1fr; }
  .phones { height: 440px; }
  .phone { width: 190px; border-radius: 32px; padding: 7px; }
  .phone img { border-radius: 26px; }
  .nav .btn { display: none; }
  .btn { width: 100%; }
  .cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
