@font-face {
  font-family: Alexandria;
  src: url("/landing/alexandria-subset.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --rose: #9b3a4a;
  --rose-pressed: #852f3e;
  --rose-10: rgb(155 58 74 / 0.1);
  --rose-18: rgb(155 58 74 / 0.18);
  --cream: #f6f1e8;
  --cream-deep: #efe6d8;
  --surface: #fbf8f3;
  --ink: #241c1a;
  --muted: #6b605c;
  --line: #e5ded3;
  --on-rose: #ffffff;
  --font: Alexandria, system-ui, sans-serif;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 18px 40px rgb(36 28 26 / 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(880px 520px at 100% -8%, var(--rose-18), transparent 62%),
    radial-gradient(640px 420px at -12% 18%, rgb(36 28 26 / 0.05), transparent 58%),
    var(--cream);
}

[hidden] { display: none !important; }

h1, h2, h3, p, ul, ol, figure, fieldset, legend { margin: 0; }
ul, ol { padding: 0; list-style: none; }

button, input, a { font: inherit; color: inherit; }

::selection { background: var(--rose); color: var(--on-rose); }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--rose-18);
}

.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  z-index: 40;
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: 20px;
  background: rgb(246 241 232 / 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgb(229 222 211 / 0.9);
}

.wordmark {
  color: var(--rose);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}

.topnav {
  display: none;
  align-items: center;
  gap: 18px;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.topnav a:hover { color: var(--ink); }

.nav-join {
  color: var(--rose) !important;
}

main {
  max-width: 1120px;
  margin-inline: auto;
  padding: 8px 20px 96px;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 0 36px;
}

.hero-copy, .hero-stage { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--rose-10);
  color: var(--rose);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(34px, 8vw, 64px);
  line-height: 1.3;
  font-weight: 700;
  text-wrap: balance;
  max-width: 11ch;
}

.hero-sub, .section-lead, .step-line, .feature-line, .privacy, .footer {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-sub { max-width: 38rem; margin-top: 16px; }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--rose);
  color: var(--on-rose);
  box-shadow: 0 10px 24px rgb(155 58 74 / 0.28);
}

.btn-primary:hover, .btn-primary:active { background: var(--rose-pressed); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-secondary:hover { background: rgb(36 28 26 / 0.04); }

.btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.text-link {
  color: var(--rose);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}

.text-link::after {
  content: "";
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: width 0.25s var(--ease);
}

.text-link:hover::after { width: 28px; }

.hero-stage { display: flex; flex-direction: column; align-items: center; }

.phone {
  width: min(100%, 280px);
  background: var(--ink);
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 30px 70px rgb(36 28 26 / 0.22),
    inset 0 0 0 1px rgb(246 241 232 / 0.08);
}

.phone-screen {
  display: grid;
  background:
    radial-gradient(120px 80px at 80% 0%, var(--rose-10), transparent 70%),
    var(--cream);
  border-radius: 26px;
}

.scene {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 18px 18px;
  opacity: 0;
  visibility: hidden;
}

.scene.is-on { opacity: 1; visibility: visible; }

.mock-word {
  color: var(--rose);
  font-weight: 700;
  text-align: center;
}

.mock-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.45;
}

.mock-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.mock-eye, .mock-sub, .mock-product { color: var(--muted); font-size: 13px; }
.mock-msg { font-weight: 700; margin-top: 4px; line-height: 1.6; }
.mock-product { margin-top: 6px; }

.mock-picks { display: flex; flex-direction: column; gap: 8px; }

.pick {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
}

.pick.is-picked {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px var(--rose-10);
}

.mock-map {
  position: relative;
  flex: 1;
  min-height: 140px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 58% 46%, var(--rose) 0 7px, var(--surface) 8px 11px, transparent 12px),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--cream-deep);
}

.pin-dot { display: none; }

