/* SalahAlarm Android funnel — same palette as the iOS onboarding (AppColors.sl*). */
:root {
  --green: #1a9e3f;
  --green-deep: #157832;
  --green-top: #22a847;
  --green-tint: rgb(26 158 63 / 8%);
  --green-tint-2: rgb(26 158 63 / 14%);
  --gold: #c9a028;
  --gold-tint: #fff8e7;
  --text: #111111;
  --muted: #666666;
  --border: #e0e0e0;
  --bg: #ffffff;
  --surface: #ffffff;
  --cream: #f9f7f2;
  --alarm: #e53935;
  --radius: 20px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: "Noto Naskh Arabic", var(--font); }
html[lang="ur"] body { font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", var(--font); line-height: 2; }
html[lang="ur"] h1, html[lang="ur"] h2 { line-height: 1.9; }
img { max-width: 100%; display: block; }
a { color: var(--green-deep); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---- layout ---------------------------------------------------------------- */
.shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  padding: 12px 16px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  display: grid; place-items: center;
  cursor: pointer;
  flex: none;
}
.icon-btn:focus-visible { outline: 2px solid var(--green); }
html[dir="rtl"] .icon-btn svg.flip { transform: scaleX(-1); }
.progress {
  flex: 1;
  height: 6px;
  background: #f0ede4;
  border-radius: 99px;
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  border-radius: inherit;
  transition: width .35s ease;
}
.lang-select {
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  padding: 6px 10px;
  font-size: 14px;
  max-width: 130px;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 24px 0;
  animation: enter .28s ease;
}
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } }

.screen-body { flex: 1; padding-bottom: 16px; }
.footer {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0), #fff 18px);
  padding: 22px 0 max(16px, env(safe-area-inset-bottom));
  display: grid;
  gap: 8px;
}

/* ---- type ------------------------------------------------------------------- */
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin: 0 0 8px;
}
h1 {
  font-size: clamp(28px, 8vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  font-weight: 800;
}
h1 .accent { color: var(--green); }
h2 { font-size: 20px; line-height: 1.25; margin: 0 0 8px; }
.lede { color: var(--muted); margin: 0 0 18px; white-space: pre-line; }
.small { font-size: 13px; color: var(--muted); }
.center { text-align: center; }

/* ---- buttons ------------------------------------------------------------------ */
.btn {
  appearance: none;
  border: 0;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: transform .08s ease, opacity .2s ease, background .2s ease;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgb(26 158 63 / 28%); }
.btn-primary:hover { background: var(--green-deep); }
.btn-primary[disabled], .btn-primary[aria-disabled="true"] { background: #b9dcc3; box-shadow: none; cursor: not-allowed; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1.5px solid var(--border); }
.btn-dark { background: #111; color: #fff; }
.btn-link { background: none; border: 0; color: var(--muted); font-size: 15px; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn .spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgb(255 255 255 / 45%); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- cards and options ---------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.card.tint { background: var(--green-tint); border-color: rgb(26 158 63 / 18%); }

.steps { display: grid; gap: 0; }
.step-row { display: flex; gap: 14px; align-items: center; padding: 11px 0; }
.step-row + .step-row { border-top: 1px solid rgb(0 0 0 / 7%); }
.step-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--green);
  display: grid; place-items: center; flex: none;
}
.step-icon.square { border-radius: 14px; background: var(--green-tint-2); width: 52px; height: 52px; }
.step-title { font-weight: 700; font-size: 15px; }
.step-detail { font-size: 13px; color: var(--muted); }
.step-kicker { font-size: 11px; font-weight: 800; color: var(--gold); letter-spacing: .05em; }

.mech { display: grid; gap: 12px; }
.mech .card { display: flex; gap: 14px; align-items: center; }

.option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: start;
  padding: 16px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  min-height: 60px;
  transition: border-color .15s ease, background .15s ease;
}
.option + .option { margin-top: 10px; }
.option .emoji { font-size: 22px; flex: none; }
.option .label { flex: 1; font-weight: 650; }
.option .sub { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.option .check {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--border); flex: none;
  display: grid; place-items: center;
}
.option[aria-pressed="true"], .option[aria-checked="true"] { border-color: var(--green); background: var(--green-tint); }
.option[aria-pressed="true"] .check, .option[aria-checked="true"] .check { background: var(--green); border-color: var(--green); }
.option[aria-pressed="true"] .check::after, .option[aria-checked="true"] .check::after {
  content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg);
}
.arabic { font-family: "Noto Naskh Arabic", serif; color: var(--muted); font-size: 15px; }

