/* Zayna landing page (spec 26). Tokens follow the app's src/constants/colors.ts */

@font-face { font-family: "Zain"; src: url("fonts/zain-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Zain"; src: url("fonts/zain-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Zain"; src: url("fonts/zain-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #FAF8F5;
  --bg-2: #F3EFE9;
  --card: #FFFFFF;
  --ink: #2A2522;
  --ink-2: #6E6862;
  --line: #E6DED4;
  --primary: #C96D5A;
  /* Buttons use the logo's deeper terracotta: white text on it passes 4.5:1 */
  --primary-deep: #B24538;
  --primary-tint: #F6E7E2;
  --teal: #0F6B78;
  --teal-tint: #E8F4F6;
  --star: #D4A843;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(42, 37, 34, 0.04), 0 12px 32px rgba(42, 37, 34, 0.08);
  --wrap: 1120px;
  --gutter: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Zain", "Geeza Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: auto; }
.brand span { font-weight: 800; font-size: 26px; line-height: 1; padding-top: 4px; }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 17px; }
.nav a:hover { color: var(--ink); }
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; background: var(--card);
}
.lang:hover { border-color: var(--ink-2); }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 18px; text-decoration: none;
  border: 0; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--primary-deep); color: #fff; }
.btn-primary:hover { background: #9C3A2F; }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: var(--card); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-light { background: #fff; color: var(--primary-deep); }
.btn-light:hover { background: var(--primary-tint); }

/* ── Type ───────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 16px; color: var(--primary-deep);
  background: var(--primary-tint); padding: 4px 14px; border-radius: 999px; margin-bottom: 18px;
}
h1, h2, h3 { line-height: 1.3; font-weight: 800; }
h1 { font-size: clamp(38px, 6.2vw, 64px); }
h2 { font-size: clamp(30px, 4.2vw, 44px); margin-bottom: 14px; }
h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--ink-2); font-size: 19px; }
.center { text-align: center; margin-inline: auto; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { padding: 40px 0 clamp(64px, 9vw, 112px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 560px; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; list-style: none; color: var(--ink-2); font-weight: 700; font-size: 17px; }
.points li { display: flex; align-items: center; gap: 8px; }
.points svg { width: 20px; height: 20px; color: var(--teal); flex: none; }

/* The arch echoes the app's welcome screen */
.stage { position: relative; display: flex; justify-content: center; padding-top: 28px; }
.stage::before {
  content: ""; position: absolute; inset: 0 6% 12% 6%;
  background: var(--primary-tint);
  border-radius: 999px 999px 32px 32px;
}
.stage .phone { position: relative; }

/* ── Phone frame ────────────────────────────────────────────────── */
.phone {
  width: min(300px, 74vw);
  background: #1F1B19; padding: 10px; border-radius: 46px;
  box-shadow: 0 2px 4px rgba(42, 37, 34, 0.08), 0 30px 60px rgba(42, 37, 34, 0.18);
}
.phone img { width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover; object-position: top; border-radius: 36px; background: var(--bg-2); }
.phone.short img { aspect-ratio: 1206 / 2000; }
.phone-cap { text-align: center; color: var(--ink-2); font-size: 15px; margin-top: 14px; }

/* ── Split rows ─────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.split .media { display: flex; flex-direction: column; align-items: center; }

/* ── Steps ──────────────────────────────────────────────────────── */
.steps { list-style: none; display: grid; gap: 16px; counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: var(--primary-tint); color: var(--primary-deep); font-weight: 800; font-size: 24px;
}
.steps p, .card p, .ticks li { color: var(--ink-2); }

/* ── Requests ───────────────────────────────────────────────────── */
.band { background: var(--bg-2); }
.quote {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin: 8px 0 26px; font-weight: 700; font-size: 20px;
  display: flex; gap: 12px; align-items: center;
}
.quote svg { width: 26px; height: 26px; color: var(--primary); flex: none; }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { width: 22px; height: 22px; color: var(--teal); flex: none; margin-top: 5px; }

/* ── Cards ──────────────────────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--teal-tint); color: var(--teal); margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }
.card.featured { border-color: transparent; background: var(--teal); color: #fff; }
.card.featured p { color: rgba(255, 255, 255, 0.86); }
.card.featured .icon { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ── Customers ──────────────────────────────────────────────────── */
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 24px; list-style: none; }
.cats li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 16px; font-weight: 700; font-size: 16px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store {
  display: flex; align-items: center; gap: 12px; min-width: 200px;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 18px;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 13px; opacity: 0.75; line-height: 1.3; }
