/*
  Tasbeeh Counter landing page. Standalone: it does not load the main site's CSS, so the
  page keeps the app's own green/cream/gold identity (taken from the store graphics).
  Fonts are the site's self-hosted Archivo (variable), with system fallbacks.
*/

@font-face {
  font-family: "Archivo";
  src: url("../../assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --green: #0f6b5c;
  --green-deep: #0a4f44;
  --cream: #f6f2ea;
  --gold: #e8b23a;
  --ink: #17231f;

  --bg: var(--cream);
  --surface: #fff;
  --text: var(--ink);
  --muted: #4b5a55;
  --line: #ddd6c7;
  --link: var(--green);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 1.25rem;
  --gutter: 1rem;
  --measure: 62rem;
  --shadow: 0 1.25rem 2.5rem -1rem rgb(10 40 34 / 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1815;
    --surface: #162420;
    --text: #eef3f0;
    --muted: #a9b9b3;
    --line: #2a3b36;
    --link: #7fd1bf;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--link);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  inset-block-start: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0.5rem;
}

.skip-link:focus {
  inset-block-start: var(--gutter);
}

.wrap {
  inline-size: min(100% - 2 * var(--gutter), var(--measure));
  margin-inline: auto;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background: var(--green);
  background-image: radial-gradient(
    circle at 85% 20%,
    rgb(255 255 255 / 0.1),
    transparent 55%
  );
}

.hero__inner {
  display: grid;
  gap: 2.5rem;
  padding-block: 3rem 0;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.hero__brand img {
  border-radius: 0.875rem;
}

.hero h1 {
  margin-block-start: 1.5rem;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.02em;
}

.hero__arabic {
  margin-block-start: 0.5rem;
  font-size: 1.75rem;
  color: var(--gold);
}

.hero__lead {
  max-inline-size: 34rem;
  margin-block-start: 1rem;
  font-size: 1.25rem;
  color: #dcebe6;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-block-start: 2rem;
}

.store-btn {
  display: inline-block;
  line-height: 0;
  border-radius: 0.75rem;
  transition: transform 150ms ease-out;
}

.store-btn:hover {
  transform: translateY(-2px);
}

.store-btn img {
  inline-size: 11.25rem;
  block-size: auto;
}

.hero__note {
  font-size: 0.9375rem;
  color: #cfe3dc;
}

.hero__shot {
  justify-self: center;
  inline-size: min(100%, 17rem);
  margin-block-start: 0.5rem;
}

.hero__shot img {
  inline-size: 100%;
  /* The export is a full-bleed poster; crop its bottom so it sits on the section edge. */
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: var(--shadow);
}

@media (min-width: 52rem) {
  .hero__inner {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    padding-block-start: 4.5rem;
  }

  .hero__text {
    padding-block-end: 4.5rem;
  }

  .hero__shot {
    margin-block-start: 0;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: 4rem;
}

.section__title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section__intro {
  max-inline-size: 38rem;
  margin-block-start: 0.75rem;
  color: var(--muted);
}

/* ---------- Screenshot gallery ---------- */
.gallery {
  display: flex;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0 0 1.25rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--green) transparent;
}

.gallery__item {
  flex: 0 0 min(72vw, 15rem);
  scroll-snap-align: start;
}

.gallery__item img {
  inline-size: 100%;
  border-radius: 1rem;
  border: 1px solid var(--line);
}

/* ---------- Features ---------- */
.features {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.feature p {
  margin-block-start: 0.5rem;
  color: var(--muted);
}

@media (min-width: 40rem) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Privacy band ---------- */
.band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.band__list {
  display: grid;
  gap: 0.75rem;
  max-inline-size: 42rem;
  margin: 1.5rem 0 0;
  padding-inline-start: 1.25rem;
  color: var(--muted);
}

.band__list strong {
  color: var(--text);
}

/* ---------- Final CTA ---------- */
.cta {
  text-align: center;
  color: var(--cream);
  background: var(--green-deep);
}

.cta .hero__cta {
  justify-content: center;
}

.cta p {
  margin-block-start: 0.75rem;
  color: #cfe3dc;
}

/* ---------- Footer ---------- */
.footer {
  padding-block: 2rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  display: inline-block;
  padding-block: 0.5rem; /* 44px touch target */
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .store-btn {
    transition: none;
  }
}
