/* Deebak landing — dependency-free stylesheet.
   Palette tokens follow docs/06-marketing/brand-brief.md (contrast table there).
   Light theme by default, dark theme via prefers-color-scheme. Logical properties keep RTL correct. */

:root {
  /* Brand constants */
  --brand-yellow: #ffd500;
  --brand-dark: #141414;

  /* Light theme tokens */
  --bg: #fafaf7;
  --surface-1: #ffffff;
  --surface-2: #f3f3ee;
  --surface-3: #e9e9e2;
  --border: #d6d6ce;
  --text: #141414;
  --text-muted: #4d4d4d;
  --accent: #ffd500;          /* fills only in light mode — never text on light surfaces */
  --on-accent: #141414;
  --accent-ink: #6b5800;      /* accent-coloured text on light surfaces (6.6:1 on --bg) */
  --success: #1b5e20;
  --danger: #b71c1c;
  --focus: #141414;
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.06), 0 8px 24px rgba(20, 20, 20, 0.06);

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --gutter: 16px;
  --max: 1120px;

  --font-latin: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-arabic: "Cairo", "Noto Sans Arabic", "Geeza Pro", Tahoma, Arial, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --surface-1: #1e1e1e;
    --surface-2: #272727;
    --surface-3: #313131;
    --border: #3d3d3d;
    --text: #f2f2f2;
    --text-muted: #b3b3b3;
    --accent: #ffd500;
    --on-accent: #141414;
    --accent-ink: #ffd500;
    --success: #4caf50;
    --danger: #ff8a80;
    --focus: #ffd500;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-latin);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
html[lang="ar"] body, :lang(ar) { font-family: var(--font-arabic); }
html[lang="ar"] body { line-height: 1.8; }
:lang(en) { font-family: var(--font-latin); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 24px; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 14px;
  border-radius: var(--radius-s); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform 120ms ease, background-color 120ms ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #ffe033; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--text); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .site-header { background: var(--bg); }
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand .mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-size: 1.25rem; line-height: 1; }
.brand-alt { font-size: 0.95rem; font-weight: 700; color: var(--text-muted); line-height: 1; }
.site-nav { margin-inline-start: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block; padding: 8px 12px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--text);
}
.site-nav a:hover { background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--border); text-decoration: none; font-weight: 700;
}
.lang-switch:hover { background: var(--surface-2); }
@media (max-width: 919px) {
  .site-nav { display: none; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 480px) {
  .brand-alt { display: none; }
  .header-actions .btn-small { display: none; } /* hero CTAs are directly below on small screens */
}

/* ---------- Status strip ---------- */
.status-strip { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.status-strip p {
  margin: 0; padding: 10px 0; font-size: 0.95rem; font-weight: 600;
  display: flex; align-items: flex-start; gap: 10px;
}
.status-dot {
  flex: none; width: 10px; height: 10px; margin-top: 0.5em; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}

/* ---------- Sections ---------- */
section { padding-block: clamp(56px, 8vw, 96px); }
section[id] { scroll-margin-top: 80px; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-weight: 800; font-size: 0.9rem;
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.25fr 0.9fr; gap: 56px; } }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 640px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 28px 18px; }
.tagline { font-weight: 800; font-size: 1.15rem; margin-bottom: 8px; }
.tagline span { box-shadow: inset 0 -0.45em 0 color-mix(in srgb, var(--accent) 70%, transparent); }
@media (prefers-color-scheme: dark) { .tagline span { box-shadow: none; color: var(--accent-ink); } }
.hero-note { font-size: 0.95rem; color: var(--text-muted); max-width: 560px; }

.task-card {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-l);
  box-shadow: var(--shadow); padding: 24px; max-width: 440px; justify-self: center; width: 100%;
}
.task-card .card-label {
  display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); border: 1px dashed var(--border); border-radius: 999px; padding: 2px 10px; margin-bottom: 14px;
}
html[lang="ar"] .task-card .card-label { text-transform: none; letter-spacing: 0; }
.task-card .card-title { font-size: 1.25rem; font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.checklist { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.check {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); display: grid; place-items: center;
}
.check svg { width: 16px; height: 16px; }
.card-footer {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-m);
  background: var(--surface-2); font-weight: 700; font-size: 0.95rem;
}
.card-footer .shekel {
  flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 1.05rem;
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li {
  counter-increment: step; background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-m); padding: 20px;
}
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800;
}
.steps h3 { font-size: 1.05rem; }
.steps p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }
.note {
  margin-top: 24px; padding: 14px 18px; border-inline-start: 4px solid var(--accent);
  background: var(--surface-1); border-radius: var(--radius-s); max-width: 820px;
}
.section-alt .note, .section-alt .steps li { background: var(--surface-1); }

.offer {
  margin-top: 28px; display: grid; gap: 16px; align-items: center;
  padding: 24px; border-radius: var(--radius-l); background: var(--brand-dark); color: #f2f2f2;
  border: 1px solid var(--border);
}
@media (min-width: 820px) { .offer { grid-template-columns: 1fr auto; } }
.offer h3 { color: var(--brand-yellow); margin-bottom: 6px; }
.offer p { margin: 0; }
.offer .btn-primary { background: var(--brand-yellow); color: var(--brand-dark); }
.offer :focus-visible { outline-color: var(--brand-yellow); }

