/* ===========================================================================
   Bunyawi — marketing site
   Plain CSS. No framework, no build step, no runtime. The whole site is
   HTML + this file + ~1 KB of JS, which is why it loads instantly on the
   3G-ish connections our merchants' customers are actually on.

   Above-the-fold rules (tokens, reset, header, buttons, hero, product cards,
   page head) are duplicated inline in each page's <head>, so the first paint
   never waits on this file. Every English page carries one identical block and
   every Arabic page another (same tokens; Arabic font stack, line heights and
   no letter-spacing). There are sixteen pages: index, tarteeb, tasleem,
   delete-account, onboarding, privacy, terms, security and their /ar/ twins.
   If you edit a token or a header rule, edit the inline copy in all of them.

   This sheet is preloaded in <head> and applied by a plain <link> at the end
   of <body>, so the page paints with the inline rules first and no inline
   script is needed (strict CSP). It carries everything below the fold. Do not
   restate a rule from the inline block here with different values: this file
   loads later, would win, and would move the page after the first paint.
   =========================================================================== */

/* ---------------------------------------------------------------- layout -- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }

.eyebrow {
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-deep); margin: 0 0 12px;
}
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 16px; }
h3 { font-size: 1.125rem; line-height: 1.3; margin: 0 0 8px; }
.lede { font-size: clamp(1.0625rem, 1.7vw, 1.25rem); color: var(--muted); max-width: 62ch; margin: 0 0 36px; }
.section-head { max-width: 62ch; }

/* ------------------------------------------------------------ price strip -- */
.strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.strip__grid {
  display: grid; gap: 4px 28px;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  align-items: end;
}
.strip__cell { padding: 16px 0; }
.strip__name { font-size: .8125rem; color: var(--muted); margin: 0 0 4px; }
.strip__price { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; margin: 0; color: var(--ink); }
.strip__cell--us .strip__name { color: var(--brand-deep); font-weight: 700; }
.strip__cell--us .strip__price { color: var(--brand-deep); }
.strip__note { margin: 14px 0 0; font-size: .875rem; color: var(--muted); }

/* ----------------------------------------------------------------- pains -- */
.pains { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.pain {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.pain__quote {
  margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--muted);
  border-inline-start: 3px solid var(--line); padding-inline-start: 14px; font-style: italic;
}
.pain__quote cite { display: block; margin-top: 8px; font-style: normal; font-size: .8125rem; }
.pain__answer { margin: 0; font-weight: 600; line-height: 1.45; }
.pain__answer::before {
  content: "→"; color: var(--brand-deep); font-weight: 700;
  margin-inline-end: 8px; display: inline-block;
}
[dir="rtl"] .pain__answer::before { content: "←"; }

/* -------------------------------------------------------------- features -- */
.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 258px), 1fr)); }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
}
.feature__icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-deep); margin-bottom: 16px;
}
.feature__icon svg { width: 21px; height: 21px; }
.feature p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.6; }

/* ----------------------------------------------------------------- steps -- */
.steps { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: step; }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-weight: 700; font-size: 1rem;
}
.step p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.step__time { display: block; margin-top: 10px; font-size: .8125rem; color: var(--brand-deep); font-weight: 600; }

/* --------------------------------------------------------------- pricing -- */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 272px), 1fr)); align-items: start; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; display: flex; flex-direction: column; height: 100%;
}
.plan--featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); position: relative; }
.plan__badge {
  position: absolute; inset-block-start: -11px; inset-inline-start: 28px;
  background: var(--btn-bg); color: var(--btn-fg); font-size: .75rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 4px 11px; border-radius: 99px;
}
.plan__name { font-size: 1.0625rem; font-weight: 700; margin: 0 0 4px; }
.plan__for { font-size: .875rem; color: var(--muted); margin: 0 0 20px; min-height: 2.6em; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan__amount { font-size: 2.5rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.plan__per { font-size: .9375rem; color: var(--muted); }
.plan__trial { font-size: .8125rem; color: var(--muted); margin: 0 0 22px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: .9375rem; line-height: 1.5; }
.plan li svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 3px; color: var(--accent); }
.plan .btn { margin-top: auto; width: 100%; justify-content: center; }

.pricing-notes {
  margin-top: 36px; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.note {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  font-size: .9375rem; line-height: 1.6; color: var(--muted); background: var(--surface);
}
.note strong { color: var(--ink); display: block; margin-bottom: 4px; }
.note--flag { border-color: var(--brand); background: var(--brand-soft); }
.note--flag strong { color: var(--brand-deep); }

/* ------------------------------------------------------------------- faq -- */
.faq { max-width: 74ch; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 4px 0;
}
.faq summary {
  cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 1.0625rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 11px; height: 11px;
  border-inline-end: 2px solid var(--muted); border-block-end: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .18s ease; margin-block-start: -5px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-block-start: 3px; }
.faq details p { margin: 0 0 18px; color: var(--muted); line-height: 1.65; max-width: 68ch; }
.faq details p:last-child { margin-bottom: 18px; }

/* -------------------------------------------------------------- close CTA -- */
.close {
  background: var(--cta-bg); color: var(--cta-fg); text-align: center;
  border-radius: 20px; padding: clamp(40px, 6vw, 72px) 24px;
}
.close h2 { color: var(--cta-fg); }
.close p { color: color-mix(in srgb, var(--cta-fg) 72%, transparent); max-width: 52ch; margin: 0 auto 28px; font-size: 1.0625rem; }
.close .btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.close .btn--ghost { color: var(--cta-fg); border-color: color-mix(in srgb, var(--cta-fg) 55%, transparent); }

/* ---------------------------------------------------------------- footer -- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-alt); }
.footer__grid {
  display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
/* the about block takes the full row until there is room for four columns */
.footer__about { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: minmax(200px, 1.3fr) repeat(3, minmax(140px, 1fr)); }
  .footer__about { grid-column: auto; }
}
.footer .footer__h { font-size: .8125rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 14px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; }
.footer a:hover { color: var(--brand-deep); text-decoration: underline; }
.footer__about p { color: var(--muted); font-size: .9375rem; line-height: 1.6; margin: 12px 0 0; max-width: 40ch; }
.footer__bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: .875rem; color: var(--muted);
}

