/* Landing page. Tokens and base come from theme.css. */

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; background: var(--canvas-0); border-bottom: 1px solid var(--border);
}
.brand img { display: block; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav-links .nl-login { color: var(--text); }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a.btn { color: var(--action-ink); }

/* ---------- layout primitives ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 96px 32px; }
.section h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.section-sub { color: var(--text-2); margin: 14px 0 0; font-size: 17px; max-width: 46ch; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.split-head { position: sticky; top: 100px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 96px 32px 72px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.1rem); font-weight: 750; letter-spacing: -.022em; word-spacing: .04em; line-height: 1.06;
  text-wrap: balance; margin: 0 0 22px;
}
.lead { font-size: 19px; color: var(--text-2); margin: 0 0 34px; max-width: 52ch; }
.lead strong { color: var(--text); font-weight: 600; white-space: nowrap; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-primary { padding: 16px 28px; font-size: 16px; }
.hero-note { margin: 22px 0 0; font-size: 14px; color: var(--text-3); }

/* hero art: two passes overlapping on a soft light pool */
.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-start; padding: 12px 0 20px; }
.hero-art::before {
  content: ""; position: absolute; inset: -10% 0; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(58, 116, 242, .38), transparent 75%);
}
.mini-phone { position: relative; z-index: 1; width: 220px; }
.mini-phone.shift { margin-top: 64px; margin-inline-start: 8px; z-index: 2; }
.mini-cap { text-align: center; margin-top: 12px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.hero-art .pg-hero { aspect-ratio: 3 / 1; }

/* the one authored moment: passes slide up into place on load */
@media (prefers-reduced-motion: no-preference) {
  .mini-phone { animation: pass-in .7s cubic-bezier(.2, .7, .2, 1) both; }
  .mini-phone.shift { animation-delay: .14s; }
  @keyframes pass-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

/* ---------- trust strip ---------- */
.strip {
  max-width: 1120px; margin: 0 auto; padding: 0 32px;
}
.strip-in {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 20px 28px;
  padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.strip-in div { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-2); }
.strip-in strong { color: var(--text); font-weight: 600; }
.strip-in .icon { color: var(--link); width: 22px; height: 22px; }

/* ---------- features: ruled list, not cards ---------- */
.features-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.feature {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 22px; padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.feature-ico {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px;
  background: var(--surface-3); color: var(--link);
}
.feature h3 { font-size: 19px; font-weight: 650; margin: 2px 0 6px; }
.feature p { margin: 0; color: var(--text-2); font-size: 16px; max-width: 58ch; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 56px 0 0; padding: 0; list-style: none; }
.step { position: relative; }
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--action); color: var(--action-ink); font-weight: 750; font-size: 18px; margin-bottom: 22px;
  position: relative; z-index: 1;
}
.step::after { /* connector to the next step */
  content: ""; position: absolute; top: 21px; inset-inline: 56px -28px; height: 1px; background: var(--border-strong); opacity: .6;
}
.step:last-child::after { display: none; }
.step h3 { font-size: 20px; font-weight: 650; margin: 0 0 8px; }
.step p { margin: 0; color: var(--text-2); font-size: 16px; max-width: 34ch; }
.how-note {
  display: flex; gap: 14px; align-items: flex-start; margin: 56px 0 0; padding: 20px 24px;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-2); font-size: 15px;
}
.how-note .icon { color: var(--link); margin-top: 1px; }