/* ---------- Merchants ---------- */
.split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 880px) { .split { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.ticks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: 0.55em; border-radius: 3px; background: var(--accent);
  outline: 1px solid color-mix(in srgb, var(--text) 25%, transparent);
}

.merchant-ctas { margin-block: 0 12px; }
.portal-note { font-size: 0.92rem; color: var(--text-muted); max-width: 520px; margin: 0; }

/* ---------- Trust ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 20px;
}
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--brand-dark); color: var(--brand-yellow);
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.05rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }
.reg-note {
  margin-top: 24px; padding: 16px 18px; border-radius: var(--radius-m);
  border: 1px solid var(--border); background: var(--surface-2); font-weight: 600;
}

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 16px; }
@media (min-width: 880px) { .price-grid { grid-template-columns: 1.2fr 1.2fr 0.8fr; } }
.price-card {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 24px;
}
.price-card h3 { font-size: 1.2rem; padding-bottom: 12px; border-bottom: 3px solid var(--accent); display: inline-block; }
.price-card ul { margin: 12px 0 0; padding-inline-start: 1.1em; display: grid; gap: 10px; }
.price-note { margin-top: 18px; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item h3 { margin: 0; font-size: 1.08rem; }
.faq-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 4px; background: none; border: 0; color: var(--text);
  font: inherit; font-weight: 700; text-align: start; cursor: pointer;
}
.faq-icon {
  flex: none; width: 28px; height: 28px; border-radius: 50%; position: relative; background: var(--surface-3);
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; inset-inline-start: 50%; top: 50%; width: 12px; height: 2px;
  background: var(--text); transform: translate(-50%, -50%); transition: transform 150ms ease;
}
html[dir="rtl"] .faq-icon::before, html[dir="rtl"] .faq-icon::after { transform: translate(50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
html[dir="rtl"] .faq-icon::after { transform: translate(50%, -50%) rotate(90deg); }
.faq-toggle[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
html[dir="rtl"] .faq-toggle[aria-expanded="true"] .faq-icon::after { transform: translate(50%, -50%) rotate(0deg); }
.faq-toggle[aria-expanded="true"] .faq-icon { background: var(--accent); }
.faq-toggle[aria-expanded="true"] .faq-icon::before,
.faq-toggle[aria-expanded="true"] .faq-icon::after { background: var(--on-accent); }
.faq-answer { padding: 0 4px 20px; color: var(--text-muted); }
.faq-answer p { margin: 0; }
.js .faq-answer[hidden] { display: none; }

/* ---------- Waitlist ---------- */
.waitlist-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 920px) { .waitlist-grid { grid-template-columns: 1.3fr 0.7fr; gap: 48px; } }
.form {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.97rem; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-s);
  border: 1.5px solid var(--text-muted); background: var(--bg); color: var(--text); font: inherit;
}
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.97rem; }
.consent input { flex: none; width: 22px; height: 22px; margin-top: 3px; accent-color: var(--brand-dark); }
@media (prefers-color-scheme: dark) { .consent input { accent-color: var(--brand-yellow); } }
.form-status { margin: 0; font-weight: 700; min-height: 1.6em; }
.form-status[data-state="success"] { color: var(--success); }
.form-status[data-state="error"] { color: var(--danger); }
.form .btn { justify-self: start; }

.apps { display: grid; gap: 12px; }
.apps h2 { font-size: 1.3rem; }
.app-badge {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-m);
  border: 1.5px dashed var(--text-muted); background: var(--surface-1); font-weight: 700;
}
.app-badge svg { width: 26px; height: 26px; flex: none; }
.apps p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: #f2f2f2; padding-block: 48px 32px; }
.site-footer a { color: #f2f2f2; }
.site-footer :focus-visible { outline-color: var(--brand-yellow); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.3fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-weight: 800; font-size: 1.2rem; }
.footer-brand .mark { width: 40px; height: 40px; }
.footer-tagline { color: var(--brand-yellow); font-weight: 800; }
.footer-legal { color: #b3b3b3; font-size: 0.95rem; max-width: 560px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid #313131; color: #b3b3b3; font-size: 0.9rem; }

/* ---------- Legal placeholder pages ---------- */
.legal-page main { padding-block: 40px 72px; }
.draft-banner {
  border: 2px solid var(--danger); border-radius: var(--radius-m); padding: 16px 18px; margin-bottom: 32px;
  background: var(--surface-1); font-weight: 700;
}
.draft-banner p { margin: 0 0 6px; }
.draft-banner p:last-child { margin: 0; }
.legal-page article { max-width: 780px; }
.legal-page article + article { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.legal-page h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal-page ul { padding-inline-start: 1.2em; }

/* ---------- Print ---------- */
@media print {
  .site-header, .status-strip, .form, .apps { display: none; }
  body { background: #fff; color: #000; }
}