/* ------------------------------------------------------------- legal page -- */
.legal { max-width: 74ch; }
.legal h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.legal h3 { font-size: 1.0625rem; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal ul, .legal ol { padding-inline-start: 22px; display: grid; gap: 8px; margin: 0 0 18px; }
.legal__meta {
  font-size: .875rem; color: var(--muted); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px; background: var(--bg-alt);
}
.legal__draft {
  border: 1px solid var(--brand); background: var(--brand-soft); color: var(--brand-deep);
  border-radius: 10px; padding: 14px 16px; font-size: .9375rem; font-weight: 600; margin-bottom: 28px;
}

/* ----------------------------------------------------- apps intro (home) -- */
.apps-intro { display: grid; gap: clamp(36px, 5vw, 56px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 980px) { .apps-intro { grid-template-columns: 1.05fr .95fr; } }
.apps-intro h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.1; }
.apps-intro h2 em { font-style: normal; color: var(--brand-deep); }
.phones { display: flex; justify-content: center; align-items: flex-end; }
.phones svg { filter: drop-shadow(0 22px 40px rgba(18, 21, 28, .17)); }
.phones .phone--b { margin-inline-start: -46px; margin-bottom: 26px; }
@media (max-width: 520px) { .phones .phone--b { display: none; } }

/* ----------------------------------------------- product bands and parts -- */
.band { display: grid; gap: clamp(32px, 5vw, 56px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 980px) { .band { grid-template-columns: 1fr 1fr; } }
.band .section-head { max-width: none; }
.band .lede { margin-bottom: 24px; }
.shot--panel svg { width: 100%; max-width: 560px; }
.features--tight { margin-top: clamp(36px, 5vw, 56px); }
/* six or nine cards read better as full rows of three than as 4 + 2 */
@media (min-width: 900px) { .features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.subhead { font-size: 1.25rem; margin: clamp(40px, 5vw, 56px) 0 20px; }
.step h4 { font-size: 1.0625rem; line-height: 1.3; margin: 0 0 8px; color: var(--ink); }
.note--wide { margin: 32px 0 0; max-width: 74ch; }
.section--flush { padding-top: 0; }
.strip .eyebrow { margin-bottom: 18px; }

/* ------------------------------------------------------------ check list -- */
.checks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.6; }
.checks svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 4px; color: var(--accent); }
.checks--2 { gap: 18px 40px; }
@media (min-width: 760px) { .checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------ what happens, in order -- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); counter-reset: flow; }
.flow li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 60px 22px 22px; }
.flow li::before {
  counter-increment: flow; content: counter(flow);
  position: absolute; inset-block-start: 20px; inset-inline-start: 22px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep);
  display: grid; place-items: center; font-weight: 700; font-size: .875rem;
}
.flow h3 { margin: 0 0 6px; }
.flow p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.6; }

/* ------------------------------------------------------------ two columns -- */
.split { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.split h3 { margin-top: 0; }
.ol { margin: 0 0 16px; padding-inline-start: 22px; display: grid; gap: 8px; }

/* ------------------------------------------------------------ data table -- */
.tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 22px 0; }
.tbl { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .9375rem; }
.tbl th, .tbl td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--bg-alt); color: var(--ink); font-weight: 700; }
.tbl tr:last-child td { border-bottom: none; }

/* ------------------------------------------- legal placeholders and misc -- */
/* A legal or commercial detail still to be supplied, e.g. the company number. */
.ph { background: var(--brand-soft); color: var(--brand-deep); border: 1px dashed var(--brand); border-radius: 6px; padding: 1px 6px; font-weight: 600; }
.legal--wide { max-width: none; }
.mt-lg { margin-top: 36px; }

/* ----------------------------------------------------------------- Arabic -- */
/* Letter-spacing pulls Arabic letters apart and breaks the joins between them,
   and Arabic needs more line height than Latin headings get above. */
:lang(ar) h2 { letter-spacing: 0; line-height: 1.35; }
:lang(ar) .eyebrow, :lang(ar) .plan__badge, :lang(ar) .footer .footer__h { letter-spacing: 0; text-transform: none; }
:lang(ar) .apps-intro h2 { line-height: 1.3; }
:lang(ar) .step::before { content: counter(step, arabic-indic); }
:lang(ar) .flow li::before { content: counter(flow, arabic-indic); }

/* --------------------------------------------------------------- utility -- */
.center { text-align: center; margin-inline: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .cta-row, .cta-row.center { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Visually hidden but read by screen readers and by a table's accessible name. */
.sr-only{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;
}
