@font-face { font-family: 'Rubik'; src: url('/assets/fonts/Rubik_500Medium.ttf') format('truetype'); font-display: swap; font-weight: 500; }
@font-face { font-family: 'Rubik'; src: url('/assets/fonts/Rubik_600SemiBold.ttf') format('truetype'); font-display: swap; font-weight: 600; }
@font-face { font-family: 'Rubik'; src: url('/assets/fonts/Rubik_700Bold.ttf') format('truetype'); font-display: swap; font-weight: 700; }
@font-face { font-family: 'Rubik'; src: url('/assets/fonts/Rubik_800ExtraBold.ttf') format('truetype'); font-display: swap; font-weight: 800; }
@font-face { font-family: 'Manrope'; src: url('/assets/fonts/Manrope_500Medium.ttf') format('truetype'); font-display: swap; font-weight: 500; }
@font-face { font-family: 'Manrope'; src: url('/assets/fonts/Manrope_600SemiBold.ttf') format('truetype'); font-display: swap; font-weight: 600; }
@font-face { font-family: 'Manrope'; src: url('/assets/fonts/Manrope_700Bold.ttf') format('truetype'); font-display: swap; font-weight: 700; }
@font-face { font-family: 'Manrope'; src: url('/assets/fonts/Manrope_800ExtraBold.ttf') format('truetype'); font-display: swap; font-weight: 800; }

