/* Liwan — pre-launch site */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/plex-sans-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/plex-sans-arabic-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/plex-sans-arabic-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/plex-sans-arabic-700.woff2") format("woff2"); }
@font-face { font-family: "Marcellus"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/marcellus-400.woff2") format("woff2"); }
@font-face { font-family: "Amiri"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/amiri-arabic-400.woff2") format("woff2"); }
@font-face { font-family: "Amiri"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/amiri-arabic-700.woff2") format("woff2"); }

:root {
  --red: #7A2E2E;
  --red-hover: #5C2020;
  --brown: #3E1E1A;
  --gold: #C99A5B;
  --blush: #FBEFE6;
  --ground: #FFFFFF;
  --ink: #1F1716;
  --ink-2: #4F4442;
  --line: #EADCD2;
  --line-2: #D9C6B9;
  --field: #8F7F79;
  --on-red: #FBEFE6;
  --error-ink: #8A1C1C;
  --error-bg: #FDECEC;
  --ok-ink: #2F5A2B;
  --ok-bg: #EAF4E6;
  --radius: 6px;
  --max: 1200px;
  --display: "Marcellus", Georgia, serif;
  --display-ar: "Amiri", "IBM Plex Sans Arabic", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif; font-size: 18px; line-height: 1.8; }

.en { font-family: "IBM Plex Sans", system-ui, sans-serif; }
.ar { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; }

a { color: var(--red); }
a:hover { color: var(--red-hover); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); z-index: 10; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 860px; margin: 0 auto; padding-inline: 24px; }

h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 400; }
p { margin: 0; }

/* Brand mark */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--red); text-decoration: none; padding-block: 8px; }
.brand:hover { color: var(--red); }
.brand svg { flex: none; }
.brand .word { font-family: var(--display); font-size: 22px; letter-spacing: 0.3em; }
.brand .word-ar { font-family: var(--display-ar); font-size: 22px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 12px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; }
html[lang="ar"] .nav { font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 12px; }
.nav a:hover { color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--radius);
  background: var(--red); color: var(--on-red); font: inherit; font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--red-hover); color: var(--on-red); }
.btn[disabled] { opacity: .7; cursor: progress; }
.nav .btn { min-height: 44px; padding: 0 18px; color: var(--on-red); }
.nav .btn:hover { color: var(--on-red); }
.btn.ghost { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn.ghost:hover { background: var(--blush); color: var(--red-hover); }

/* Hero */
.hero-band { background: var(--blush); border-bottom: 1px solid var(--line); }
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 64px 72px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; color: var(--red); text-transform: uppercase; }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: 15px; text-transform: none; }
.hero h1 { font-family: var(--display); font-size: clamp(38px, 5.4vw, 64px); line-height: 1.08; color: var(--brown); }
html[lang="ar"] .hero h1 { font-family: var(--display-ar); font-weight: 700; font-size: clamp(38px, 5vw, 60px); line-height: 1.35; }
.hero .alt { font-size: 24px; color: var(--ink-2); }
.hero .alt.ar { font-family: var(--display-ar); font-size: 28px; line-height: 1.5; }
.hero .alt.en { font-family: var(--display); line-height: 1.35; }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 580px; }

.hero-art { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 420px; height: auto; display: block; }