.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pill {
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 99px;
  padding: 8px 14px;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
}
.pill[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; }

.grid30 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 12px;
}
.grid30 span {
  height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  background: rgb(26 158 63 / 10%); color: var(--green-deep);
}
.grid30 span.on { background: var(--green); color: #fff; }

/* ---- loader --------------------------------------------------------------------- */
.loader { flex: 1; display: grid; place-content: center; gap: 22px; text-align: center; padding: 40px 0; }
.ring {
  width: 64px; height: 64px; margin: 0 auto;
  border-radius: 50%;
  border: 5px solid var(--green-tint-2); border-top-color: var(--green);
  animation: spin 1s linear infinite;
}
.ticks { text-align: start; color: var(--muted); display: grid; gap: 10px; }
.ticks li { list-style: none; opacity: 0; transform: translateY(4px); transition: all .4s ease; }
.ticks li.on { opacity: 1; transform: none; }
.ticks { padding: 0; margin: 0 auto; }

/* ---- plan --------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  color: var(--green-deep); background: var(--green-tint-2);
  padding: 6px 11px; border-radius: 99px; margin-bottom: 12px;
}
.summary { padding: 0; overflow: hidden; }
.summary .row { display: flex; gap: 14px; padding: 14px; align-items: flex-start; }
.summary .row + .row { border-top: 1px solid rgb(0 0 0 / 7%); }
.summary .ic {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--green-tint-2); color: var(--green);
  display: grid; place-items: center;
}
.summary .k { font-size: 12px; color: var(--muted); }
.summary .v { font-weight: 750; }
.summary .d { font-size: 12.5px; color: var(--muted); }
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.outcomes div {
  background: var(--green-tint); border-radius: 16px; padding: 12px 6px;
  display: grid; justify-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; text-align: center; color: var(--text);
}
.outcomes svg { color: var(--green); }

/* ---- paywall --------------------------------------------------------------------------- */
.hero-alarm {
  background: linear-gradient(160deg, var(--green-top), var(--green-deep));
  color: #fff;
  border-radius: 24px;
  padding: 18px;
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 16px;
}
.hero-alarm .big { font-size: 26px; font-weight: 800; line-height: 1.1; }
.hero-alarm .k { font-size: 13px; opacity: .85; }
.benefits { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.benefits li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15px; }
.benefits svg { color: var(--green); flex: none; margin-top: 2px; }
.plans { display: grid; gap: 10px; }
.plan {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: start;
  padding: 16px; border-radius: 18px;
  border: 2px solid var(--border); background: var(--surface);
  cursor: pointer;
}
.plan[aria-checked="true"] { border-color: var(--green); background: var(--green-tint); }
.plan .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); flex: none; display: grid; place-items: center; }
.plan[aria-checked="true"] .radio { border-color: var(--green); }
.plan[aria-checked="true"] .radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.plan .name { font-weight: 800; }
.plan .meta { font-size: 13px; color: var(--muted); }
.plan .price { margin-inline-start: auto; text-align: end; font-weight: 800; white-space: nowrap; }
.plan .price small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.plan .flag {
  position: absolute; top: -11px; inset-inline-end: 14px;
  background: var(--gold); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .05em;
  padding: 3px 9px; border-radius: 99px;
}
.trust { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 5px; }
.links { display: flex; justify-content: center; gap: 18px; font-size: 13px; }
.links a, .links button { color: var(--muted); }
.error {
  background: #fdecea; color: #8c1d18; border-radius: 12px; padding: 10px 12px; font-size: 14px;
}
.notice {
  background: var(--gold-tint); border: 1px solid var(--gold); border-radius: 14px; padding: 12px 14px; font-size: 14px;
}