.store b { display: block; font-size: 18px; line-height: 1.3; }
.store .soon { margin-inline-start: auto; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 2px 10px; }

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; font-size: 19px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--primary-deep); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); }

/* ── Closing band ───────────────────────────────────────────────── */
.closing { padding: clamp(72px, 10vw, 120px) 0; }
.closing .box {
  position: relative; overflow: hidden;
  background: var(--primary-deep); color: #fff; border-radius: 32px;
  padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.closing h2 { margin-bottom: 8px; }
.closing p { color: rgba(255, 255, 255, 0.88); font-size: 19px; max-width: 560px; }
.closing .mark { position: absolute; inset-inline-end: -40px; bottom: -60px; width: 260px; opacity: 0.08; pointer-events: none; }
.closing .btn { position: relative; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 16px; color: var(--ink-2); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--ink); font-size: 16px; margin-bottom: 10px; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .brand { margin-bottom: 10px; color: var(--ink); }
.site-footer .brand:hover { text-decoration: none; }
.legal-line { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 14px; }

/* ── Calm reveal: a single fade, nothing moves ──────────────────── */
.js .reveal { opacity: 0; transition: opacity 0.7s ease; }
.js .reveal.shown { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transition: none; }
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
}
@media (max-width: 820px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .hero { padding-top: 16px; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .split .media { order: 2; }
  .closing .box { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn { height: 52px; padding: 0 22px; font-size: 17px; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .store { flex: 1 1 100%; }
  .brand span { font-size: 24px; }
}

/* Latin script needs less line height than Arabic */
html[lang="en"] h1 { line-height: 1.12; }
html[lang="en"] h2 { line-height: 1.18; }
html[lang="en"] body { line-height: 1.6; }

/* ── Early kitchen sign-up (spec 27) ────────────────────────────── */
.join { padding: 40px 0 clamp(64px, 9vw, 112px); }
.join-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.join-intro { position: sticky; top: 104px; }
.join-intro h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.join-intro .lead { max-width: 460px; }

.join-perks { list-style: none; display: grid; gap: 18px; margin: 32px 0 36px; }
.join-perks li { display: flex; gap: 14px; align-items: flex-start; }
.perk-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--teal-tint); color: var(--teal); }
.perk-icon svg { width: 22px; height: 22px; }
.join-perks b { display: block; font-size: 19px; line-height: 1.4; }
.join-perks span { color: var(--ink-2); font-size: 16px; line-height: 1.5; }

.join-next { border-top: 1px solid var(--line); padding-top: 26px; }
.join-next h2 { font-size: 18px; color: var(--ink-2); margin-bottom: 14px; font-weight: 700; }
.join-next ol { list-style: none; counter-reset: next; display: grid; gap: 14px; position: relative; }
.join-next li { counter-increment: next; display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 17px; position: relative; }
.join-next li::before {
  content: counter(next); display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--card); border: 1.5px solid var(--line); color: var(--primary-deep); font-size: 15px; font-weight: 800; position: relative; z-index: 1;
}
.join-next li:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: 14px; top: 30px; height: 14px; width: 1.5px; background: var(--line);
}

