/* ═══════════════════════════════════════════════════════════════
   tulabalwahy.com: the public page (D-166, D-167).
   The system's own tokens (src/TulabAlWahy.Web/Styles/theme.css): brand gold #F9C365, brown
   #2D221B, cream #EAE7D7 and sand #D5CFB3, Readex Pro. Plain CSS, no build.
   ═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
  src: url("assets/fonts/readex-pro-arabic-wght.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
  src: url("assets/fonts/readex-pro-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --gold-50: #FEF5EB;
  --gold-100: #FFE4C2;
  --gold-200: #FDD396;
  --gold-300: #F9C365;
  --gold-400: #DDA750;
  --gold-700: #8A5A0B;
  --sand-50: #F8F7F2;
  --sand-100: #EAE7D7;
  --sand-200: #D5CFB3;
  --sand-600: #6B5D50;
  --sand-800: #4B3E34;
  --sand-900: #3C3027;
  --ink: #2D221B;
  --white: #FFFFFE;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --shadow-sm: 0 1px 2px rgb(45 34 27 / 0.06);
  --shadow-md: 0 2px 8px rgb(45 34 27 / 0.08), 0 1px 2px rgb(45 34 27 / 0.05);
  --shadow-lg: 0 12px 32px rgb(45 34 27 / 0.12), 0 2px 6px rgb(45 34 27 / 0.06);
  --shadow-xl: 0 30px 60px rgb(0 0 0 / 0.35), 0 8px 20px rgb(0 0 0 / 0.25);
  /* A faint eight-pointed star, the background of the dark sections. */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Cg fill='none' stroke='%23F9C365' stroke-opacity='0.07'%3E%3Crect x='24' y='24' width='40' height='40'/%3E%3Crect x='24' y='24' width='40' height='40' transform='rotate(45 44 44)'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Readex Pro", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0; }
a { color: inherit; }
figure { margin: 0; }

.sprite { display: none; }
.ic {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ic-lg { width: 2rem; height: 2rem; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 50;
  background: var(--gold-300); color: var(--ink); padding: 0.5rem 1rem; border-radius: var(--radius-md);
}
.skip:focus { top: 1rem; }

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

.wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 2rem); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius-md);
  padding: 0.7rem 1.25rem; transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.9375rem; }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 1.0625rem; }
.btn-gold { background: var(--gold-300); color: var(--ink); box-shadow: 0 6px 20px rgb(249 195 101 / 0.35); }
.btn-gold:hover { background: var(--gold-200); }
.btn-ghost-light { color: var(--sand-100); border-color: rgb(234 231 215 / 0.35); background: transparent; }
.btn-ghost-light:hover { background: rgb(234 231 215 / 0.1); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgb(45 34 27 / 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(249 195 101 / 0.12);
}
.topbar-in { display: flex; align-items: center; gap: 1.5rem; height: 4.25rem; }
.brand img { height: 2.5rem; width: auto; }
.nav { display: flex; gap: 1.75rem; margin-inline-start: auto; }
.nav a { color: var(--sand-100); text-decoration: none; font-size: 0.9375rem; opacity: 0.85; }
.nav a:hover { opacity: 1; color: var(--gold-300); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--sand-100);
  background: var(--pattern), radial-gradient(120% 90% at 85% 0%, #4a3829 0%, var(--ink) 55%);
}
.hero-in {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 3rem;
  padding-block: 4.5rem 5rem;
}
.eyebrow {
  display: inline-block; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--gold-300); background: rgb(249 195 101 / 0.1); border: 1px solid rgb(249 195 101 / 0.25);
  padding: 0.25rem 0.85rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.eyebrow-dark { color: var(--gold-700); background: var(--gold-50); border-color: var(--gold-100); }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 700; color: var(--white); }
.gold { color: var(--gold-300); }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: rgb(234 231 215 / 0.85); margin-top: 1.25rem; max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; font-size: 0.9375rem; color: rgb(234 231 215 / 0.8); }
.hero-points li { display: flex; align-items: center; gap: 0.4rem; }
.hero-points .ic { color: var(--gold-300); }

.hero-visual { position: relative; height: 560px; }
.glow {
  position: absolute; inset: 15% 10%; border-radius: 50%;
  background: radial-gradient(circle, rgb(249 195 101 / 0.35), transparent 65%); filter: blur(30px);
}

/* Device frames */
.phone {
  position: relative; width: 260px; aspect-ratio: 390 / 844; padding: 9px;
  background: #1a130e; border-radius: 40px; box-shadow: var(--shadow-xl);
  border: 1px solid rgb(249 195 101 / 0.18);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 32px; }
.phone-front { position: absolute; inset-inline-start: 6%; top: 4%; transform: rotate(-4deg); z-index: 2; }
.phone-back { position: absolute; inset-inline-end: 4%; top: 12%; transform: rotate(5deg); opacity: 0.92; }

/* Sections */
.section { padding-block: 5.5rem; }
.section-cream { background: var(--sand-100); }
.section-dark { color: var(--sand-100); background: var(--pattern), var(--ink); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); font-weight: 700; }
.section-head p { color: var(--sand-600); margin-top: 0.75rem; font-size: 1.0625rem; }
.section-head-light h2 { color: var(--white); }
.section-head-light p { color: rgb(234 231 215 / 0.75); }

