/* DosiDrop marketing site — single stylesheet.
   Tokens come from tokens.css (mirrors the app's src/constants/theme.ts).
   Dark theme only. Mobile-first. Logical properties so RTL mirrors for free. */

@import url("tokens.css");

/* ---------- Fonts ---------- */
/* Tajawal (bundled) — Arabic pages. Poppins comes from Google Fonts (Latin). */
@font-face {
  font-family: "Tajawal";
  src: url("fonts/Tajawal-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("fonts/Tajawal-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("fonts/Tajawal-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("fonts/Tajawal-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-latin);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[lang="ar"] body, [dir="rtl"] body { font-family: var(--font-arabic); }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--text-primary-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; text-wrap: balance; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-weight: 800; }

::selection { background: rgba(20, 184, 132, .35); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--s-4);
  top: -100px;
  z-index: 100;
  background: var(--primary-500);
  color: var(--text-inverse);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md);
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: var(--s-4); text-decoration: none; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.section { padding-block: clamp(56px, 9vw, 104px); position: relative; }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary-accent);
  background: rgba(20, 184, 132, .1);
  border: 1px solid rgba(20, 184, 132, .25);
  border-radius: var(--r-full);
  padding: 6px var(--s-4);
  margin-bottom: var(--s-5);
}
[dir="ltr"] .eyebrow { letter-spacing: .04em; }

.section-title { font-size: clamp(26px, 4vw, 38px); margin-bottom: var(--s-4); }
.section-sub { color: var(--text-secondary); font-size: 17px; }

/* ---------- Ambient glows ---------- */
.glow-field { position: relative; }
.glow-field::before {
  content: "";
  position: absolute;
  inset: -20% -30%;
  background:
    radial-gradient(closest-side, rgba(20, 184, 132, .14), transparent 70%) 50% 0% / 900px 560px no-repeat;
  pointer-events: none;
  z-index: -1;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 19, 17, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 68px;
  padding-block: var(--s-2);
}
.nav-logo { display: inline-flex; align-items: center; min-height: 44px; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo:hover { text-decoration: none; }

.nav-links { display: none; }
@media (min-width: 760px) {
  .nav-links { display: flex; align-items: center; gap: var(--s-1); }
  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: var(--s-3);
    color: var(--text-secondary);
    font-size: 14.5px;
    font-weight: 500;
  }
  .nav-links a:hover { color: var(--text); text-decoration: none; }
}

.nav-actions { display: flex; align-items: center; gap: var(--s-3); }
.nav-actions .btn { display: none; }
@media (min-width: 520px) { .nav-actions .btn { display: inline-flex; } }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  overflow: hidden;
  background: var(--surface);
}
.lang-toggle a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 52px;
  padding-inline: var(--s-3);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.lang-toggle a:hover { text-decoration: none; color: var(--text); }
.lang-toggle a[aria-current="true"] {
  background: var(--primary-500);
  color: var(--text-inverse);
}

/* ---------- Buttons & store badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: var(--s-3) var(--s-6);
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary {
  background: var(--primary-500);
  color: var(--text-inverse);
  box-shadow: 0 6px 24px rgba(20, 184, 132, .28);
}
.btn-primary:hover { background: var(--primary-400); text-decoration: none; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); text-decoration: none; }
.btn-sm { min-height: 44px; padding: var(--s-2) var(--s-5); font-size: 14px; }

/* Inert store badges — “Coming soon”, intentionally not links until launch. */
.badges { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 56px;
  padding: var(--s-2) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  border: var(--glass-border);
  color: var(--text);
  cursor: default;
  text-align: start;
}
.store-badge svg { flex: none; width: 24px; height: 24px; fill: var(--text); }
.store-badge .soon {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--secondary-300);
}
[dir="ltr"] .store-badge .soon { letter-spacing: .05em; text-transform: uppercase; }
.store-badge .store { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; }

.microcopy { color: var(--text-secondary); font-size: 14px; margin-top: var(--s-4); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 96px); overflow: clip; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(32px, 5.4vw, 54px);
  line-height: 1.15;
  margin-bottom: var(--s-5);
}
.hero h1 .hl {
  color: var(--text-primary-accent);
  position: relative;
  white-space: nowrap;
}
.hero .sub {
  color: var(--text-secondary);
  font-size: clamp(16px, 2vw, 18.5px);
  margin-bottom: var(--s-8);
}

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: 130%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(20, 184, 132, .22), rgba(20, 184, 132, .05) 55%, transparent 72%);
  z-index: -1;
}

/* CSS device frame */
.phone {
  position: relative;
  width: min(300px, 78vw);
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(160deg, var(--surface-elevated), var(--bg-elevated));
  border: 1px solid var(--border-strong);
  box-shadow: var(--glow-teal), 0 30px 80px rgba(0, 0, 0, .55);
}
.phone img { width: 100%; border-radius: 37px; }
.phone::before { /* side key */
  content: "";
  position: absolute;
  inset-inline-end: -3px;
  top: 110px;
  width: 3px;
  height: 56px;
  border-radius: 2px;
  background: var(--border-strong);
}