.mock-btn {
  margin-top: auto;
  background: var(--rose);
  color: var(--on-rose);
  border-radius: 999px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.phone-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.dot {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  cursor: pointer;
}

.dot.is-on { background: var(--rose-10); color: var(--rose); }

.shop-sticky { display: none; }

.section {
  padding: 56px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section > .btn { align-self: start; }

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.35;
  font-weight: 700;
}

.demo-copy, .shop-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps { counter-reset: step; display: grid; gap: 12px; }

.step {
  width: 100%;
  text-align: start;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgb(251 248 243 / 0.8);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.step:hover { border-color: var(--rose); transform: translateY(-2px); }

.step.is-on {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px var(--rose-10);
  background: var(--surface);
}

.step-index {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--on-rose);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.step-index::before {
  counter-increment: step;
  content: counter(step, arabic-indic);
}

.step-copy { display: flex; flex-direction: column; gap: 6px; }
.step-title, .feature-title { font-weight: 700; line-height: 1.5; }

.demo-label {
  align-self: start;
  background: var(--rose-10);
  color: var(--rose);
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
}

.demo-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.product-card:hover { transform: translateY(-2px); }

.product-card:has(input:checked) {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px var(--rose-10);
  background: var(--surface);
}

.product-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-swatch {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: block;
  box-shadow: inset 0 0 0 1px rgb(36 28 26 / 0.08);
}

.swatch-rose { background: var(--rose); }
.swatch-ink { background: var(--ink); }
.swatch-muted { background: var(--muted); }

.preview-swatch {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex: none;
  background: var(--rose);
}

#gift-preview[data-product="شوكولاتة"] .preview-swatch { background: var(--ink); }
#gift-preview[data-product="عطر"] .preview-swatch { background: var(--muted); }

.demo-fields { display: flex; flex-direction: column; gap: 12px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label, .field span, .field legend { font-weight: 700; }

input[type="text"], input[type="tel"] {
  min-height: 52px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 0 14px;
  transition: border-color 0.2s var(--ease);
}

input[type="text"]:focus, input[type="tel"]:focus { border-color: var(--rose); }

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
}

.toggle input {
  appearance: none;
  width: 46px;
  height: 28px;
  margin: 0;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  cursor: pointer;
  flex: none;
}

.toggle input::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  top: 3px;
  inset-inline-start: 3px;
  transition: inset-inline-start 0.2s var(--ease), background 0.2s var(--ease);
}

.toggle input:checked { background: var(--rose); }
.toggle input:checked::after {
  background: var(--cream);
  inset-inline-start: 21px;
}

.phone-live { margin-inline: auto; }
.phone-live .phone-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  padding: 22px 18px;
}

.qatiya-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qatiya-sum {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
}

#qatiya-confirmed { font-size: clamp(32px, 5vw, 48px); line-height: 1.2; }

.qatiya-of { color: var(--muted); font-size: 15px; font-weight: 600; }

.qatiya-meter {
  height: 12px;
  border-radius: 999px;
  background: var(--cream-deep);
  overflow: hidden;
}

#qatiya-track {
  display: block;
  height: 100%;
  width: 3.333%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose-pressed), var(--rose));
  transition: width 0.55s var(--ease);
}

.qatiya-bar {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.qatiya-shares { display: flex; flex-direction: column; gap: 8px; }

.qatiya-shares li, .points li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 600;
}

.is-hidden-share { color: var(--muted); }

.features, .points { display: flex; flex-direction: column; gap: 12px; }

.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgb(251 248 243 / 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.feature:hover { border-color: var(--rose); }

.features-lead { gap: 0; }

.features-lead .feature,
.features-rest .feature {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.features-lead .feature:hover,
.features-rest .feature:hover { transform: none; }

.more-features { border-top: 1px solid var(--line); }

.more-features summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.more-features summary::-webkit-details-marker { display: none; }

.more-features summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-inline-end: 2px solid var(--rose);
  border-block-end: 2px solid var(--rose);
  transform: rotate(45deg);
  flex: none;
}

.more-features[open] summary::after { transform: rotate(225deg); }

.feature-mark {
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--rose);
  flex: none;
}

#join {
  background: var(--ink);
  color: var(--cream);
  border-radius: 32px;
  padding: 36px 24px;
}

#join .section-lead,
#join .more-features summary { color: var(--cream); }