/* ---------- request form ---------- */
.req-form {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 36px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
}
.req-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.req-form label { display: block; margin-bottom: 20px; }
.req-form input, .req-form select, .req-form textarea { display: block; width: 100%; margin-top: 8px; }
.req-form .btn-block { margin-top: 6px; }
.form-msg { min-height: 24px; margin: 16px 0 0; font-size: 15px; font-weight: 500; }
.form-msg:empty { min-height: 0; margin: 0; }
.form-msg.ok, .form-msg.err { display: flex; gap: 10px; align-items: flex-start; }
.form-msg.ok { color: var(--success); }
.form-msg.err { color: var(--error); }
.form-msg.ok::before, .form-msg.err::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.form-msg.ok { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.5 2.8 2.8L16 9.5'/%3E%3C/svg%3E"); }
.form-msg.err { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E"); }

/* ---------- footer ---------- */
.footer {
  max-width: 1120px; margin: 0 auto; padding: 0 32px 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: center;
}
.footer::before { /* divider lines up with the content column, like .strip-in */
  content: ""; grid-column: 1 / -1; height: 1px; background: var(--border); margin-bottom: 20px;
}
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }
.foot-copy { grid-column: 1 / -1; font-size: 13px; color: var(--text-3); max-width: 62ch; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-head { position: static; }
  .hero { grid-template-columns: 1fr; padding-top: 56px; gap: 40px; }
  .strip-in { grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .steps { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .step { display: grid; grid-template-columns: 44px 1fr; gap: 0 18px; }
  .step-n { grid-row: span 2; margin: 0; }
  .step::after { display: none; }
  .step h3 { margin-top: 8px; }
  .nav .nl { display: none; }
}
@media (max-width: 600px) {
  .nav { padding: 12px 20px; }
  .section { padding: 64px 20px; }
  .hero { padding: 40px 20px 48px; }
  .strip { padding: 0 20px; }
  .lead { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .mini-phone { width: 160px; }
  .mini-phone.shift { margin-inline-start: 6px; margin-top: 40px; }
  .req-form { padding: 24px 20px; border-radius: 16px; }
  .req-form .row { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; padding: 0 20px 40px; }
  .feature { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
  .feature-ico { width: 40px; height: 40px; }
}
@media (max-width: 359px) { /* two passes no longer fit side by side */
  .hero-art { flex-direction: column; align-items: center; gap: 16px; }
  .mini-phone, .mini-phone.shift { width: 220px; margin: 0; }
}

/* ---------- language switch ---------- */
.lang-link { padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 9px; font-size: 14px; }
.nav-links a.lang-link { color: var(--text); }
.nav-links a.lang-link:hover { background: var(--surface-2); }
@media (max-width: 960px) { .nav-links { gap: 16px; } }
@media (max-width: 600px) {
  .nav-links { gap: 8px; }
  .nav-links a:not(.btn):not(.nl):not(.nl-login) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 10px; font-size: 16px; }
  .nav .btn-sm { min-height: 44px; font-size: 16px; padding: 0 16px; }
  .lang-link { padding: 0 10px; }
}
@media (max-width: 639px) { .nav-links a.nl-login { display: none; } }
@media (max-width: 359px) {
  .nav { padding-inline: 14px; }
  .brand img { height: 26px; width: auto; }
  .nav-links { gap: 6px; }
  .nav .btn-sm { padding: 0 12px; }
}

/* ---------- wave lines between sections ---------- */
/* Three thin waves: two in the page blue, one amber, drawn with non-scaling strokes so they stay hairline at any width. */
.wave {
  height: 72px; margin: -36px 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cg fill='none' vector-effect='non-scaling-stroke'%3E%3Cpath d='M0 36C120 12 240 12 360 36S600 60 720 36 960 12 1080 36 1320 60 1440 36' stroke='%238cc2ff' stroke-opacity='.38' stroke-width='1.4' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 44C160 68 320 68 480 44S800 20 960 44 1280 68 1440 44' stroke='%238cc2ff' stroke-opacity='.17' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 28C240 52 480 52 720 28S1200 4 1440 28' stroke='%23ffb938' stroke-opacity='.32' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.strip + .wave { margin-top: 14px; } /* keep clear of the strip's own lines */
@media (max-width: 600px) { .wave { height: 48px; margin: -24px 0; } .strip + .wave { margin-top: 10px; } }

/* ---------- Arabic ---------- */
html[lang="ar"] .hero h1 { line-height: 1.32; word-spacing: normal; }
html[lang="ar"] .lead { font-size: 18px; }
html[lang="ar"] .section h2 { line-height: 1.4; }

/* ---------- pills, section heads ---------- */
.pill {
  display: inline-flex; align-items: center; width: fit-content; max-width: 100%; margin: 0 0 18px; padding: 6px 14px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface-1);
  color: var(--text-2); font-size: 14px; font-weight: 600; line-height: 1.35;
}
.pill.offer { border-color: rgba(255, 185, 56, .55); color: #ffd58a; background: rgba(255, 185, 56, .08); }
.section-head { max-width: 62ch; margin-bottom: 64px; }
.hero-login { margin: 12px 0 0; font-size: 15px; color: var(--text-2); }
.hero-login a { color: var(--link); font-weight: 600; }

/* ---------- card types: alternating rows ---------- */
.types { border-top: 1px solid var(--border); }
.type-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center;
  padding: 56px 0; border-bottom: 1px solid var(--border);
}
.type-row:nth-child(even) .type-phone { order: 2; }
.type-phone { min-width: 0; }
.type-phone .phone-solo { --dw: 276px; }
.type-text { min-width: 0; }
.type-text .pill { margin-bottom: 20px; }
.type-text h3 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 700; letter-spacing: -.02em; margin: 0 0 12px; text-wrap: balance; }
.type-text p { margin: 0 0 28px; color: var(--text-2); font-size: 17px; max-width: 44ch; }
.types-more { margin: 32px 0 0; color: var(--text-2); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 14px 0;
  font-size: 18px; font-weight: 600; color: var(--text); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 20px; height: 20px; background: var(--link);
  -webkit-mask: var(--pm) center / contain no-repeat; mask: var(--pm) center / contain no-repeat;
  --pm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
.faq details[open] summary::after { --pm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.faq summary:focus-visible { outline-offset: -2px; }
.faq details p { margin: 0 0 22px; color: var(--text-2); font-size: 17px; max-width: 56ch; }

@media (max-width: 960px) {
  .section-head { margin-bottom: 40px; }
  .type-row { grid-template-columns: 1fr; gap: 32px; padding: 44px 0; }
  .type-row:nth-child(even) .type-phone { order: 0; }
  .type-text { max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 600px) {
  .pill { font-size: 14px; }
  .type-phone .phone-solo { --dw: 264px; }
  .type-text .btn { width: 100%; }
  .types-more { font-size: 16px; }
  .faq summary { font-size: 17px; }
  .hero-note, .foot-copy, .studio-note { font-size: 14px; }
  .foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
html[lang="ar"] .faq summary { line-height: 1.5; }
html[lang="ar"] .type-text h3 { line-height: 1.4; }
html[lang="ar"] .pill { line-height: 1.6; }

@media (max-width: 600px) {
  .btn, .btn-sm, .pill, .hero-note, .hero-login, .strip-in div, .foot-copy, .how-note, .studio-note { font-size: 16px; }
  .brand { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-links a { min-width: 44px; justify-content: center; }
  .hero-login a, .types-more a { display: inline-block; padding: 10px 2px; }
  .types-more { line-height: 2; }
}
@media (max-width: 600px) { .foot-links a { font-size: 16px; } }
