/* Zajel — marketing site */
:root {
  --ink: #15171C;
  --ink-soft: #4A505C;
  --sheen: #0B7A6F;
  --sheen-deep: #075E55;
  --sky: #D8F1EA;
  --coral: #FF6A3D;
  --coral-deep: #E5532A;
  --feather: #EEF0F3;
  --white: #FFFFFF;
  --line: #DADDE3;

  --display: "Bricolage Grotesque", "Readex Pro", system-ui, sans-serif;
  --body: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 28px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}
html[lang="ar"] { --display: "Reem Kufi", "Readex Pro", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 17px/1.6 var(--body);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { inset-inline-start: 8px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.04; margin: 0; letter-spacing: -0.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.25; }
h1 { font-size: clamp(3rem, 8.4vw, 6.6rem); font-weight: 800; font-variation-settings: "wdth" 85; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 750; }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 1.05em 1.6em; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--coral); color: var(--ink); box-shadow: 0 3px 0 var(--ink); border-color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.btn-ghost { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-small { padding: .75em 1.2em; font-size: .94rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.6rem/1 "Bricolage Grotesque", sans-serif; letter-spacing: -0.03em; }
.brand img { width: 38px; height: 38px; }
.brand .ar { font: 700 1.05rem/1 "Reem Kufi", sans-serif; color: var(--sheen); letter-spacing: 0; }
.nav-links { display: flex; gap: 24px; margin-inline-start: 12px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.nav-end .login { text-decoration: none; font-weight: 600; font-size: .98rem; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line); }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { border-color: var(--ink); }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1.5px solid var(--ink); border-radius: 16px; min-width: 160px; box-shadow: 0 4px 0 var(--ink); }
.lang li a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.lang li a:hover, .lang li a[aria-current="true"] { background: var(--sky); }
.menu-btn { display: none; }

/* hero */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; color: var(--sheen); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--sheen); }
.hero .lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 34em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .note { margin-top: 16px; font-size: .92rem; color: var(--ink-soft); }

/* signature: the flight */
.flight {
  position: relative; aspect-ratio: 1 / 1; border-radius: 40px; background: var(--sky);
  overflow: hidden; isolation: isolate;
}
.flight::before { /* sun */
  content: ""; position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%;
  background: #FFF4D6; inset-inline-end: 8%; top: 7%; z-index: -1;
}
.flight-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.flight-path .dots { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 0.1 13; }
.flight-path .reveal { fill: none; stroke: #fff; stroke-width: 14; stroke-dasharray: 1000; stroke-dashoffset: 0; }
.flight .bird { position: absolute; width: 46%; top: 9%; inset-inline-start: 4%; animation: bob 4.5s ease-in-out infinite; }
html[dir="rtl"] .flight .bird, html[dir="rtl"] .flight-path, html[dir="rtl"] .cta-band .bird { transform: scaleX(-1); }
html[dir="rtl"] .flight .bird { animation-name: bob-rtl; }
.inbox-card {
  position: absolute; inset-inline-end: 6%; bottom: 7%; width: 64%;
  background: var(--white); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink);
  padding: 18px 20px;
}
.inbox-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.inbox-card .title { font-weight: 700; font-size: 1.02rem; }
.badge { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--sky); color: var(--sheen-deep); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--feather); border-radius: 14px; padding: 10px 12px; }
.stat b { display: block; font: 800 1.35rem/1.1 "Bricolage Grotesque", sans-serif; }
.stat span { font-size: .78rem; color: var(--ink-soft); }
.bar { height: 8px; border-radius: 8px; background: var(--feather); margin-top: 14px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 46%; background: var(--sheen); border-radius: 8px; transform-origin: left; }
html[dir="rtl"] .bar i { transform-origin: right; }