/* Waitlist form */
.waitlist { display: flex; flex-direction: column; gap: 10px; max-width: 540px; }
.waitlist label { font-size: 15px; font-weight: 600; }
.waitlist .row { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist input[type="email"] {
  flex: 1 1 260px; min-width: 0; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--field); border-radius: var(--radius);
  font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 16px; color: var(--ink); background: #fff;
}
html[lang="ar"] .waitlist input[type="email"] { text-align: right; }
.waitlist input[type="email"]:focus { border-color: var(--red); }
.waitlist .note { font-size: 14px; color: var(--ink-2); }
html[lang="ar"] .waitlist .note { font-size: 15px; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.status { display: none; padding: 14px 16px; border-radius: var(--radius); font-size: 16px; }
.status.is-shown { display: block; }
.status.ok { background: var(--ok-bg); color: var(--ok-ink); }
.status.error { background: var(--error-bg); color: var(--error-ink); }

/* Sections */
.section { padding-block: 80px; display: flex; flex-direction: column; gap: 36px; }
.section h2, .faq h2 { font-family: var(--display); font-size: clamp(30px, 3.6vw, 42px); color: var(--brown); }
html[lang="ar"] .section h2, html[lang="ar"] .faq h2 { font-family: var(--display-ar); font-weight: 700; line-height: 1.4; }
.section .intro { font-size: 18px; color: var(--ink-2); max-width: 680px; }

.varieties { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.varieties li { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.varieties .dates { display: flex; gap: 8px; }
.varieties .date { width: 38px; height: 24px; border-radius: 50%; }
.date.ajwa { background: #1B0E0C; }
.date.sukkari { background: #B9783A; }
.date.segai { background: linear-gradient(90deg, #8A5A33 50%, #C99A5B 50%); }
html[dir="rtl"] .date.segai { background: linear-gradient(270deg, #8A5A33 50%, #C99A5B 50%); }
.varieties h3 { font-family: var(--display); font-size: 26px; color: var(--brown); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.varieties h3 .ar { font-family: var(--display-ar); font-size: 24px; }
html[lang="ar"] .varieties h3 { font-family: var(--display-ar); font-weight: 700; }
html[lang="ar"] .varieties h3 .en { font-family: var(--display); font-weight: 400; font-size: 20px; }
.varieties .origin { font-size: 14px; font-weight: 600; color: var(--red); }
.varieties p { font-size: 16px; color: var(--ink-2); }
html[lang="ar"] .varieties p { font-size: 17px; }

.gift { background: var(--blush); border-block: 1px solid var(--line); }
.gift .wrap { padding-block: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.gift .copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.gift h2 { font-family: var(--display); font-size: clamp(30px, 3.6vw, 42px); color: var(--brown); }
html[lang="ar"] .gift h2 { font-family: var(--display-ar); font-weight: 700; line-height: 1.4; }
.gift .copy p { color: var(--ink-2); font-size: 18px; }
.gift .copy ul { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.gift .box { flex: 1 1 380px; min-width: 0; }
.gift .box svg { width: 100%; max-width: 460px; height: auto; display: block; margin-inline: auto; }

.story { background: var(--red); color: var(--on-red); }
.story .wrap { padding-block: 72px; display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-start; }
.story h2 { flex: 1 1 280px; font-family: var(--display); font-size: clamp(28px, 3.2vw, 38px); line-height: 1.2; color: #fff; }
html[lang="ar"] .story h2 { font-family: var(--display-ar); font-weight: 700; line-height: 1.4; }
.story .body { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 1.7; }
html[lang="ar"] .story .body { font-size: 19px; line-height: 1.9; }

.faq { padding-block: 80px; display: flex; flex-direction: column; gap: 24px; }
.faq .list { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 600; padding-block: 18px; }
html[lang="ar"] .faq summary { font-size: 19px; }
.faq details p { margin: 0 0 20px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
html[lang="ar"] .faq details p { font-size: 17px; line-height: 1.8; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--brown); color: #EADCD2; }
.site-footer .wrap { padding-block: 40px 48px; display: flex; flex-direction: column; gap: 16px; font-size: 14px; line-height: 1.7; }
html[lang="ar"] .site-footer .wrap { font-size: 15px; line-height: 1.8; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
.site-footer .brand, .site-footer .brand:hover { color: var(--on-red); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer nav a { padding-block: 12px; color: var(--on-red); }
.site-footer nav a:hover { color: #fff; }
.site-footer a { color: var(--on-red); }

/* Legal / simple pages */
.doc { padding-block: 64px 88px; }
.doc h1 { font-family: var(--display); font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; color: var(--brown); }
html[lang="ar"] .doc h1 { font-family: var(--display-ar); font-weight: 700; line-height: 1.4; }
.doc .updated { color: var(--ink-2); font-size: 15px; margin-bottom: 40px; }
.doc h2 { font-size: 22px; font-weight: 600; margin: 40px 0 12px; line-height: 1.3; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.doc th, .doc td { text-align: start; vertical-align: top; padding: 12px; border: 1px solid var(--line); }
.doc th { background: var(--blush); font-weight: 600; color: var(--ink); }
.table-scroll { overflow-x: auto; }
.doc .table-scroll + p, .doc ul + p { margin-top: 16px; }

.centre { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; padding-block: 64px; }
.centre h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); color: var(--brown); }
.centre .ar h1 { font-family: var(--display-ar); font-weight: 700; line-height: 1.4; }
.centre p { color: var(--ink-2); max-width: 560px; }
.centre .pair { display: flex; flex-direction: column; gap: 8px; }
.centre .divider { width: 48px; height: 2px; background: var(--gold); margin: 8px auto; }
.centre .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