:root {
  --lagoon: #12809A;
  --deep: #0B3E4A;
  --ink: #0B2E33;
  --amber: #FFB43C;
  --amber-ink: #4A3410;
  --emergency: #D6452F;
  --mist: #F2F8F9;
  --foam: #D5EBF0;
  --soft: #E3F0F3;
  --secondary: #4E707A;
  --muted: #6C8F97;
  --inactive: #9BB8BF;
  --border: #CBE2E8;
  --field-border: #BFDAE1;
  --white: #FFFFFF;
  --shadow: 0 24px 72px rgba(11, 62, 74, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
html[lang='ar-SA'] body { font-family: 'Rubik', system-ui, sans-serif; }
a { color: var(--lagoon); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 4px; border-radius: 6px; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--deep);
  font-family: 'Rubik', system-ui, sans-serif;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  text-decoration: none;
}
.wordmark-dot { color: var(--amber); }
.wordmark-ar { margin-inline-start: 10px; color: var(--secondary); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.site-header { position: absolute; z-index: 20; inset: 0 0 auto; padding-block: 22px; }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav > a:not(.language-switch) { color: var(--secondary); font-size: 13px; font-weight: 700; text-decoration: none; }
.language-switch {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--field-border);
  border-radius: 14px;
  color: var(--lagoon);
  background: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.hero-stage {
  --pointer-x: 0;
  --pointer-y: 0;
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  padding-block: 112px 64px;
  overflow: hidden;
  background: var(--mist);
}
.hero-stage::before {
  content: '';
  position: absolute;
  width: min(58vw, 760px);
  aspect-ratio: 1;
  inset: -280px -130px auto auto;
  border-radius: 50%;
  background: var(--foam);
  transform: translate3d(calc(var(--pointer-x) * -8px), calc(var(--pointer-y) * -8px), 0);
}
[dir='rtl'] .hero-stage::before { inset-inline: -130px auto; }
.hero-stage::after {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  inset: auto auto -230px -110px;
  border: 68px solid var(--soft);
  border-radius: 50%;
  transform: translate3d(calc(var(--pointer-x) * 5px), calc(var(--pointer-y) * 5px), 0);
}
[dir='rtl'] .hero-stage::after { inset-inline: auto -110px; }
.hero-layout { position: relative; z-index: 2; }
.hero-copy { max-width: 760px; }
.eyebrow { margin: 0; color: var(--lagoon); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-copy h1 {
  margin: 22px 0 20px;
  font-family: 'Rubik', system-ui, sans-serif;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
}
[dir='rtl'] .hero-copy h1 { letter-spacing: -0.025em; }
.hero-lead { max-width: 590px; margin: 0; color: var(--secondary); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.75; }
.download-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.download-card {
  min-width: 176px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  border: 1px solid var(--field-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--deep);
  opacity: 0.78;
  user-select: none;
}
.download-icon { font-family: 'Rubik', system-ui, sans-serif; font-size: 24px; line-height: 1; }
.download-card small { display: block; color: var(--muted); font-size: 9px; font-weight: 700; line-height: 1.2; }
.download-card b { display: block; margin-top: 2px; font-size: 12px; line-height: 1.25; }
.waitlist-card { opacity: 1; cursor: pointer; font: inherit; text-align: start; }
.waitlist-card:hover { border-color: var(--lagoon); color: var(--lagoon); transform: translateY(-1px); }

.phone-screen { min-height: 488px; padding: 22px 17px 16px; overflow: hidden; border-radius: 33px; background: var(--white); color: var(--ink); }
.phone-status { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 800; }
.app-title { margin: 18px 0 6px; font-family: 'Rubik', system-ui, sans-serif; font-size: 25px; line-height: 1.08; letter-spacing: -0.035em; }
.app-copy { margin: 0; color: var(--secondary); font-size: 11px; line-height: 1.5; }
.app-card { margin-top: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--white); }
.app-label { display: block; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.app-card strong { display: block; margin-top: 5px; font-size: 12px; line-height: 1.35; }
.app-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.app-chip { padding: 5px 8px; border-radius: 7px; background: var(--soft); color: var(--lagoon); font-size: 8px; font-weight: 800; }
.app-button { margin-top: 12px; padding: 10px; border-radius: 14px; background: var(--lagoon); color: var(--white); text-align: center; font-size: 9px; font-weight: 800; }

.story-section { padding-block: 84px; background: var(--white); }
.section-heading { max-width: 760px; margin: 12px 0 24px; font-family: 'Rubik', system-ui, sans-serif; font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -0.045em; }
[dir='rtl'] .section-heading { letter-spacing: -0.02em; }
.section-intro { max-width: 650px; margin: 0 0 48px; color: var(--secondary); font-size: 17px; }
.product-story { display: grid; grid-template-columns: minmax(330px, 0.88fr) minmax(0, 1.12fr); gap: 92px; align-items: start; }
.story-phone-wrap { position: sticky; top: 76px; min-height: 580px; display: grid; place-items: center; border-radius: 28px; background: var(--mist); overflow: hidden; }
.story-phone-wrap::before { content: ''; position: absolute; width: 380px; height: 380px; border: 1px solid var(--border); border-radius: 50%; }
.story-phone { position: relative; z-index: 2; width: 236px; padding: 9px; border-radius: 40px; background: #082D35; box-shadow: var(--shadow); }
.story-phone .phone-screen { position: relative; min-height: 470px; }
.story-screen { position: absolute; inset: 54px 17px 17px; opacity: 0; transform: translateY(18px); transition: opacity 240ms ease-out, transform 320ms ease-out; pointer-events: none; }
.product-story[data-active-story='need'] [data-story-screen='need'],
.product-story[data-active-story='options'] [data-story-screen='options'],
.product-story[data-active-story='booking'] [data-story-screen='booking'] { opacity: 1; transform: translateY(0); }
.story-steps { padding-block: 42px 80px; }
.story-step { min-height: 66vh; display: grid; align-content: center; padding-block: 40px; border-bottom: 1px solid var(--border); opacity: 0.5; transition: opacity 240ms ease-out; }
.story-step:last-child { border-bottom: 0; }
.story-step.is-active { opacity: 1; }
.step-number { color: var(--lagoon); font-family: 'Manrope', system-ui, sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; }
.story-step h3 { margin: 14px 0 10px; font-family: 'Rubik', system-ui, sans-serif; font-size: clamp(28px, 3.3vw, 42px); line-height: 1.12; letter-spacing: -0.035em; }
.story-step p { max-width: 530px; margin: 0; color: var(--secondary); font-size: 17px; }


.download-section { padding-block: 92px; background: var(--deep); color: var(--mist); text-align: center; }
.download-section .eyebrow { color: var(--foam); }
.download-section .section-heading { max-width: 820px; margin-inline: auto; }
.download-section p { max-width: 600px; margin: 0 auto; color: var(--foam); }
.download-section .download-options { justify-content: center; }
.download-section .download-card { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.08); color: var(--white); }
.download-section .download-card small { color: var(--foam); }
.download-section .waitlist-card:hover { border-color: var(--foam); color: var(--white); background: rgba(255, 255, 255, 0.14); }

.waitlist-dialog {
  width: min(480px, calc(100% - 32px));
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 22px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}
.waitlist-dialog::backdrop { background: rgba(11, 46, 51, 0.5); backdrop-filter: blur(5px); }
.waitlist-dialog h2 { margin: 10px 0 8px; font-family: 'Rubik', system-ui, sans-serif; font-size: 34px; line-height: 1.15; }
.waitlist-dialog > p:not(.eyebrow, .waitlist-result) { color: var(--secondary); }
.dialog-close { position: absolute; inset-block-start: 14px; inset-inline-end: 16px; border: 0; background: transparent; color: var(--muted); font-size: 28px; cursor: pointer; }
.waitlist-form { display: grid; gap: 10px; margin-block: 24px 14px; }
.waitlist-form label { color: var(--secondary); font-size: 13px; font-weight: 800; }
.waitlist-form input[type='email'] { min-height: 50px; padding: 10px 14px; border: 1px solid var(--field-border); border-radius: 14px; color: var(--ink); background: var(--white); font: inherit; }
.waitlist-form input[type='email'][aria-invalid='true'] { border-color: var(--emergency); box-shadow: 0 0 0 3px rgba(214, 69, 47, 0.12); }
.waitlist-form button { min-height: 50px; border: 0; border-radius: 14px; background: var(--lagoon); color: var(--white); font: inherit; font-weight: 800; cursor: pointer; }
.waitlist-form button:disabled { opacity: 0.55; cursor: wait; }
.waitlist-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.waitlist-result { display: none; margin: 0 0 8px; border-radius: 14px; font-weight: 700; line-height: 1.5; }
.waitlist-result[data-status='error'] { display: block; padding: 13px 15px; border: 1px solid rgba(214, 69, 47, 0.34); color: var(--emergency); background: #FFF4F1; }
.waitlist-result[data-status='success'] { display: block; padding: 18px; border: 1px solid var(--border); color: var(--deep); background: var(--mist); font-size: 16px; }
.waitlist-dialog[data-state='success'] { padding-block: 46px 40px; text-align: center; }
.waitlist-dialog[data-state='success'] .eyebrow { display: none; }
.waitlist-dialog[data-state='success'] h2 { margin: 0 0 12px; font-size: 30px; }
.waitlist-form[hidden] { display: none; }
.waitlist-dialog small { display: block; color: var(--muted); line-height: 1.5; }
.waitlist-dialog small[hidden] { display: none; }

.analytics-consent {
  position: fixed;
  z-index: 50;
  inset: auto 18px 18px auto;
  width: min(430px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}
[dir='rtl'] .analytics-consent { inset-inline: 18px auto; }
.analytics-consent p { margin: 0 0 12px; color: var(--secondary); font-size: 14px; line-height: 1.5; }
.analytics-consent div { display: flex; flex-wrap: wrap; gap: 8px; }
.analytics-consent button { min-height: 40px; padding: 8px 13px; border: 1px solid var(--field-border); border-radius: 12px; background: var(--white); color: var(--deep); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.analytics-consent [data-analytics-accept] { border-color: var(--lagoon); background: var(--lagoon); color: var(--white); }
.site-footer { padding-block: 42px; border-top: 1px solid var(--border); background: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 22px; font-size: 13px; font-weight: 700; }
.footer-links a { color: var(--secondary); }

.legal-shell { min-height: 100vh; padding-block: 36px 72px; }
.legal-header { margin-bottom: 44px; }
.legal-header .language-switch { background: var(--white); }
.legal-document { max-width: 820px; padding: 42px; border: 1px solid var(--border); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.legal-document h1 { margin: 0; font-family: 'Rubik', system-ui, sans-serif; font-size: clamp(36px, 5vw, 54px); line-height: 1.16; letter-spacing: -0.035em; }
.document-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 36px; padding-bottom: 24px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 13px; font-weight: 700; }
.legal-document h2 { margin: 36px 0 8px; font-family: 'Rubik', system-ui, sans-serif; font-size: 21px; line-height: 1.45; }
.legal-document p, .legal-document li { color: var(--secondary); }
.legal-document ul { padding-inline-start: 24px; }
.back-link { display: inline-block; margin-top: 36px; font-weight: 800; }
.privacy-action { min-height: 44px; padding: 9px 14px; border: 1px solid var(--lagoon); border-radius: 12px; background: var(--white); color: var(--lagoon); font: inherit; font-weight: 800; cursor: pointer; }
.not-found { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.not-found-card { width: min(620px, 100%); padding: 42px; border: 1px solid var(--border); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); text-align: center; }
.not-found-code { margin: 0; color: var(--lagoon); font-family: 'Manrope', system-ui, sans-serif; font-size: 14px; font-weight: 800; letter-spacing: 0.12em; }

@media (max-width: 900px) {
  .hero-stage { padding-bottom: 48px; }
  .hero-copy { max-width: 720px; }
  .product-story { grid-template-columns: 0.85fr 1.15fr; gap: 44px; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 32px, 1160px); }
  .site-nav > a:not(.language-switch) { display: none; }
  .hero-stage { min-height: auto; padding-block: 116px 56px; }
  .hero-stage::before { width: 520px; inset-block-start: -260px; }
  .hero-stage::after { display: none; }
  .hero-copy h1 { font-size: clamp(44px, 13vw, 64px); }
  .download-card { flex: 1 1 160px; }
  .phone-screen { min-height: 440px; }
  .story-section, .download-section { padding-block: 72px; }
  .section-intro { margin-bottom: 34px; }
  .product-story { display: block; }
  .story-phone-wrap { position: relative; top: auto; min-height: 530px; margin-bottom: 22px; }
  .story-steps { padding: 0; }
  .story-step { min-height: auto; padding-block: 36px; opacity: 1; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .legal-document, .not-found-card { padding: 30px 22px; }
  .waitlist-dialog { padding: 30px 22px 24px; }
  .analytics-consent { inset: auto 12px 12px; width: calc(100% - 24px); }
}

@media (hover: none), (pointer: coarse) {
  .hero-stage::before, .hero-stage::after { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-stage::before, .hero-stage::after { transform: none; }
  .story-phone-wrap { position: relative; top: auto; }
  .story-step { min-height: auto; opacity: 1; }
}
