/* Fonts: SIL Open Font License 1.1, /assets/fonts/OFL-*.txt */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/inter-latin-400-normal.8909904ab6.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/inter-latin-600-normal.f9a06e79cd.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Noto Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/noto-sans-arabic-arabic-400-normal.4e2ca0745c.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:'Noto Sans Arabic';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/noto-sans-arabic-arabic-600-normal.52a2cd4b0f.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:'Noto Nastaliq Urdu';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/noto-nastaliq-urdu-arabic-400-normal.fecd45d694.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC}
/* Ziya public site. Colours are the app's Navy & Gold tokens (apps/mobile/src/theme/tokens.json:
   color.light / color.dark and color.effects): ivory and navy with gold accents in light, deep
   navy in dark; the hero is a night sky in both. The line art (stars, skyline, phone, sparkle)
   comes from site/lib/art.mjs; the build swaps each art/<name>.svg URL for the hashed asset.
   Layout uses logical properties only, so Arabic and Urdu mirror without extra rules.
   The build prepends the @font-face rules (self-hosted OFL fonts). */

:root {
  color-scheme: light dark;
  --bg: #f8f6ef;
  --bg-top: #eaf1fa;
  --header: rgb(255 255 255 / 0.82);
  --surface: #ffffff;
  --glass: rgb(255 255 255 / 0.78);
  --glass-border: rgb(15 42 98 / 0.12);
  --glass-shadow: 0 6px 18px rgb(11 26 58 / 0.08);
  --surface-alt: #e9eff8;
  --text: #0b1a3a;
  --text-2: #24375e;
  --text-3: #3e5079;
  --primary: #0f2a62;
  --on-primary: #f6f1e3;
  --primary-container: #d3e1f5;
  --on-primary-container: #0b1a3a;
  --accent-text: #5e4500;
  --sun: #7a5c06;
  --gold-from: #e6c46a;
  --gold-to: #c9a227;
  --on-gold: #0b1a3a;
  --gold-glow: rgb(201 162 39 / 0.35);
  --gold-line: #c9a227;
  --focus: #0f2a62;
  --border: #d8e0ec;
  --warning: #8a4b00;
  --warning-container: #fbe8cc;
  --error: #721210;
  --error-container: #f9dad6;
  /* The hero and the privacy band: the night sky in both schemes (effects.night). */
  --hero-from: #060d20;
  --hero-mid: #0e2148;
  --hero-end: #1c417f;
  --hero-to: #0b1a3a;
  --hero-text: #f6f1e3;
  --hero-text-2: #cbd5e8;
  --hero-sun: #e6c46a;
  --radius: 20px;
  --font: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --line: 1.6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1a3a;
    --bg-top: #0e2148;
    --header: rgb(9 21 48 / 0.9);
    --surface: #13285a;
    --glass: rgb(19 40 90 / 0.92);
    --glass-border: rgb(91 125 184 / 0.38);
    --glass-shadow: none;
    --surface-alt: #183166;
    --text: #f6f1e3;
    --text-2: #cbd5e8;
    --text-3: #a9b8d6;
    --primary: #e2be5c;
    --on-primary: #0b1a3a;
    --primary-container: #1f3a73;
    --on-primary-container: #f6e7b0;
    --accent-text: #e6c46a;
    --sun: #e6c46a;
    --gold-glow: rgb(230 196 106 / 0.28);
    --gold-line: #e6c46a;
    --focus: #e6c46a;
    --border: #24406f;
    --warning: #f4b860;
    --warning-container: #3e3020;
    --error: #ff9c8a;
    --error-container: #4a2230;
  }
}

:lang(ar) {
  --font: 'Noto Sans Arabic', Inter, system-ui, sans-serif;
  --line: 1.8;
}
:lang(ur) {
  /* Nastaliq needs room: never fixed heights (DECISIONS T1). Digits fall through to Inter. */
  --font: 'Noto Nastaliq Urdu', Inter, system-ui, sans-serif;
  --line: 2.2;
}
/* English legal text inside an Arabic or Urdu page. */
:lang(en) {
  --font: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --line: 1.6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: linear-gradient(var(--bg-top), var(--bg) 40rem) no-repeat var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: var(--line);
  overflow-wrap: break-word;
}
[lang] {
  font-family: var(--font);
  line-height: var(--line);
}
body:lang(ur) {
  font-size: 1.0625rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 600;
}
:is(h1, h2, h3):lang(ar) {
  line-height: 1.5;
}
:is(h1, h2, h3):lang(ur) {
  line-height: 2;
  font-weight: 400;
}
h1 {
  font-size: clamp(1.875rem, 5vw + 1rem, 3rem);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
}
h3 {
  font-size: 1.125rem;
}
p {
  margin: 0 0 1em;
}

a {
  color: var(--primary);
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
.narrow {
  max-width: 46rem;
}
@media (min-width: 40rem) {
  .wrap {
    padding-inline: 1.5rem;
  }
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--surface);
  color: var(--primary);
  border-radius: 8px;
}
.skip:focus {
  top: 1rem;
}