@keyframes bob { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
@keyframes bob-rtl { 0%,100% { transform: scaleX(-1); } 50% { transform: scaleX(-1) translateY(-8px) rotate(-1.5deg); } }
@keyframes draw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes fill { from { transform: scaleX(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.js .flight-path .reveal { animation: draw 2.4s cubic-bezier(.6,.1,.3,1) .3s both; }
.js .inbox-card { animation: rise .7s ease 1.9s both; }
.js .bar i { animation: fill 1.2s ease 2.4s both; }

/* dotted flight divider — reused motif */
.trail { height: 40px; margin: 0 auto; width: min(100% - 2 * var(--gutter), var(--wrap)); }
.trail path { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0.1 11; }

/* sections */
section { scroll-margin-top: 90px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin-top: 16px; font-size: 1.12rem; color: var(--ink-soft); }

.block { background: var(--sheen); color: var(--white); border-radius: var(--radius); margin-inline: var(--gutter); padding: clamp(48px, 7vw, 96px) 0; }
.block .section-head p { color: #CDEDE6; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--sheen-deep); border-radius: 22px; padding: 28px; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--coral); color: var(--ink); display: grid; place-items: center; margin-bottom: 20px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: #D7EFEA; font-size: .98rem; }

/* how it works: real sequence */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 27px; inset-inline: 8% 8%; border-top: 3px dotted var(--ink); z-index: -1; }
.step { counter-increment: step; }
.step .num { width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); display: grid; place-items: center; font: 800 1.4rem/1 "Bricolage Grotesque", sans-serif; margin-bottom: 22px; box-shadow: 0 3px 0 var(--ink); }
.step:last-child .num { background: var(--coral); }
.step h3 { margin-bottom: 8px; font-size: 1.35rem; }
.step p { color: var(--ink-soft); }

.duo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.panel { border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.panel.sky { background: var(--sky); }
.panel.feather { background: var(--feather); }
.panel h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.panel > p { color: var(--ink-soft); margin-bottom: 22px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--sheen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.langs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.langs a { text-decoration: none; background: var(--white); border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 600; }
.langs a:hover { background: var(--ink); color: var(--white); }
.langs a[lang="ar"] { font-family: "Reem Kufi", sans-serif; }

/* pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.plan { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 0 8px 0 var(--ink); padding: clamp(28px, 4vw, 44px); }
.plan .name { display: inline-block; font-weight: 700; font-size: .9rem; padding: 5px 12px; border-radius: 999px; background: var(--sky); color: var(--sheen-deep); }
.plan .price { font: 800 4.4rem/1 "Bricolage Grotesque", sans-serif; margin: 18px 0 4px; letter-spacing: -0.03em; }
.plan .price small { font: 500 1rem var(--body); color: var(--ink-soft); letter-spacing: 0; }
.plan .checks { margin: 24px 0 30px; }
.plan .btn { width: 100%; }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-weight: 600; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.7rem/1 var(--body); color: var(--sheen); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 40em; }

/* closing band */
.cta-band { background: var(--ink); color: var(--white); border-radius: var(--radius); margin-inline: var(--gutter); padding: clamp(44px, 6vw, 80px) clamp(24px, 5vw, 72px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { max-width: 14em; }
.cta-band .bird { width: 170px; }

/* footer */
.site-footer { padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1.5px solid var(--line); }
.foot-grid h4 { margin: 0 0 14px; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
html[lang="ar"] .foot-grid h4 { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-grid .tag { margin-top: 14px; color: var(--ink-soft); max-width: 22em; }
.foot-bottom { padding-top: 24px; font-size: .9rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* legal pages */
.legal { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 110px); }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 14px 0 8px; }
.legal .updated { color: var(--ink-soft); margin-bottom: 40px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal p { color: #2B303A; }
.back { font-weight: 600; text-decoration: none; color: var(--sheen); }

/* responsive */
@media (max-width: 980px) {
  .hero-grid, .pricing, .duo { grid-template-columns: 1fr; }
  .flight { max-width: 560px; }
  .features { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .features, .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .bird { width: 120px; }
  .nav-end .login { display: none; }
  .nav { gap: 12px; }
  .brand .ar { display: none; }
  .inbox-card { width: 80%; padding: 14px; }
  .stat b { font-size: 1.1rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .block, .cta-band { margin-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
