/* Daftar landing page. Same tokens as the app (src/styles.css), tuned for a marketing page.
   Logical properties everywhere so Arabic (RTL) and English (LTR) share one stylesheet. */

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  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-style: normal;
  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-style: normal;
  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-style: normal;
  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;
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/readex-pro-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: 'Readex Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/readex-pro-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 {
  --bg: #f6f8f7;
  --bg-alt: #edf1ef;
  --surface: #ffffff;
  --ink: #15211d;
  --muted: #55645f;
  --line: #d6deda;
  --accent: #2740a8;
  --accent-ink: #1d3289;
  --on-accent: #ffffff;
  --accent-soft: #e5e9f8;
  --paid: #1b7743;
  --paid-bg: #e1f2e7;
  --whatsapp: #1e7a4c;
  --band: #1f3593;
  --band-ink: #ffffff;
  --band-muted: #d5dcf7;
  /* The app's background inside the phone frames (matches the screenshots). */
  --app-bg: #f1f4f3;
  --frame: #1b2420;
  --shadow: 0 1px 2px rgb(21 33 29 / 6%), 0 12px 32px -12px rgb(21 33 29 / 18%);
  --shadow-phone: 0 30px 60px -24px rgb(31 53 147 / 35%), 0 12px 24px -12px rgb(21 33 29 / 25%);

  --radius: 16px;
  --radius-button: 10px;
  --font-body: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1412;
    --bg-alt: #131a17;
    --surface: #171e1b;
    --ink: #e6ece9;
    --muted: #a3b0ab;
    --line: #29332f;
    --accent: #93a6ff;
    --accent-ink: #b7c4ff;
    --on-accent: #0f1412;
    --accent-soft: #1d2442;
    --paid: #72d39c;
    --paid-bg: #15301f;
    --whatsapp: #6fd39c;
    --band: #1a2350;
    --band-ink: #f1f4ff;
    --band-muted: #c3ccf2;
    --app-bg: #0f1412;
    --frame: #2a3430;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -12px rgb(0 0 0 / 60%);
    --shadow-phone: 0 30px 60px -24px rgb(0 0 0 / 70%), 0 0 0 1px rgb(255 255 255 / 4%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 76px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  text-wrap: balance;
}

:lang(en) h1,
:lang(en) h2,
:lang(en) h3 {
  letter-spacing: -0.015em;
  line-height: 1.2;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
}

.narrow {
  max-width: 800px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 20;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: var(--radius-button);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: var(--radius-button);
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-ink);
}

.btn-secondary {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--accent);
}

.btn-ghost {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.btn-light {
  background: var(--band-ink);
  color: var(--band);
}

.btn-outline-light {
  color: var(--band-ink);
  border-color: color-mix(in srgb, var(--band-ink) 55%, transparent);
}

.btn-outline-light:hover {
  background: rgb(255 255 255 / 8%);
}

.btn-small {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 15px;
}

.btn-large {
  min-height: 54px;
  padding: 12px 28px;
  font-size: 18px;
}

/* ---------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  padding-top: env(safe-area-inset-top);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--accent);
  min-height: 44px;
  align-content: center;
  padding-block: 6px;
}

.brand-ar {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
}

.brand-en {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
}

.top-links {
  display: none;
  gap: 4px;
  margin-inline-start: 24px;
}

.top-links a,
.lang-link,
.signin-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
}

.top-links a:hover,
.lang-link:hover,
.signin-link:hover {
  color: var(--accent);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}

.signin-link {
  display: none;
}

@media (min-width: 440px) {
  .signin-link {
    display: inline-flex;
  }
}

@media (min-width: 900px) {
  .top-links {
    display: flex;
  }
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 85% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, color-mix(in srgb, var(--paid) 10%, transparent), transparent 70%);
}

.hero-inner {
  display: grid;
  gap: 40px;
  padding-block: 40px 56px;
  align-items: center;
}

.eyebrow,
.kicker {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(30px, 7.4vw, 54px);
}

.lead {
  margin-top: 18px;
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--muted);
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.small-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 15px;
  color: var(--muted);
}

.small-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.small-list .icon {
  color: var(--paid);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.25fr 1fr;
    gap: 56px;
    padding-block: 72px 88px;
  }
}

/* ---------------------------------------------------------------- phone frame */

.phone {
  position: relative;
  width: 240px;
  padding: 9px;
  border-radius: 42px;
  background: var(--frame);
  box-shadow: var(--shadow-phone);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: var(--app-bg);
}

/* A status-bar strip with the camera "island", so the island never covers the screenshot. */
.phone-bar {
  height: 26px;
  background: var(--app-bg);
}

.phone-bar::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 72px;
  height: 20px;
  margin-left: -36px;
  border-radius: 999px;
  background: #0b0f0d;
}

