/*
 * Public pages of every app (landing, FAQ, privacy, terms), served at /site/site.css. Each
 * app sets its colours in /brand/theme.css (the variables below). Same-origin only: the CSP
 * allows no inline styles.
 */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E,
    U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E,
    U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Overridden per app in /brand/theme.css. */
  --brand: #0e7c66;
  --brand-deep: #0b5f4f;
  --brand-soft: #eaf7f3;
  --on-brand: #ffffff;
  --on-brand-muted: #d4f0e8;
  --accent: #ff7a59;
  --accent-soft: #ffd8cc;
  --cta: #ffffff;
  --cta-text: #0b5f4f;

  --bg: #f8f8f8;
  --surface: #ffffff;
  --border: #e3e7e8;
  --text: #1d1e20;
  --muted: #5f6b6d;
  --link: var(--brand);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131516;
    --surface: #1d2022;
    --border: #2e3336;
    --text: #eef1f2;
    --muted: #a7b1b3;
    --link: var(--brand-soft);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.top {
  background: var(--brand-deep);
  color: var(--on-brand);
}

.top-inner,
main,
.foot-inner {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 20px;
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 22px;
}

.top img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.top .brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--on-brand);
  text-decoration: none;
}

.top nav {
  margin-inline-start: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.95rem;
}

.top nav a {
  color: var(--on-brand-muted);
  text-decoration: none;
}

.top nav a:hover,
.top nav a[aria-current="page"] {
  color: var(--accent-soft);
}

main {
  padding-block: 36px 56px;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.4;
  margin: 0 0 6px;
}

h2 {
  font-size: 1.2rem;
  margin: 34px 0 8px;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-block: 14px;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

ul {
  padding-inline-start: 22px;
}

li + li {
  margin-top: 4px;
}

.callout {
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  border-inline-start: 4px solid var(--accent);
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 600;
}

.lang-switch {
  margin-block: 0 26px;
  font-size: 0.95rem;
}

section[lang="en"] {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.foot {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.foot-inner {
  padding-block: 22px 32px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

/* Landing page (/home/, served at the root of the app's site) */
.hero {
  position: relative;
  isolation: isolate;
  background-color: var(--brand);
  background-position: left center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--on-brand);
}

/* The art fills the left of the banner; text keeps to the right, clear of it. */
.hero-inner {
  max-width: 1120px;
  margin-inline: auto;
  padding: 72px 20px 80px;
}

.hero-text {
  max-width: min(520px, 44%);
}

/* Wide screens: a soft wash from the text side keeps it readable where the art reaches it. */
@media (min-width: 900px) {
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
      to left,
      color-mix(in srgb, var(--brand-deep) 72%, transparent) 0%,
      color-mix(in srgb, var(--brand-deep) 40%, transparent) 40%,
      transparent 62%
    );
  }
}

/* Narrow screens: the art would sit behind the text, so a brand wash keeps it readable. */
@media (max-width: 899px) {
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: color-mix(in srgb, var(--brand-deep) 88%, transparent);
  }
  .hero-text {
    max-width: none;
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.3;
}

.hero h1 span {
  display: block;
  color: var(--accent-soft);
}

.hero p {
  color: var(--on-brand-muted);
  font-size: 1.1rem;
  margin: 18px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero .hero-note {
  font-size: 0.95rem;
  color: var(--accent-soft);
}

.btn-cta,
.btn-ghost {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.btn-cta {
  background: var(--cta);
  color: var(--cta-text);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--on-brand);
}

.landing {
  max-width: 1120px;
}

.block {
  margin-block: 64px;
}

.block-title {
  text-align: center;
  font-size: 1.7rem;
  margin: 0 0 28px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.feature img {
  display: block;
  width: 100%;
  height: auto;
}

.feature h3,
.feature p {
  padding-inline: 20px;
}

.feature h3 {
  margin-top: 18px;
}

.feature p {
  color: var(--muted);
  margin: 0 0 20px;
}

/* A short list of further features, each with a check mark. */
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding: 14px 16px;
  padding-inline-start: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  line-height: 1.7;
}

.checks li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 16px;
  top: 14px;
  color: var(--brand);
  font-weight: 700;
}

.how {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.how li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin: 0;
}

.how li::before {
  content: counter(step, arabic-indic);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 600;
  margin-bottom: 10px;
}

.how p {
  color: var(--muted);
  margin: 0;
}

.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.shots img {
  flex: 0 0 auto;
  width: 220px;
  height: auto;
  border-radius: 14px;
  scroll-snap-align: start;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  justify-content: center;
  gap: 20px;
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.plan-best {
  border: 2px solid var(--accent);
}

.plan-tag {
  position: absolute;
  inset-block-start: -12px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  background: var(--accent);
  color: #ffffff;
  border-radius: 99px;
  padding: 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

[dir="ltr"] .plan-tag {
  transform: translateX(-50%);
}

.price {
  font-size: 1.1rem;
  margin: 8px 0;
}

.price strong {
  font-size: 2.2rem;
}

.muted {
  color: var(--muted);
}

.center-text {
  text-align: center;
}

.cta-band {
  text-align: center;
  background: var(--brand-deep);
  color: var(--on-brand);
  border-radius: 18px;
  padding: 40px 24px;
}

.cta-band h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

.cta-band p {
  color: var(--on-brand-muted);
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-block: 10px;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin-bottom: 0;
}