.join-card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 1px 2px rgba(42, 37, 34, 0.04), 0 24px 48px rgba(42, 37, 34, 0.07); }
.join-notice {
  background: var(--primary-tint); color: var(--ink); border-radius: 16px;
  padding: 14px 18px; margin-bottom: 24px; font-weight: 700;
}
.join-notice a { color: var(--primary-deep); }
.join-form { display: grid; gap: 22px; }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-head h2 { font-size: 22px; font-weight: 800; line-height: 1.3; }
.step-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-deep); color: #fff; font-weight: 800; font-size: 17px; flex: none; }
.step-head.step-2 { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 8px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.join-form .field { border: 0; min-width: 0; }
.join-form label, .join-form legend { display: block; font-weight: 700; font-size: 17px; margin-bottom: 8px; padding: 0; }
.join-form .opt { font-weight: 400; color: var(--ink-2); font-size: 15px; }
.join-form .hint { color: var(--ink-2); font-size: 14.5px; margin: -4px 0 10px; line-height: 1.5; }
.join-form input[type="text"], .join-form input[type="tel"], .join-form input[type="email"], .join-form select {
  width: 100%; height: 54px; padding: 0 16px;
  font-family: inherit; font-size: 17.5px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.join-form input:hover, .join-form select:hover { border-color: #D3C8BB; }
.join-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236E6862' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center; padding-inline-end: 44px; cursor: pointer;
}
html[dir="ltr"] .join-form select { background-position: right 14px center; }
.join-form input::placeholder { color: #A39E96; }
.join-form input:focus, .join-form select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-tint); }
.join-form input[dir="ltr"] { text-align: left; }
html[dir="rtl"] .join-form input[dir="ltr"]::placeholder { text-align: right; }
.reveal-other { margin-top: 12px; }
.reveal-other label { font-size: 15px; }

/* Option cards with a drawn tick box or dot instead of the browser's own */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check {
  display: flex !important; align-items: center; gap: 12px; min-height: 54px;
  padding: 10px 16px; margin: 0 !important; border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff; cursor: pointer; font-weight: 700 !important; font-size: 16.5px !important; line-height: 1.4;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.check:hover { border-color: #D3C8BB; }
.check input {
  -webkit-appearance: none; appearance: none; flex: none; margin: 0;
  width: 22px; height: 22px; border: 2px solid #CFC5B9; border-radius: 7px; background: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--primary-deep); border-color: var(--primary-deep); }
.check input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
  background-size: 16px; background-position: center; background-repeat: no-repeat;
}
.check input[type="radio"]:checked { box-shadow: inset 0 0 0 4px #fff; }
.check:has(input:checked) { border-color: var(--primary-deep); background: #FCF4F1; }
.check:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.check.consent { font-weight: 400 !important; font-size: 15.5px !important; align-items: flex-start; background: transparent; border: 0; padding: 4px 0; min-height: 0; color: var(--ink-2); }
.check.consent input { margin-top: 3px; }
.check.consent:has(input:checked) { background: transparent; }
.check.consent a { color: var(--teal); }
.error { color: #A33A2E; font-size: 14.5px; font-weight: 700; margin-top: 6px; line-height: 1.5; }
.error:empty { display: none; }
.field.has-error input:not([type="checkbox"]):not([type="radio"]), .field.has-error select, .field.has-error .check:not(.consent) { border-color: #C0503F; }
.form-error { color: #A33A2E; font-weight: 700; }
.form-error:empty { display: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; inset-inline-start: -9999px; }
.join-form .submit { width: 100%; justify-content: center; height: 58px; font-size: 19px; margin-top: 4px; }
.join-form .submit:disabled { opacity: 0.55; cursor: not-allowed; }
.alt-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink-2); font-weight: 700; font-size: 16px; text-decoration: none; }
.alt-link:hover { color: var(--ink); }
.alt-link svg { width: 20px; height: 20px; flex: none; }
.join-done { text-align: center; padding: 32px 0; outline: none; }
.join-done .done-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); margin: 0 auto 18px; }
.join-done .done-icon svg { width: 38px; height: 38px; }
.join-done h2 { font-size: 30px; margin-bottom: 6px; }
.join-done p { color: var(--ink-2); font-size: 19px; margin-bottom: 24px; }
@media (max-width: 900px) {
  .join-wrap { grid-template-columns: 1fr; gap: 28px; }
  .join-intro { position: static; }
  .join-perks { margin: 22px 0 0; gap: 14px; }
  .join-next { display: none; }
  .join-perks span { display: none; }
  .join-perks li { align-items: center; }
  .join-perks b { font-size: 17px; }
  .perk-icon { width: 34px; height: 34px; border-radius: 10px; }
}
@media (max-width: 520px) {
  .row-2 { grid-template-columns: 1fr; gap: 22px; }
  .join-card { border-radius: 22px; }
  .check { padding: 10px 12px; gap: 10px; font-size: 15.5px !important; }
}
@media (max-width: 380px) {
  .checks { grid-template-columns: 1fr; }
  .checks.two { grid-template-columns: 1fr 1fr; }
}
.join-page .lang { margin-inline-start: auto; }

.hero .alt-link { margin-top: 18px; }