.grid { display: grid; gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card, .feature, .trust {
  background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover, .feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold-200); }
.card h3, .feature h3, .trust h3 { font-size: 1.125rem; font-weight: 700; margin-top: 1rem; }
.card p, .feature p, .trust p { color: var(--sand-600); font-size: 0.96875rem; margin-top: 0.5rem; }
.feature { background: var(--sand-50); }

.badge-ic {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.85rem;
  background: var(--gold-50); color: var(--gold-700); border: 1px solid var(--gold-100);
}
.badge-ic .ic { width: 1.5rem; height: 1.5rem; }
.role .badge-ic { background: var(--ink); color: var(--gold-300); border-color: var(--ink); }

.trust { text-align: center; }
.trust .ic { color: var(--gold-700); margin-inline: auto; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: none; }
.step { position: relative; text-align: center; padding: 2rem 1.5rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 3.25rem; inset-inline-start: calc(50% + 2.5rem); width: calc(100% - 3.5rem);
  border-top: 2px dashed var(--sand-200);
}
.step-n {
  display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--gold-300); color: var(--ink); font-weight: 700; font-size: 1.25rem;
  box-shadow: 0 0 0 6px var(--gold-50);
}
.step h3 { font-size: 1.1875rem; margin-top: 1.25rem; }
.step p { color: var(--sand-600); margin-top: 0.5rem; }

/* Screens */
.screens { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.shot { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.shot .phone { width: 240px; }
figcaption { text-align: center; color: rgb(234 231 215 / 0.8); font-size: 0.9375rem; max-width: 16rem; }
figcaption strong { display: block; color: var(--gold-300); font-weight: 600; margin-bottom: 0.15rem; }

.laptop { margin: 4rem auto 0; max-width: 980px; }
.laptop-bar {
  display: flex; direction: ltr; gap: 0.4rem; padding: 0.7rem 1rem; background: #1a130e;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0; border: 1px solid rgb(249 195 101 / 0.18); border-bottom: 0;
}
.laptop-bar i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: rgb(234 231 215 / 0.25); }
.laptop img {
  border: 1px solid rgb(249 195 101 / 0.18); border-top: 0; border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: var(--shadow-xl);
}
.laptop figcaption { margin: 1.25rem auto 0; max-width: none; }

/* FAQ */
.faq { display: grid; gap: 0.75rem; }
.faq details { background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-lg); padding: 0 1.25rem; }
.faq details[open] { border-color: var(--gold-200); box-shadow: var(--shadow-md); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--gold-700); transition: transform 0.2s ease; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { color: var(--sand-600); padding-bottom: 1.2rem; }

/* Enter */
.enter { text-align: center; padding: 2.5rem 2rem; }
.enter h2 { font-size: 1.5rem; }
.enter > p { color: var(--sand-600); margin-top: 0.5rem; }
.enter-form { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.enter-field {
  display: flex; flex-direction: row-reverse; align-items: stretch; direction: ltr;
  border: 1px solid #948A6E; border-radius: var(--radius-md); background: var(--white); overflow: hidden;
  min-width: min(100%, 22rem);
}
.enter-field:focus-within { outline: 3px solid var(--gold-300); outline-offset: 1px; }
.enter-field input { flex: 1; border: 0; font: inherit; padding: 0.7rem 0.9rem; min-width: 0; background: transparent; color: var(--ink); }
.enter-field input:focus { outline: none; }
.enter-suffix { display: grid; place-items: center; padding-inline: 0.9rem; background: var(--sand-100); color: var(--sand-600); font-size: 0.9375rem; }
.enter-error { color: #B41F35; margin-top: 0.75rem; font-size: 0.9375rem; }

/* Closing */
.closing { color: var(--sand-100); background: var(--pattern), radial-gradient(100% 120% at 50% 0%, #4a3829 0%, var(--ink) 60%); }
.closing-in { text-align: center; padding-block: 5rem; }
.closing h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); color: var(--white); }
.closing p { color: rgb(234 231 215 / 0.8); margin: 0.75rem 0 2rem; }
.closing .closing-phone { margin: 1rem 0 0; font-size: 0.9375rem; color: rgb(234 231 215 / 0.6); }

/* Footer */
.footer { background: #1f1712; color: rgb(234 231 215 / 0.65); font-size: 0.9375rem; }
.footer-in { display: flex; align-items: center; gap: 2rem; padding-block: 1.75rem; flex-wrap: wrap; }
.footer img { height: 2.25rem; width: auto; }
.footer nav { display: flex; gap: 1.5rem; margin-inline-start: auto; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold-300); }

/* Smaller screens */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .topbar .btn { margin-inline-start: auto; }
}

@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; padding-block: 3rem 3.5rem; gap: 2rem; }
  .hero-text { text-align: center; }
  .lead { margin-inline: auto; }
  .cta-row, .hero-points { justify-content: center; }
  .hero-visual { height: 440px; max-width: 420px; width: 100%; margin-inline: auto; }
  .phone { width: 200px; border-radius: 32px; padding: 7px; }
  .phone img { border-radius: 26px; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .section { padding-block: 4rem; }
  .footer nav { margin-inline-start: 0; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .brand img { height: 2.1rem; }
  .cta-row .btn { width: 100%; }
  .shot .phone { width: 220px; }
  .enter { padding: 2rem 1.25rem; }
  .enter-form .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