/* Floating live-countdown chip — the site's signature element. */
.chip {
  position: absolute;
  inset-inline-start: -18px;
  bottom: 12%;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  border: var(--glass-border);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .45), var(--glow-teal);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.chip .chip-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: rgba(20, 184, 132, .14);
  color: var(--primary-400);
}
.chip .chip-label { font-size: 11.5px; color: var(--text-secondary); line-height: 1.3; }
.chip .chip-time {
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary-accent);
  line-height: 1.2;
  direction: ltr;
  unicode-bidi: isolate;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-copy { margin-bottom: 0; }
}

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--border); background: var(--bg-elevated); }
.trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4) var(--s-6);
  padding-block: var(--s-6);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
}
.trust-item svg { flex: none; width: 20px; height: 20px; color: var(--primary-400); }
@media (min-width: 820px) { .trust-row { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Feature cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
.card {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 32px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--glow-teal);
}
.card .icon-tile {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: rgba(20, 184, 132, .12);
  color: var(--primary-400);
  margin-bottom: var(--s-4);
}
.card .icon-tile.coral { background: rgba(242, 92, 52, .12); color: var(--secondary-400); }
.card .icon-tile svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; margin-bottom: var(--s-2); }
.card p { color: var(--text-secondary); font-size: 15px; }

@media (min-width: 760px) {
  .features-grid { grid-template-columns: repeat(6, 1fr); }
  .features-grid .card:nth-child(-n + 2) { grid-column: span 3; }
  .features-grid .card:nth-child(n + 3) { grid-column: span 2; }
}

/* ---------- Showcase ---------- */
.showcase { background: var(--bg-elevated); border-block: 1px solid var(--border); }
.phones {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: var(--s-8);
}
.shot { max-width: 300px; width: 100%; }
.shot figcaption {
  margin-top: var(--s-4);
  text-align: center;
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 500;
}
.shot .phone { width: 100%; }
@media (min-width: 820px) {
  .phones { grid-template-columns: repeat(3, 1fr); align-items: start; gap: var(--s-6); }
  .shot:nth-child(2) { transform: translateY(28px); }
}

/* ---------- Safety ---------- */
.safety-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) { .safety-grid { grid-template-columns: 1.1fr .9fr; } }

.safety-list { list-style: none; display: grid; gap: var(--s-5); }
.safety-list li { display: flex; gap: var(--s-4); }
.safety-list .icon-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: rgba(20, 184, 132, .12);
  color: var(--primary-400);
}
.safety-list .icon-tile svg { width: 20px; height: 20px; }
.safety-list strong { display: block; font-size: 16.5px; margin-bottom: 2px; }
.safety-list p { color: var(--text-secondary); font-size: 15px; }

.safety-shot { max-width: 300px; margin-inline: auto; width: 100%; }
.safety-shot .phone { width: 100%; }

.disclaimer {
  margin-top: clamp(40px, 6vw, 64px);
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(245, 158, 11, .1), rgba(245, 158, 11, .04));
  border: 1px solid rgba(245, 158, 11, .35);
}
.disclaimer svg { flex: none; width: 26px; height: 26px; color: var(--warning-400); margin-top: 2px; }
.disclaimer p { color: var(--text); font-size: 15.5px; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: var(--s-3); }
.faq-item {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 44px;
  padding: var(--s-4) var(--s-5);
  background: none;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}
.faq-q .chev {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--text-primary-accent);
  transition: transform .25s ease;
}
.faq-item[data-open="true"] .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}
.faq-item[data-open="true"] .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  padding: 0 var(--s-5) var(--s-5);
  color: var(--text-secondary);
  font-size: 15px;
}

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; overflow: clip; }
.final-cta .wrap { position: relative; }
.final-cta .wrap::before {
  content: "";
  position: absolute;
  inset: auto;
  top: -40px;
  inset-inline: 0;
  margin-inline: auto;
  width: 640px;
  max-width: 100%;
  aspect-ratio: 2 / 1;
  background: radial-gradient(closest-side, rgba(20, 184, 132, .18), transparent 70%);
  z-index: -1;
}
.final-cta h2 { font-size: clamp(28px, 4.6vw, 44px); margin-bottom: var(--s-4); }
.final-cta .lead {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto var(--s-8);
}
.final-cta .badges { justify-content: center; }
.final-cta .microcopy { max-width: 480px; margin-inline: auto; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-elevated); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  padding-block: var(--s-12);
}
.footer-brand img { height: 34px; width: auto; margin-bottom: var(--s-3); }
.footer-brand p { color: var(--text-secondary); font-size: 14px; max-width: 320px; }
.footer h4 {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
  font-weight: 600;
}
[dir="ltr"] .footer h4 { letter-spacing: .06em; text-transform: uppercase; }
.footer ul { list-style: none; display: grid; gap: var(--s-2); }
.footer ul a {
  color: var(--text-secondary);
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.footer ul a:hover { color: var(--text); }
.footer-legal {
  border-top: 1px solid var(--border);
  padding-block: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 13.5px;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- Privacy / prose pages ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h1 { font-size: clamp(28px, 4.4vw, 40px); margin-bottom: var(--s-3); }
.prose .effective { color: var(--text-secondary); font-size: 14.5px; margin-bottom: var(--s-6); }
.prose .note {
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  background: rgba(42, 133, 238, .08);
  border: 1px solid rgba(42, 133, 238, .3);
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-bottom: var(--s-8);
}
.prose h2 {
  font-size: 21px;
  margin: var(--s-10) 0 var(--s-3);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: var(--s-8); }
.prose p, .prose li { color: var(--text-secondary); font-size: 15.5px; }
.prose p { margin-bottom: var(--s-4); }
.prose ul { padding-inline-start: var(--s-6); margin-bottom: var(--s-4); display: grid; gap: var(--s-2); }
.prose li::marker { color: var(--primary-400); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 404 ---------- */
.nf {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.nf img { width: 110px; margin: 0 auto var(--s-6); }
.nf h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: var(--s-3); }
.nf p { color: var(--text-secondary); max-width: 420px; margin: 0 auto var(--s-8); }
.nf .badges, .nf .actions { justify-content: center; }
.nf .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .shot:nth-child(2) { transform: none; }
}