/* ---- Header ---------------------------------------------------------------------------- */
.site-header {
  background: var(--header);
  border-block-end: 1px solid var(--glass-border);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  padding-block: 0.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.25rem;
  margin-inline-end: auto;
}
.mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}
.mark .arch {
  stroke: var(--primary);
}
.mark .sun {
  fill: var(--gold-to);
}

.nav ul,
.lang ul,
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
}
.nav a,
.lang a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  padding-inline: 0.625rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-2);
}
.nav a:hover,
.lang a:hover,
.footer-nav a:hover {
  color: var(--text);
  background: var(--surface-alt);
}
.nav a[aria-current='page'],
.lang a[aria-current='true'] {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline 2px var(--gold-line);
  text-underline-offset: 0.45em;
}
.lang {
  border-inline-start: 1px solid var(--border);
  padding-inline-start: 0.5rem;
}
@media (max-width: 40rem) {
  .site-header .wrap {
    padding-inline: 0.5rem;
  }
  .nav,
  .lang {
    width: 100%;
  }
  .lang {
    border: 0;
    padding: 0;
  }
  .nav a,
  .lang a {
    padding-inline: 0.5rem;
  }
}

/* ---- Hero: night sky, stars, gold skyline ---------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background:
    url(/assets/art/stars.3d535b6689.svg) top center / 75rem auto repeat-x,
    radial-gradient(60rem 26rem at 50% 105%, rgb(230 196 106 / 0.22), transparent 70%),
    linear-gradient(180deg, var(--hero-from), var(--hero-mid) 55%, var(--hero-end));
  color: var(--hero-text);
  padding-block: 3rem 0;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  gap: 2rem;
  align-items: end;
}
.hero h1 {
  color: var(--hero-text);
}
.hero .eyebrow {
  color: var(--hero-sun);
  font-weight: 600;
  margin-block-end: 0.75rem;
}
.hero .lead {
  color: var(--hero-text-2);
  font-size: 1.125rem;
  max-width: 34rem;
}
.hero a:not(.button) {
  color: var(--hero-sun);
}
.hero :focus-visible {
  outline-color: var(--hero-sun);
}
.hero .mark .arch {
  stroke: var(--hero-sun);
}
.hero-copy {
  padding-block-end: 2.5rem;
}
/* The gold town on its horizon, behind the phone. */
.home-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  bottom: 0;
  height: clamp(7rem, 40vw, 13rem);
  background: url(/assets/art/skyline.d637607fc9.svg) bottom center / auto 100% no-repeat;
  opacity: 0.9;
}
.hero-phone {
  justify-self: center;
  width: min(72%, 16rem);
  margin-block-end: -4.5rem;
}
.hero-phone img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 -6px 30px rgb(0 0 0 / 0.45)) drop-shadow(0 0 24px rgb(230 196 106 / 0.18));
}
@media (min-width: 52rem) {
  .hero {
    padding-block-start: 4.5rem;
  }
  .hero .wrap {
    grid-template-columns: 1.3fr 1fr;
  }
  .hero-copy {
    padding-block-end: 5rem;
  }
  .hero-phone {
    width: min(100%, 17.5rem);
  }
  /* Beside the copy, the town stands behind the phone's column. */
  .home-hero::after {
    inset-inline-start: 42%;
    height: 12rem;
  }
}

.badges {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.5rem 1.125rem;
  background: rgb(255 255 255 / 0.06);
  border: 1.5px solid rgb(230 196 106 / 0.65);
  border-radius: 999px;
  color: var(--hero-text);
  font-weight: 500;
}

/* ---- Sections -------------------------------------------------------------------------- */
.section {
  padding-block: 3.5rem;
}
.section + .section {
  border-block-start: 1px solid var(--border);
}
.section h2::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  margin-block-start: 0.5rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-from), var(--gold-to));
}
.section-lead {
  color: var(--text-2);
  max-width: 40rem;
  font-size: 1.0625rem;
}

.features {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
/* Glass cards (effects.glassFill / glassBorder / glassShadow). */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 1.25rem;
}
.features .card::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  background: url(/assets/art/sparkle.1f97ea04bc.svg) center / contain no-repeat;
  margin-block-end: 0.5rem;
}
.card p:last-child {
  margin-block-end: 0;
}
.card p {
  color: var(--text-2);
}

