/* ===========================================================================
   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, hero, buttons) are duplicated
   inline in each page's <head> so the first paint never waits on this file;
   this sheet is loaded asynchronously and carries everything below the fold.
   If you edit a token here, edit the inline copy in every page too — there
   are six: index, privacy, terms and their /ar/ twins.
   =========================================================================== */

/* ---------------------------------------------------------------- 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(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; opacity: .85; }
.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(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(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(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(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: minmax(200px, 1.3fr) repeat(auto-fit, minmax(140px, 1fr));
}
.footer h4 { font-size: .8125rem; 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;
}

/* --------------------------------------------------------------- utility -- */
.center { text-align: center; margin-inline: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .cta-row { 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;
}