@media (min-width: 900px) {
  .phone {
    width: 300px;
    padding: 11px;
    border-radius: 50px;
  }

  .phone-screen {
    border-radius: 40px;
  }

  .phone-bar {
    height: 32px;
  }

  .phone-bar::after {
    top: 10px;
    width: 88px;
    height: 24px;
    margin-left: -44px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-visual .phone {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

@keyframes rise {
  from {
    transform: translateY(28px) rotate(-1.5deg);
  }
  to {
    transform: none;
  }
}

/* ---------------------------------------------------------------- facts strip */

.facts {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.facts-list {
  list-style: none;
  margin: 0 auto;
  display: grid;
  gap: 14px 28px;
  padding-block: 22px;
  font-size: 15px;
  font-weight: 600;
}

.facts-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.facts-list .icon {
  color: var(--accent);
  margin-top: 2px;
}

@media (min-width: 640px) {
  .facts-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .facts-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------------------------------------------------------------- sections */

.section {
  padding-block: 72px;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(26px, 5vw, 38px);
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}

@media (min-width: 900px) {
  .section {
    padding-block: 104px;
  }
}

/* How it works */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  counter-reset: none;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 21px;
  margin-bottom: 6px;
}

.step p {
  color: var(--muted);
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* Features */

.feature {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-block: 32px;
}

.feature + .feature {
  border-top: 1px solid var(--line);
}

.feature h3 {
  font-size: clamp(23px, 4vw, 32px);
  margin-bottom: 12px;
}

.feature-text > p:not(.kicker) {
  color: var(--muted);
  font-size: 18px;
}

.feature-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.feature-visual::before {
  content: '';
  position: absolute;
  inset: 12% 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
}

.points {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.points .icon {
  color: var(--paid);
  margin-top: 4px;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding-block: 56px;
  }

  .feature.flip .feature-text {
    order: 2;
  }
}

/* Testimonials (shown only when there are real quotes) */

.quotes {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.quote {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.quote blockquote {
  margin: 0 0 16px;
  font-size: 18px;
}

.quote figcaption {
  display: grid;
  font-size: 15px;
}

.quote figcaption span {
  color: var(--muted);
}

/* Pricing */

.plans {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  box-shadow: var(--shadow);
}

.plan-featured {
  border: 2px solid var(--accent);
}

.plan-badge {
  position: absolute;
  top: -14px;
  inset-inline-start: 20px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
}

.plan h3 {
  font-size: 20px;
}

.plan-price {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.plan-amount {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
}

.plan-contact {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.6;
}

.plan-per {
  color: var(--muted);
  font-weight: 600;
}

.plan-yearly {
  color: var(--muted);
  font-size: 15px;
  min-height: 1.7em;
}

.plan-limit {
  font-weight: 600;
  margin-block: 10px 18px;
  flex: 1;
}

.plan .btn {
  width: 100%;
}

.plan-notes {
  margin: 28px auto 0;
  max-width: 720px;
  padding: 0;
  list-style: none;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  display: grid;
  gap: 4px;
}

/* FAQ */

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 17px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  /* Physical sides on purpose: a downward chevron is the same in Arabic and English. */
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.faq details p {
  padding: 0 20px 18px;
  color: var(--muted);
}

/* Final call to action */

.final {
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(255 255 255 / 10%), transparent 60%),
    var(--band);
  color: var(--band-ink);
  padding-block: 72px;
  text-align: center;
}

.final-inner .cta-row {
  justify-content: center;
}

.final h2 {
  font-size: clamp(26px, 5vw, 38px);
}

.final p {
  margin-top: 12px;
  color: var(--band-muted);
  font-size: 18px;
}

.final .final-email {
  margin-top: 24px;
  font-size: 16px;
}

.final a:not(.btn) {
  color: var(--band-ink);
  font-weight: 600;
}

/* Footer */

.foot {
  padding-block: 40px calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.foot-inner {
  display: grid;
  gap: 18px;
}

.foot-brand .brand-ar {
  color: var(--accent);
  font-size: 24px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  margin-inline-start: -10px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}

/* 404 */

.notfound {
  padding-block: 64px;
}

.notfound h1 {
  font-size: 32px;
  margin-block: 24px 8px;
}

.notfound p + p {
  margin-top: 20px;
}

.notfound-en {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.notfound-en h2 {
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------- motion
   landing.js marks blocks below the first screen as "pre" and reveals them on scroll.
   Without JavaScript, or with reduced motion, everything is simply visible. */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    transition:
      opacity 0.6s ease,
      transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .reveal.pre {
    opacity: 0;
    transform: translateY(24px);
  }
}