/* ---- auth -------------------------------------------------------------------------------- */
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input {
  height: 52px; border-radius: 14px; border: 1.5px solid var(--border);
  padding: 0 14px; font: inherit; background: var(--surface);
}
.field input:focus { outline: none; border-color: var(--green); }
.google-btn { background: #fff; color: #1f1f1f; border: 1.5px solid #dadce0; font-weight: 700; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 6px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---- bio link page ----------------------------------------------------------------------- */
.bio {
  max-width: 480px; margin: 0 auto; min-height: 100dvh;
  padding: 28px 20px max(24px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 18px;
  background: radial-gradient(120% 60% at 50% 0%, #e8f5ec 0%, #fff 70%);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 6px 18px rgb(0 0 0 / 12%); }
.brand b { font-size: 20px; display: block; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.phone {
  width: 62%; max-width: 250px; margin: 4px auto 0;
  filter: drop-shadow(0 18px 30px rgb(0 0 0 / 14%));
}
.store-btn { min-height: 64px; border-radius: 18px; }
.store-btn .two { display: grid; text-align: start; line-height: 1.15; }
.store-btn .two small { font-weight: 500; font-size: 12px; opacity: .85; }
.store-btn .two b { font-size: 18px; }
.hint { font-size: 13px; color: var(--muted); text-align: center; }

/* ---- install guide ------------------------------------------------------------------------- */
.success-mark svg { width: 38px; height: 38px; }
.success-mark {
  width: 76px; height: 76px; border-radius: 50%; margin: 6px auto 14px;
  background: var(--green); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgb(26 158 63 / 35%);
}
.guide { counter-reset: g; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.guide > li { counter-increment: g; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.guide > li::before {
  content: counter(g);
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-tint-2); color: var(--green-deep);
  display: grid; place-items: center; font-weight: 800;
}
.guide h3 { margin: 4px 0 4px; font-size: 16px; }
.guide p { margin: 0; color: var(--muted); font-size: 14px; }
.mock {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--cream);
  font-size: 13px;
  display: grid; gap: 6px;
}
.mock .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mock .fake-btn { color: #1a73e8; font-weight: 700; }
.mock .fake-btn.hl { background: rgb(26 115 232 / 12%); border-radius: 6px; padding: 2px 8px; outline: 2px solid #1a73e8; }
.mock .toggle { width: 34px; height: 20px; border-radius: 99px; background: #1a73e8; position: relative; flex: none; }
.mock .toggle::after { content: ""; position: absolute; top: 3px; inset-inline-end: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
details.brand-tip { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
details.brand-tip + details.brand-tip { margin-top: 8px; }
details.brand-tip summary { font-weight: 700; cursor: pointer; }
details.brand-tip p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.status-line { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--muted); }
.mini-ring { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--green-tint-2); border-top-color: var(--green); animation: spin 1s linear infinite; }

/* Paywall close button and the exit offers */
.close-row { display: flex; justify-content: flex-end; margin: -10px -8px 2px; }
.close-btn {
  width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: transparent; color: #9a9a9a; font-size: 26px; line-height: 1; cursor: pointer;
}
.close-btn:focus-visible { outline: 2px solid var(--green); }
.offer-card { text-align: center; padding: 22px 16px; border: 2px solid var(--gold); background: var(--gold-tint); }
.offer-off { display: inline-block; background: var(--alarm); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .04em; border-radius: 999px; padding: 4px 12px; margin-bottom: 10px; }
.offer-price { font-size: 30px; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.offer-price s { color: var(--muted); font-weight: 600; font-size: 20px; }
.moon { font-size: 54px; line-height: 1; margin: 8px 0 14px; }