.screens {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0 0 1rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(62%, 13rem);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.screens li {
  scroll-snap-align: start;
}
.screens figure {
  margin: 0;
}
.screens img {
  display: block;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.screens figcaption {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-block-start: 0.5rem;
}
@media (min-width: 64rem) {
  .screens {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
  }
}
.muted {
  color: var(--text-3);
  font-size: 0.875rem;
}

.plans {
  list-style: none;
  margin: 2rem 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.plan {
  border-block-start: 3px solid var(--gold-line);
}
.plan h3 {
  margin-block-end: 0.25rem;
}
.plan .who {
  color: var(--text-2);
  min-height: 3.2em;
}
.price {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.price small {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-2);
}
.price-alt {
  color: var(--text-2);
  margin: 0.25rem 0 0;
}
.plan .trial {
  margin: 0.75rem 0 0;
  padding-block-start: 0.75rem;
  border-block-start: 1px solid var(--border);
  color: var(--accent-text);
  font-size: 0.9375rem;
}

/* Slim privacy band above the prices: a strip of night sky. */
.strip {
  background:
    url(/assets/art/stars.3d535b6689.svg) center / 75rem auto repeat-x,
    linear-gradient(135deg, var(--hero-to), var(--hero-end));
  color: var(--hero-text-2);
  padding-block: 1.75rem;
}
.strip h2 {
  font-size: 1.125rem;
  margin-block-end: 0.25rem;
  color: var(--hero-sun);
}
.strip p {
  margin: 0;
  max-width: 48rem;
}

/* ---- Content pages --------------------------------------------------------------------- */
.page {
  padding-block: 2.5rem 4rem;
}
.page-lead {
  font-size: 1.125rem;
  color: var(--text-2);
}

.prose h2 {
  font-size: 1.375rem;
  margin-block-start: 2rem;
}
.prose h3 {
  margin-block-start: 1.5rem;
}
.prose ul,
.prose ol {
  padding-inline-start: 1.25rem;
}
.prose li {
  margin-block-end: 0.5rem;
}

.note {
  background: var(--primary-container);
  color: var(--on-primary-container);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}
.callout {
  background: var(--warning-container);
  color: var(--text);
  border-inline-start: 4px solid var(--warning);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

mark.placeholder {
  background: var(--warning-container);
  color: var(--warning);
  outline: 1.5px dashed currentColor;
  outline-offset: -1px;
  border-radius: 4px;
  padding: 0 0.25em;
  font-weight: 600;
  font-family: Inter, system-ui, sans-serif;
  direction: ltr;
  unicode-bidi: isolate;
  /* Wraps at large text sizes instead of pushing the page sideways (spec 17). */
  overflow-wrap: anywhere;
}

.faq {
  margin: 1.5rem 0 2rem;
}
.faq h3 {
  margin-block: 1.75rem 0.25rem;
}
.faq p {
  color: var(--text-2);
}

.steps {
  padding-inline-start: 1.5rem;
}
.steps li {
  margin-block-end: 0.375rem;
}
.steps li::marker {
  color: var(--accent-text);
  font-weight: 600;
}

/* ---- Form ------------------------------------------------------------------------------ */
.form {
  margin-block-start: 1rem;
}
.field label {
  display: block;
  font-weight: 600;
}
.hint {
  color: var(--text-2);
  font-size: 0.9375rem;
  margin: 0.125rem 0 0.5rem;
}
input[type='email'] {
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--text-3);
  border-radius: 10px;
}
input[type='email'][aria-invalid='true'] {
  border-color: var(--error);
}
/* Primary buttons: the gold gradient with navy text, as in the app (effects.gold, onGold). */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.5rem 1.5rem;
  margin-block: 1rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-from), var(--gold-to));
  color: var(--on-gold);
  box-shadow: 0 4px 16px var(--gold-glow);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  filter: brightness(1.06);
}
.button[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.form-status {
  background: var(--error-container);
  color: var(--text);
  border-inline-start: 4px solid var(--error);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-block-start: 1rem;
}
.form-status[hidden] {
  display: none;
}
/* Shared by the business portal and the security check page. */
.button-secondary {
  background: var(--primary-container);
  color: var(--on-primary-container);
  box-shadow: none;
}
.form-status.ok {
  background: var(--primary-container);
  border-color: var(--primary);
}
/* CAPTCHA (security review M5): the provider's widget, sized so the page doesn't jump. */
.captcha-widget {
  min-height: 65px;
  margin-block: 0.75rem;
}
.captcha-field .label {
  font-weight: 600;
  margin: 0;
}
.captcha-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-start: 1rem;
}
.captcha-actions [hidden],
.captcha-field [hidden] {
  display: none;
}
/* Honeypot: hidden from people (clipped, aria-hidden), still in the DOM for bots. Clipped in
   place rather than moved off-screen: an offset of -10000px made RTL pages scroll sideways at
   large text (spec 17). */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- Footer ---------------------------------------------------------------------------- */
.site-footer {
  background: var(--header);
  border-block-start: 1px solid var(--glass-border);
  padding-block: 2rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: grid;
  gap: 0.75rem;
}
.footer-nav ul {
  margin-inline-start: -0.625rem;
}
.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* `hidden` must win over the display of .button and friends. */
[hidden] {
  display: none !important;
}

/* ---- Delete some data (/delete-data) -------------------------------------------------- */
.controls h3 {
  margin-block: 1.75rem 0.25rem;
}
.controls h3 + p,
.controls h3 + p + p {
  margin-block: 0.25rem;
  color: var(--text-2);
}
.controls .note {
  margin-block-start: 1.5rem;
}