#join .points li {
  background: transparent;
  color: var(--cream);
  border-color: rgb(246 241 232 / 0.22);
}

#join .more-features,
#join .features-rest .feature { border-color: rgb(246 241 232 / 0.22); }

#join .feature-line { color: rgb(246 241 232 / 0.72); }

.shop-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  color: var(--ink);
}

#join .shop-card .privacy,
#join .shop-card .feature-line { color: var(--muted); }

.join-form { display: flex; flex-direction: column; gap: 16px; }

.phone-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding-inline: 14px;
  transition: border-color 0.2s var(--ease);
}

.phone-field:focus-within { border-color: var(--rose); }

.phone-field input {
  border: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
  padding: 0;
  box-shadow: none;
}

.phone-prefix { font-weight: 700; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.chip:has(input:checked) {
  border-color: var(--rose);
  background: var(--rose);
  color: var(--on-rose);
}

.chip input { position: absolute; opacity: 0; pointer-events: none; }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
}

.error-text {
  color: var(--rose);
  font-size: 14px;
  border: 1px solid var(--rose);
  border-radius: 12px;
  padding: 8px 12px;
  background: var(--rose-10);
}

.success-text {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  background: var(--cream);
  margin-bottom: 12px;
}

.privacy { font-size: 13px; }

.faq { display: flex; flex-direction: column; gap: 10px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 4px 18px;
  transition: border-color 0.2s var(--ease);
}

.faq details[open] { border-color: var(--rose); }

.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-inline-end: 2px solid var(--rose);
  border-block-end: 2px solid var(--rose);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
  flex: none;
}

.faq details[open] summary::after { transform: rotate(225deg); }

.faq-body { display: grid; grid-template-rows: 0fr; }
.faq details[open] .faq-body { grid-template-rows: 1fr; }
.faq-body > p { overflow: hidden; color: var(--muted); line-height: 1.8; }

.faq details[open] .faq-body > p { padding-bottom: 14px; }

.final-cta {
  background: var(--ink);
  color: var(--cream);
  border-radius: 32px;
  padding: 40px 24px;
  margin-top: 12px;
}

.final-cta .section-lead { color: rgb(246 241 232 / 0.72); }
.final-cta .btn-secondary { color: var(--cream); border-color: rgb(246 241 232 / 0.7); }
.final-cta .btn-secondary:hover { background: rgb(246 241 232 / 0.08); }

.footer {
  text-align: center;
  padding: 8px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-link {
  color: var(--rose);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
}

@media (max-width: 719px) {
  .shop-sticky {
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-inline: -20px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgb(251 248 243 / 0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }

  .shop-sticky .btn { width: 100%; }
}

@media (min-width: 720px) {
  .topbar { padding-inline: 32px; }
  .topnav { display: flex; }
  main { padding-inline: 32px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .hero-actions .btn { min-width: 180px; }
}

@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
    min-height: calc(100dvh - 72px);
    padding: 20px 0 64px;
  }

  .steps { grid-template-columns: repeat(3, 1fr); }

  .features-lead {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }

  #gift-demo, #qatiya-demo, #join {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
  }

  #join { align-items: start; }
  .shop-card { position: sticky; top: 88px; }

  .final-cta { padding: 64px 56px; }

  #faq .faq { max-width: 760px; }
}

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }

  html.js .reveal.is-in { opacity: 1; transform: none; }

  .hero-stage .phone { animation: float 7s ease-in-out infinite; }
  .hero-stage:hover .phone, .hero-stage:focus-within .phone { animation-play-state: paused; }

  .scene { transform: translateY(12px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
  .scene.is-on { transform: none; }

  .faq-body { transition: grid-template-rows 0.35s var(--ease); }

  .phone-live.is-live .mock-card { animation: settle 0.45s var(--ease); }

  .qatiya-shares .is-new { animation: settle 0.4s var(--ease); }

  .shop-sticky { animation: rise 0.35s var(--ease); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes settle {
  from { opacity: 0.4; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes rise {
  from { transform: translateY(110%); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .step, .feature, .product-card, #qatiya-track { transition: none; }
}
