/* Kifayat — kifayat.com.pk
   One stylesheet for every page. Colours are the app's own, from
   lib/src/theme/app_palette.dart and the logo set (blue #0D75A8, coin teal);
   type is the app's, Sora for headings and Manrope for text, served from this
   host so the site fetches nothing from anyone else. */

@font-face { font-family: Sora; src: url(/assets/fonts/sora-700.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url(/assets/fonts/manrope-500.woff) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: Manrope; src: url(/assets/fonts/manrope-700.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url(/assets/fonts/manrope-800.woff) format("woff"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #F3F4F8;
  --surface: #FFFFFF;
  --sunk: #ECEEF4;
  --line: #E3E5EE;
  --line-strong: #D3D7E2;
  --ink: #121419;
  --ink-2: #545C74;
  --ink-3: #8A92A8;
  --brand: #0D75A8;
  --brand-ink: #FFFFFF;
  --brand-wash: #E3F0F7;
  --coin: #0FA3B8;
  --good: #0FA871;
  --danger: #C8402E;
  --danger-wash: #FBEBE7;
  --hero-from: #05202F;
  --hero-to: #0B527A;
  --radius: 20px;
  --max: 1120px;
  --doc: 46rem;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #08090D;
    --surface: #11131A;
    --sunk: #191C26;
    --line: #1E2230;
    --line-strong: #2A2F40;
    --ink: #F1F2F7;
    --ink-2: #9AA2BC;
    --ink-3: #6E7792;
    --brand: #40A4DE;
    --brand-ink: #04121B;
    --brand-wash: #0E2232;
    --coin: #41C9DC;
    --good: #3DDC97;
    --danger: #FF7E6B;
    --danger-wash: #2A1612;
    --hero-from: #03131D;
    --hero-to: #08405F;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08090D;
  --surface: #11131A;
  --sunk: #191C26;
  --line: #1E2230;
  --line-strong: #2A2F40;
  --ink: #F1F2F7;
  --ink-2: #9AA2BC;
  --ink-3: #6E7792;
  --brand: #40A4DE;
  --brand-ink: #04121B;
  --brand-wash: #0E2232;
  --coin: #41C9DC;
  --good: #3DDC97;
  --danger: #FF7E6B;
  --danger-wash: #2A1612;
  --hero-from: #03131D;
  --hero-to: #08405F;
}

@media (min-width: 720px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 1rem/1.65 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
strong, b { font-weight: 800; }
h1, h2, h3 { font-family: Sora, Manrope, system-ui, sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
code {
  font: 500 .88em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--sunk); border: 1px solid var(--line); border-radius: 6px; padding: .08em .4em;
}
:focus-visible { outline: 3px solid var(--coin); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 20; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px; }

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header { padding: 18px 0; }
.site-header .container { display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { font: 700 1.2rem/1 Sora, sans-serif; letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: inherit; text-decoration: none; font-weight: 700; font-size: .92rem; opacity: .82; }
.site-nav a:hover { opacity: 1; }
.site-nav .nav-hide { display: none; }
@media (min-width: 720px) { .site-nav .nav-hide { display: inline; } }

.mark-stroke { stroke: var(--brand); }
.mark-coin { fill: var(--coin); }
.on-hero .mark-stroke { stroke: #FFFFFF; }
.on-hero .mark-coin { fill: #41C9DC; }

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 800 1rem/1 Manrope, sans-serif; text-decoration: none; white-space: nowrap;
  background: var(--brand); color: var(--brand-ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-light { background: #FFFFFF; color: #06293D; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .22); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-outline { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  position: relative; overflow: hidden; color: #FFFFFF;
  background:
    radial-gradient(circle at 78% 42%, transparent 0 190px, rgba(255, 255, 255, .06) 191px 192px, transparent 193px),
    radial-gradient(circle at 78% 42%, transparent 0 320px, rgba(255, 255, 255, .05) 321px 322px, transparent 323px),
    radial-gradient(circle at 78% 42%, transparent 0 470px, rgba(255, 255, 255, .04) 471px 472px, transparent 473px),
    radial-gradient(ellipse at 80% 20%, rgba(65, 201, 220, .18), transparent 55%),
    linear-gradient(160deg, var(--hero-from), var(--hero-to));
}
/* Top and bottom only: the shorthand would wipe the container's side gutter. */
.hero-body { display: grid; gap: 40px; align-items: center; padding-top: 28px; padding-bottom: 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1);
  font-size: .82rem; font-weight: 700; letter-spacing: .01em; color: #CFE9F6;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 99px; background: #41C9DC; }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.4rem); margin: 0 0 18px; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: #7FD7E6; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: #C9DCE8; margin: 0 0 30px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 18px 0 0; font-size: .86rem; color: #9DBACB; }
.hero-shot { justify-self: center; width: min(78vw, 330px); }
.hero-shot img { border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
@media (min-width: 900px) {
  .hero-body { grid-template-columns: 1.15fr .85fr; padding-top: 48px; padding-bottom: 72px; }
  .hero-shot { justify-self: end; }
}

/* ── Sections ───────────────────────────────────────────────────────── */

.section { padding: 88px 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 40rem; margin: 0 0 40px; }
.section-head .kicker { margin: 0 0 10px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--coin); }
.section h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin: 0 0 14px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; margin: 0; }


.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.tile h3 { font-size: 1.12rem; margin: 16px 0 8px; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-wash); color: var(--brand);
}
.icon svg { width: 22px; height: 22px; }
.icon.coin { color: var(--coin); }
.tile-big { padding: 28px; }
.tile-big h3 { font-size: 1.3rem; }
.tile.wide { grid-column: 1 / -1; display: grid; gap: 0 20px; }
.tile.wide h3 { margin-top: 16px; }
@media (min-width: 720px) {
  .tile.wide { grid-template-columns: auto 1fr; }
  .tile.wide h3 { margin-top: 2px; }
}
.aside { margin: 22px 0 0; color: var(--ink-3); font-size: .95rem; max-width: 46rem; }

.feature-list { display: grid; gap: 4px 28px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.feature-list li svg { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: 2px; }
.feature-list b { display: block; font-size: 1rem; }
.feature-list span { color: var(--ink-2); font-size: .95rem; }

/* Gallery: the store's own screenshots, scrolled sideways. */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 250px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 20px;
  margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin;
}
@media (min-width: 1168px) { .gallery { margin: 0; padding-left: 0; padding-right: 0; } }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { border-radius: 22px; border: 1px solid var(--line); background: #0A3A57; }

.band {
  border-radius: 28px; padding: clamp(28px, 5vw, 56px); color: #FFFFFF;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(65, 201, 220, .22), transparent 50%),
    linear-gradient(150deg, var(--hero-from), var(--hero-to));
}
.band h2 { color: #FFFFFF; }
.band .section-head p { color: #C9DCE8; }
.band .section-head .kicker { color: #7FD7E6; }
.band .tile { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
.band .tile h3 { color: #FFFFFF; }
.band .tile p { color: #B9CEDB; }
.band .icon { background: rgba(65, 201, 220, .14); color: #7FD7E6; }
.band-foot { margin: 28px 0 0; color: #B9CEDB; }
.band-foot a { color: #FFFFFF; font-weight: 800; }

.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
  font: 700 1.06rem/1.4 Manrope, sans-serif;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

.cta-final { text-align: center; }
.cta-final h2 { margin-bottom: 12px; }
.cta-final p { color: var(--ink-2); margin: 0 auto 28px; max-width: 32rem; }
.cta-final .cta-row { justify-content: center; }

/* ── Documents (privacy, deletion, confirmation) ─────────────────────── */

.doc { max-width: var(--doc); margin: 0 auto; padding: 24px var(--gutter) 64px; }
.doc-head { padding: 28px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.doc-head h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 2.8rem); margin: 0 0 12px; }
.doc-head .sub { color: var(--ink-2); font-size: 1.08rem; margin: 0; }
.doc-head .dates { color: var(--ink-3); font-size: .88rem; margin: 16px 0 0; }
.doc h2 { font-size: 1.4rem; margin: 52px 0 12px; }
.doc h3 { font-size: 1.08rem; margin: 30px 0 8px; letter-spacing: -.01em; }
.doc p, .doc li { color: var(--ink); }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin: 6px 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin: 22px 0;
}
.card h2, .card h3 { margin-top: 0; }
.card.primary { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash); }
.card.danger { border-color: var(--danger); background: var(--danger-wash); }
.tag {
  display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.tag.best { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.tag.alt { background: color-mix(in srgb, var(--coin) 16%, transparent); color: var(--coin); }
.steps { counter-reset: step; list-style: none; padding: 0 !important; margin: 16px 0 0; }
.steps li { counter-increment: step; position: relative; padding-left: 2.5rem; margin: 12px 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: .1rem; width: 1.7rem; height: 1.7rem;
  border-radius: 99px; display: grid; place-items: center;
  background: var(--brand-wash); color: var(--brand); font-size: .8rem; font-weight: 800;
}
.table-scroll { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--ink-2); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--ink-3); font-size: .92rem; }
.site-footer .container { display: grid; gap: 20px; }
@media (min-width: 720px) { .site-footer .container { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; font-weight: 700; }
.site-footer nav a:hover { color: var(--ink); }
.site-footer p { margin: 0; }
.site-footer .brand { margin-bottom: 10px; color: var(--ink); }

.card h1 { font-size: 1.7rem; margin: 0 0 10px; }
